@aws-sdk/client-ecs 3.314.0 → 3.316.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.
@@ -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
  /**
@@ -4770,6 +4771,9 @@ export interface ContainerDefinition {
4770
4771
  * <li>
4771
4772
  * <p>Linux platform version <code>1.4.0</code> or later.</p>
4772
4773
  * </li>
4774
+ * <li>
4775
+ * <p>Windows platform version <code>1.0.0</code> or later.</p>
4776
+ * </li>
4773
4777
  * </ul>
4774
4778
  * </note>
4775
4779
  */
@@ -7958,7 +7962,10 @@ export interface PutAccountSettingRequest {
7958
7962
  * for your Amazon ECS container instances is affected. If <code>containerInsights</code> is
7959
7963
  * specified, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is
7960
7964
  * affected. If <code>fargateFIPSMode</code> is specified, Fargate FIPS 140 compliance is
7961
- * affected.</p>
7965
+ * affected. If <code>tagResourceAuthorization</code> is specified, the opt-in option for
7966
+ * tagging resources on creation is affected. For information about the opt-in timeline,
7967
+ * 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
7968
+ * Guide</i>.</p>
7962
7969
  */
7963
7970
  name: SettingName | string | undefined;
7964
7971
  /**
@@ -8000,9 +8007,12 @@ export interface PutAccountSettingDefaultRequest {
8000
8007
  * specified, the ARN and resource ID for your Amazon ECS container instances is affected. If
8001
8008
  * <code>awsvpcTrunking</code> is specified, the ENI limit for your Amazon ECS container
8002
8009
  * 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. </p>
8010
+ * setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If
8011
+ * <code>tagResourceAuthorization</code> is specified, the opt-in option for tagging
8012
+ * 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
8013
+ * Guide</i>.</p>
8004
8014
  * <p>When you specify <code>fargateFIPSMode</code> for the <code>name</code> and
8005
- * <code>enabled</code> for the <code>value</code>, Fargate uses FIPS-140 compliant
8015
+ * <code>enabled</code> for the <code>value</code>, Fargate uses FIPS-140 compliant
8006
8016
  * cryptographic algorithms on your tasks. For more information about FIPS-140 compliance
8007
8017
  * with Fargate, see <a href="https://docs.aws.amazon.com/AWSEC2ContainerServiceDocs/build/server-root/AmazonECS/latest/developerguide/ecs-fips-compliance.html"> Amazon Web Services Fargate Federal Information Processing Standard (FIPS) 140-2
8008
8018
  * compliance</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
@@ -8528,6 +8538,9 @@ export interface RegisterTaskDefinitionRequest {
8528
8538
  * <li>
8529
8539
  * <p>Linux platform version <code>1.4.0</code> or later.</p>
8530
8540
  * </li>
8541
+ * <li>
8542
+ * <p>Windows platform version <code>1.0.0</code> or later.</p>
8543
+ * </li>
8531
8544
  * </ul>
8532
8545
  * </note>
8533
8546
  */
@@ -8789,7 +8802,7 @@ export interface StartTaskRequest {
8789
8802
  enableECSManagedTags?: boolean;
8790
8803
  /**
8791
8804
  * <p>Whether or not the execute command functionality is turned on for the task. If
8792
- * <code>true</code>, this enables execute command functionality on all containers in
8805
+ * <code>true</code>, this turns on the execute command functionality on all containers in
8793
8806
  * the task.</p>
8794
8807
  */
8795
8808
  enableExecuteCommand?: boolean;
@@ -224,7 +224,7 @@ import {
224
224
  UpdateTaskSetCommandOutput,
225
225
  } from "./commands/UpdateTaskSetCommand";
226
226
  import { ECSClient } from "./ECSClient";
227
- export declare class ECS extends ECSClient {
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.314.0",
4
+ "version": "3.316.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.312.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.310.0",
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.310.0",
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.310.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.310.0",
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",