Skip to content

Commit eba29d1

Browse files
author
awstools
committed
feat(client-ecs): This release adds support for EBS volumes attached to Amazon ECS Windows tasks running on EC2 instances.
1 parent 9c9494a commit eba29d1

File tree

9 files changed

+29
-20
lines changed

9 files changed

+29
-20
lines changed

clients/client-ecs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You also don't need to worry about scaling your management infrastructure. </p>
2323

2424
## Installing
2525

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

2929
- `npm install @aws-sdk/client-ecs`

clients/client-ecs/src/commands/CreateServiceCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
269269
* },
270270
* ],
271271
* roleArn: "STRING_VALUE", // required
272-
* filesystemType: "ext3" || "ext4" || "xfs",
272+
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
273273
* },
274274
* },
275275
* ],
@@ -500,7 +500,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
500500
* // },
501501
* // ],
502502
* // roleArn: "STRING_VALUE", // required
503-
* // filesystemType: "ext3" || "ext4" || "xfs",
503+
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
504504
* // },
505505
* // },
506506
* // ],

clients/client-ecs/src/commands/DeleteServiceCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
286286
* // },
287287
* // ],
288288
* // roleArn: "STRING_VALUE", // required
289-
* // filesystemType: "ext3" || "ext4" || "xfs",
289+
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
290290
* // },
291291
* // },
292292
* // ],

clients/client-ecs/src/commands/DescribeServicesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
271271
* // },
272272
* // ],
273273
* // roleArn: "STRING_VALUE", // required
274-
* // filesystemType: "ext3" || "ext4" || "xfs",
274+
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
275275
* // },
276276
* // },
277277
* // ],

clients/client-ecs/src/commands/RunTaskCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
190190
* terminationPolicy: { // TaskManagedEBSVolumeTerminationPolicy
191191
* deleteOnTermination: true || false, // required
192192
* },
193-
* filesystemType: "ext3" || "ext4" || "xfs",
193+
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
194194
* },
195195
* },
196196
* ],

clients/client-ecs/src/commands/StartTaskCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export interface StartTaskCommandOutput extends StartTaskResponse, __MetadataBea
144144
* terminationPolicy: { // TaskManagedEBSVolumeTerminationPolicy
145145
* deleteOnTermination: true || false, // required
146146
* },
147-
* filesystemType: "ext3" || "ext4" || "xfs",
147+
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
148148
* },
149149
* },
150150
* ],

clients/client-ecs/src/commands/UpdateServiceCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
306306
* },
307307
* ],
308308
* roleArn: "STRING_VALUE", // required
309-
* filesystemType: "ext3" || "ext4" || "xfs",
309+
* filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
310310
* },
311311
* },
312312
* ],
@@ -537,7 +537,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
537537
* // },
538538
* // ],
539539
* // roleArn: "STRING_VALUE", // required
540-
* // filesystemType: "ext3" || "ext4" || "xfs",
540+
* // filesystemType: "ext3" || "ext4" || "xfs" || "ntfs",
541541
* // },
542542
* // },
543543
* // ],

clients/client-ecs/src/models/models_0.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,7 @@ export interface ServiceRegistry {
24942494
export const TaskFilesystemType = {
24952495
EXT3: "ext3",
24962496
EXT4: "ext4",
2497+
NTFS: "ntfs",
24972498
XFS: "xfs",
24982499
} as const;
24992500

@@ -2544,9 +2545,10 @@ export interface EBSTagSpecification {
25442545
}
25452546

25462547
/**
2547-
* <p>The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.
2548-
* These settings are used to create each Amazon EBS volume, with one volume created for each
2549-
* task in the service.</p>
2548+
* <p>The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These
2549+
* settings are used to create each Amazon EBS volume, with one volume created for each task in
2550+
* 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>
2551+
* in the<i> Amazon Elastic Container Service Developer Guide</i>.</p>
25502552
* <p>Many of these parameters map 1:1 with the Amazon EBS <code>CreateVolume</code> API request
25512553
* parameters.</p>
25522554
* @public
@@ -2707,12 +2709,13 @@ export interface ServiceManagedEBSVolumeConfiguration {
27072709
roleArn: string | undefined;
27082710

27092711
/**
2710-
* <p>The Linux filesystem type for the volume. For volumes created from a snapshot, you
2711-
* must specify the same filesystem type that the volume was using when the snapshot was
2712-
* created. If there is a filesystem type mismatch, the task will fail to start.</p>
2713-
* <p>The available filesystem types are
 <code>ext3</code>, <code>ext4</code>, and
2712+
* <p>The filesystem type for the volume. For volumes created from a snapshot, you must specify
2713+
* the same filesystem type that the volume was using when the snapshot was created. If
2714+
* there is a filesystem type mismatch, the task will fail to start.</p>
2715+
* <p>The available Linux filesystem types are
 <code>ext3</code>, <code>ext4</code>, and
27142716
* <code>xfs</code>. If no value is specified, the <code>xfs</code> filesystem type is
27152717
* used by default.</p>
2718+
* <p>The available Windows filesystem types are <code>NTFS</code>.</p>
27162719
* @public
27172720
*/
27182721
filesystemType?: TaskFilesystemType;
@@ -5013,7 +5016,7 @@ export interface HealthCheck {
50135016
* <code> CMD-SHELL, curl -f http://localhost/ || exit 1</code>
50145017
* </p>
50155018
* <p>An exit code of 0 indicates success, and non-zero exit code indicates failure. For
5016-
* more information, see <code>HealthCheck</code> in the docker container create command</p>
5019+
* more information, see <code>HealthCheck</code> in the docker container create command.</p>
50175020
* @public
50185021
*/
50195022
command: string[] | undefined;

codegen/sdk-codegen/aws-models/ecs.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -6261,7 +6261,7 @@
62616261
"command": {
62626262
"target": "com.amazonaws.ecs#StringList",
62636263
"traits": {
6264-
"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>",
6264+
"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>",
62656265
"smithy.api#required": {}
62666266
}
62676267
},
@@ -10282,12 +10282,12 @@
1028210282
"filesystemType": {
1028310283
"target": "com.amazonaws.ecs#TaskFilesystemType",
1028410284
"traits": {
10285-
"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>"
10285+
"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>"
1028610286
}
1028710287
}
1028810288
},
1028910289
"traits": {
10290-
"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>"
10290+
"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>"
1029110291
}
1029210292
},
1029310293
"com.amazonaws.ecs#ServiceNotActiveException": {
@@ -11805,6 +11805,12 @@
1180511805
"traits": {
1180611806
"smithy.api#enumValue": "xfs"
1180711807
}
11808+
},
11809+
"NTFS": {
11810+
"target": "smithy.api#Unit",
11811+
"traits": {
11812+
"smithy.api#enumValue": "ntfs"
11813+
}
1180811814
}
1180911815
}
1181011816
},

0 commit comments

Comments
 (0)