InstanceRootBlockDevice class
Constructors
-
InstanceRootBlockDevice({Input<bool?>? deleteOnTermination, Input<String?>? deviceName, Input<bool?>? encrypted, Input<int?>? iops, Input<String?>? kmsKeyId, Input<Map<String, String>?>? tags, Input<Map<String, String>?>? tagsAll, Input<int?>? throughput, Input<String?>? volumeId, Input<int?>? volumeSize, 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.
const
-
InstanceRootBlockDevice.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
deleteOnTermination
→ Input<bool?>?
-
Whether the volume should be destroyed on instance termination. Defaults to
true.
final
-
deviceName
→ Input<String?>?
-
Device name, e.g.,
/dev/sdh or xvdh.
final
-
encrypted
→ Input<bool?>?
-
Whether to enable volume encryption. Defaults to
false. Must be configured to perform drift detection.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
iops
→ Input<int?>?
-
Amount of provisioned IOPS. Only valid for volumeType of
io1, io2 or gp3.
final
-
kmsKeyId
→ Input<String?>?
-
ARN of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
tags
→ Input<Map<String, String>?>?
-
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.
final
-
tagsAll
→ Input<Map<String, String>?>?
-
Map of tags assigned to the resource, including those inherited from the provider
defaultTags configuration block.
final
-
throughput
→ Input<int?>?
-
Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for
volumeType of gp3.
final
-
volumeId
→ Input<String?>?
-
ID of the volume. For example, the ID can be accessed like this,
aws_instance.web.root_block_device.0.volume_id.
final
-
volumeSize
→ Input<int?>?
-
Size of the volume in gibibytes (GiB).
final
-
volumeType
→ Input<String?>?
-
Type of volume. Valid values include
standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to the volume type that the AMI uses.
final