InstanceRootBlockDevice constructor

const InstanceRootBlockDevice({
  1. Input<bool?>? deleteOnTermination,
  2. Input<String?>? deviceName,
  3. Input<bool?>? encrypted,
  4. Input<int?>? iops,
  5. Input<String?>? kmsKeyId,
  6. Input<Map<String, String>?>? tags,
  7. Input<Map<String, String>?>? tagsAll,
  8. Input<int?>? throughput,
  9. Input<String?>? volumeId,
  10. Input<int?>? volumeSize,
  11. Input<String?>? volumeType,
})

Creates a new InstanceRootBlockDevice. deleteOnTermination Whether the volume should be destroyed on instance termination. Defaults to true. deviceName Device name, e.g., /dev/sdh or xvdh. encrypted Whether to enable volume encryption. Defaults to false. Must be configured to perform drift detection. iops Amount of provisioned IOPS. Only valid for volumeType of io1, io2 or gp3. kmsKeyId ARN of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. tags Map of tags to assign to the device. Note: Tags specified here are applied after instance creation via a separate API call. This means they cannot be used with IAM policies that require tags during resource creation (e.g., ABAC policies with ec2:CreateAction conditions or SCPs requiring volume tags). For ABAC compliance, use volumeTags instead, which applies uniform tags to all volumes during instance creation. tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. throughput Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volumeType of gp3. volumeId ID of the volume. For example, the ID can be accessed like this, aws_instance.web.root_block_device.0.volume_id. volumeSize Size of the volume in gibibytes (GiB). volumeType Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to the volume type that the AMI uses.

Implementation

const InstanceRootBlockDevice({
  this.deleteOnTermination,
  this.deviceName,
  this.encrypted,
  this.iops,
  this.kmsKeyId,
  this.tags,
  this.tagsAll,
  this.throughput,
  this.volumeId,
  this.volumeSize,
  this.volumeType,
});