InstanceFromMachineImageArgs constructor

const InstanceFromMachineImageArgs({
  1. Input<InstanceFromMachineImageAdvancedMachineFeatures?>? advancedMachineFeatures,
  2. Input<bool?>? allowStoppingForUpdate,
  3. Input<bool?>? canIpForward,
  4. Input<InstanceFromMachineImageConfidentialInstanceConfig?>? confidentialInstanceConfig,
  5. Input<String?>? deletionPolicy,
  6. Input<bool?>? deletionProtection,
  7. Input<String?>? description,
  8. Input<String?>? desiredStatus,
  9. Input<bool?>? enableDisplay,
  10. Input<bool?>? eraseWindowsVssSignature,
  11. Input<List<InstanceFromMachineImageGuestAccelerator>?>? guestAccelerators,
  12. Input<String?>? hostname,
  13. Input<InstanceFromMachineImageInstanceEncryptionKey?>? instanceEncryptionKey,
  14. Input<String?>? keyRevocationActionType,
  15. Input<Map<String, String>?>? labels,
  16. Input<String?>? machineType,
  17. Input<Map<String, String>?>? metadata,
  18. Input<String?>? metadataStartupScript,
  19. Input<String?>? minCpuPlatform,
  20. Input<String?>? name,
  21. Input<List<InstanceFromMachineImageNetworkInterface>?>? networkInterfaces,
  22. Input<InstanceFromMachineImageNetworkPerformanceConfig?>? networkPerformanceConfig,
  23. Input<InstanceFromMachineImageParams?>? params,
  24. Input<Map<String, String>?>? partnerMetadata,
  25. Input<String?>? project,
  26. Input<InstanceFromMachineImageReservationAffinity?>? reservationAffinity,
  27. Input<String?>? resourcePolicies,
  28. Input<InstanceFromMachineImageScheduling?>? scheduling,
  29. Input<InstanceFromMachineImageServiceAccount?>? serviceAccount,
  30. Input<InstanceFromMachineImageShieldedInstanceConfig?>? shieldedInstanceConfig,
  31. required Input<String> sourceMachineImage,
  32. Input<InstanceFromMachineImageSourceMachineImageEncryptionKey?>? sourceMachineImageEncryptionKey,
  33. Input<List<String>?>? tags,
  34. Input<InstanceFromMachineImageWorkloadIdentityConfig?>? workloadIdentityConfig,
  35. Input<String?>? zone,
})

Creates a new InstanceFromMachineImageArgs. 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. 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. serviceAccount The service account to attach to the instance. shieldedInstanceConfig The shielded vm config being used by the instance. sourceMachineImage Name or self link of a machine sourceMachineImageEncryptionKey Encryption key for the source machine image. 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

Implementation

const InstanceFromMachineImageArgs({
  this.advancedMachineFeatures,
  this.allowStoppingForUpdate,
  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,
  this.machineType,
  this.metadata,
  this.metadataStartupScript,
  this.minCpuPlatform,
  this.name,
  this.networkInterfaces,
  this.networkPerformanceConfig,
  this.params,
  this.partnerMetadata,
  this.project,
  this.reservationAffinity,
  this.resourcePolicies,
  this.scheduling,
  this.serviceAccount,
  this.shieldedInstanceConfig,
  required this.sourceMachineImage,
  this.sourceMachineImageEncryptionKey,
  this.tags,
  this.workloadIdentityConfig,
  this.zone,
});