@aws-sdk/client-ecs 3.42.0 → 3.47.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.
@@ -1,9 +1,5 @@
1
1
  import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
- export var AccessDeniedException;
4
- (function (AccessDeniedException) {
5
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AccessDeniedException || (AccessDeniedException = {}));
7
3
  export var AgentUpdateStatus;
8
4
  (function (AgentUpdateStatus) {
9
5
  AgentUpdateStatus["FAILED"] = "FAILED";
@@ -13,10 +9,6 @@ export var AgentUpdateStatus;
13
9
  AgentUpdateStatus["UPDATED"] = "UPDATED";
14
10
  AgentUpdateStatus["UPDATING"] = "UPDATING";
15
11
  })(AgentUpdateStatus || (AgentUpdateStatus = {}));
16
- export var ClientException;
17
- (function (ClientException) {
18
- ClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
19
- })(ClientException || (ClientException = {}));
20
12
  export var ManagedScalingStatus;
21
13
  (function (ManagedScalingStatus) {
22
14
  ManagedScalingStatus["DISABLED"] = "DISABLED";
@@ -65,22 +57,6 @@ export var CreateCapacityProviderResponse;
65
57
  (function (CreateCapacityProviderResponse) {
66
58
  CreateCapacityProviderResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
67
59
  })(CreateCapacityProviderResponse || (CreateCapacityProviderResponse = {}));
68
- export var InvalidParameterException;
69
- (function (InvalidParameterException) {
70
- InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
- })(InvalidParameterException || (InvalidParameterException = {}));
72
- export var LimitExceededException;
73
- (function (LimitExceededException) {
74
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- })(LimitExceededException || (LimitExceededException = {}));
76
- export var ServerException;
77
- (function (ServerException) {
78
- ServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
- })(ServerException || (ServerException = {}));
80
- export var UpdateInProgressException;
81
- (function (UpdateInProgressException) {
82
- UpdateInProgressException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- })(UpdateInProgressException || (UpdateInProgressException = {}));
84
60
  export var ExecuteCommandLogConfiguration;
85
61
  (function (ExecuteCommandLogConfiguration) {
86
62
  ExecuteCommandLogConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -131,10 +107,6 @@ export var CreateClusterResponse;
131
107
  (function (CreateClusterResponse) {
132
108
  CreateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
109
  })(CreateClusterResponse || (CreateClusterResponse = {}));
134
- export var ClusterNotFoundException;
135
- (function (ClusterNotFoundException) {
136
- ClusterNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- })(ClusterNotFoundException || (ClusterNotFoundException = {}));
138
110
  export var DeploymentCircuitBreaker;
139
111
  (function (DeploymentCircuitBreaker) {
140
112
  DeploymentCircuitBreaker.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -252,18 +224,6 @@ export var CreateServiceResponse;
252
224
  (function (CreateServiceResponse) {
253
225
  CreateServiceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
226
  })(CreateServiceResponse || (CreateServiceResponse = {}));
255
- export var PlatformTaskDefinitionIncompatibilityException;
256
- (function (PlatformTaskDefinitionIncompatibilityException) {
257
- PlatformTaskDefinitionIncompatibilityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
- })(PlatformTaskDefinitionIncompatibilityException || (PlatformTaskDefinitionIncompatibilityException = {}));
259
- export var PlatformUnknownException;
260
- (function (PlatformUnknownException) {
261
- PlatformUnknownException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
262
- })(PlatformUnknownException || (PlatformUnknownException = {}));
263
- export var UnsupportedFeatureException;
264
- (function (UnsupportedFeatureException) {
265
- UnsupportedFeatureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
266
- })(UnsupportedFeatureException || (UnsupportedFeatureException = {}));
267
227
  export var CreateTaskSetRequest;
268
228
  (function (CreateTaskSetRequest) {
269
229
  CreateTaskSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -272,14 +232,6 @@ export var CreateTaskSetResponse;
272
232
  (function (CreateTaskSetResponse) {
273
233
  CreateTaskSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
234
  })(CreateTaskSetResponse || (CreateTaskSetResponse = {}));
275
- export var ServiceNotActiveException;
276
- (function (ServiceNotActiveException) {
277
- ServiceNotActiveException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- })(ServiceNotActiveException || (ServiceNotActiveException = {}));
279
- export var ServiceNotFoundException;
280
- (function (ServiceNotFoundException) {
281
- ServiceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
- })(ServiceNotFoundException || (ServiceNotFoundException = {}));
283
235
  export var SettingName;
284
236
  (function (SettingName) {
285
237
  SettingName["AWSVPC_TRUNKING"] = "awsvpcTrunking";
@@ -316,10 +268,6 @@ export var DeleteAttributesResponse;
316
268
  (function (DeleteAttributesResponse) {
317
269
  DeleteAttributesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
318
270
  })(DeleteAttributesResponse || (DeleteAttributesResponse = {}));
319
- export var TargetNotFoundException;
320
- (function (TargetNotFoundException) {
321
- TargetNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
322
- })(TargetNotFoundException || (TargetNotFoundException = {}));
323
271
  export var DeleteCapacityProviderRequest;
324
272
  (function (DeleteCapacityProviderRequest) {
325
273
  DeleteCapacityProviderRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -328,18 +276,6 @@ export var DeleteCapacityProviderResponse;
328
276
  (function (DeleteCapacityProviderResponse) {
329
277
  DeleteCapacityProviderResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
330
278
  })(DeleteCapacityProviderResponse || (DeleteCapacityProviderResponse = {}));
331
- export var ClusterContainsContainerInstancesException;
332
- (function (ClusterContainsContainerInstancesException) {
333
- ClusterContainsContainerInstancesException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
- })(ClusterContainsContainerInstancesException || (ClusterContainsContainerInstancesException = {}));
335
- export var ClusterContainsServicesException;
336
- (function (ClusterContainsServicesException) {
337
- ClusterContainsServicesException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
338
- })(ClusterContainsServicesException || (ClusterContainsServicesException = {}));
339
- export var ClusterContainsTasksException;
340
- (function (ClusterContainsTasksException) {
341
- ClusterContainsTasksException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
342
- })(ClusterContainsTasksException || (ClusterContainsTasksException = {}));
343
279
  export var DeleteClusterRequest;
344
280
  (function (DeleteClusterRequest) {
345
281
  DeleteClusterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -364,10 +300,6 @@ export var DeleteTaskSetResponse;
364
300
  (function (DeleteTaskSetResponse) {
365
301
  DeleteTaskSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
366
302
  })(DeleteTaskSetResponse || (DeleteTaskSetResponse = {}));
367
- export var TaskSetNotFoundException;
368
- (function (TaskSetNotFoundException) {
369
- TaskSetNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
370
- })(TaskSetNotFoundException || (TaskSetNotFoundException = {}));
371
303
  export var DeregisterContainerInstanceRequest;
372
304
  (function (DeregisterContainerInstanceRequest) {
373
305
  DeregisterContainerInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -838,10 +770,6 @@ export var ExecuteCommandResponse;
838
770
  (function (ExecuteCommandResponse) {
839
771
  ExecuteCommandResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.session && { session: Session.filterSensitiveLog(obj.session) }))); };
840
772
  })(ExecuteCommandResponse || (ExecuteCommandResponse = {}));
841
- export var TargetNotConnectedException;
842
- (function (TargetNotConnectedException) {
843
- TargetNotConnectedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
844
- })(TargetNotConnectedException || (TargetNotConnectedException = {}));
845
773
  export var ListAccountSettingsRequest;
846
774
  (function (ListAccountSettingsRequest) {
847
775
  ListAccountSettingsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -955,10 +883,6 @@ export var PutAccountSettingDefaultResponse;
955
883
  (function (PutAccountSettingDefaultResponse) {
956
884
  PutAccountSettingDefaultResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
957
885
  })(PutAccountSettingDefaultResponse || (PutAccountSettingDefaultResponse = {}));
958
- export var AttributeLimitExceededException;
959
- (function (AttributeLimitExceededException) {
960
- AttributeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
961
- })(AttributeLimitExceededException || (AttributeLimitExceededException = {}));
962
886
  export var PutAttributesRequest;
963
887
  (function (PutAttributesRequest) {
964
888
  PutAttributesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -975,10 +899,6 @@ export var PutClusterCapacityProvidersResponse;
975
899
  (function (PutClusterCapacityProvidersResponse) {
976
900
  PutClusterCapacityProvidersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
977
901
  })(PutClusterCapacityProvidersResponse || (PutClusterCapacityProvidersResponse = {}));
978
- export var ResourceInUseException;
979
- (function (ResourceInUseException) {
980
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
981
- })(ResourceInUseException || (ResourceInUseException = {}));
982
902
  export var PlatformDeviceType;
983
903
  (function (PlatformDeviceType) {
984
904
  PlatformDeviceType["GPU"] = "GPU";
@@ -1003,10 +923,6 @@ export var RegisterTaskDefinitionResponse;
1003
923
  (function (RegisterTaskDefinitionResponse) {
1004
924
  RegisterTaskDefinitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1005
925
  })(RegisterTaskDefinitionResponse || (RegisterTaskDefinitionResponse = {}));
1006
- export var BlockedException;
1007
- (function (BlockedException) {
1008
- BlockedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1009
- })(BlockedException || (BlockedException = {}));
1010
926
  export var RunTaskRequest;
1011
927
  (function (RunTaskRequest) {
1012
928
  RunTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1067,10 +983,6 @@ export var SubmitTaskStateChangeResponse;
1067
983
  (function (SubmitTaskStateChangeResponse) {
1068
984
  SubmitTaskStateChangeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1069
985
  })(SubmitTaskStateChangeResponse || (SubmitTaskStateChangeResponse = {}));
1070
- export var ResourceNotFoundException;
1071
- (function (ResourceNotFoundException) {
1072
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1073
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
1074
986
  export var TagResourceRequest;
1075
987
  (function (TagResourceRequest) {
1076
988
  TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1115,14 +1027,6 @@ export var UpdateClusterSettingsResponse;
1115
1027
  (function (UpdateClusterSettingsResponse) {
1116
1028
  UpdateClusterSettingsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1117
1029
  })(UpdateClusterSettingsResponse || (UpdateClusterSettingsResponse = {}));
1118
- export var MissingVersionException;
1119
- (function (MissingVersionException) {
1120
- MissingVersionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1121
- })(MissingVersionException || (MissingVersionException = {}));
1122
- export var NoUpdateAvailableException;
1123
- (function (NoUpdateAvailableException) {
1124
- NoUpdateAvailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1125
- })(NoUpdateAvailableException || (NoUpdateAvailableException = {}));
1126
1030
  export var UpdateContainerAgentRequest;
1127
1031
  (function (UpdateContainerAgentRequest) {
1128
1032
  UpdateContainerAgentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -585,7 +585,7 @@ export declare class ECS extends ECSClient {
585
585
  * <i>Amazon Elastic Container Service Developer Guide</i>.</p>
586
586
  * <p>Alternatively, you can use <a>StartTask</a> to use your own scheduler or
587
587
  * place tasks manually on specific container instances.</p>
588
- * <p>The Amazon ECS API follows an eventual consistency model. This is because the distributed
588
+ * <p>The Amazon ECS API follows an eventual consistency model. This is because of the distributed
589
589
  * nature of the system supporting the API. This means that the result of an API command
590
590
  * you run that affects your Amazon ECS resources might not be immediately visible to all
591
591
  * subsequent commands you run. Keep this in mind when you carry out an API command that
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateCapacityProviderCommandInput, CreateCapacityProviderCommandOutput } from "./commands/CreateCapacityProviderCommand";
10
10
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
@@ -160,6 +160,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
160
160
  * @internal
161
161
  */
162
162
  defaultUserAgentProvider?: Provider<__UserAgent>;
163
+ /**
164
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
165
+ */
166
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
163
167
  }
164
168
  declare type ECSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
165
169
  /**
@@ -14,7 +14,7 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
14
14
  * <i>Amazon Elastic Container Service Developer Guide</i>.</p>
15
15
  * <p>Alternatively, you can use <a>StartTask</a> to use your own scheduler or
16
16
  * place tasks manually on specific container instances.</p>
17
- * <p>The Amazon ECS API follows an eventual consistency model. This is because the distributed
17
+ * <p>The Amazon ECS API follows an eventual consistency model. This is because of the distributed
18
18
  * nature of the system supporting the API. This means that the result of an API command
19
19
  * you run that affects your Amazon ECS resources might not be immediately visible to all
20
20
  * subsequent commands you run. Keep this in mind when you carry out an API command that