pulumi_wasm_providers_gcp_mini::functions::compute::get_instance_template

Struct GetInstanceTemplateResult

source
pub struct GetInstanceTemplateResult {
Show 38 fields pub advanced_machine_features: Output<Vec<GetInstanceTemplateAdvancedMachineFeature>>, pub can_ip_forward: Output<bool>, pub confidential_instance_configs: Output<Vec<GetInstanceTemplateConfidentialInstanceConfig>>, pub creation_timestamp: Output<String>, pub description: Output<String>, pub disks: Output<Vec<GetInstanceTemplateDisk>>, pub effective_labels: Output<HashMap<String, String>>, pub enable_display: Output<bool>, pub filter: Output<Option<String>>, pub guest_accelerators: Output<Vec<GetInstanceTemplateGuestAccelerator>>, pub id: Output<String>, pub instance_description: Output<String>, pub key_revocation_action_type: Output<String>, pub labels: Output<HashMap<String, String>>, pub machine_type: Output<String>, pub metadata: Output<HashMap<String, String>>, pub metadata_fingerprint: Output<String>, pub metadata_startup_script: Output<String>, pub min_cpu_platform: Output<String>, pub most_recent: Output<Option<bool>>, pub name: Output<Option<String>>, pub name_prefix: Output<String>, pub network_interfaces: Output<Vec<GetInstanceTemplateNetworkInterface>>, pub network_performance_configs: Output<Vec<GetInstanceTemplateNetworkPerformanceConfig>>, pub partner_metadata: Output<HashMap<String, String>>, pub project: Output<Option<String>>, pub pulumi_labels: Output<HashMap<String, String>>, pub region: Output<String>, pub reservation_affinities: Output<Vec<GetInstanceTemplateReservationAffinity>>, pub resource_manager_tags: Output<HashMap<String, String>>, pub resource_policies: Output<Vec<String>>, pub schedulings: Output<Vec<GetInstanceTemplateScheduling>>, pub self_link: Output<String>, pub self_link_unique: Output<Option<String>>, pub service_accounts: Output<Vec<GetInstanceTemplateServiceAccount>>, pub shielded_instance_configs: Output<Vec<GetInstanceTemplateShieldedInstanceConfig>>, pub tags: Output<Vec<String>>, pub tags_fingerprint: Output<String>,
}

Fields§

§advanced_machine_features: Output<Vec<GetInstanceTemplateAdvancedMachineFeature>>§can_ip_forward: Output<bool>

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

§confidential_instance_configs: Output<Vec<GetInstanceTemplateConfidentialInstanceConfig>>

Enable Confidential Mode on this VM. Structure is documented below

§creation_timestamp: Output<String>

Creation timestamp in RFC3339 text format.

§description: Output<String>

A brief description of this resource.

§disks: Output<Vec<GetInstanceTemplateDisk>>

Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.

§effective_labels: Output<HashMap<String, String>>§enable_display: Output<bool>

Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.

§filter: Output<Option<String>>§guest_accelerators: Output<Vec<GetInstanceTemplateGuestAccelerator>>

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

§id: Output<String>

The provider-assigned unique ID for this managed resource.

§instance_description: Output<String>

A brief description to use for instances created from this template.

§key_revocation_action_type: Output<String>

Action to be taken when a customer’s encryption key is revoked.

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

(Optional) A set of ket/value label pairs to assign to disk created from this template

§machine_type: Output<String>

The machine type to create.

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

Metadata key/value pairs to make available from within instances created from this template.

§metadata_fingerprint: Output<String>

The unique fingerprint of the metadata.

§metadata_startup_script: Output<String>

An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.

§min_cpu_platform: Output<String>

Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.

§most_recent: Output<Option<bool>>§name: Output<Option<String>>

The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

§name_prefix: Output<String>

Creates a unique name beginning with the specified prefix. Conflicts with name.

§network_interfaces: Output<Vec<GetInstanceTemplateNetworkInterface>>

The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}. s

§network_performance_configs: Output<Vec<GetInstanceTemplateNetworkPerformanceConfig>>

The network performance configuration setting for the instance, if set. Structure is documented below.

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

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

§pulumi_labels: Output<HashMap<String, String>>§region: Output<String>

An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

§reservation_affinities: Output<Vec<GetInstanceTemplateReservationAffinity>>§resource_manager_tags: Output<HashMap<String, String>>§resource_policies: Output<Vec<String>>

(Optional) – A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.

§schedulings: Output<Vec<GetInstanceTemplateScheduling>>

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

§self_link: Output<String>

The URI of the created resource.

§self_link_unique: Output<Option<String>>

A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

§service_accounts: Output<Vec<GetInstanceTemplateServiceAccount>>

Service account to attach to the instance. Structure is documented below.

§shielded_instance_configs: Output<Vec<GetInstanceTemplateShieldedInstanceConfig>>

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.

§tags: Output<Vec<String>>

Tags to attach to the instance.

§tags_fingerprint: Output<String>

The unique fingerprint of the tags.

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.