InstanceState constructor

const InstanceState({
  1. Input<InstanceAdvancedMachineFeatures?>? advancedMachineFeatures,
  2. Input<bool?>? allowStoppingForUpdate,
  3. Input<List<InstanceAttachedDisk>?>? attachedDisks,
  4. Input<InstanceBootDisk?>? bootDisk,
  5. Input<bool?>? canIpForward,
  6. Input<InstanceConfidentialInstanceConfig?>? confidentialInstanceConfig,
  7. Input<String?>? cpuPlatform,
  8. Input<String?>? creationTimestamp,
  9. Input<String?>? currentStatus,
  10. Input<String?>? deletionPolicy,
  11. Input<bool?>? deletionProtection,
  12. Input<String?>? description,
  13. Input<String?>? desiredStatus,
  14. Input<Map<String, String>?>? effectiveLabels,
  15. Input<bool?>? enableDisplay,
  16. Input<bool?>? eraseWindowsVssSignature,
  17. Input<List<InstanceGuestAccelerator>?>? guestAccelerators,
  18. Input<String?>? hostname,
  19. Input<InstanceInstanceEncryptionKey?>? instanceEncryptionKey,
  20. Input<String?>? instanceId,
  21. Input<String?>? keyRevocationActionType,
  22. Input<String?>? labelFingerprint,
  23. Input<Map<String, String>?>? labels,
  24. Input<String?>? machineType,
  25. Input<Map<String, String>?>? metadata,
  26. Input<String?>? metadataFingerprint,
  27. Input<String?>? metadataStartupScript,
  28. Input<String?>? minCpuPlatform,
  29. Input<String?>? name,
  30. Input<List<InstanceNetworkInterface>?>? networkInterfaces,
  31. Input<InstanceNetworkPerformanceConfig?>? networkPerformanceConfig,
  32. Input<InstanceParams?>? params,
  33. Input<Map<String, String>?>? partnerMetadata,
  34. Input<String?>? project,
  35. Input<Map<String, String>?>? pulumiLabels,
  36. Input<InstanceReservationAffinity?>? reservationAffinity,
  37. Input<String?>? resourcePolicies,
  38. Input<InstanceScheduling?>? scheduling,
  39. Input<List<InstanceScratchDisk>?>? scratchDisks,
  40. Input<String?>? selfLink,
  41. Input<InstanceServiceAccount?>? serviceAccount,
  42. Input<InstanceShieldedInstanceConfig?>? shieldedInstanceConfig,
  43. Input<List<String>?>? tags,
  44. Input<String?>? tagsFingerprint,
  45. Input<InstanceWorkloadIdentityConfig?>? workloadIdentityConfig,
  46. Input<String?>? zone,
})

Creates a new InstanceState. 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 cpuPlatform The CPU platform used by this instance. creationTimestamp Creation timestamp in RFC3339 text format. currentStatus The current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. 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 effectiveLabels All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. 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. instanceId The server-assigned unique identifier of this instance. keyRevocationActionType Action to be taken when a customer's encryption key is revoked. Supports STOP and NONE, with NONE being the default. labelFingerprint The unique fingerprint of the labels. 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 metadataFingerprint The unique fingerprint of the metadata. 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 pulumiLabels The combination of labels configured directly on the resource and default labels configured on the provider. 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 selfLink The URI of the created resource. 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. tagsFingerprint The unique fingerprint of the tags. 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 InstanceState({
  this.advancedMachineFeatures,
  this.allowStoppingForUpdate,
  this.attachedDisks,
  this.bootDisk,
  this.canIpForward,
  this.confidentialInstanceConfig,
  this.cpuPlatform,
  this.creationTimestamp,
  this.currentStatus,
  this.deletionPolicy,
  this.deletionProtection,
  this.description,
  this.desiredStatus,
  this.effectiveLabels,
  this.enableDisplay,
  this.eraseWindowsVssSignature,
  this.guestAccelerators,
  this.hostname,
  this.instanceEncryptionKey,
  this.instanceId,
  this.keyRevocationActionType,
  this.labelFingerprint,
  this.labels,
  this.machineType,
  this.metadata,
  this.metadataFingerprint,
  this.metadataStartupScript,
  this.minCpuPlatform,
  this.name,
  this.networkInterfaces,
  this.networkPerformanceConfig,
  this.params,
  this.partnerMetadata,
  this.project,
  this.pulumiLabels,
  this.reservationAffinity,
  this.resourcePolicies,
  this.scheduling,
  this.scratchDisks,
  this.selfLink,
  this.serviceAccount,
  this.shieldedInstanceConfig,
  this.tags,
  this.tagsFingerprint,
  this.workloadIdentityConfig,
  this.zone,
});