SpotInstanceRequestEbsBlockDevice class

Constructors

SpotInstanceRequestEbsBlockDevice({Input<bool?>? deleteOnTermination, required Input<String> deviceName, Input<bool?>? encrypted, Input<int?>? iops, Input<String?>? kmsKeyId, Input<String?>? snapshotId, 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 SpotInstanceRequestEbsBlockDevice. deleteOnTermination Whether the volume should be destroyed on instance termination. Defaults to true. deviceName Name of the device to mount. encrypted Enables EBS encryption on the volume. Defaults to false. Cannot be used with snapshotId. 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. snapshotId Snapshot ID to mount. 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 A 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 Optional. 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 gp2.
const
SpotInstanceRequestEbsBlockDevice.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>
Name of the device to mount.
final
encrypted → Input<bool?>?
Enables EBS encryption on the volume. Defaults to false. Cannot be used with snapshotId. 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
snapshotId → Input<String?>?
Snapshot ID to mount.
final
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>?>?
A 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?>?
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 gp2.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited