Skip to content

Commit

Permalink
feat(client-ecs): This release adds support for EBS volumes attached …
Browse files Browse the repository at this point in the history
…to Amazon ECS Windows tasks running on EC2 instances.
  • Loading branch information
awstools committed Oct 24, 2024
1 parent 9c9494a commit eba29d1
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion clients/client-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You also don't need to worry about scaling your management infrastructure. </p>

## Installing

To install the this package, simply type add or install @aws-sdk/client-ecs
To install this package, simply type add or install @aws-sdk/client-ecs
using your favorite package manager:

- `npm install @aws-sdk/client-ecs`
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ecs/src/commands/CreateServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* },
* ],
* roleArn: "STRING_VALUE", // required
* filesystemType: "ext3" || "ext4" || "xfs",
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* },
* },
* ],
Expand Down Expand Up @@ -500,7 +500,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* // },
* // ],
* // roleArn: "STRING_VALUE", // required
* // filesystemType: "ext3" || "ext4" || "xfs",
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* // },
* // },
* // ],
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DeleteServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
* // },
* // ],
* // roleArn: "STRING_VALUE", // required
* // filesystemType: "ext3" || "ext4" || "xfs",
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* // },
* // },
* // ],
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DescribeServicesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
* // },
* // ],
* // roleArn: "STRING_VALUE", // required
* // filesystemType: "ext3" || "ext4" || "xfs",
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* // },
* // },
* // ],
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/RunTaskCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
* terminationPolicy: { // TaskManagedEBSVolumeTerminationPolicy
* deleteOnTermination: true || false, // required
* },
* filesystemType: "ext3" || "ext4" || "xfs",
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* },
* },
* ],
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/StartTaskCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface StartTaskCommandOutput extends StartTaskResponse, __MetadataBea
* terminationPolicy: { // TaskManagedEBSVolumeTerminationPolicy
* deleteOnTermination: true || false, // required
* },
* filesystemType: "ext3" || "ext4" || "xfs",
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* },
* },
* ],
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ecs/src/commands/UpdateServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
* },
* ],
* roleArn: "STRING_VALUE", // required
* filesystemType: "ext3" || "ext4" || "xfs",
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* },
* },
* ],
Expand Down Expand Up @@ -537,7 +537,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
* // },
* // ],
* // roleArn: "STRING_VALUE", // required
* // filesystemType: "ext3" || "ext4" || "xfs",
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
* // },
* // },
* // ],
Expand Down
19 changes: 11 additions & 8 deletions clients/client-ecs/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,7 @@ export interface ServiceRegistry {
export const TaskFilesystemType = {
EXT3: "ext3",
EXT4: "ext4",
NTFS: "ntfs",
XFS: "xfs",
} as const;

Expand Down Expand Up @@ -2544,9 +2545,10 @@ export interface EBSTagSpecification {
}

/**
* <p>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 in the service.</p>
* <p>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 in
* the service. For information about the supported launch types and operating systems, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volumes-configuration">Supported operating systems and launch types</a>
* in the<i> Amazon Elastic Container Service Developer Guide</i>.</p>
* <p>Many of these parameters map 1:1 with the Amazon EBS <code>CreateVolume</code> API request
* parameters.</p>
* @public
Expand Down Expand Up @@ -2707,12 +2709,13 @@ export interface ServiceManagedEBSVolumeConfiguration {
roleArn: string | undefined;

/**
* <p>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.</p>
* <p>The available filesystem types are
 <code>ext3</code>, <code>ext4</code>, and
* <p>The 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.</p>
* <p>The available Linux filesystem types are
 <code>ext3</code>, <code>ext4</code>, and
* <code>xfs</code>. If no value is specified, the <code>xfs</code> filesystem type is
* used by default.</p>
* <p>The available Windows filesystem types are <code>NTFS</code>.</p>
* @public
*/
filesystemType?: TaskFilesystemType;
Expand Down Expand Up @@ -5013,7 +5016,7 @@ export interface HealthCheck {
* <code> CMD-SHELL, curl -f http://localhost/ || exit 1</code>
* </p>
* <p>An exit code of 0 indicates success, and non-zero exit code indicates failure. For
* more information, see <code>HealthCheck</code> in the docker container create command</p>
* more information, see <code>HealthCheck</code> in the docker container create command.</p>
* @public
*/
command: string[] | undefined;
Expand Down
12 changes: 9 additions & 3 deletions codegen/sdk-codegen/aws-models/ecs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6261,7 +6261,7 @@
"command": {
"target": "com.amazonaws.ecs#StringList",
"traits": {
"smithy.api#documentation": "<p>A string array representing the command that the container runs to determine if it is\n\t\t\thealthy. The string array must start with <code>CMD</code> to run the command arguments\n\t\t\tdirectly, or <code>CMD-SHELL</code> to run the command with the container's default\n\t\t\tshell. </p>\n <p> When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list\n\t\t\tof commands in double quotes and brackets.</p>\n <p>\n <code>[ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]</code>\n </p>\n <p>You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.</p>\n <p>\n <code> CMD-SHELL, curl -f http://localhost/ || exit 1</code>\n </p>\n <p>An exit code of 0 indicates success, and non-zero exit code indicates failure. For\n\t\t\tmore information, see <code>HealthCheck</code> in the docker container create command</p>",
"smithy.api#documentation": "<p>A string array representing the command that the container runs to determine if it is\n\t\t\thealthy. The string array must start with <code>CMD</code> to run the command arguments\n\t\t\tdirectly, or <code>CMD-SHELL</code> to run the command with the container's default\n\t\t\tshell. </p>\n <p> When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list\n\t\t\tof commands in double quotes and brackets.</p>\n <p>\n <code>[ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]</code>\n </p>\n <p>You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.</p>\n <p>\n <code> CMD-SHELL, curl -f http://localhost/ || exit 1</code>\n </p>\n <p>An exit code of 0 indicates success, and non-zero exit code indicates failure. For\n\t\t\tmore information, see <code>HealthCheck</code> in the docker container create command.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -10282,12 +10282,12 @@
"filesystemType": {
"target": "com.amazonaws.ecs#TaskFilesystemType",
"traits": {
"smithy.api#documentation": "<p>The Linux filesystem type for the volume. For volumes created from a snapshot, you\n\t\t\tmust specify the same filesystem type that the volume was using when the snapshot was\n\t\t\tcreated. If there is a filesystem type mismatch, the task will fail to start.</p>\n <p>The available filesystem types are\u2028 <code>ext3</code>, <code>ext4</code>, and\n\t\t\t\t<code>xfs</code>. If no value is specified, the <code>xfs</code> filesystem type is\n\t\t\tused by default.</p>"
"smithy.api#documentation": "<p>The filesystem type for the volume. For volumes created from a snapshot, you must specify\n\t\t\tthe same filesystem type that the volume was using when the snapshot was created. If\n\t\t\tthere is a filesystem type mismatch, the task will fail to start.</p>\n <p>The available Linux filesystem types are\u2028 <code>ext3</code>, <code>ext4</code>, and\n\t\t\t\t<code>xfs</code>. If no value is specified, the <code>xfs</code> filesystem type is\n\t\t\tused by default.</p>\n <p>The available Windows filesystem types are <code>NTFS</code>.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.\n\t\t\tThese settings are used to create each Amazon EBS volume, with one volume created for each\n\t\t\ttask in the service.</p>\n <p>Many of these parameters map 1:1 with the Amazon EBS <code>CreateVolume</code> API request\n\t\t\tparameters.</p>"
"smithy.api#documentation": "<p>The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These\n\t\t\tsettings are used to create each Amazon EBS volume, with one volume created for each task in\n\t\t\tthe service. For information about the supported launch types and operating systems, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volumes-configuration\">Supported operating systems and launch types</a>\n\t\t\tin the<i> Amazon Elastic Container Service Developer Guide</i>.</p>\n <p>Many of these parameters map 1:1 with the Amazon EBS <code>CreateVolume</code> API request\n\t\t\tparameters.</p>"
}
},
"com.amazonaws.ecs#ServiceNotActiveException": {
Expand Down Expand Up @@ -11805,6 +11805,12 @@
"traits": {
"smithy.api#enumValue": "xfs"
}
},
"NTFS": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ntfs"
}
}
}
},
Expand Down

0 comments on commit eba29d1

Please sign in to comment.