pulumi_wasm_providers_gcp_mini::compute::instance_from_template

Struct InstanceFromTemplateArgsBuilder

source
pub struct InstanceFromTemplateArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> InstanceFromTemplateArgsBuilder<S>

source

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

Finish building and return the requested object

source

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

Optional (Some / Option setters). Default:

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

Controls for advanced machine-related behavior features.

source

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

Optional (Some / Option setters). Default:

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

Controls for advanced machine-related behavior features.

source

pub fn allow_stopping_for_update( self, value: impl Into<Output<Option<bool>>>, ) -> InstanceFromTemplateArgsBuilder<SetAllowStoppingForUpdate<S>>
where S::AllowStoppingForUpdate: IsUnset,

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

source

pub fn maybe_allow_stopping_for_update( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> InstanceFromTemplateArgsBuilder<SetAllowStoppingForUpdate<S>>
where S::AllowStoppingForUpdate: IsUnset,

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

source

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

Optional (Some / Option setters). Default:

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

List of disks attached to the instance

source

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

Optional (Some / Option setters). Default:

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

List of disks attached to the instance

source

pub fn boot_disk( self, value: impl Into<Output<Option<InstanceFromTemplateBootDisk>>>, ) -> InstanceFromTemplateArgsBuilder<SetBootDisk<S>>
where S::BootDisk: IsUnset,

Optional (Some / Option setters). Default:

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

The boot disk for the instance.

source

pub fn maybe_boot_disk( self, value: Option<impl Into<Output<Option<InstanceFromTemplateBootDisk>>>>, ) -> InstanceFromTemplateArgsBuilder<SetBootDisk<S>>
where S::BootDisk: IsUnset,

Optional (Some / Option setters). Default:

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

The boot disk for the instance.

source

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

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

Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

source

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

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

Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

source

pub fn confidential_instance_config( self, value: impl Into<Output<Option<InstanceFromTemplateConfidentialInstanceConfig>>>, ) -> InstanceFromTemplateArgsBuilder<SetConfidentialInstanceConfig<S>>
where S::ConfidentialInstanceConfig: IsUnset,

Optional (Some / Option setters). Default:

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

The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

source

pub fn maybe_confidential_instance_config( self, value: Option<impl Into<Output<Option<InstanceFromTemplateConfidentialInstanceConfig>>>>, ) -> InstanceFromTemplateArgsBuilder<SetConfidentialInstanceConfig<S>>
where S::ConfidentialInstanceConfig: IsUnset,

Optional (Some / Option setters). Default:

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

The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

source

pub fn deletion_protection( self, value: impl Into<Output<Option<bool>>>, ) -> InstanceFromTemplateArgsBuilder<SetDeletionProtection<S>>
where S::DeletionProtection: IsUnset,

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

Whether deletion protection is enabled on this instance.

source

pub fn maybe_deletion_protection( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> InstanceFromTemplateArgsBuilder<SetDeletionProtection<S>>
where S::DeletionProtection: IsUnset,

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

Whether deletion protection is enabled on this instance.

source

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

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

A brief description of the resource.

source

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

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

A brief description of the resource.

source

pub fn desired_status( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>, ) -> InstanceFromTemplateArgsBuilder<SetEnableDisplay<S>>
where S::EnableDisplay: IsUnset,

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

Whether the instance has virtual displays enabled.

source

pub fn maybe_enable_display( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> InstanceFromTemplateArgsBuilder<SetEnableDisplay<S>>
where S::EnableDisplay: IsUnset,

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

Whether the instance has virtual displays enabled.

source

pub fn guest_accelerators( self, value: impl Into<Output<Option<Vec<InstanceFromTemplateGuestAccelerator>>>>, ) -> InstanceFromTemplateArgsBuilder<SetGuestAccelerators<S>>
where S::GuestAccelerators: IsUnset,

Optional (Some / Option setters). Default:

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

List of the type and count of accelerator cards attached to the instance.

source

pub fn maybe_guest_accelerators( self, value: Option<impl Into<Output<Option<Vec<InstanceFromTemplateGuestAccelerator>>>>>, ) -> InstanceFromTemplateArgsBuilder<SetGuestAccelerators<S>>
where S::GuestAccelerators: IsUnset,

Optional (Some / Option setters). Default:

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

List of the type and count of accelerator cards attached to the instance.

source

pub fn hostname( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>>, ) -> InstanceFromTemplateArgsBuilder<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 set of key/value label pairs assigned 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>>>>>, ) -> InstanceFromTemplateArgsBuilder<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 set of key/value label pairs assigned 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<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<SetMachineType<S>>
where S::MachineType: IsUnset,

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

The machine type to create.

source

pub fn maybe_machine_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceFromTemplateArgsBuilder<SetMachineType<S>>
where S::MachineType: IsUnset,

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

The machine type to create.

source

pub fn metadata( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> InstanceFromTemplateArgsBuilder<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 made available within the instance.

source

pub fn maybe_metadata( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> InstanceFromTemplateArgsBuilder<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 made available within the instance.

source

pub fn metadata_startup_script( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<SetMetadataStartupScript<S>>
where S::MetadataStartupScript: IsUnset,

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

Metadata startup scripts made available within the instance.

source

pub fn maybe_metadata_startup_script( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceFromTemplateArgsBuilder<SetMetadataStartupScript<S>>
where S::MetadataStartupScript: IsUnset,

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

Metadata startup scripts made available within the instance.

source

pub fn min_cpu_platform( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<SetMinCpuPlatform<S>>
where S::MinCpuPlatform: IsUnset,

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

The minimum CPU platform specified for the VM instance.

source

pub fn maybe_min_cpu_platform( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceFromTemplateArgsBuilder<SetMinCpuPlatform<S>>
where S::MinCpuPlatform: IsUnset,

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

The minimum CPU platform specified for the VM instance.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<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>>>>, ) -> InstanceFromTemplateArgsBuilder<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<Option<Vec<InstanceFromTemplateNetworkInterface>>>>, ) -> InstanceFromTemplateArgsBuilder<SetNetworkInterfaces<S>>
where S::NetworkInterfaces: IsUnset,

Optional (Some / Option setters). Default:

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

The networks attached to the instance.

source

pub fn maybe_network_interfaces( self, value: Option<impl Into<Output<Option<Vec<InstanceFromTemplateNetworkInterface>>>>>, ) -> InstanceFromTemplateArgsBuilder<SetNetworkInterfaces<S>>
where S::NetworkInterfaces: IsUnset,

Optional (Some / Option setters). Default:

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

The networks attached to the instance.

source

pub fn network_performance_config( self, value: impl Into<Output<Option<InstanceFromTemplateNetworkPerformanceConfig>>>, ) -> InstanceFromTemplateArgsBuilder<SetNetworkPerformanceConfig<S>>
where S::NetworkPerformanceConfig: IsUnset,

Optional (Some / Option setters). Default:

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

Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

source

pub fn maybe_network_performance_config( self, value: Option<impl Into<Output<Option<InstanceFromTemplateNetworkPerformanceConfig>>>>, ) -> InstanceFromTemplateArgsBuilder<SetNetworkPerformanceConfig<S>>
where S::NetworkPerformanceConfig: IsUnset,

Optional (Some / Option setters). Default:

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

Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

source

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

Optional (Some / Option setters). Default:

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

Stores additional params passed with the request, but not persisted as part of resource payload.

source

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

Optional (Some / Option setters). Default:

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

Stores additional params passed with the request, but not persisted as part of resource payload.

source

pub fn partner_metadata( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> InstanceFromTemplateArgsBuilder<SetPartnerMetadata<S>>
where S::PartnerMetadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Partner Metadata Map made available within the instance.

source

pub fn maybe_partner_metadata( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> InstanceFromTemplateArgsBuilder<SetPartnerMetadata<S>>
where S::PartnerMetadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Partner Metadata Map made available within the instance.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<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 self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceFromTemplateArgsBuilder<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 self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

source

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

Optional (Some / Option setters). Default:

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

Specifies the reservations that this instance can consume from.

source

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

Optional (Some / Option setters). Default:

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

Specifies the reservations that this instance can consume from.

source

pub fn resource_policies( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<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. Currently a max of 1 resource policy is supported.

source

pub fn maybe_resource_policies( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceFromTemplateArgsBuilder<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. Currently a max of 1 resource policy is supported.

source

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

Optional (Some / Option setters). Default:

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

The scheduling strategy being used by the instance.

source

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

Optional (Some / Option setters). Default:

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

The scheduling strategy being used by the instance.

source

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

Optional (Some / Option setters). Default:

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

The scratch disks attached to the instance.

source

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

Optional (Some / Option setters). Default:

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

The scratch disks attached to the instance.

source

pub fn service_account( self, value: impl Into<Output<Option<InstanceFromTemplateServiceAccount>>>, ) -> InstanceFromTemplateArgsBuilder<SetServiceAccount<S>>
where S::ServiceAccount: IsUnset,

Optional (Some / Option setters). Default:

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

The service account to attach to the instance.

source

pub fn maybe_service_account( self, value: Option<impl Into<Output<Option<InstanceFromTemplateServiceAccount>>>>, ) -> InstanceFromTemplateArgsBuilder<SetServiceAccount<S>>
where S::ServiceAccount: IsUnset,

Optional (Some / Option setters). Default:

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

The service account to attach to the instance.

source

pub fn shielded_instance_config( self, value: impl Into<Output<Option<InstanceFromTemplateShieldedInstanceConfig>>>, ) -> InstanceFromTemplateArgsBuilder<SetShieldedInstanceConfig<S>>
where S::ShieldedInstanceConfig: IsUnset,

Optional (Some / Option setters). Default:

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

The shielded vm config being used by the instance.

source

pub fn maybe_shielded_instance_config( self, value: Option<impl Into<Output<Option<InstanceFromTemplateShieldedInstanceConfig>>>>, ) -> InstanceFromTemplateArgsBuilder<SetShieldedInstanceConfig<S>>
where S::ShieldedInstanceConfig: IsUnset,

Optional (Some / Option setters). Default:

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

The shielded vm config being used by the instance.

source

pub fn source_instance_template( self, value: impl Into<Output<String>>, ) -> InstanceFromTemplateArgsBuilder<SetSourceInstanceTemplate<S>>
where S::SourceInstanceTemplate: IsUnset,

Required.

Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


source

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

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

The list of tags attached to the instance.

source

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

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

The list of tags attached to the instance.

source

pub fn zone( self, value: impl Into<Output<Option<String>>>, ) -> InstanceFromTemplateArgsBuilder<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 not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

source

pub fn maybe_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InstanceFromTemplateArgsBuilder<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 not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

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.