InstanceFromMachineImageArgs class
The set of arguments for InstanceFromMachineImage. The set of arguments for InstanceFromMachineImage.
Constructors
-
InstanceFromMachineImageArgs({Input<
InstanceFromMachineImageAdvancedMachineFeatures?> ? advancedMachineFeatures, Input<bool?> ? allowStoppingForUpdate, Input<bool?> ? canIpForward, Input<InstanceFromMachineImageConfidentialInstanceConfig?> ? confidentialInstanceConfig, Input<String?> ? deletionPolicy, Input<bool?> ? deletionProtection, Input<String?> ? description, Input<String?> ? desiredStatus, Input<bool?> ? enableDisplay, Input<bool?> ? eraseWindowsVssSignature, Input<List< ? guestAccelerators, Input<InstanceFromMachineImageGuestAccelerator> ?>String?> ? hostname, Input<InstanceFromMachineImageInstanceEncryptionKey?> ? instanceEncryptionKey, Input<String?> ? keyRevocationActionType, Input<Map< ? labels, Input<String, String> ?>String?> ? machineType, Input<Map< ? metadata, Input<String, String> ?>String?> ? metadataStartupScript, Input<String?> ? minCpuPlatform, Input<String?> ? name, Input<List< ? networkInterfaces, Input<InstanceFromMachineImageNetworkInterface> ?>InstanceFromMachineImageNetworkPerformanceConfig?> ? networkPerformanceConfig, Input<InstanceFromMachineImageParams?> ? params, Input<Map< ? partnerMetadata, Input<String, String> ?>String?> ? project, Input<InstanceFromMachineImageReservationAffinity?> ? reservationAffinity, Input<String?> ? resourcePolicies, Input<InstanceFromMachineImageScheduling?> ? scheduling, Input<InstanceFromMachineImageServiceAccount?> ? serviceAccount, Input<InstanceFromMachineImageShieldedInstanceConfig?> ? shieldedInstanceConfig, required Input<String> sourceMachineImage, Input<InstanceFromMachineImageSourceMachineImageEncryptionKey?> ? sourceMachineImageEncryptionKey, Input<List< ? tags, Input<String> ?>InstanceFromMachineImageWorkloadIdentityConfig?> ? workloadIdentityConfig, Input<String?> ? zone}) -
Creates a new InstanceFromMachineImageArgs.
advancedMachineFeaturesControls for advanced machine-related behavior features.allowStoppingForUpdateIf 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.canIpForwardWhether sending and receiving of packets with non-matching source or destination IPs is allowed.confidentialInstanceConfigThe Confidential VM config being used by the instance. onHostMaintenance has to be set to TERMINATE or this will fail to create.deletionPolicyWhether Terraform will be prevented from destroying the instance. Defaults to "DELETE".deletionProtectionWhether deletion protection is enabled on this instance.descriptionA brief description of the resource.desiredStatusDesired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".enableDisplayWhether the instance has virtual displays enabled.eraseWindowsVssSignatureSpecifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature.guestAcceleratorsList of the type and count of accelerator cards attached to the instance.hostnameA 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.instanceEncryptionKeyEncryption key used to provide data encryption on the given instance.keyRevocationActionTypeAction to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.labelsA set of key/value label pairs assigned to the instance.machineTypeThe machine type to create.metadataMetadata key/value pairs made available within the instance.metadataStartupScriptMetadata startup scripts made available within the instance.minCpuPlatformThe minimum CPU platform specified for the VM instance.nameA unique name for the resource, required by GCE.networkInterfacesThe networks attached to the instance.networkPerformanceConfigConfigures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.paramsStores additional params passed with the request, but not persisted as part of resource payload.partnerMetadataPartner Metadata Map made available within the instance.projectThe 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.reservationAffinitySpecifies the reservations that this instance can consume from.resourcePoliciesA list of selfLinks of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.schedulingThe scheduling strategy being used by the instance.serviceAccountThe service account to attach to the instance.shieldedInstanceConfigThe shielded vm config being used by the instance.sourceMachineImageName or self link of a machinesourceMachineImageEncryptionKeyEncryption key for the source machine image.tagsThe list of tags attached to the instance.workloadIdentityConfigWorkload identity config.zoneThe zone that the machine should be created in. If notconst -
InstanceFromMachineImageArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
advancedMachineFeatures
→ Input<
InstanceFromMachineImageAdvancedMachineFeatures?> ? -
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
-
canIpForward
→ Input<
bool?> ? -
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
final
-
confidentialInstanceConfig
→ Input<
InstanceFromMachineImageConfidentialInstanceConfig?> ? -
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< ?InstanceFromMachineImageGuestAccelerator> ?> -
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<
InstanceFromMachineImageInstanceEncryptionKey?> ? -
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< ?InstanceFromMachineImageNetworkInterface> ?> -
The networks attached to the instance.
final
-
networkPerformanceConfig
→ Input<
InstanceFromMachineImageNetworkPerformanceConfig?> ? -
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
final
-
params
→ Input<
InstanceFromMachineImageParams?> ? -
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<
InstanceFromMachineImageReservationAffinity?> ? -
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<
InstanceFromMachineImageScheduling?> ? -
The scheduling strategy being used by the instance.
final
-
serviceAccount
→ Input<
InstanceFromMachineImageServiceAccount?> ? -
The service account to attach to the instance.
final
-
shieldedInstanceConfig
→ Input<
InstanceFromMachineImageShieldedInstanceConfig?> ? -
The shielded vm config being used by the instance.
final
-
sourceMachineImage
→ Input<
String> -
Name or self link of a machine
image to create the instance based on.
final
-
sourceMachineImageEncryptionKey
→ Input<
InstanceFromMachineImageSourceMachineImageEncryptionKey?> ? -
Encryption key for the source machine image.
final
-
The list of tags attached to the instance.
final
-
workloadIdentityConfig
→ Input<
InstanceFromMachineImageWorkloadIdentityConfig?> ? -
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