@aws-sdk/client-ecs 3.540.0 → 3.541.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/CreateServiceCommand.d.ts +6 -4
- package/dist-types/commands/CreateTaskSetCommand.d.ts +4 -1
- package/dist-types/commands/RunTaskCommand.d.ts +4 -3
- package/dist-types/commands/StartTaskCommand.d.ts +2 -1
- package/dist-types/commands/UpdateServiceCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +21 -21
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ declare const CreateServiceCommand_base: {
|
|
|
31
31
|
* Amazon ECS runs another copy of the task in the specified cluster. To update an existing
|
|
32
32
|
* service, see the <a>UpdateService</a> action.</p>
|
|
33
33
|
* <note>
|
|
34
|
-
* <p>
|
|
34
|
+
* <p>The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.</p>
|
|
35
35
|
* </note>
|
|
36
36
|
* <p>In addition to maintaining the desired count of tasks in your service, you can
|
|
37
37
|
* optionally run your service behind one or more load balancers. The load balancers
|
|
@@ -106,9 +106,11 @@ declare const CreateServiceCommand_base: {
|
|
|
106
106
|
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
|
|
107
107
|
* can specify only parameters that aren't controlled at the task set level. The only
|
|
108
108
|
* required parameter is the service name. You control your services using the <a>CreateTaskSet</a> operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
109
|
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
110
|
-
*
|
|
111
|
-
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i
|
|
109
|
+
* <p>When the service scheduler launches new tasks, it determines task placement. For information
|
|
110
|
+
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
|
|
111
|
+
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>
|
|
112
|
+
* </p>
|
|
113
|
+
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
|
|
112
114
|
* @example
|
|
113
115
|
* Use a bare-bones client and the command you need to make an API call.
|
|
114
116
|
* ```javascript
|
|
@@ -30,8 +30,11 @@ declare const CreateTaskSetCommand_base: {
|
|
|
30
30
|
* uses the <code>EXTERNAL</code> deployment controller type. For more information, see
|
|
31
31
|
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment
|
|
32
32
|
* types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
33
|
+
* <note>
|
|
34
|
+
* <p>The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.</p>
|
|
35
|
+
* </note>
|
|
33
36
|
* <p>For information about the maximum number of task sets and otther quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
|
|
34
|
-
*
|
|
37
|
+
* service quotas</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
35
38
|
* @example
|
|
36
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
40
|
* ```javascript
|
|
@@ -27,14 +27,15 @@ declare const RunTaskCommand_base: {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* <p>Starts a new task using the specified task definition.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.</p>
|
|
32
|
+
* </note>
|
|
30
33
|
* <p>You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places
|
|
31
34
|
* tasks using placement constraints and placement strategies. For more information, see
|
|
32
35
|
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
33
36
|
* <p>Alternatively, you can use <a>StartTask</a> to use your own scheduler or
|
|
34
37
|
* place tasks manually on specific container instances.</p>
|
|
35
|
-
* <
|
|
36
|
-
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
|
|
37
|
-
* </note>
|
|
38
|
+
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
|
|
38
39
|
* <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or
|
|
39
40
|
* updating a service. For more infomation, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
40
41
|
* <p>The Amazon ECS API follows an eventual consistency model. This is because of the
|
|
@@ -29,8 +29,9 @@ declare const StartTaskCommand_base: {
|
|
|
29
29
|
* <p>Starts a new task from the specified task definition on the specified container
|
|
30
30
|
* instance or instances.</p>
|
|
31
31
|
* <note>
|
|
32
|
-
* <p>
|
|
32
|
+
* <p>The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.</p>
|
|
33
33
|
* </note>
|
|
34
|
+
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
|
|
34
35
|
* <p>Alternatively, you can use <a>RunTask</a> to place tasks for you. For more
|
|
35
36
|
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
36
37
|
* <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or
|
|
@@ -27,6 +27,9 @@ declare const UpdateServiceCommand_base: {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* <p>Modifies the parameters of a service.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.</p>
|
|
32
|
+
* </note>
|
|
30
33
|
* <p>For services using the rolling update (<code>ECS</code>) you can update the desired
|
|
31
34
|
* count, deployment configuration, network configuration, load balancers, service
|
|
32
35
|
* registries, enable ECS managed tags option, propagate tags option, task placement
|
|
@@ -852,10 +852,10 @@ export interface Attachment {
|
|
|
852
852
|
* <p>For Service Connect services, this includes <code>portName</code>,
|
|
853
853
|
* <code>clientAliases</code>, <code>discoveryName</code>, and
|
|
854
854
|
* <code>ingressPortOverride</code>.</p>
|
|
855
|
-
* <p>For
|
|
856
|
-
* <code>
|
|
857
|
-
*
|
|
858
|
-
*
|
|
855
|
+
* <p>For Elastic Block Storage, this includes <code>roleArn</code>,
|
|
856
|
+
* <code>deleteOnTermination</code>, <code>volumeName</code>, <code>volumeId</code>,
|
|
857
|
+
* and <code>statusReason</code> (only when the attachment fails to create or
|
|
858
|
+
* attach).</p>
|
|
859
859
|
* @public
|
|
860
860
|
*/
|
|
861
861
|
details?: KeyValuePair[];
|
|
@@ -2368,7 +2368,7 @@ export interface CreateServiceRequest {
|
|
|
2368
2368
|
* <note>
|
|
2369
2369
|
* <p>Fargate Spot infrastructure is available for use but a capacity provider
|
|
2370
2370
|
* strategy must be used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-capacity-providers.html">Fargate capacity providers</a> in the
|
|
2371
|
-
* <i>Amazon ECS
|
|
2371
|
+
* <i>Amazon ECS Developer Guide</i>.</p>
|
|
2372
2372
|
* </note>
|
|
2373
2373
|
* <p>The <code>EC2</code> launch type runs your tasks on Amazon EC2 instances registered to your
|
|
2374
2374
|
* cluster.</p>
|
|
@@ -2394,8 +2394,7 @@ export interface CreateServiceRequest {
|
|
|
2394
2394
|
* <p>The platform version that your tasks in the service are running on. A platform version
|
|
2395
2395
|
* is specified only for tasks using the Fargate launch type. If one isn't
|
|
2396
2396
|
* specified, the <code>LATEST</code> platform version is used. For more information, see
|
|
2397
|
-
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate platform
|
|
2398
|
-
* versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
2397
|
+
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate platform versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
2399
2398
|
* @public
|
|
2400
2399
|
*/
|
|
2401
2400
|
platformVersion?: string;
|
|
@@ -2460,13 +2459,11 @@ export interface CreateServiceRequest {
|
|
|
2460
2459
|
* <p>If you do not use an Elastic Load Balancing, we recommend that you use the <code>startPeriod</code> in
|
|
2461
2460
|
* the task definition health check parameters. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html">Health
|
|
2462
2461
|
* check</a>.</p>
|
|
2463
|
-
* <p>If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you
|
|
2464
|
-
*
|
|
2465
|
-
*
|
|
2466
|
-
*
|
|
2467
|
-
*
|
|
2468
|
-
* scheduler from marking tasks as unhealthy and stopping them before they have time to
|
|
2469
|
-
* come up.</p>
|
|
2462
|
+
* <p>If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can
|
|
2463
|
+
* specify a health check grace period of up to 2,147,483,647 seconds (about 69 years).
|
|
2464
|
+
* During that time, the Amazon ECS service scheduler ignores health check status. This grace
|
|
2465
|
+
* period can prevent the service scheduler from marking tasks as unhealthy and stopping
|
|
2466
|
+
* them before they have time to come up.</p>
|
|
2470
2467
|
* @public
|
|
2471
2468
|
*/
|
|
2472
2469
|
healthCheckGracePeriodSeconds?: number;
|
|
@@ -2559,6 +2556,7 @@ export interface CreateServiceRequest {
|
|
|
2559
2556
|
* <p>Specifies whether to propagate the tags from the task definition to the task. If no
|
|
2560
2557
|
* value is specified, the tags aren't propagated. Tags can only be propagated to the task
|
|
2561
2558
|
* during task creation. To add tags to a task after task creation, use the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html">TagResource</a> API action.</p>
|
|
2559
|
+
* <p>You must set this to a value other than <code>NONE</code> when you use Cost Explorer. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/usage-reports.html">Amazon ECS usage reports</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
2562
2560
|
* <p>The default is <code>NONE</code>.</p>
|
|
2563
2561
|
* @public
|
|
2564
2562
|
*/
|
|
@@ -4006,8 +4004,8 @@ export type EnvironmentFileType = (typeof EnvironmentFileType)[keyof typeof Envi
|
|
|
4006
4004
|
* parameter in a container definition, they take precedence over the variables contained
|
|
4007
4005
|
* within an environment file. If multiple environment files are specified that contain the
|
|
4008
4006
|
* same variable, they're processed from the top down. We recommend that you use unique
|
|
4009
|
-
* variable names. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/
|
|
4010
|
-
*
|
|
4007
|
+
* variable names. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/use-environment-file.html">Use a file to pass environment variables to a container</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
4008
|
+
* <p>Environment variable files are objects in Amazon S3 and all Amazon S3 security considerations apply. </p>
|
|
4011
4009
|
* <p>You must use the following platforms for the Fargate launch type:</p>
|
|
4012
4010
|
* <ul>
|
|
4013
4011
|
* <li>
|
|
@@ -4039,7 +4037,8 @@ export interface EnvironmentFile {
|
|
|
4039
4037
|
*/
|
|
4040
4038
|
value: string | undefined;
|
|
4041
4039
|
/**
|
|
4042
|
-
* <p>The file type to use. The only supported value is
|
|
4040
|
+
* <p>The file type to use. Environment files are objects in Amazon S3. The only supported value is
|
|
4041
|
+
* <code>s3</code>.</p>
|
|
4043
4042
|
* @public
|
|
4044
4043
|
*/
|
|
4045
4044
|
type: EnvironmentFileType | undefined;
|
|
@@ -4119,6 +4118,8 @@ export interface FirelensConfiguration {
|
|
|
4119
4118
|
* DescribeTasks API operation or when viewing the task details in the console.</p>
|
|
4120
4119
|
* <p>The health check is designed to make sure that your containers survive agent restarts,
|
|
4121
4120
|
* upgrades, or temporary unavailability.</p>
|
|
4121
|
+
* <p>Amazon ECS performs health checks on containers with the default that launched the
|
|
4122
|
+
* container instance or the task.</p>
|
|
4122
4123
|
* <p>The following describes the possible <code>healthStatus</code> values for a
|
|
4123
4124
|
* container:</p>
|
|
4124
4125
|
* <ul>
|
|
@@ -4298,8 +4299,7 @@ export interface HealthCheck {
|
|
|
4298
4299
|
startPeriod?: number;
|
|
4299
4300
|
}
|
|
4300
4301
|
/**
|
|
4301
|
-
* <p>The Linux capabilities
|
|
4302
|
-
* configuration provided by Docker. For more information about the default capabilities
|
|
4302
|
+
* <p>The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition. For more information about the default capabilities
|
|
4303
4303
|
* and the non-default available capabilities, see <a href="https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities">Runtime privilege and Linux capabilities</a> in the <i>Docker run
|
|
4304
4304
|
* reference</i>. For more detailed information about these Linux capabilities,
|
|
4305
4305
|
* see the <a href="http://man7.org/linux/man-pages/man7/capabilities.7.html">capabilities(7)</a> Linux manual page.</p>
|
|
@@ -5673,8 +5673,8 @@ export interface ContainerDefinition {
|
|
|
5673
5673
|
*/
|
|
5674
5674
|
export interface EphemeralStorage {
|
|
5675
5675
|
/**
|
|
5676
|
-
* <p>The total amount, in GiB, of ephemeral storage to set for the task. The minimum
|
|
5677
|
-
*
|
|
5676
|
+
* <p>The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported
|
|
5677
|
+
* value is <code>20</code> GiB and the maximum supported value is
|
|
5678
5678
|
* <code>200</code> GiB.</p>
|
|
5679
5679
|
* @public
|
|
5680
5680
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.541.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecs",
|