InstanceFromTemplateArgs class

The set of arguments for InstanceFromTemplate. The set of arguments for InstanceFromTemplate.

Constructors

InstanceFromTemplateArgs({Input<InstanceFromTemplateAdvancedMachineFeatures?>? advancedMachineFeatures, Input<bool?>? allowStoppingForUpdate, Input<List<InstanceFromTemplateAttachedDisk>?>? attachedDisks, Input<InstanceFromTemplateBootDisk?>? bootDisk, Input<bool?>? canIpForward, Input<InstanceFromTemplateConfidentialInstanceConfig?>? confidentialInstanceConfig, Input<String?>? deletionPolicy, Input<bool?>? deletionProtection, Input<String?>? description, Input<String?>? desiredStatus, Input<bool?>? enableDisplay, Input<bool?>? eraseWindowsVssSignature, Input<List<InstanceFromTemplateGuestAccelerator>?>? guestAccelerators, Input<String?>? hostname, Input<InstanceFromTemplateInstanceEncryptionKey?>? instanceEncryptionKey, Input<String?>? keyRevocationActionType, Input<Map<String, String>?>? labels, Input<String?>? machineType, Input<Map<String, String>?>? metadata, Input<String?>? metadataStartupScript, Input<String?>? minCpuPlatform, Input<String?>? name, Input<List<InstanceFromTemplateNetworkInterface>?>? networkInterfaces, Input<InstanceFromTemplateNetworkPerformanceConfig?>? networkPerformanceConfig, Input<InstanceFromTemplateParams?>? params, Input<Map<String, String>?>? partnerMetadata, Input<String?>? project, Input<InstanceFromTemplateReservationAffinity?>? reservationAffinity, Input<String?>? resourcePolicies, Input<InstanceFromTemplateScheduling?>? scheduling, Input<List<InstanceFromTemplateScratchDisk>?>? scratchDisks, Input<InstanceFromTemplateServiceAccount?>? serviceAccount, Input<InstanceFromTemplateShieldedInstanceConfig?>? shieldedInstanceConfig, required Input<String> sourceInstanceTemplate, Input<List<String>?>? tags, Input<InstanceFromTemplateWorkloadIdentityConfig?>? workloadIdentityConfig, Input<String?>? zone})
Creates a new InstanceFromTemplateArgs. advancedMachineFeatures Controls for advanced machine-related behavior features. allowStoppingForUpdate If true, allows Terraform 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. attachedDisks List of disks attached to the instance bootDisk The boot disk for the instance. canIpForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed. confidentialInstanceConfig The Confidential VM config being used by the instance. onHostMaintenance has to be set to TERMINATE or this will fail to create. deletionPolicy Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". deletionProtection Whether deletion protection is enabled on this instance. description A brief description of the resource. desiredStatus Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED". enableDisplay Whether the instance has virtual displays enabled. eraseWindowsVssSignature Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature. guestAccelerators List of the type and count of accelerator cards attached to the instance. hostname 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. instanceEncryptionKey Encryption key used to provide data encryption on the given instance. keyRevocationActionType Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default. labels A set of key/value label pairs assigned to the instance. machineType The machine type to create. metadata Metadata key/value pairs made available within the instance. metadataStartupScript Metadata startup scripts made available within the instance. minCpuPlatform The minimum CPU platform specified for the VM instance. name A unique name for the resource, required by GCE. networkInterfaces The networks attached to the instance. networkPerformanceConfig Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration. params Stores additional params passed with the request, but not persisted as part of resource payload. partnerMetadata Partner Metadata Map made available within the instance. project The ID of the project in which the resource belongs. If selfLink is provided, this value is ignored. If neither selfLink nor project are provided, the provider project is used. reservationAffinity Specifies the reservations that this instance can consume from. resourcePolicies A list of selfLinks of resource policies to attach to the instance. Currently a max of 1 resource policy is supported. scheduling The scheduling strategy being used by the instance. scratchDisks * network_interface.alias_ip_range serviceAccount The service account to attach to the instance. shieldedInstanceConfig The shielded vm config being used by the instance. sourceInstanceTemplate Name or self link of an instance tags The list of tags attached to the instance. workloadIdentityConfig Workload identity config. zone The zone that the machine should be created in. If not
const
InstanceFromTemplateArgs.fromMap(Map<String, dynamic> map)
factory

Properties

advancedMachineFeatures → Input<InstanceFromTemplateAdvancedMachineFeatures?>?
Controls for advanced machine-related behavior features.
final
allowStoppingForUpdate → Input<bool?>?
If true, allows Terraform 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.
final
attachedDisks → Input<List<InstanceFromTemplateAttachedDisk>?>?
List of disks attached to the instance
final
bootDisk → Input<InstanceFromTemplateBootDisk?>?
The boot disk for the instance.
final
canIpForward → Input<bool?>?
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
final
confidentialInstanceConfig → Input<InstanceFromTemplateConfidentialInstanceConfig?>?
The Confidential VM config being used by the instance. onHostMaintenance has to be set to TERMINATE or this will fail to create.
final
deletionPolicy → Input<String?>?
Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
final
deletionProtection → Input<bool?>?
Whether deletion protection is enabled on this instance.
final
description → Input<String?>?
A brief description of the resource.
final
desiredStatus → Input<String?>?
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
final
enableDisplay → Input<bool?>?
Whether the instance has virtual displays enabled.
final
eraseWindowsVssSignature → Input<bool?>?
Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature.
final
guestAccelerators → Input<List<InstanceFromTemplateGuestAccelerator>?>?
List of the type and count of accelerator cards attached to the instance.
final
hashCode → int
The hash code for this object.
no setterinherited
hostname → Input<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.
final
instanceEncryptionKey → Input<InstanceFromTemplateInstanceEncryptionKey?>?
Encryption key used to provide data encryption on the given instance.
final
keyRevocationActionType → Input<String?>?
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
final
labels → Input<Map<String, String>?>?
A set of key/value label pairs assigned to the instance.
final
machineType → Input<String?>?
The machine type to create.
final
metadata → Input<Map<String, String>?>?
Metadata key/value pairs made available within the instance.
final
metadataStartupScript → Input<String?>?
Metadata startup scripts made available within the instance.
final
minCpuPlatform → Input<String?>?
The minimum CPU platform specified for the VM instance.
final
name → Input<String?>?
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
final
networkInterfaces → Input<List<InstanceFromTemplateNetworkInterface>?>?
The networks attached to the instance.
final
networkPerformanceConfig → Input<InstanceFromTemplateNetworkPerformanceConfig?>?
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
final
params → Input<InstanceFromTemplateParams?>?
Stores additional params passed with the request, but not persisted as part of resource payload.
final
partnerMetadata → Input<Map<String, String>?>?
Partner Metadata Map made available within the instance.
final
project → Input<String?>?
The ID of the project in which the resource belongs. If selfLink is provided, this value is ignored. If neither selfLink nor project are provided, the provider project is used.
final
reservationAffinity → Input<InstanceFromTemplateReservationAffinity?>?
Specifies the reservations that this instance can consume from.
final
resourcePolicies → Input<String?>?
A list of selfLinks of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduling → Input<InstanceFromTemplateScheduling?>?
The scheduling strategy being used by the instance.
final
scratchDisks → Input<List<InstanceFromTemplateScratchDisk>?>?
  • network_interface.alias_ip_range
  • network_interface.alias_ipv6_range Beta
  • network_interface.access_config
  • final
    serviceAccount → Input<InstanceFromTemplateServiceAccount?>?
    The service account to attach to the instance.
    final
    shieldedInstanceConfig → Input<InstanceFromTemplateShieldedInstanceConfig?>?
    The shielded vm config being used by the instance.
    final
    sourceInstanceTemplate → Input<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 (selfLinkUnique attribute).
    final
    tags → Input<List<String>?>?
    The list of tags attached to the instance.
    final
    workloadIdentityConfig → Input<InstanceFromTemplateWorkloadIdentityConfig?>?
    Workload identity config.
    final
    zone → Input<String?>?
    The zone that the machine should be created in. If not set, the provider zone is used.
    final

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toMap() → Map<String, dynamic>
    toString() → String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) → bool
    The equality operator.
    inherited