InstanceArgs constructor
- Input<
InstanceAdvancedMachineFeatures?> ? advancedMachineFeatures, - Input<
bool?> ? allowStoppingForUpdate, - Input<
List< ? attachedDisks,InstanceAttachedDisk> ?> - required Input<
InstanceBootDisk> bootDisk, - Input<
bool?> ? canIpForward, - Input<
InstanceConfidentialInstanceConfig?> ? confidentialInstanceConfig, - Input<
String?> ? deletionPolicy, - Input<
bool?> ? deletionProtection, - Input<
String?> ? description, - Input<
String?> ? desiredStatus, - Input<
bool?> ? enableDisplay, - Input<
bool?> ? eraseWindowsVssSignature, - Input<
List< ? guestAccelerators,InstanceGuestAccelerator> ?> - Input<
String?> ? hostname, - Input<
InstanceInstanceEncryptionKey?> ? instanceEncryptionKey, - Input<
String?> ? keyRevocationActionType, - Input<
Map< ? labels,String, String> ?> - required Input<
String> machineType, - Input<
Map< ? metadata,String, String> ?> - Input<
String?> ? metadataStartupScript, - Input<
String?> ? minCpuPlatform, - Input<
String?> ? name, - required Input<
List< networkInterfaces,InstanceNetworkInterface> > - Input<
InstanceNetworkPerformanceConfig?> ? networkPerformanceConfig, - Input<
InstanceParams?> ? params, - Input<
Map< ? partnerMetadata,String, String> ?> - Input<
String?> ? project, - Input<
InstanceReservationAffinity?> ? reservationAffinity, - Input<
String?> ? resourcePolicies, - Input<
InstanceScheduling?> ? scheduling, - Input<
List< ? scratchDisks,InstanceScratchDisk> ?> - Input<
InstanceServiceAccount?> ? serviceAccount, - Input<
InstanceShieldedInstanceConfig?> ? shieldedInstanceConfig, - Input<
List< ? tags,String> ?> - Input<
InstanceWorkloadIdentityConfig?> ? workloadIdentityConfig, - Input<
String?> ? zone,
Creates a new InstanceArgs.
advancedMachineFeatures Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
allowStoppingForUpdate If true, allows this provider to stop the instance to update its properties.
attachedDisks Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
bootDisk The boot disk for the instance.
canIpForward Whether to allow sending and receiving of
confidentialInstanceConfig Enable Confidential Mode on this VM. Structure is documented below
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE".
deletionProtection Enable deletion protection on this instance. Defaults to false.
description A brief description of this resource.
desiredStatus Desired status of the instance. Either
enableDisplay Enable Virtual Displays on this instance.
eraseWindowsVssSignature Beta 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. Structure documented below.
hostname A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid.
instanceEncryptionKey Configuration for data encryption on the instance with encryption keys. Structure is documented below.
keyRevocationActionType Action to be taken when a customer's encryption key is revoked. Supports STOP and NONE, with NONE being the default.
labels A map of key/value label pairs to assign to the instance.
machineType The machine type to create.
metadata Metadata key/value pairs to make available from
metadataStartupScript An alternative to using the
minCpuPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
name A unique name for the resource, required by GCE.
networkInterfaces Networks to attach to the instance. This can
networkPerformanceConfig Configures network performance settings for the instance. Structure is
params Additional instance parameters.
partnerMetadata Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project The ID of the project in which the resource belongs. If it
reservationAffinity Specifies the reservations that this instance can consume from.
resourcePolicies - A list of selfLinks of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling The scheduling strategy to use. More details about
scratchDisks Scratch disks to attach to the instance. This can be
serviceAccount Service account to attach to the instance.
shieldedInstanceConfig Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below.
tags A list of network tags to attach to the instance.
workloadIdentityConfig Workload Identity Config. More details about
zone The zone that the machine should be created in. If it is not provided, the provider zone is used.
Implementation
const InstanceArgs({
this.advancedMachineFeatures,
this.allowStoppingForUpdate,
this.attachedDisks,
required this.bootDisk,
this.canIpForward,
this.confidentialInstanceConfig,
this.deletionPolicy,
this.deletionProtection,
this.description,
this.desiredStatus,
this.enableDisplay,
this.eraseWindowsVssSignature,
this.guestAccelerators,
this.hostname,
this.instanceEncryptionKey,
this.keyRevocationActionType,
this.labels,
required this.machineType,
this.metadata,
this.metadataStartupScript,
this.minCpuPlatform,
this.name,
required this.networkInterfaces,
this.networkPerformanceConfig,
this.params,
this.partnerMetadata,
this.project,
this.reservationAffinity,
this.resourcePolicies,
this.scheduling,
this.scratchDisks,
this.serviceAccount,
this.shieldedInstanceConfig,
this.tags,
this.workloadIdentityConfig,
this.zone,
});