@aws-sdk/client-ecs 3.712.0 → 3.714.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/index.js CHANGED
@@ -3165,6 +3165,7 @@ var de_TaskDefinition = /* @__PURE__ */ __name((output, context) => {
3165
3165
  containerDefinitions: import_smithy_client._json,
3166
3166
  cpu: import_smithy_client.expectString,
3167
3167
  deregisteredAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3168
+ enableFaultInjection: import_smithy_client.expectBoolean,
3168
3169
  ephemeralStorage: import_smithy_client._json,
3169
3170
  executionRoleArn: import_smithy_client.expectString,
3170
3171
  family: import_smithy_client.expectString,
@@ -23,6 +23,7 @@ const getRuntimeConfig = (config) => {
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const profileConfig = { profile: config?.profile };
26
27
  return {
27
28
  ...clientSharedValues,
28
29
  ...config,
@@ -32,19 +33,20 @@ const getRuntimeConfig = (config) => {
32
33
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
34
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
35
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
37
+ region: config?.region ??
38
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
37
39
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
38
40
  retryMode: config?.retryMode ??
39
41
  (0, node_config_provider_1.loadConfig)({
40
42
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
41
43
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
42
- }),
44
+ }, config),
43
45
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
44
46
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
50
  };
49
51
  };
50
52
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -2047,6 +2047,7 @@ const de_TaskDefinition = (output, context) => {
2047
2047
  containerDefinitions: _json,
2048
2048
  cpu: __expectString,
2049
2049
  deregisteredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2050
+ enableFaultInjection: __expectBoolean,
2050
2051
  ephemeralStorage: _json,
2051
2052
  executionRoleArn: __expectString,
2052
2053
  family: __expectString,
@@ -19,6 +19,7 @@ export const getRuntimeConfig = (config) => {
19
19
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
20
  const clientSharedValues = getSharedRuntimeConfig(config);
21
21
  awsCheckVersion(process.version);
22
+ const profileConfig = { profile: config?.profile };
22
23
  return {
23
24
  ...clientSharedValues,
24
25
  ...config,
@@ -28,18 +29,19 @@ export const getRuntimeConfig = (config) => {
28
29
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
31
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
32
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
33
+ region: config?.region ??
34
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
33
35
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
36
  retryMode: config?.retryMode ??
35
37
  loadNodeConfig({
36
38
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
39
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
- }),
40
+ }, config),
39
41
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
42
  streamCollector: config?.streamCollector ?? streamCollector,
41
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
45
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
44
46
  };
45
47
  };
@@ -153,6 +153,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
153
153
  * The AWS region to which this client will send requests
154
154
  */
155
155
  region?: string | __Provider<string>;
156
+ /**
157
+ * Setting a client profile is similar to setting a value for the
158
+ * AWS_PROFILE environment variable. Setting a profile on a client
159
+ * in code only affects the single client instance, unlike AWS_PROFILE.
160
+ *
161
+ * When set, and only for environments where an AWS configuration
162
+ * file exists, fields configurable by this file will be retrieved
163
+ * from the specified profile within that file.
164
+ * Conflicting code configuration and environment variables will
165
+ * still have higher priority.
166
+ *
167
+ * For client credential resolution that involves checking the AWS
168
+ * configuration file, the client's profile (this value) will be
169
+ * used unless a different profile is set in the credential
170
+ * provider options.
171
+ *
172
+ */
173
+ profile?: string;
156
174
  /**
157
175
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
158
176
  * @internal
@@ -332,6 +332,7 @@ declare const DeleteTaskDefinitionsCommand_base: {
332
332
  * // ephemeralStorage: { // EphemeralStorage
333
333
  * // sizeInGiB: Number("int"), // required
334
334
  * // },
335
+ * // enableFaultInjection: true || false,
335
336
  * // },
336
337
  * // ],
337
338
  * // failures: [ // Failures
@@ -327,6 +327,7 @@ declare const DeregisterTaskDefinitionCommand_base: {
327
327
  * // ephemeralStorage: { // EphemeralStorage
328
328
  * // sizeInGiB: Number("int"), // required
329
329
  * // },
330
+ * // enableFaultInjection: true || false,
330
331
  * // },
331
332
  * // };
332
333
  *
@@ -320,6 +320,7 @@ declare const DescribeTaskDefinitionCommand_base: {
320
320
  * // ephemeralStorage: { // EphemeralStorage
321
321
  * // sizeInGiB: Number("int"), // required
322
322
  * // },
323
+ * // enableFaultInjection: true || false,
323
324
  * // },
324
325
  * // tags: [ // Tags
325
326
  * // { // Tag
@@ -308,6 +308,7 @@ declare const RegisterTaskDefinitionCommand_base: {
308
308
  * cpuArchitecture: "X86_64" || "ARM64",
309
309
  * operatingSystemFamily: "WINDOWS_SERVER_2019_FULL" || "WINDOWS_SERVER_2019_CORE" || "WINDOWS_SERVER_2016_FULL" || "WINDOWS_SERVER_2004_CORE" || "WINDOWS_SERVER_2022_CORE" || "WINDOWS_SERVER_2022_FULL" || "WINDOWS_SERVER_20H2_CORE" || "LINUX",
310
310
  * },
311
+ * enableFaultInjection: true || false,
311
312
  * };
312
313
  * const command = new RegisterTaskDefinitionCommand(input);
313
314
  * const response = await client.send(command);
@@ -582,6 +583,7 @@ declare const RegisterTaskDefinitionCommand_base: {
582
583
  * // ephemeralStorage: { // EphemeralStorage
583
584
  * // sizeInGiB: Number("int"), // required
584
585
  * // },
586
+ * // enableFaultInjection: true || false,
585
587
  * // },
586
588
  * // tags: [ // Tags
587
589
  * // { // Tag
@@ -1305,8 +1305,9 @@ export interface DeploymentConfiguration {
1305
1305
  * uses either the blue/green (<code>CODE_DEPLOY</code>) or <code>EXTERNAL</code>
1306
1306
  * deployment types and has tasks that use the EC2 launch type.</p>
1307
1307
  * </note>
1308
- * <p>If the tasks in the service use the Fargate launch type, the maximum
1309
- * percent value is not used, although it is returned when describing your service.</p>
1308
+ * <p>If the service uses either the blue/green (<code>CODE_DEPLOY</code>) or <code>EXTERNAL</code>
1309
+ * deployment types, and the tasks in the service use the Fargate launch type, the maximum
1310
+ * percent value is not used. The value is still returned when describing your service.</p>
1310
1311
  * @public
1311
1312
  */
1312
1313
  maximumPercent?: number | undefined;
@@ -1950,7 +1951,7 @@ export interface LogConfiguration {
1950
1951
  * <code>Host</code> (OpenSearch Service endpoint without protocol), <code>Port</code>,
1951
1952
  * <code>Index</code>, <code>Type</code>, <code>Aws_auth</code>,
1952
1953
  * <code>Aws_region</code>, <code>Suppress_Type_Name</code>, and
1953
- * <code>tls</code>.</p>
1954
+ * <code>tls</code>. For more information, see <a href="http://aws.amazon.com/blogs/containers/under-the-hood-firelens-for-amazon-ecs-tasks/">Under the hood: FireLens for Amazon ECS Tasks</a>.</p>
1954
1955
  * <p>When you export logs to Amazon S3, you can specify the bucket using the <code>bucket</code>
1955
1956
  * option. You can also specify <code>region</code>, <code>total_file_size</code>,
1956
1957
  * <code>upload_timeout</code>, and <code>use_put_object</code> as options.</p>
@@ -6885,6 +6886,12 @@ export interface TaskDefinition {
6885
6886
  * @public
6886
6887
  */
6887
6888
  ephemeralStorage?: EphemeralStorage | undefined;
6889
+ /**
6890
+ * <p>Enables fault injection and allows for fault injection requests to be accepted from the task's containers.
6891
+ * The default value is <code>false</code>.</p>
6892
+ * @public
6893
+ */
6894
+ enableFaultInjection?: boolean | undefined;
6888
6895
  }
6889
6896
  /**
6890
6897
  * @public
@@ -9557,7 +9564,7 @@ export interface ListServiceDeploymentsRequest {
9557
9564
  * <p>The cluster that hosts the service. This can either be the cluster name or ARN.
9558
9565
  * Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
9559
9566
  * Elastic Inference (EI), and will help current customers migrate their workloads to
9560
- * options that offer better price and performanceIf you don't specify a cluster,
9567
+ * options that offer better price and performance. If you don't specify a cluster,
9561
9568
  * <code>default</code> is used.</p>
9562
9569
  * @public
9563
9570
  */
@@ -11007,6 +11014,12 @@ export interface RegisterTaskDefinitionRequest {
11007
11014
  * @public
11008
11015
  */
11009
11016
  runtimePlatform?: RuntimePlatform | undefined;
11017
+ /**
11018
+ * <p>Enables fault injection when you register your task definition and allows for fault injection requests
11019
+ * to be accepted from the task's containers. The default value is <code>false</code>.</p>
11020
+ * @public
11021
+ */
11022
+ enableFaultInjection?: boolean | undefined;
11010
11023
  }
11011
11024
  /**
11012
11025
  * @public
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
26
26
  utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
+ profile?: string | undefined;
29
30
  logger: import("@smithy/types").Logger;
30
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
27
27
  utf8Encoder: (input: string | Uint8Array) => string;
28
28
  disableHostPrefix: boolean;
29
29
  serviceId: string;
30
+ profile?: string | undefined;
30
31
  logger: import("@smithy/types").Logger;
31
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
+ profile?: string | undefined;
23
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
25
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -425,6 +425,7 @@ export interface ClientDefaults
425
425
  useDualstackEndpoint?: boolean | __Provider<boolean>;
426
426
  useFipsEndpoint?: boolean | __Provider<boolean>;
427
427
  region?: string | __Provider<string>;
428
+ profile?: string;
428
429
  defaultUserAgentProvider?: Provider<__UserAgent>;
429
430
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
430
431
  maxAttempts?: number | __Provider<number>;
@@ -1071,6 +1071,7 @@ export interface TaskDefinition {
1071
1071
  deregisteredAt?: Date | undefined;
1072
1072
  registeredBy?: string | undefined;
1073
1073
  ephemeralStorage?: EphemeralStorage | undefined;
1074
+ enableFaultInjection?: boolean | undefined;
1074
1075
  }
1075
1076
  export interface DeleteTaskDefinitionsResponse {
1076
1077
  taskDefinitions?: TaskDefinition[] | undefined;
@@ -1792,6 +1793,7 @@ export interface RegisterTaskDefinitionRequest {
1792
1793
  inferenceAccelerators?: InferenceAccelerator[] | undefined;
1793
1794
  ephemeralStorage?: EphemeralStorage | undefined;
1794
1795
  runtimePlatform?: RuntimePlatform | undefined;
1796
+ enableFaultInjection?: boolean | undefined;
1795
1797
  }
1796
1798
  export interface RegisterTaskDefinitionResponse {
1797
1799
  taskDefinition?: TaskDefinition | undefined;
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
33
33
  utf8Encoder: (input: string | Uint8Array) => string;
34
34
  disableHostPrefix: boolean;
35
35
  serviceId: string;
36
+ profile?: string | undefined;
36
37
  logger: import("@smithy/types").Logger;
37
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
38
39
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
38
38
  utf8Encoder: (input: string | Uint8Array) => string;
39
39
  disableHostPrefix: boolean;
40
40
  serviceId: string;
41
+ profile?: string | undefined;
41
42
  logger: import("@smithy/types").Logger;
42
43
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
44
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
+ profile?: string | undefined;
25
26
  defaultUserAgentProvider: (
26
27
  config?:
27
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
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.712.0",
4
+ "version": "3.714.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",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.712.0",
24
- "@aws-sdk/client-sts": "3.712.0",
25
- "@aws-sdk/core": "3.709.0",
26
- "@aws-sdk/credential-provider-node": "3.712.0",
27
- "@aws-sdk/middleware-host-header": "3.709.0",
28
- "@aws-sdk/middleware-logger": "3.709.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.709.0",
30
- "@aws-sdk/middleware-user-agent": "3.709.0",
31
- "@aws-sdk/region-config-resolver": "3.709.0",
32
- "@aws-sdk/types": "3.709.0",
33
- "@aws-sdk/util-endpoints": "3.709.0",
34
- "@aws-sdk/util-user-agent-browser": "3.709.0",
35
- "@aws-sdk/util-user-agent-node": "3.712.0",
23
+ "@aws-sdk/client-sso-oidc": "3.714.0",
24
+ "@aws-sdk/client-sts": "3.714.0",
25
+ "@aws-sdk/core": "3.714.0",
26
+ "@aws-sdk/credential-provider-node": "3.714.0",
27
+ "@aws-sdk/middleware-host-header": "3.714.0",
28
+ "@aws-sdk/middleware-logger": "3.714.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
+ "@aws-sdk/middleware-user-agent": "3.714.0",
31
+ "@aws-sdk/region-config-resolver": "3.714.0",
32
+ "@aws-sdk/types": "3.714.0",
33
+ "@aws-sdk/util-endpoints": "3.714.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.714.0",
35
+ "@aws-sdk/util-user-agent-node": "3.714.0",
36
36
  "@smithy/config-resolver": "^3.0.13",
37
37
  "@smithy/core": "^2.5.5",
38
38
  "@smithy/fetch-http-handler": "^4.1.2",