/AWS1/CL_ECSTSKMANAGEDEBSVOL00¶
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_rolearn TYPE /AWS1/ECSIAMROLEARN /AWS1/ECSIAMROLEARN¶
The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role that is used to manage your Amazon Web Services infrastructure. We recommend using the Amazon ECS-managed
AmazonECSInfrastructureRolePolicyForVolumesIAM policy with this role. For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide.
Optional arguments:¶
iv_encrypted TYPE /AWS1/ECSBOXEDBOOLEAN /AWS1/ECSBOXEDBOOLEAN¶
Indicates whether the volume should be encrypted. If you turn on Region-level Amazon EBS encryption by default but set this value as
false, the setting is overridden and the volume is encrypted with the KMS key specified for Amazon EBS encryption by default. This parameter maps 1:1 with theEncryptedparameter of the CreateVolume API in the Amazon EC2 API Reference.
iv_kmskeyid TYPE /AWS1/ECSEBSKMSKEYID /AWS1/ECSEBSKMSKEYID¶
The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key Management Service key to use for Amazon EBS encryption. When a key is specified using this parameter, it overrides Amazon EBS default encryption or any KMS key that you specified for cluster-level managed storage encryption. This parameter maps 1:1 with the
KmsKeyIdparameter of the CreateVolume API in the Amazon EC2 API Reference. For more information about encrypting Amazon EBS volumes attached to a task, see Encrypt data stored in Amazon EBS volumes attached to Amazon ECS tasks.Amazon Web Services authenticates the Amazon Web Services Key Management Service key asynchronously. Therefore, if you specify an ID, alias, or ARN that is invalid, the action can appear to complete, but eventually fails.
iv_volumetype TYPE /AWS1/ECSEBSVOLUMETYPE /AWS1/ECSEBSVOLUMETYPE¶
The volume type. This parameter maps 1:1 with the
VolumeTypeparameter of the CreateVolume API in the Amazon EC2 API Reference. For more information, see Amazon EBS volume types in the Amazon EC2 User Guide.The following are the supported volume types.
General Purpose SSD:
gp2|gp3Provisioned IOPS SSD:
io1|io2Throughput Optimized HDD:
st1Cold HDD:
sc1Magnetic:
standardThe magnetic volume type is not supported on Fargate.
iv_sizeingib TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER¶
The size of the volume in GiB. You must specify either a volume size or a snapshot ID. If you specify a snapshot ID, the snapshot size is used for the volume size by default. You can optionally specify a volume size greater than or equal to the snapshot size. This parameter maps 1:1 with the
Sizeparameter of the CreateVolume API in the Amazon EC2 API Reference.The following are the supported volume size values for each volume type.
gp2andgp3: 1-16,384
io1andio2: 4-16,384
st1andsc1: 125-16,384
standard: 1-1,024
iv_snapshotid TYPE /AWS1/ECSEBSSNAPSHOTID /AWS1/ECSEBSSNAPSHOTID¶
The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot ID or a volume size. This parameter maps 1:1 with the
SnapshotIdparameter of the CreateVolume API in the Amazon EC2 API Reference.
iv_volumeinitializationrate TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER¶
The rate, in MiB/s, at which data is fetched from a snapshot of an existing Amazon EBS volume to create a new volume for attachment to the task. This property can be specified only if you specify a
snapshotId. For more information, see Initialize Amazon EBS volumes in the Amazon EBS User Guide.
iv_iops TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER¶
The number of I/O operations per second (IOPS). For
gp3,io1, andio2volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type.
gp3: 3,000 - 16,000 IOPS
io1: 100 - 64,000 IOPS
io2: 100 - 256,000 IOPSThis parameter is required for
io1andio2volume types. The default forgp3volumes is3,000 IOPS. This parameter is not supported forst1,sc1, orstandardvolume types.This parameter maps 1:1 with the
Iopsparameter of the CreateVolume API in the Amazon EC2 API Reference.
iv_throughput TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER¶
The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter maps 1:1 with the
Throughputparameter of the CreateVolume API in the Amazon EC2 API Reference.This parameter is only supported for the
gp3volume type.
it_tagspecifications TYPE /AWS1/CL_ECSEBSTAGSPEC=>TT_EBSTAGSPECIFICATIONS TT_EBSTAGSPECIFICATIONS¶
The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps 1:1 with the
TagSpecifications.Nparameter of the CreateVolume API in the Amazon EC2 API Reference.
io_terminationpolicy TYPE REF TO /AWS1/CL_ECSTSKMANAGEDEBSVOL01 /AWS1/CL_ECSTSKMANAGEDEBSVOL01¶
The termination policy for the volume when the task exits. This provides a way to control whether Amazon ECS terminates the Amazon EBS volume when the task stops.
iv_filesystemtype TYPE /AWS1/ECSTASKFILESYSTEMTYPE /AWS1/ECSTASKFILESYSTEMTYPE¶
The Linux filesystem type for the volume. For volumes created from a snapshot, you must specify the same filesystem type that the volume was using when the snapshot was created. If there is a filesystem type mismatch, the task will fail to start.
The available filesystem types are
ext3,ext4, andxfs. If no value is specified, thexfsfilesystem type is used by default.
Queryable Attributes¶
encrypted¶
Indicates whether the volume should be encrypted. If you turn on Region-level Amazon EBS encryption by default but set this value as
false, the setting is overridden and the volume is encrypted with the KMS key specified for Amazon EBS encryption by default. This parameter maps 1:1 with theEncryptedparameter of the CreateVolume API in the Amazon EC2 API Reference.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ENCRYPTED() |
Getter for ENCRYPTED, with configurable default |
ASK_ENCRYPTED() |
Getter for ENCRYPTED w/ exceptions if field has no value |
HAS_ENCRYPTED() |
Determine if ENCRYPTED has a value |
kmsKeyId¶
The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key Management Service key to use for Amazon EBS encryption. When a key is specified using this parameter, it overrides Amazon EBS default encryption or any KMS key that you specified for cluster-level managed storage encryption. This parameter maps 1:1 with the
KmsKeyIdparameter of the CreateVolume API in the Amazon EC2 API Reference. For more information about encrypting Amazon EBS volumes attached to a task, see Encrypt data stored in Amazon EBS volumes attached to Amazon ECS tasks.Amazon Web Services authenticates the Amazon Web Services Key Management Service key asynchronously. Therefore, if you specify an ID, alias, or ARN that is invalid, the action can appear to complete, but eventually fails.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_KMSKEYID() |
Getter for KMSKEYID, with configurable default |
ASK_KMSKEYID() |
Getter for KMSKEYID w/ exceptions if field has no value |
HAS_KMSKEYID() |
Determine if KMSKEYID has a value |
volumeType¶
The volume type. This parameter maps 1:1 with the
VolumeTypeparameter of the CreateVolume API in the Amazon EC2 API Reference. For more information, see Amazon EBS volume types in the Amazon EC2 User Guide.The following are the supported volume types.
General Purpose SSD:
gp2|gp3Provisioned IOPS SSD:
io1|io2Throughput Optimized HDD:
st1Cold HDD:
sc1Magnetic:
standardThe magnetic volume type is not supported on Fargate.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VOLUMETYPE() |
Getter for VOLUMETYPE, with configurable default |
ASK_VOLUMETYPE() |
Getter for VOLUMETYPE w/ exceptions if field has no value |
HAS_VOLUMETYPE() |
Determine if VOLUMETYPE has a value |
sizeInGiB¶
The size of the volume in GiB. You must specify either a volume size or a snapshot ID. If you specify a snapshot ID, the snapshot size is used for the volume size by default. You can optionally specify a volume size greater than or equal to the snapshot size. This parameter maps 1:1 with the
Sizeparameter of the CreateVolume API in the Amazon EC2 API Reference.The following are the supported volume size values for each volume type.
gp2andgp3: 1-16,384
io1andio2: 4-16,384
st1andsc1: 125-16,384
standard: 1-1,024
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SIZEINGIB() |
Getter for SIZEINGIB, with configurable default |
ASK_SIZEINGIB() |
Getter for SIZEINGIB w/ exceptions if field has no value |
HAS_SIZEINGIB() |
Determine if SIZEINGIB has a value |
snapshotId¶
The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot ID or a volume size. This parameter maps 1:1 with the
SnapshotIdparameter of the CreateVolume API in the Amazon EC2 API Reference.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SNAPSHOTID() |
Getter for SNAPSHOTID, with configurable default |
ASK_SNAPSHOTID() |
Getter for SNAPSHOTID w/ exceptions if field has no value |
HAS_SNAPSHOTID() |
Determine if SNAPSHOTID has a value |
volumeInitializationRate¶
The rate, in MiB/s, at which data is fetched from a snapshot of an existing Amazon EBS volume to create a new volume for attachment to the task. This property can be specified only if you specify a
snapshotId. For more information, see Initialize Amazon EBS volumes in the Amazon EBS User Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VOLUMEINITIALIZATIONRATE() |
Getter for VOLUMEINITIALIZATIONRATE, with configurable defau |
ASK_VOLUMEINITIALIZATIONRATE() |
Getter for VOLUMEINITIALIZATIONRATE w/ exceptions if field h |
HAS_VOLUMEINITIALIZATIONRATE() |
Determine if VOLUMEINITIALIZATIONRATE has a value |
iops¶
The number of I/O operations per second (IOPS). For
gp3,io1, andio2volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type.
gp3: 3,000 - 16,000 IOPS
io1: 100 - 64,000 IOPS
io2: 100 - 256,000 IOPSThis parameter is required for
io1andio2volume types. The default forgp3volumes is3,000 IOPS. This parameter is not supported forst1,sc1, orstandardvolume types.This parameter maps 1:1 with the
Iopsparameter of the CreateVolume API in the Amazon EC2 API Reference.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_IOPS() |
Getter for IOPS, with configurable default |
ASK_IOPS() |
Getter for IOPS w/ exceptions if field has no value |
HAS_IOPS() |
Determine if IOPS has a value |
throughput¶
The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter maps 1:1 with the
Throughputparameter of the CreateVolume API in the Amazon EC2 API Reference.This parameter is only supported for the
gp3volume type.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_THROUGHPUT() |
Getter for THROUGHPUT, with configurable default |
ASK_THROUGHPUT() |
Getter for THROUGHPUT w/ exceptions if field has no value |
HAS_THROUGHPUT() |
Determine if THROUGHPUT has a value |
tagSpecifications¶
The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps 1:1 with the
TagSpecifications.Nparameter of the CreateVolume API in the Amazon EC2 API Reference.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TAGSPECIFICATIONS() |
Getter for TAGSPECIFICATIONS, with configurable default |
ASK_TAGSPECIFICATIONS() |
Getter for TAGSPECIFICATIONS w/ exceptions if field has no v |
HAS_TAGSPECIFICATIONS() |
Determine if TAGSPECIFICATIONS has a value |
roleArn¶
The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role that is used to manage your Amazon Web Services infrastructure. We recommend using the Amazon ECS-managed
AmazonECSInfrastructureRolePolicyForVolumesIAM policy with this role. For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ROLEARN() |
Getter for ROLEARN, with configurable default |
ASK_ROLEARN() |
Getter for ROLEARN w/ exceptions if field has no value |
HAS_ROLEARN() |
Determine if ROLEARN has a value |
terminationPolicy¶
The termination policy for the volume when the task exits. This provides a way to control whether Amazon ECS terminates the Amazon EBS volume when the task stops.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TERMINATIONPOLICY() |
Getter for TERMINATIONPOLICY |
filesystemType¶
The Linux filesystem type for the volume. For volumes created from a snapshot, you must specify the same filesystem type that the volume was using when the snapshot was created. If there is a filesystem type mismatch, the task will fail to start.
The available filesystem types are
ext3,ext4, andxfs. If no value is specified, thexfsfilesystem type is used by default.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FILESYSTEMTYPE() |
Getter for FILESYSTEMTYPE, with configurable default |
ASK_FILESYSTEMTYPE() |
Getter for FILESYSTEMTYPE w/ exceptions if field has no valu |
HAS_FILESYSTEMTYPE() |
Determine if FILESYSTEMTYPE has a value |