DiskState constructor

const DiskState({
  1. Input<String?>? accessMode,
  2. Input<String?>? architecture,
  3. Input<DiskAsyncPrimaryDisk?>? asyncPrimaryDisk,
  4. Input<bool?>? createSnapshotBeforeDestroy,
  5. Input<String?>? createSnapshotBeforeDestroyPrefix,
  6. Input<String?>? creationTimestamp,
  7. Input<String?>? deletionPolicy,
  8. Input<String?>? description,
  9. Input<DiskDiskEncryptionKey?>? diskEncryptionKey,
  10. Input<String?>? diskId,
  11. Input<Map<String, String>?>? effectiveLabels,
  12. Input<bool?>? enableConfidentialCompute,
  13. Input<bool?>? eraseWindowsVssSignature,
  14. Input<List<DiskGuestOsFeature>?>? guestOsFeatures,
  15. Input<String?>? image,
  16. Input<String?>? interface,
  17. Input<String?>? labelFingerprint,
  18. Input<Map<String, String>?>? labels,
  19. Input<String?>? lastAttachTimestamp,
  20. Input<String?>? lastDetachTimestamp,
  21. Input<List<String>?>? licenses,
  22. Input<bool?>? multiWriter,
  23. Input<String?>? name,
  24. Input<DiskParams?>? params,
  25. Input<int?>? physicalBlockSizeBytes,
  26. Input<String?>? project,
  27. Input<int?>? provisionedIops,
  28. Input<int?>? provisionedThroughput,
  29. Input<Map<String, String>?>? pulumiLabels,
  30. Input<List<String>?>? resourcePolicies,
  31. Input<String?>? selfLink,
  32. Input<int?>? size,
  33. Input<String?>? snapshot,
  34. Input<String?>? sourceDisk,
  35. Input<String?>? sourceDiskId,
  36. Input<DiskSourceImageEncryptionKey?>? sourceImageEncryptionKey,
  37. Input<String?>? sourceImageId,
  38. Input<String?>? sourceInstantSnapshot,
  39. Input<String?>? sourceInstantSnapshotId,
  40. Input<DiskSourceSnapshotEncryptionKey?>? sourceSnapshotEncryptionKey,
  41. Input<String?>? sourceSnapshotId,
  42. Input<String?>? sourceStorageObject,
  43. Input<String?>? storagePool,
  44. Input<String?>? type,
  45. Input<List<String>?>? users,
  46. Input<String?>? zone,
})

Creates a new DiskState. accessMode The access mode of the disk. architecture The architecture of the disk. Values include X86_64, ARM64. asyncPrimaryDisk A nested object resource. createSnapshotBeforeDestroy If set to true, a snapshot of the disk will be created before it is destroyed. createSnapshotBeforeDestroyPrefix This will set a custom name prefix for the snapshot that's created when the disk is deleted. creationTimestamp Creation timestamp in RFC3339 text format. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. description An optional description of this resource. Provide this property when diskEncryptionKey Encrypts the disk using a customer-supplied encryption key. diskId The unique identifier for the resource. This identifier is defined by the server. effectiveLabels All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. enableConfidentialCompute Whether this disk is using confidential compute mode. eraseWindowsVssSignature (Optional, Beta) guestOsFeatures A list of features to enable on the guest operating system. image The image from which to initialize this disk. This can be interface (Optional, Beta, Deprecated) labelFingerprint The fingerprint used for optimistic locking of this resource. Used labels Labels to apply to this disk. A list of key->value pairs. lastAttachTimestamp Last attach timestamp in RFC3339 text format. lastDetachTimestamp Last detach timestamp in RFC3339 text format. licenses Any applicable license URI. multiWriter (Optional, Beta) name Name of the resource. Provided by the client when the resource is params Additional params passed with the request, but not persisted as part of resource payload physicalBlockSizeBytes Physical block size of the persistent disk, in bytes. If not present project The ID of the project in which the resource belongs. provisionedIops Indicates how many IOPS must be provisioned for the disk. provisionedThroughput Indicates how much Throughput must be provisioned for the disk. pulumiLabels The combination of labels configured directly on the resource resourcePolicies (Optional, Beta) selfLink The URI of the created resource. size Size of the persistent disk, specified in GB. You can specify this snapshot The source snapshot used to create this disk. You can provide this as sourceDisk The source disk used to create this disk. You can provide this as a partial or full URL to the resource. sourceDiskId The ID value of the disk used to create this image. This value may sourceImageEncryptionKey The customer-supplied encryption key of the source image. Required if sourceImageId The ID value of the image used to create this disk. This value sourceInstantSnapshot The source instant snapshot used to create this disk. You can provide this as a partial or full URL to the resource. sourceInstantSnapshotId The unique ID of the instant snapshot used to create this disk. This value identifies sourceSnapshotEncryptionKey The customer-supplied encryption key of the source snapshot. Required sourceSnapshotId The unique ID of the snapshot used to create this disk. This value sourceStorageObject The full Google Cloud Storage URI where the disk image is stored. storagePool The URL or the name of the storage pool in which the new disk is created. type URL of the disk type resource describing which disk type to use to users Links to the users of the disk (attached instances) in form: zone A reference to the zone where the disk resides.

Implementation

const DiskState({
  this.accessMode,
  this.architecture,
  this.asyncPrimaryDisk,
  this.createSnapshotBeforeDestroy,
  this.createSnapshotBeforeDestroyPrefix,
  this.creationTimestamp,
  this.deletionPolicy,
  this.description,
  this.diskEncryptionKey,
  this.diskId,
  this.effectiveLabels,
  this.enableConfidentialCompute,
  this.eraseWindowsVssSignature,
  this.guestOsFeatures,
  this.image,
  this.interface,
  this.labelFingerprint,
  this.labels,
  this.lastAttachTimestamp,
  this.lastDetachTimestamp,
  this.licenses,
  this.multiWriter,
  this.name,
  this.params,
  this.physicalBlockSizeBytes,
  this.project,
  this.provisionedIops,
  this.provisionedThroughput,
  this.pulumiLabels,
  this.resourcePolicies,
  this.selfLink,
  this.size,
  this.snapshot,
  this.sourceDisk,
  this.sourceDiskId,
  this.sourceImageEncryptionKey,
  this.sourceImageId,
  this.sourceInstantSnapshot,
  this.sourceInstantSnapshotId,
  this.sourceSnapshotEncryptionKey,
  this.sourceSnapshotId,
  this.sourceStorageObject,
  this.storagePool,
  this.type,
  this.users,
  this.zone,
});