pulumi_wasm_providers_gcp_mini::compute::instance_from_template

Struct InstanceFromTemplateArgs

source
pub struct InstanceFromTemplateArgs {
Show 33 fields pub advanced_machine_features: Output<Option<InstanceFromTemplateAdvancedMachineFeatures>>, pub allow_stopping_for_update: Output<Option<bool>>, pub attached_disks: Output<Option<Vec<InstanceFromTemplateAttachedDisk>>>, pub boot_disk: Output<Option<InstanceFromTemplateBootDisk>>, pub can_ip_forward: Output<Option<bool>>, pub confidential_instance_config: Output<Option<InstanceFromTemplateConfidentialInstanceConfig>>, pub deletion_protection: Output<Option<bool>>, pub description: Output<Option<String>>, pub desired_status: Output<Option<String>>, pub enable_display: Output<Option<bool>>, pub guest_accelerators: Output<Option<Vec<InstanceFromTemplateGuestAccelerator>>>, pub hostname: Output<Option<String>>, pub key_revocation_action_type: Output<Option<String>>, pub labels: Output<Option<HashMap<String, String>>>, pub machine_type: Output<Option<String>>, pub metadata: Output<Option<HashMap<String, String>>>, pub metadata_startup_script: Output<Option<String>>, pub min_cpu_platform: Output<Option<String>>, pub name: Output<Option<String>>, pub network_interfaces: Output<Option<Vec<InstanceFromTemplateNetworkInterface>>>, pub network_performance_config: Output<Option<InstanceFromTemplateNetworkPerformanceConfig>>, pub params: Output<Option<InstanceFromTemplateParams>>, pub partner_metadata: Output<Option<HashMap<String, String>>>, pub project: Output<Option<String>>, pub reservation_affinity: Output<Option<InstanceFromTemplateReservationAffinity>>, pub resource_policies: Output<Option<String>>, pub scheduling: Output<Option<InstanceFromTemplateScheduling>>, pub scratch_disks: Output<Option<Vec<InstanceFromTemplateScratchDisk>>>, pub service_account: Output<Option<InstanceFromTemplateServiceAccount>>, pub shielded_instance_config: Output<Option<InstanceFromTemplateShieldedInstanceConfig>>, pub source_instance_template: Output<String>, pub tags: Output<Option<Vec<String>>>, pub zone: Output<Option<String>>,
}

Fields§

§advanced_machine_features: Output<Option<InstanceFromTemplateAdvancedMachineFeatures>>

Controls for advanced machine-related behavior features.

§allow_stopping_for_update: Output<Option<bool>>§attached_disks: Output<Option<Vec<InstanceFromTemplateAttachedDisk>>>

List of disks attached to the instance

§boot_disk: Output<Option<InstanceFromTemplateBootDisk>>

The boot disk for the instance.

§can_ip_forward: Output<Option<bool>>

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

§confidential_instance_config: Output<Option<InstanceFromTemplateConfidentialInstanceConfig>>

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

§deletion_protection: Output<Option<bool>>

Whether deletion protection is enabled on this instance.

§description: Output<Option<String>>

A brief description of the resource.

§desired_status: Output<Option<String>>

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

§enable_display: Output<Option<bool>>

Whether the instance has virtual displays enabled.

§guest_accelerators: Output<Option<Vec<InstanceFromTemplateGuestAccelerator>>>

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

§hostname: Output<Option<String>>

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.

§key_revocation_action_type: Output<Option<String>>

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

§labels: Output<Option<HashMap<String, String>>>

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.

§machine_type: Output<Option<String>>

The machine type to create.

§metadata: Output<Option<HashMap<String, String>>>

Metadata key/value pairs made available within the instance.

§metadata_startup_script: Output<Option<String>>

Metadata startup scripts made available within the instance.

§min_cpu_platform: Output<Option<String>>

The minimum CPU platform specified for the VM instance.

§name: Output<Option<String>>

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

§network_interfaces: Output<Option<Vec<InstanceFromTemplateNetworkInterface>>>

The networks attached to the instance.

§network_performance_config: Output<Option<InstanceFromTemplateNetworkPerformanceConfig>>

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

§params: Output<Option<InstanceFromTemplateParams>>

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

§partner_metadata: Output<Option<HashMap<String, String>>>

Partner Metadata Map made available within the instance.

§project: Output<Option<String>>

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.

§reservation_affinity: Output<Option<InstanceFromTemplateReservationAffinity>>

Specifies the reservations that this instance can consume from.

§resource_policies: Output<Option<String>>

A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

§scheduling: Output<Option<InstanceFromTemplateScheduling>>

The scheduling strategy being used by the instance.

§scratch_disks: Output<Option<Vec<InstanceFromTemplateScratchDisk>>>

The scratch disks attached to the instance.

§service_account: Output<Option<InstanceFromTemplateServiceAccount>>

The service account to attach to the instance.

§shielded_instance_config: Output<Option<InstanceFromTemplateShieldedInstanceConfig>>

The shielded vm config being used by the instance.

§source_instance_template: Output<String>

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).


§tags: Output<Option<Vec<String>>>

The list of tags attached to the instance.

§zone: Output<Option<String>>

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.

Implementations§

Trait Implementations§

source§

impl Clone for InstanceFromTemplateArgs

source§

fn clone(&self) -> InstanceFromTemplateArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.