pub struct InstanceArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> InstanceArgsBuilder<S>
impl<S: State> InstanceArgsBuilder<S>
sourcepub fn build_struct(self) -> InstanceArgswhere
S: IsComplete,
pub fn build_struct(self) -> InstanceArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn advanced_machine_features(
self,
value: impl Into<Output<Option<InstanceAdvancedMachineFeatures>>>,
) -> InstanceArgsBuilder<SetAdvancedMachineFeatures<S>>where
S::AdvancedMachineFeatures: IsUnset,
pub fn advanced_machine_features(
self,
value: impl Into<Output<Option<InstanceAdvancedMachineFeatures>>>,
) -> InstanceArgsBuilder<SetAdvancedMachineFeatures<S>>where
S::AdvancedMachineFeatures: IsUnset,
sourcepub fn maybe_advanced_machine_features(
self,
value: Option<impl Into<Output<Option<InstanceAdvancedMachineFeatures>>>>,
) -> InstanceArgsBuilder<SetAdvancedMachineFeatures<S>>where
S::AdvancedMachineFeatures: IsUnset,
pub fn maybe_advanced_machine_features(
self,
value: Option<impl Into<Output<Option<InstanceAdvancedMachineFeatures>>>>,
) -> InstanceArgsBuilder<SetAdvancedMachineFeatures<S>>where
S::AdvancedMachineFeatures: IsUnset,
sourcepub fn allow_stopping_for_update(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetAllowStoppingForUpdate<S>>where
S::AllowStoppingForUpdate: IsUnset,
pub fn allow_stopping_for_update(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetAllowStoppingForUpdate<S>>where
S::AllowStoppingForUpdate: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, allows this prvider to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.
sourcepub fn maybe_allow_stopping_for_update(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetAllowStoppingForUpdate<S>>where
S::AllowStoppingForUpdate: IsUnset,
pub fn maybe_allow_stopping_for_update(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetAllowStoppingForUpdate<S>>where
S::AllowStoppingForUpdate: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, allows this prvider to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.
sourcepub fn attached_disks(
self,
value: impl Into<Output<Option<Vec<InstanceAttachedDisk>>>>,
) -> InstanceArgsBuilder<SetAttachedDisks<S>>where
S::AttachedDisks: IsUnset,
pub fn attached_disks(
self,
value: impl Into<Output<Option<Vec<InstanceAttachedDisk>>>>,
) -> InstanceArgsBuilder<SetAttachedDisks<S>>where
S::AttachedDisks: IsUnset,
sourcepub fn maybe_attached_disks(
self,
value: Option<impl Into<Output<Option<Vec<InstanceAttachedDisk>>>>>,
) -> InstanceArgsBuilder<SetAttachedDisks<S>>where
S::AttachedDisks: IsUnset,
pub fn maybe_attached_disks(
self,
value: Option<impl Into<Output<Option<Vec<InstanceAttachedDisk>>>>>,
) -> InstanceArgsBuilder<SetAttachedDisks<S>>where
S::AttachedDisks: IsUnset,
sourcepub fn boot_disk(
self,
value: impl Into<Output<InstanceBootDisk>>,
) -> InstanceArgsBuilder<SetBootDisk<S>>where
S::BootDisk: IsUnset,
pub fn boot_disk(
self,
value: impl Into<Output<InstanceBootDisk>>,
) -> InstanceArgsBuilder<SetBootDisk<S>>where
S::BootDisk: IsUnset,
Required.
The boot disk for the instance. Structure is documented below.
sourcepub fn can_ip_forward(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetCanIpForward<S>>where
S::CanIpForward: IsUnset,
pub fn can_ip_forward(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetCanIpForward<S>>where
S::CanIpForward: IsUnset,
sourcepub fn maybe_can_ip_forward(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetCanIpForward<S>>where
S::CanIpForward: IsUnset,
pub fn maybe_can_ip_forward(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetCanIpForward<S>>where
S::CanIpForward: IsUnset,
sourcepub fn confidential_instance_config(
self,
value: impl Into<Output<Option<InstanceConfidentialInstanceConfig>>>,
) -> InstanceArgsBuilder<SetConfidentialInstanceConfig<S>>where
S::ConfidentialInstanceConfig: IsUnset,
pub fn confidential_instance_config(
self,
value: impl Into<Output<Option<InstanceConfidentialInstanceConfig>>>,
) -> InstanceArgsBuilder<SetConfidentialInstanceConfig<S>>where
S::ConfidentialInstanceConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceConfidentialInstanceConfig>,
> as Default>::default()
Enable Confidential Mode on this VM. Structure is documented below
sourcepub fn maybe_confidential_instance_config(
self,
value: Option<impl Into<Output<Option<InstanceConfidentialInstanceConfig>>>>,
) -> InstanceArgsBuilder<SetConfidentialInstanceConfig<S>>where
S::ConfidentialInstanceConfig: IsUnset,
pub fn maybe_confidential_instance_config(
self,
value: Option<impl Into<Output<Option<InstanceConfidentialInstanceConfig>>>>,
) -> InstanceArgsBuilder<SetConfidentialInstanceConfig<S>>where
S::ConfidentialInstanceConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceConfidentialInstanceConfig>,
> as Default>::default()
Enable Confidential Mode on this VM. Structure is documented below
sourcepub fn deletion_protection(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetDeletionProtection<S>>where
S::DeletionProtection: IsUnset,
pub fn deletion_protection(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetDeletionProtection<S>>where
S::DeletionProtection: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Enable deletion protection on this instance. Defaults to false.
Note: you must disable deletion protection before removing the resource (e.g., via pulumi destroy
), or the instance cannot be deleted and the provider run will not complete successfully.
sourcepub fn maybe_deletion_protection(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetDeletionProtection<S>>where
S::DeletionProtection: IsUnset,
pub fn maybe_deletion_protection(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetDeletionProtection<S>>where
S::DeletionProtection: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Enable deletion protection on this instance. Defaults to false.
Note: you must disable deletion protection before removing the resource (e.g., via pulumi destroy
), or the instance cannot be deleted and the provider run will not complete successfully.
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn desired_status(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetDesiredStatus<S>>where
S::DesiredStatus: IsUnset,
pub fn desired_status(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetDesiredStatus<S>>where
S::DesiredStatus: IsUnset,
sourcepub fn maybe_desired_status(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetDesiredStatus<S>>where
S::DesiredStatus: IsUnset,
pub fn maybe_desired_status(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetDesiredStatus<S>>where
S::DesiredStatus: IsUnset,
sourcepub fn enable_display(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetEnableDisplay<S>>where
S::EnableDisplay: IsUnset,
pub fn enable_display(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetEnableDisplay<S>>where
S::EnableDisplay: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Enable Virtual Displays on this instance.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn maybe_enable_display(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetEnableDisplay<S>>where
S::EnableDisplay: IsUnset,
pub fn maybe_enable_display(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetEnableDisplay<S>>where
S::EnableDisplay: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Enable Virtual Displays on this instance.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn guest_accelerators(
self,
value: impl Into<Output<Option<Vec<InstanceGuestAccelerator>>>>,
) -> InstanceArgsBuilder<SetGuestAccelerators<S>>where
S::GuestAccelerators: IsUnset,
pub fn guest_accelerators(
self,
value: impl Into<Output<Option<Vec<InstanceGuestAccelerator>>>>,
) -> InstanceArgsBuilder<SetGuestAccelerators<S>>where
S::GuestAccelerators: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::compute::InstanceGuestAccelerator>>,
> as Default>::default()
List of the type and count of accelerator cards attached to the instance. Structure documented below.
Note: GPU accelerators can only be used with on_host_maintenance
option set to TERMINATE.
sourcepub fn maybe_guest_accelerators(
self,
value: Option<impl Into<Output<Option<Vec<InstanceGuestAccelerator>>>>>,
) -> InstanceArgsBuilder<SetGuestAccelerators<S>>where
S::GuestAccelerators: IsUnset,
pub fn maybe_guest_accelerators(
self,
value: Option<impl Into<Output<Option<Vec<InstanceGuestAccelerator>>>>>,
) -> InstanceArgsBuilder<SetGuestAccelerators<S>>where
S::GuestAccelerators: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::compute::InstanceGuestAccelerator>>,
> as Default>::default()
List of the type and count of accelerator cards attached to the instance. Structure documented below.
Note: GPU accelerators can only be used with on_host_maintenance
option set to TERMINATE.
sourcepub fn hostname(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetHostname<S>>where
S::Hostname: IsUnset,
pub fn hostname(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetHostname<S>>where
S::Hostname: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid.
Valid format is a series of labels 1-63 characters long matching the regular expression a-z
, concatenated with periods.
The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
sourcepub fn maybe_hostname(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetHostname<S>>where
S::Hostname: IsUnset,
pub fn maybe_hostname(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetHostname<S>>where
S::Hostname: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid.
Valid format is a series of labels 1-63 characters long matching the regular expression a-z
, concatenated with periods.
The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
sourcepub fn key_revocation_action_type(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetKeyRevocationActionType<S>>where
S::KeyRevocationActionType: IsUnset,
pub fn key_revocation_action_type(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetKeyRevocationActionType<S>>where
S::KeyRevocationActionType: IsUnset,
sourcepub fn maybe_key_revocation_action_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetKeyRevocationActionType<S>>where
S::KeyRevocationActionType: IsUnset,
pub fn maybe_key_revocation_action_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetKeyRevocationActionType<S>>where
S::KeyRevocationActionType: IsUnset,
sourcepub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> InstanceArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> InstanceArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
A map of key/value label pairs to assign to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field ‘effective_labels’ for all of the labels present on the resource.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> InstanceArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> InstanceArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
A map of key/value label pairs to assign to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field ‘effective_labels’ for all of the labels present on the resource.
sourcepub fn machine_type(
self,
value: impl Into<Output<String>>,
) -> InstanceArgsBuilder<SetMachineType<S>>where
S::MachineType: IsUnset,
pub fn machine_type(
self,
value: impl Into<Output<String>>,
) -> InstanceArgsBuilder<SetMachineType<S>>where
S::MachineType: IsUnset,
Required.
The machine type to create.
Note: If you want to update this value (resize the VM) after initial creation, you must set allow_stopping_for_update
to true
.
Custom machine types can be formatted as custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY_MB
, e.g. custom-6-20480
for 6 vCPU and 20GB of RAM.
Because of current API limitations some custom machine types may get converted to different machine types (such as an equivalent standard type) and cause non-empty plans in your configuration. Use
lifecycle.ignore_changes
on machine_type
in these cases.
There is a limit of 6.5 GB per CPU unless you add extended memory. You must do this explicitly by adding the suffix -ext
, e.g. custom-2-15360-ext
for 2 vCPU and 15 GB of memory.
sourcepub fn metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> InstanceArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> InstanceArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance. A list of predefined metadata keys (e.g. ssh-keys) can be found here
Depending on the OS you choose for your instance, some metadata keys have special functionality. Most linux-based images will run the content of
metadata.startup-script
in a shell on every boot. At a minimum, Debian, CentOS, RHEL, SLES, Container-Optimized OS, and Ubuntu images support this key. Windows instances require other keys depending on the format of the script and the time you would like it to run - see this table. For the convenience of the users ofmetadata.startup-script
, we provide a special attribute,metadata_startup_script
, which is documented below.
sourcepub fn maybe_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> InstanceArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn maybe_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> InstanceArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance. A list of predefined metadata keys (e.g. ssh-keys) can be found here
Depending on the OS you choose for your instance, some metadata keys have special functionality. Most linux-based images will run the content of
metadata.startup-script
in a shell on every boot. At a minimum, Debian, CentOS, RHEL, SLES, Container-Optimized OS, and Ubuntu images support this key. Windows instances require other keys depending on the format of the script and the time you would like it to run - see this table. For the convenience of the users ofmetadata.startup-script
, we provide a special attribute,metadata_startup_script
, which is documented below.
sourcepub fn metadata_startup_script(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetMetadataStartupScript<S>>where
S::MetadataStartupScript: IsUnset,
pub fn metadata_startup_script(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetMetadataStartupScript<S>>where
S::MetadataStartupScript: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
An alternative to using the
startup-script metadata key, except this one forces the instance to be recreated
(thus re-running the script) if it is changed. This replaces the startup-script
metadata key on the created instance and thus the two mechanisms are not
allowed to be used simultaneously. Users are free to use either mechanism - the
only distinction is that this separate attribute will cause a recreate on
modification. On import, metadata_startup_script
will not be set - if you
choose to specify it you will see a diff immediately after import causing a
destroy/recreate operation. If importing an instance and specifying this value
is desired, you will need to modify your state file.
sourcepub fn maybe_metadata_startup_script(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetMetadataStartupScript<S>>where
S::MetadataStartupScript: IsUnset,
pub fn maybe_metadata_startup_script(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetMetadataStartupScript<S>>where
S::MetadataStartupScript: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
An alternative to using the
startup-script metadata key, except this one forces the instance to be recreated
(thus re-running the script) if it is changed. This replaces the startup-script
metadata key on the created instance and thus the two mechanisms are not
allowed to be used simultaneously. Users are free to use either mechanism - the
only distinction is that this separate attribute will cause a recreate on
modification. On import, metadata_startup_script
will not be set - if you
choose to specify it you will see a diff immediately after import causing a
destroy/recreate operation. If importing an instance and specifying this value
is desired, you will need to modify your state file.
sourcepub fn min_cpu_platform(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetMinCpuPlatform<S>>where
S::MinCpuPlatform: IsUnset,
pub fn min_cpu_platform(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetMinCpuPlatform<S>>where
S::MinCpuPlatform: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
or Intel Skylake
. See the complete list here.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn maybe_min_cpu_platform(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetMinCpuPlatform<S>>where
S::MinCpuPlatform: IsUnset,
pub fn maybe_min_cpu_platform(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetMinCpuPlatform<S>>where
S::MinCpuPlatform: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
or Intel Skylake
. See the complete list here.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn network_interfaces(
self,
value: impl Into<Output<Vec<InstanceNetworkInterface>>>,
) -> InstanceArgsBuilder<SetNetworkInterfaces<S>>where
S::NetworkInterfaces: IsUnset,
pub fn network_interfaces(
self,
value: impl Into<Output<Vec<InstanceNetworkInterface>>>,
) -> InstanceArgsBuilder<SetNetworkInterfaces<S>>where
S::NetworkInterfaces: IsUnset,
Required.
Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
sourcepub fn network_performance_config(
self,
value: impl Into<Output<Option<InstanceNetworkPerformanceConfig>>>,
) -> InstanceArgsBuilder<SetNetworkPerformanceConfig<S>>where
S::NetworkPerformanceConfig: IsUnset,
pub fn network_performance_config(
self,
value: impl Into<Output<Option<InstanceNetworkPerformanceConfig>>>,
) -> InstanceArgsBuilder<SetNetworkPerformanceConfig<S>>where
S::NetworkPerformanceConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceNetworkPerformanceConfig>,
> as Default>::default()
(Optional, Beta
Configures network performance settings for the instance. Structure is
documented below. Note: machine_type
must be a supported type,
the image
used must include the GVNIC
in guest-os-features
, and network_interface.0.nic-type
must be GVNIC
in order for this setting to take effect.
sourcepub fn maybe_network_performance_config(
self,
value: Option<impl Into<Output<Option<InstanceNetworkPerformanceConfig>>>>,
) -> InstanceArgsBuilder<SetNetworkPerformanceConfig<S>>where
S::NetworkPerformanceConfig: IsUnset,
pub fn maybe_network_performance_config(
self,
value: Option<impl Into<Output<Option<InstanceNetworkPerformanceConfig>>>>,
) -> InstanceArgsBuilder<SetNetworkPerformanceConfig<S>>where
S::NetworkPerformanceConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceNetworkPerformanceConfig>,
> as Default>::default()
(Optional, Beta
Configures network performance settings for the instance. Structure is
documented below. Note: machine_type
must be a supported type,
the image
used must include the GVNIC
in guest-os-features
, and network_interface.0.nic-type
must be GVNIC
in order for this setting to take effect.
sourcepub fn params(
self,
value: impl Into<Output<Option<InstanceParams>>>,
) -> InstanceArgsBuilder<SetParams<S>>where
S::Params: IsUnset,
pub fn params(
self,
value: impl Into<Output<Option<InstanceParams>>>,
) -> InstanceArgsBuilder<SetParams<S>>where
S::Params: IsUnset,
sourcepub fn maybe_params(
self,
value: Option<impl Into<Output<Option<InstanceParams>>>>,
) -> InstanceArgsBuilder<SetParams<S>>where
S::Params: IsUnset,
pub fn maybe_params(
self,
value: Option<impl Into<Output<Option<InstanceParams>>>>,
) -> InstanceArgsBuilder<SetParams<S>>where
S::Params: IsUnset,
sourcepub fn partner_metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> InstanceArgsBuilder<SetPartnerMetadata<S>>where
S::PartnerMetadata: IsUnset,
pub fn partner_metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> InstanceArgsBuilder<SetPartnerMetadata<S>>where
S::PartnerMetadata: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
sourcepub fn maybe_partner_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> InstanceArgsBuilder<SetPartnerMetadata<S>>where
S::PartnerMetadata: IsUnset,
pub fn maybe_partner_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> InstanceArgsBuilder<SetPartnerMetadata<S>>where
S::PartnerMetadata: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn reservation_affinity(
self,
value: impl Into<Output<Option<InstanceReservationAffinity>>>,
) -> InstanceArgsBuilder<SetReservationAffinity<S>>where
S::ReservationAffinity: IsUnset,
pub fn reservation_affinity(
self,
value: impl Into<Output<Option<InstanceReservationAffinity>>>,
) -> InstanceArgsBuilder<SetReservationAffinity<S>>where
S::ReservationAffinity: IsUnset,
sourcepub fn maybe_reservation_affinity(
self,
value: Option<impl Into<Output<Option<InstanceReservationAffinity>>>>,
) -> InstanceArgsBuilder<SetReservationAffinity<S>>where
S::ReservationAffinity: IsUnset,
pub fn maybe_reservation_affinity(
self,
value: Option<impl Into<Output<Option<InstanceReservationAffinity>>>>,
) -> InstanceArgsBuilder<SetReservationAffinity<S>>where
S::ReservationAffinity: IsUnset,
sourcepub fn resource_policies(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetResourcePolicies<S>>where
S::ResourcePolicies: IsUnset,
pub fn resource_policies(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetResourcePolicies<S>>where
S::ResourcePolicies: IsUnset,
sourcepub fn maybe_resource_policies(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetResourcePolicies<S>>where
S::ResourcePolicies: IsUnset,
pub fn maybe_resource_policies(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetResourcePolicies<S>>where
S::ResourcePolicies: IsUnset,
sourcepub fn scheduling(
self,
value: impl Into<Output<Option<InstanceScheduling>>>,
) -> InstanceArgsBuilder<SetScheduling<S>>where
S::Scheduling: IsUnset,
pub fn scheduling(
self,
value: impl Into<Output<Option<InstanceScheduling>>>,
) -> InstanceArgsBuilder<SetScheduling<S>>where
S::Scheduling: IsUnset,
sourcepub fn maybe_scheduling(
self,
value: Option<impl Into<Output<Option<InstanceScheduling>>>>,
) -> InstanceArgsBuilder<SetScheduling<S>>where
S::Scheduling: IsUnset,
pub fn maybe_scheduling(
self,
value: Option<impl Into<Output<Option<InstanceScheduling>>>>,
) -> InstanceArgsBuilder<SetScheduling<S>>where
S::Scheduling: IsUnset,
sourcepub fn scratch_disks(
self,
value: impl Into<Output<Option<Vec<InstanceScratchDisk>>>>,
) -> InstanceArgsBuilder<SetScratchDisks<S>>where
S::ScratchDisks: IsUnset,
pub fn scratch_disks(
self,
value: impl Into<Output<Option<Vec<InstanceScratchDisk>>>>,
) -> InstanceArgsBuilder<SetScratchDisks<S>>where
S::ScratchDisks: IsUnset,
sourcepub fn maybe_scratch_disks(
self,
value: Option<impl Into<Output<Option<Vec<InstanceScratchDisk>>>>>,
) -> InstanceArgsBuilder<SetScratchDisks<S>>where
S::ScratchDisks: IsUnset,
pub fn maybe_scratch_disks(
self,
value: Option<impl Into<Output<Option<Vec<InstanceScratchDisk>>>>>,
) -> InstanceArgsBuilder<SetScratchDisks<S>>where
S::ScratchDisks: IsUnset,
sourcepub fn service_account(
self,
value: impl Into<Output<Option<InstanceServiceAccount>>>,
) -> InstanceArgsBuilder<SetServiceAccount<S>>where
S::ServiceAccount: IsUnset,
pub fn service_account(
self,
value: impl Into<Output<Option<InstanceServiceAccount>>>,
) -> InstanceArgsBuilder<SetServiceAccount<S>>where
S::ServiceAccount: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceServiceAccount>,
> as Default>::default()
Service account to attach to the instance.
Structure is documented below.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn maybe_service_account(
self,
value: Option<impl Into<Output<Option<InstanceServiceAccount>>>>,
) -> InstanceArgsBuilder<SetServiceAccount<S>>where
S::ServiceAccount: IsUnset,
pub fn maybe_service_account(
self,
value: Option<impl Into<Output<Option<InstanceServiceAccount>>>>,
) -> InstanceArgsBuilder<SetServiceAccount<S>>where
S::ServiceAccount: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceServiceAccount>,
> as Default>::default()
Service account to attach to the instance.
Structure is documented below.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn shielded_instance_config(
self,
value: impl Into<Output<Option<InstanceShieldedInstanceConfig>>>,
) -> InstanceArgsBuilder<SetShieldedInstanceConfig<S>>where
S::ShieldedInstanceConfig: IsUnset,
pub fn shielded_instance_config(
self,
value: impl Into<Output<Option<InstanceShieldedInstanceConfig>>>,
) -> InstanceArgsBuilder<SetShieldedInstanceConfig<S>>where
S::ShieldedInstanceConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceShieldedInstanceConfig>,
> as Default>::default()
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below.
Note: shielded_instance_config
can only be used with boot images with shielded vm support. See the complete list here.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.
sourcepub fn maybe_shielded_instance_config(
self,
value: Option<impl Into<Output<Option<InstanceShieldedInstanceConfig>>>>,
) -> InstanceArgsBuilder<SetShieldedInstanceConfig<S>>where
S::ShieldedInstanceConfig: IsUnset,
pub fn maybe_shielded_instance_config(
self,
value: Option<impl Into<Output<Option<InstanceShieldedInstanceConfig>>>>,
) -> InstanceArgsBuilder<SetShieldedInstanceConfig<S>>where
S::ShieldedInstanceConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::InstanceShieldedInstanceConfig>,
> as Default>::default()
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below.
Note: shielded_instance_config
can only be used with boot images with shielded vm support. See the complete list here.
Note: allow_stopping_for_update
must be set to true or your instance must have a desired_status
of TERMINATED
in order to update this field.