@aws-sdk/client-ecs 3.315.0 → 3.318.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-cjs/ECS.js +60 -784
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-es/ECS.js +60 -784
- package/dist-es/models/models_0.js +1 -0
- package/dist-types/ECS.d.ts +75 -699
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountSettingCommand.d.ts +9 -1
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +29 -5
- package/dist-types/ts3.4/ECS.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +6 -6
|
@@ -28,7 +28,7 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
|
|
|
28
28
|
* // const { ECSClient, DeleteAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
30
|
* const input = { // DeleteAccountSettingRequest
|
|
31
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode", // required
|
|
31
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization", // required
|
|
32
32
|
* principalArn: "STRING_VALUE",
|
|
33
33
|
* };
|
|
34
34
|
* const command = new DeleteAccountSettingCommand(input);
|
|
@@ -27,7 +27,7 @@ export interface ListAccountSettingsCommandOutput extends ListAccountSettingsRes
|
|
|
27
27
|
* // const { ECSClient, ListAccountSettingsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
29
|
* const input = { // ListAccountSettingsRequest
|
|
30
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode",
|
|
30
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization",
|
|
31
31
|
* value: "STRING_VALUE",
|
|
32
32
|
* principalArn: "STRING_VALUE",
|
|
33
33
|
* effectiveSettings: true || false,
|
|
@@ -43,6 +43,14 @@ export interface PutAccountSettingCommandOutput extends PutAccountSettingRespons
|
|
|
43
43
|
* have Container Insights turned on unless you disable it during cluster creation. For
|
|
44
44
|
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html">CloudWatch
|
|
45
45
|
* Container Insights</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
46
|
+
* <p>Amazon ECS is introducing tagging authorization for resource creation. Users must have
|
|
47
|
+
* permissions for actions that create the resource, such as <code>ecsCreateCluster</code>.
|
|
48
|
+
* If tags are specified when you create a resource, Amazon Web Services performs additional
|
|
49
|
+
* authorization to verify if users or roles have permissions to create tags. Therefore,
|
|
50
|
+
* you must grant explicit permissions to use the <code>ecs:TagResource</code> action. For
|
|
51
|
+
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html">Grant
|
|
52
|
+
* permission to tag resources on creation</a> in the <i>Amazon ECS Developer
|
|
53
|
+
* Guide</i>.</p>
|
|
46
54
|
* @example
|
|
47
55
|
* Use a bare-bones client and the command you need to make an API call.
|
|
48
56
|
* ```javascript
|
|
@@ -50,7 +58,7 @@ export interface PutAccountSettingCommandOutput extends PutAccountSettingRespons
|
|
|
50
58
|
* // const { ECSClient, PutAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
51
59
|
* const client = new ECSClient(config);
|
|
52
60
|
* const input = { // PutAccountSettingRequest
|
|
53
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode", // required
|
|
61
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization", // required
|
|
54
62
|
* value: "STRING_VALUE", // required
|
|
55
63
|
* principalArn: "STRING_VALUE",
|
|
56
64
|
* };
|
|
@@ -29,7 +29,7 @@ export interface PutAccountSettingDefaultCommandOutput extends PutAccountSetting
|
|
|
29
29
|
* // const { ECSClient, PutAccountSettingDefaultCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
30
30
|
* const client = new ECSClient(config);
|
|
31
31
|
* const input = { // PutAccountSettingDefaultRequest
|
|
32
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode", // required
|
|
32
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization", // required
|
|
33
33
|
* value: "STRING_VALUE", // required
|
|
34
34
|
* };
|
|
35
35
|
* const command = new PutAccountSettingDefaultCommand(input);
|
|
@@ -2955,6 +2955,7 @@ export declare const SettingName: {
|
|
|
2955
2955
|
readonly CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat";
|
|
2956
2956
|
readonly FARGATE_FIPS_MODE: "fargateFIPSMode";
|
|
2957
2957
|
readonly SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat";
|
|
2958
|
+
readonly TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization";
|
|
2958
2959
|
readonly TASK_LONG_ARN_FORMAT: "taskLongArnFormat";
|
|
2959
2960
|
};
|
|
2960
2961
|
/**
|
|
@@ -3722,6 +3723,7 @@ export interface LinuxParameters {
|
|
|
3722
3723
|
* <note>
|
|
3723
3724
|
* <p>If you're using tasks that use the Fargate launch type, the
|
|
3724
3725
|
* <code>maxSwap</code> parameter isn't supported.</p>
|
|
3726
|
+
* <p>If you're using tasks on Amazon Linux 2023 the <code>swappiness</code> parameter isn't supported.</p>
|
|
3725
3727
|
* </note>
|
|
3726
3728
|
*/
|
|
3727
3729
|
maxSwap?: number;
|
|
@@ -3737,6 +3739,7 @@ export interface LinuxParameters {
|
|
|
3737
3739
|
* <note>
|
|
3738
3740
|
* <p>If you're using tasks that use the Fargate launch type, the
|
|
3739
3741
|
* <code>swappiness</code> parameter isn't supported.</p>
|
|
3742
|
+
* <p>If you're using tasks on Amazon Linux 2023 the <code>swappiness</code> parameter isn't supported.</p>
|
|
3740
3743
|
* </note>
|
|
3741
3744
|
*/
|
|
3742
3745
|
swappiness?: number;
|
|
@@ -3796,6 +3799,15 @@ export type TransportProtocol = (typeof TransportProtocol)[keyof typeof Transpor
|
|
|
3796
3799
|
* network mode, specify the exposed ports using <code>containerPort</code>. The
|
|
3797
3800
|
* <code>hostPort</code> can be left blank or it must be the same value as the
|
|
3798
3801
|
* <code>containerPort</code>.</p>
|
|
3802
|
+
* <p>Most fields of this parameter (<code>containerPort</code>, <code>hostPort</code>,
|
|
3803
|
+
* <code>protocol</code>) maps to <code>PortBindings</code> in the
|
|
3804
|
+
* <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
|
|
3805
|
+
* <code>--publish</code> option to <a href="https://docs.docker.com/engine/reference/commandline/run/">
|
|
3806
|
+
* <code>docker
|
|
3807
|
+
* run</code>
|
|
3808
|
+
* </a>. If the network mode of a task definition is set to
|
|
3809
|
+
* <code>host</code>, host ports must either be undefined or match the container port
|
|
3810
|
+
* in the port mapping.</p>
|
|
3799
3811
|
* <note>
|
|
3800
3812
|
* <p>You can't expose the same container port for multiple protocols. If you attempt
|
|
3801
3813
|
* this, an error is returned.</p>
|
|
@@ -4770,6 +4782,9 @@ export interface ContainerDefinition {
|
|
|
4770
4782
|
* <li>
|
|
4771
4783
|
* <p>Linux platform version <code>1.4.0</code> or later.</p>
|
|
4772
4784
|
* </li>
|
|
4785
|
+
* <li>
|
|
4786
|
+
* <p>Windows platform version <code>1.0.0</code> or later.</p>
|
|
4787
|
+
* </li>
|
|
4773
4788
|
* </ul>
|
|
4774
4789
|
* </note>
|
|
4775
4790
|
*/
|
|
@@ -7958,7 +7973,10 @@ export interface PutAccountSettingRequest {
|
|
|
7958
7973
|
* for your Amazon ECS container instances is affected. If <code>containerInsights</code> is
|
|
7959
7974
|
* specified, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is
|
|
7960
7975
|
* affected. If <code>fargateFIPSMode</code> is specified, Fargate FIPS 140 compliance is
|
|
7961
|
-
* affected
|
|
7976
|
+
* affected. If <code>tagResourceAuthorization</code> is specified, the opt-in option for
|
|
7977
|
+
* tagging resources on creation is affected. For information about the opt-in timeline,
|
|
7978
|
+
* see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#tag-resources">Tagging authorization timeline</a> in the <i>Amazon ECS Developer
|
|
7979
|
+
* Guide</i>.</p>
|
|
7962
7980
|
*/
|
|
7963
7981
|
name: SettingName | string | undefined;
|
|
7964
7982
|
/**
|
|
@@ -8000,11 +8018,14 @@ export interface PutAccountSettingDefaultRequest {
|
|
|
8000
8018
|
* specified, the ARN and resource ID for your Amazon ECS container instances is affected. If
|
|
8001
8019
|
* <code>awsvpcTrunking</code> is specified, the ENI limit for your Amazon ECS container
|
|
8002
8020
|
* instances is affected. If <code>containerInsights</code> is specified, the default
|
|
8003
|
-
* setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected.
|
|
8021
|
+
* setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If
|
|
8022
|
+
* <code>tagResourceAuthorization</code> is specified, the opt-in option for tagging
|
|
8023
|
+
* resources on creation is affected. For information about the opt-in timeline, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#tag-resources">Tagging authorization timeline</a> in the <i>Amazon ECS Developer
|
|
8024
|
+
* Guide</i>.</p>
|
|
8004
8025
|
* <p>When you specify <code>fargateFIPSMode</code> for the <code>name</code> and
|
|
8005
|
-
*
|
|
8026
|
+
* <code>enabled</code> for the <code>value</code>, Fargate uses FIPS-140 compliant
|
|
8006
8027
|
* cryptographic algorithms on your tasks. For more information about FIPS-140 compliance
|
|
8007
|
-
* with Fargate, see <a href="https://docs.aws.amazon.com/
|
|
8028
|
+
* with Fargate, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-fips-compliance.html"> Amazon Web Services Fargate Federal Information Processing Standard (FIPS) 140-2
|
|
8008
8029
|
* compliance</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
8009
8030
|
*/
|
|
8010
8031
|
name: SettingName | string | undefined;
|
|
@@ -8528,6 +8549,9 @@ export interface RegisterTaskDefinitionRequest {
|
|
|
8528
8549
|
* <li>
|
|
8529
8550
|
* <p>Linux platform version <code>1.4.0</code> or later.</p>
|
|
8530
8551
|
* </li>
|
|
8552
|
+
* <li>
|
|
8553
|
+
* <p>Windows platform version <code>1.0.0</code> or later.</p>
|
|
8554
|
+
* </li>
|
|
8531
8555
|
* </ul>
|
|
8532
8556
|
* </note>
|
|
8533
8557
|
*/
|
|
@@ -8789,7 +8813,7 @@ export interface StartTaskRequest {
|
|
|
8789
8813
|
enableECSManagedTags?: boolean;
|
|
8790
8814
|
/**
|
|
8791
8815
|
* <p>Whether or not the execute command functionality is turned on for the task. If
|
|
8792
|
-
* <code>true</code>, this
|
|
8816
|
+
* <code>true</code>, this turns on the execute command functionality on all containers in
|
|
8793
8817
|
* the task.</p>
|
|
8794
8818
|
*/
|
|
8795
8819
|
enableExecuteCommand?: boolean;
|
|
@@ -224,7 +224,7 @@ import {
|
|
|
224
224
|
UpdateTaskSetCommandOutput,
|
|
225
225
|
} from "./commands/UpdateTaskSetCommand";
|
|
226
226
|
import { ECSClient } from "./ECSClient";
|
|
227
|
-
export
|
|
227
|
+
export interface ECS {
|
|
228
228
|
createCapacityProvider(
|
|
229
229
|
args: CreateCapacityProviderCommandInput,
|
|
230
230
|
options?: __HttpHandlerOptions
|
|
@@ -954,3 +954,4 @@ export declare class ECS extends ECSClient {
|
|
|
954
954
|
cb: (err: any, data?: UpdateTaskSetCommandOutput) => void
|
|
955
955
|
): void;
|
|
956
956
|
}
|
|
957
|
+
export declare class ECS extends ECSClient implements ECS {}
|
|
@@ -530,6 +530,7 @@ export declare const SettingName: {
|
|
|
530
530
|
readonly CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat";
|
|
531
531
|
readonly FARGATE_FIPS_MODE: "fargateFIPSMode";
|
|
532
532
|
readonly SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat";
|
|
533
|
+
readonly TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization";
|
|
533
534
|
readonly TASK_LONG_ARN_FORMAT: "taskLongArnFormat";
|
|
534
535
|
};
|
|
535
536
|
export type SettingName = (typeof SettingName)[keyof typeof SettingName];
|
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.318.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|