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).
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§
source§impl InstanceFromTemplateArgs
impl InstanceFromTemplateArgs
sourcepub fn builder() -> InstanceFromTemplateArgsBuilder
pub fn builder() -> InstanceFromTemplateArgsBuilder
Create an instance of InstanceFromTemplateArgs
using the builder syntax
Trait Implementations§
source§impl Clone for InstanceFromTemplateArgs
impl Clone for InstanceFromTemplateArgs
source§fn clone(&self) -> InstanceFromTemplateArgs
fn clone(&self) -> InstanceFromTemplateArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for InstanceFromTemplateArgs
impl RefUnwindSafe for InstanceFromTemplateArgs
impl Send for InstanceFromTemplateArgs
impl Sync for InstanceFromTemplateArgs
impl Unpin for InstanceFromTemplateArgs
impl UnwindSafe for InstanceFromTemplateArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)