pulumi_wasm_providers_gcp_mini::compute::instance

Struct InstanceArgsBuilder

source
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>

source

pub fn build_struct(self) -> InstanceArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn advanced_machine_features( self, value: impl Into<Output<Option<InstanceAdvancedMachineFeatures>>>, ) -> InstanceArgsBuilder<SetAdvancedMachineFeatures<S>>
where S::AdvancedMachineFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceAdvancedMachineFeatures>,
> as Default>::default()

Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below

source

pub fn maybe_advanced_machine_features( self, value: Option<impl Into<Output<Option<InstanceAdvancedMachineFeatures>>>>, ) -> InstanceArgsBuilder<SetAdvancedMachineFeatures<S>>
where S::AdvancedMachineFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceAdvancedMachineFeatures>,
> as Default>::default()

Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below

source

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.

source

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.

source

pub fn attached_disks( self, value: impl Into<Output<Option<Vec<InstanceAttachedDisk>>>>, ) -> InstanceArgsBuilder<SetAttachedDisks<S>>
where S::AttachedDisks: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::InstanceAttachedDisk>>,
> as Default>::default()

Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.

source

pub fn maybe_attached_disks( self, value: Option<impl Into<Output<Option<Vec<InstanceAttachedDisk>>>>>, ) -> InstanceArgsBuilder<SetAttachedDisks<S>>
where S::AttachedDisks: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::InstanceAttachedDisk>>,
> as Default>::default()

Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.

source

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.

source

pub fn can_ip_forward( self, value: impl Into<Output<Option<bool>>>, ) -> InstanceArgsBuilder<SetCanIpForward<S>>
where S::CanIpForward: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.

source

pub fn maybe_can_ip_forward( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> InstanceArgsBuilder<SetCanIpForward<S>>
where S::CanIpForward: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.

source

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

source

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

source

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.

source

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.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A brief description of this resource.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A brief description of this resource.

source

pub fn desired_status( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetDesiredStatus<S>>
where S::DesiredStatus: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".

source

pub fn maybe_desired_status( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetDesiredStatus<S>>
where S::DesiredStatus: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn key_revocation_action_type( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetKeyRevocationActionType<S>>
where S::KeyRevocationActionType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Action to be taken when a customer’s encryption key is revoked. Supports STOP and NONE, with NONE being the default.

source

pub fn maybe_key_revocation_action_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetKeyRevocationActionType<S>>
where S::KeyRevocationActionType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Action to be taken when a customer’s encryption key is revoked. Supports STOP and NONE, with NONE being the default.

source

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.

source

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.

source

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.

source

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 of metadata.startup-script, we provide a special attribute, metadata_startup_script, which is documented below.

source

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 of metadata.startup-script, we provide a special attribute, metadata_startup_script, which is documented below.

source

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.

source

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.

source

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.

source

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.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

source

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.


source

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.

source

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.

source

pub fn params( self, value: impl Into<Output<Option<InstanceParams>>>, ) -> InstanceArgsBuilder<SetParams<S>>
where S::Params: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceParams>,
> as Default>::default()

Additional instance parameters. .

source

pub fn maybe_params( self, value: Option<impl Into<Output<Option<InstanceParams>>>>, ) -> InstanceArgsBuilder<SetParams<S>>
where S::Params: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceParams>,
> as Default>::default()

Additional instance parameters. .

source

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.

source

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.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn reservation_affinity( self, value: impl Into<Output<Option<InstanceReservationAffinity>>>, ) -> InstanceArgsBuilder<SetReservationAffinity<S>>
where S::ReservationAffinity: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceReservationAffinity>,
> as Default>::default()

Specifies the reservations that this instance can consume from. Structure is documented below.

source

pub fn maybe_reservation_affinity( self, value: Option<impl Into<Output<Option<InstanceReservationAffinity>>>>, ) -> InstanceArgsBuilder<SetReservationAffinity<S>>
where S::ReservationAffinity: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceReservationAffinity>,
> as Default>::default()

Specifies the reservations that this instance can consume from. Structure is documented below.

source

pub fn resource_policies( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetResourcePolicies<S>>
where S::ResourcePolicies: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
source

pub fn maybe_resource_policies( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetResourcePolicies<S>>
where S::ResourcePolicies: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
source

pub fn scheduling( self, value: impl Into<Output<Option<InstanceScheduling>>>, ) -> InstanceArgsBuilder<SetScheduling<S>>
where S::Scheduling: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceScheduling>,
> as Default>::default()

The scheduling strategy to use. More details about this configuration option are detailed below.

source

pub fn maybe_scheduling( self, value: Option<impl Into<Output<Option<InstanceScheduling>>>>, ) -> InstanceArgsBuilder<SetScheduling<S>>
where S::Scheduling: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InstanceScheduling>,
> as Default>::default()

The scheduling strategy to use. More details about this configuration option are detailed below.

source

pub fn scratch_disks( self, value: impl Into<Output<Option<Vec<InstanceScratchDisk>>>>, ) -> InstanceArgsBuilder<SetScratchDisks<S>>
where S::ScratchDisks: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::InstanceScratchDisk>>,
> as Default>::default()

Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.

source

pub fn maybe_scratch_disks( self, value: Option<impl Into<Output<Option<Vec<InstanceScratchDisk>>>>>, ) -> InstanceArgsBuilder<SetScratchDisks<S>>
where S::ScratchDisks: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::InstanceScratchDisk>>,
> as Default>::default()

Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.

source

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.

source

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.

source

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.

source

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.

source

pub fn tags( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> InstanceArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of network tags to attach to the instance.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> InstanceArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of network tags to attach to the instance.

source

pub fn zone( self, value: impl Into<Output<Option<String>>>, ) -> InstanceArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The zone that the machine should be created in. If it is not provided, the provider zone is used.

source

pub fn maybe_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The zone that the machine should be created in. If it is not provided, the provider zone is used.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.