@aws-sdk/client-ecs 3.37.0 → 3.41.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/commands/index.js +55 -0
  4. package/dist-cjs/endpoints.js +145 -23
  5. package/dist-cjs/index.js +5 -66
  6. package/dist-cjs/models/models_0.js +51 -5
  7. package/dist-cjs/pagination/index.js +12 -0
  8. package/dist-cjs/protocols/Aws_json1_1.js +58 -0
  9. package/dist-cjs/runtimeConfig.browser.js +6 -3
  10. package/dist-cjs/runtimeConfig.js +5 -3
  11. package/dist-cjs/waiters/index.js +6 -0
  12. package/dist-es/commands/index.js +52 -0
  13. package/dist-es/endpoints.js +145 -23
  14. package/dist-es/index.js +5 -66
  15. package/dist-es/models/models_0.js +40 -0
  16. package/dist-es/pagination/index.js +9 -0
  17. package/dist-es/protocols/Aws_json1_1.js +55 -1
  18. package/dist-es/runtimeConfig.browser.js +3 -2
  19. package/dist-es/runtimeConfig.js +3 -3
  20. package/dist-es/waiters/index.js +3 -0
  21. package/dist-types/ECS.d.ts +147 -152
  22. package/dist-types/ECSClient.d.ts +15 -7
  23. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +5 -5
  24. package/dist-types/commands/CreateClusterCommand.d.ts +5 -5
  25. package/dist-types/commands/CreateServiceCommand.d.ts +52 -51
  26. package/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteAttributesCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +4 -4
  30. package/dist-types/commands/DeleteClusterCommand.d.ts +5 -6
  31. package/dist-types/commands/DeleteServiceCommand.d.ts +2 -2
  32. package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
  33. package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +8 -7
  34. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +8 -9
  35. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeServicesCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
  42. package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +2 -3
  43. package/dist-types/commands/ExecuteCommandCommand.d.ts +1 -1
  44. package/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListAttributesCommand.d.ts +4 -4
  46. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  47. package/dist-types/commands/ListContainerInstancesCommand.d.ts +1 -1
  48. package/dist-types/commands/ListServicesCommand.d.ts +1 -1
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +7 -7
  51. package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +1 -1
  52. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  53. package/dist-types/commands/PutAccountSettingCommand.d.ts +6 -6
  54. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  55. package/dist-types/commands/PutAttributesCommand.d.ts +3 -3
  56. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +7 -7
  57. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +3 -4
  58. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -2
  59. package/dist-types/commands/RunTaskCommand.d.ts +6 -6
  60. package/dist-types/commands/StartTaskCommand.d.ts +1 -1
  61. package/dist-types/commands/StopTaskCommand.d.ts +1 -1
  62. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +2 -3
  63. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +2 -3
  64. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +2 -3
  65. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  66. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +1 -1
  68. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -1
  69. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +4 -4
  71. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +6 -6
  72. package/dist-types/commands/UpdateServiceCommand.d.ts +16 -16
  73. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  75. package/dist-types/commands/index.d.ts +52 -0
  76. package/dist-types/index.d.ts +5 -66
  77. package/dist-types/models/models_0.d.ts +1132 -910
  78. package/dist-types/pagination/index.d.ts +9 -0
  79. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  80. package/dist-types/runtimeConfig.d.ts +2 -0
  81. package/dist-types/runtimeConfig.native.d.ts +2 -0
  82. package/dist-types/ts3.4/ECSClient.d.ts +4 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +52 -0
  84. package/dist-types/ts3.4/index.d.ts +5 -66
  85. package/dist-types/ts3.4/models/models_0.d.ts +75 -0
  86. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  89. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  90. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  91. package/dist-types/waiters/index.d.ts +3 -0
  92. package/package.json +27 -27
@@ -5988,6 +5988,10 @@ const serializeAws_json1_1RegisterTaskDefinitionRequest = (input, context) => {
5988
5988
  input.requiresCompatibilities !== null && {
5989
5989
  requiresCompatibilities: serializeAws_json1_1CompatibilityList(input.requiresCompatibilities, context),
5990
5990
  }),
5991
+ ...(input.runtimePlatform !== undefined &&
5992
+ input.runtimePlatform !== null && {
5993
+ runtimePlatform: serializeAws_json1_1RuntimePlatform(input.runtimePlatform, context),
5994
+ }),
5991
5995
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
5992
5996
  ...(input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn }),
5993
5997
  ...(input.volumes !== undefined &&
@@ -6078,6 +6082,14 @@ const serializeAws_json1_1RunTaskRequest = (input, context) => {
6078
6082
  input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
6079
6083
  };
6080
6084
  };
6085
+ const serializeAws_json1_1RuntimePlatform = (input, context) => {
6086
+ return {
6087
+ ...(input.cpuArchitecture !== undefined &&
6088
+ input.cpuArchitecture !== null && { cpuArchitecture: input.cpuArchitecture }),
6089
+ ...(input.operatingSystemFamily !== undefined &&
6090
+ input.operatingSystemFamily !== null && { operatingSystemFamily: input.operatingSystemFamily }),
6091
+ };
6092
+ };
6081
6093
  const serializeAws_json1_1Scale = (input, context) => {
6082
6094
  return {
6083
6095
  ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
@@ -6923,6 +6935,9 @@ const deserializeAws_json1_1ContainerInstance = (output, context) => {
6923
6935
  capacityProviderName: smithy_client_1.expectString(output.capacityProviderName),
6924
6936
  containerInstanceArn: smithy_client_1.expectString(output.containerInstanceArn),
6925
6937
  ec2InstanceId: smithy_client_1.expectString(output.ec2InstanceId),
6938
+ healthStatus: output.healthStatus !== undefined && output.healthStatus !== null
6939
+ ? deserializeAws_json1_1ContainerInstanceHealthStatus(output.healthStatus, context)
6940
+ : undefined,
6926
6941
  pendingTasksCount: smithy_client_1.expectInt32(output.pendingTasksCount),
6927
6942
  registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
6928
6943
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.registeredAt)))
@@ -6943,6 +6958,14 @@ const deserializeAws_json1_1ContainerInstance = (output, context) => {
6943
6958
  : undefined,
6944
6959
  };
6945
6960
  };
6961
+ const deserializeAws_json1_1ContainerInstanceHealthStatus = (output, context) => {
6962
+ return {
6963
+ details: output.details !== undefined && output.details !== null
6964
+ ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context)
6965
+ : undefined,
6966
+ overallStatus: smithy_client_1.expectString(output.overallStatus),
6967
+ };
6968
+ };
6946
6969
  const deserializeAws_json1_1ContainerInstances = (output, context) => {
6947
6970
  return (output || [])
6948
6971
  .filter((e) => e != null)
@@ -7079,6 +7102,7 @@ const deserializeAws_json1_1Deployment = (output, context) => {
7079
7102
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
7080
7103
  : undefined,
7081
7104
  pendingCount: smithy_client_1.expectInt32(output.pendingCount),
7105
+ platformFamily: smithy_client_1.expectString(output.platformFamily),
7082
7106
  platformVersion: smithy_client_1.expectString(output.platformVersion),
7083
7107
  rolloutState: smithy_client_1.expectString(output.rolloutState),
7084
7108
  rolloutStateReason: smithy_client_1.expectString(output.rolloutStateReason),
@@ -7465,6 +7489,28 @@ const deserializeAws_json1_1InferenceAccelerators = (output, context) => {
7465
7489
  return deserializeAws_json1_1InferenceAccelerator(entry, context);
7466
7490
  });
7467
7491
  };
7492
+ const deserializeAws_json1_1InstanceHealthCheckResult = (output, context) => {
7493
+ return {
7494
+ lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
7495
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastStatusChange)))
7496
+ : undefined,
7497
+ lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
7498
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdated)))
7499
+ : undefined,
7500
+ status: smithy_client_1.expectString(output.status),
7501
+ type: smithy_client_1.expectString(output.type),
7502
+ };
7503
+ };
7504
+ const deserializeAws_json1_1InstanceHealthCheckResultList = (output, context) => {
7505
+ return (output || [])
7506
+ .filter((e) => e != null)
7507
+ .map((entry) => {
7508
+ if (entry === null) {
7509
+ return null;
7510
+ }
7511
+ return deserializeAws_json1_1InstanceHealthCheckResult(entry, context);
7512
+ });
7513
+ };
7468
7514
  const deserializeAws_json1_1InvalidParameterException = (output, context) => {
7469
7515
  return {
7470
7516
  message: smithy_client_1.expectString(output.message),
@@ -7909,6 +7955,12 @@ const deserializeAws_json1_1RunTaskResponse = (output, context) => {
7909
7955
  : undefined,
7910
7956
  };
7911
7957
  };
7958
+ const deserializeAws_json1_1RuntimePlatform = (output, context) => {
7959
+ return {
7960
+ cpuArchitecture: smithy_client_1.expectString(output.cpuArchitecture),
7961
+ operatingSystemFamily: smithy_client_1.expectString(output.operatingSystemFamily),
7962
+ };
7963
+ };
7912
7964
  const deserializeAws_json1_1Scale = (output, context) => {
7913
7965
  return {
7914
7966
  unit: smithy_client_1.expectString(output.unit),
@@ -7976,6 +8028,7 @@ const deserializeAws_json1_1Service = (output, context) => {
7976
8028
  placementStrategy: output.placementStrategy !== undefined && output.placementStrategy !== null
7977
8029
  ? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
7978
8030
  : undefined,
8031
+ platformFamily: smithy_client_1.expectString(output.platformFamily),
7979
8032
  platformVersion: smithy_client_1.expectString(output.platformVersion),
7980
8033
  propagateTags: smithy_client_1.expectString(output.propagateTags),
7981
8034
  roleArn: smithy_client_1.expectString(output.roleArn),
@@ -8223,6 +8276,7 @@ const deserializeAws_json1_1Task = (output, context) => {
8223
8276
  overrides: output.overrides !== undefined && output.overrides !== null
8224
8277
  ? deserializeAws_json1_1TaskOverride(output.overrides, context)
8225
8278
  : undefined,
8279
+ platformFamily: smithy_client_1.expectString(output.platformFamily),
8226
8280
  platformVersion: smithy_client_1.expectString(output.platformVersion),
8227
8281
  pullStartedAt: output.pullStartedAt !== undefined && output.pullStartedAt !== null
8228
8282
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.pullStartedAt)))
@@ -8289,6 +8343,9 @@ const deserializeAws_json1_1TaskDefinition = (output, context) => {
8289
8343
  ? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
8290
8344
  : undefined,
8291
8345
  revision: smithy_client_1.expectInt32(output.revision),
8346
+ runtimePlatform: output.runtimePlatform !== undefined && output.runtimePlatform !== null
8347
+ ? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
8348
+ : undefined,
8292
8349
  status: smithy_client_1.expectString(output.status),
8293
8350
  taskDefinitionArn: smithy_client_1.expectString(output.taskDefinitionArn),
8294
8351
  taskRoleArn: smithy_client_1.expectString(output.taskRoleArn),
@@ -8360,6 +8417,7 @@ const deserializeAws_json1_1TaskSet = (output, context) => {
8360
8417
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
8361
8418
  : undefined,
8362
8419
  pendingCount: smithy_client_1.expectInt32(output.pendingCount),
8420
+ platformFamily: smithy_client_1.expectString(output.platformFamily),
8363
8421
  platformVersion: smithy_client_1.expectString(output.platformVersion),
8364
8422
  runningCount: smithy_client_1.expectInt32(output.runningCount),
8365
8423
  scale: output.scale !== undefined && output.scale !== null
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForServicesInactive"), exports);
5
+ tslib_1.__exportStar(require("./waitForTasksRunning"), exports);
6
+ tslib_1.__exportStar(require("./waitForTasksStopped"), exports);
@@ -0,0 +1,52 @@
1
+ export * from "./CreateCapacityProviderCommand";
2
+ export * from "./CreateClusterCommand";
3
+ export * from "./CreateServiceCommand";
4
+ export * from "./CreateTaskSetCommand";
5
+ export * from "./DeleteAccountSettingCommand";
6
+ export * from "./DeleteAttributesCommand";
7
+ export * from "./DeleteCapacityProviderCommand";
8
+ export * from "./DeleteClusterCommand";
9
+ export * from "./DeleteServiceCommand";
10
+ export * from "./DeleteTaskSetCommand";
11
+ export * from "./DeregisterContainerInstanceCommand";
12
+ export * from "./DeregisterTaskDefinitionCommand";
13
+ export * from "./DescribeCapacityProvidersCommand";
14
+ export * from "./DescribeClustersCommand";
15
+ export * from "./DescribeContainerInstancesCommand";
16
+ export * from "./DescribeServicesCommand";
17
+ export * from "./DescribeTaskDefinitionCommand";
18
+ export * from "./DescribeTaskSetsCommand";
19
+ export * from "./DescribeTasksCommand";
20
+ export * from "./DiscoverPollEndpointCommand";
21
+ export * from "./ExecuteCommandCommand";
22
+ export * from "./ListAccountSettingsCommand";
23
+ export * from "./ListAttributesCommand";
24
+ export * from "./ListClustersCommand";
25
+ export * from "./ListContainerInstancesCommand";
26
+ export * from "./ListServicesCommand";
27
+ export * from "./ListTagsForResourceCommand";
28
+ export * from "./ListTaskDefinitionFamiliesCommand";
29
+ export * from "./ListTaskDefinitionsCommand";
30
+ export * from "./ListTasksCommand";
31
+ export * from "./PutAccountSettingCommand";
32
+ export * from "./PutAccountSettingDefaultCommand";
33
+ export * from "./PutAttributesCommand";
34
+ export * from "./PutClusterCapacityProvidersCommand";
35
+ export * from "./RegisterContainerInstanceCommand";
36
+ export * from "./RegisterTaskDefinitionCommand";
37
+ export * from "./RunTaskCommand";
38
+ export * from "./StartTaskCommand";
39
+ export * from "./StopTaskCommand";
40
+ export * from "./SubmitAttachmentStateChangesCommand";
41
+ export * from "./SubmitContainerStateChangeCommand";
42
+ export * from "./SubmitTaskStateChangeCommand";
43
+ export * from "./TagResourceCommand";
44
+ export * from "./UntagResourceCommand";
45
+ export * from "./UpdateCapacityProviderCommand";
46
+ export * from "./UpdateClusterCommand";
47
+ export * from "./UpdateClusterSettingsCommand";
48
+ export * from "./UpdateContainerAgentCommand";
49
+ export * from "./UpdateContainerInstancesStateCommand";
50
+ export * from "./UpdateServiceCommand";
51
+ export * from "./UpdateServicePrimaryTaskSetCommand";
52
+ export * from "./UpdateTaskSetCommand";
@@ -1,29 +1,77 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "ecs-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "ecs.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "ecs-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "ecs-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "ecs.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "ecs-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-east-1": {
13
- hostname: "ecs-fips.us-gov-east-1.amazonaws.com",
14
- signingRegion: "us-gov-east-1",
28
+ "us-gov-east-1": {
29
+ variants: [
30
+ {
31
+ hostname: "ecs.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "ecs-fips.us-gov-east-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-gov-west-1": {
17
- hostname: "ecs-fips.us-gov-west-1.amazonaws.com",
18
- signingRegion: "us-gov-west-1",
40
+ "us-gov-west-1": {
41
+ variants: [
42
+ {
43
+ hostname: "ecs.us-gov-west-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "ecs-fips.us-gov-west-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-1": {
21
- hostname: "ecs-fips.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
52
+ "us-west-1": {
53
+ variants: [
54
+ {
55
+ hostname: "ecs.us-west-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "ecs-fips.us-west-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-us-west-2": {
25
- hostname: "ecs-fips.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
64
+ "us-west-2": {
65
+ variants: [
66
+ {
67
+ hostname: "ecs.us-west-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "ecs-fips.us-west-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
76
  };
29
77
  var partitionHash = {
@@ -55,23 +103,97 @@ var partitionHash = {
55
103
  "us-west-1",
56
104
  "us-west-2",
57
105
  ],
58
- hostname: "ecs.{region}.amazonaws.com",
106
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
107
+ variants: [
108
+ {
109
+ hostname: "ecs.{region}.amazonaws.com",
110
+ tags: [],
111
+ },
112
+ {
113
+ hostname: "ecs-fips.{region}.amazonaws.com",
114
+ tags: ["fips"],
115
+ },
116
+ {
117
+ hostname: "ecs-fips.{region}.api.aws",
118
+ tags: ["dualstack", "fips"],
119
+ },
120
+ {
121
+ hostname: "ecs.{region}.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
59
125
  },
60
126
  "aws-cn": {
61
127
  regions: ["cn-north-1", "cn-northwest-1"],
62
- hostname: "ecs.{region}.amazonaws.com.cn",
128
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
129
+ variants: [
130
+ {
131
+ hostname: "ecs.{region}.amazonaws.com.cn",
132
+ tags: [],
133
+ },
134
+ {
135
+ hostname: "ecs-fips.{region}.amazonaws.com.cn",
136
+ tags: ["fips"],
137
+ },
138
+ {
139
+ hostname: "ecs-fips.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack", "fips"],
141
+ },
142
+ {
143
+ hostname: "ecs.{region}.api.amazonwebservices.com.cn",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
63
147
  },
64
148
  "aws-iso": {
65
149
  regions: ["us-iso-east-1", "us-iso-west-1"],
66
- hostname: "ecs.{region}.c2s.ic.gov",
150
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
151
+ variants: [
152
+ {
153
+ hostname: "ecs.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ {
157
+ hostname: "ecs-fips.{region}.c2s.ic.gov",
158
+ tags: ["fips"],
159
+ },
160
+ ],
67
161
  },
68
162
  "aws-iso-b": {
69
163
  regions: ["us-isob-east-1"],
70
- hostname: "ecs.{region}.sc2s.sgov.gov",
164
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
165
+ variants: [
166
+ {
167
+ hostname: "ecs.{region}.sc2s.sgov.gov",
168
+ tags: [],
169
+ },
170
+ {
171
+ hostname: "ecs-fips.{region}.sc2s.sgov.gov",
172
+ tags: ["fips"],
173
+ },
174
+ ],
71
175
  },
72
176
  "aws-us-gov": {
73
177
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
74
- hostname: "ecs.{region}.amazonaws.com",
178
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
179
+ variants: [
180
+ {
181
+ hostname: "ecs.{region}.amazonaws.com",
182
+ tags: [],
183
+ },
184
+ {
185
+ hostname: "ecs-fips.{region}.amazonaws.com",
186
+ tags: ["fips"],
187
+ },
188
+ {
189
+ hostname: "ecs-fips.{region}.api.aws",
190
+ tags: ["dualstack", "fips"],
191
+ },
192
+ {
193
+ hostname: "ecs.{region}.api.aws",
194
+ tags: ["dualstack"],
195
+ },
196
+ ],
75
197
  },
76
198
  };
77
199
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,67 +1,6 @@
1
- export * from "./ECSClient";
2
1
  export * from "./ECS";
3
- export * from "./commands/CreateCapacityProviderCommand";
4
- export * from "./commands/CreateClusterCommand";
5
- export * from "./commands/CreateServiceCommand";
6
- export * from "./commands/CreateTaskSetCommand";
7
- export * from "./commands/DeleteAccountSettingCommand";
8
- export * from "./commands/DeleteAttributesCommand";
9
- export * from "./commands/DeleteCapacityProviderCommand";
10
- export * from "./commands/DeleteClusterCommand";
11
- export * from "./commands/DeleteServiceCommand";
12
- export * from "./commands/DeleteTaskSetCommand";
13
- export * from "./commands/DeregisterContainerInstanceCommand";
14
- export * from "./commands/DeregisterTaskDefinitionCommand";
15
- export * from "./commands/DescribeCapacityProvidersCommand";
16
- export * from "./commands/DescribeClustersCommand";
17
- export * from "./commands/DescribeContainerInstancesCommand";
18
- export * from "./commands/DescribeServicesCommand";
19
- export * from "./waiters/waitForServicesInactive";
20
- export * from "./commands/DescribeTaskDefinitionCommand";
21
- export * from "./commands/DescribeTasksCommand";
22
- export * from "./waiters/waitForTasksRunning";
23
- export * from "./waiters/waitForTasksStopped";
24
- export * from "./commands/DescribeTaskSetsCommand";
25
- export * from "./commands/DiscoverPollEndpointCommand";
26
- export * from "./commands/ExecuteCommandCommand";
27
- export * from "./commands/ListAccountSettingsCommand";
28
- export * from "./pagination/ListAccountSettingsPaginator";
29
- export * from "./commands/ListAttributesCommand";
30
- export * from "./pagination/ListAttributesPaginator";
31
- export * from "./commands/ListClustersCommand";
32
- export * from "./pagination/ListClustersPaginator";
33
- export * from "./commands/ListContainerInstancesCommand";
34
- export * from "./pagination/ListContainerInstancesPaginator";
35
- export * from "./commands/ListServicesCommand";
36
- export * from "./pagination/ListServicesPaginator";
37
- export * from "./commands/ListTagsForResourceCommand";
38
- export * from "./commands/ListTaskDefinitionFamiliesCommand";
39
- export * from "./pagination/ListTaskDefinitionFamiliesPaginator";
40
- export * from "./commands/ListTaskDefinitionsCommand";
41
- export * from "./pagination/ListTaskDefinitionsPaginator";
42
- export * from "./commands/ListTasksCommand";
43
- export * from "./pagination/ListTasksPaginator";
44
- export * from "./commands/PutAccountSettingCommand";
45
- export * from "./commands/PutAccountSettingDefaultCommand";
46
- export * from "./commands/PutAttributesCommand";
47
- export * from "./commands/PutClusterCapacityProvidersCommand";
48
- export * from "./commands/RegisterContainerInstanceCommand";
49
- export * from "./commands/RegisterTaskDefinitionCommand";
50
- export * from "./commands/RunTaskCommand";
51
- export * from "./commands/StartTaskCommand";
52
- export * from "./commands/StopTaskCommand";
53
- export * from "./commands/SubmitAttachmentStateChangesCommand";
54
- export * from "./commands/SubmitContainerStateChangeCommand";
55
- export * from "./commands/SubmitTaskStateChangeCommand";
56
- export * from "./commands/TagResourceCommand";
57
- export * from "./commands/UntagResourceCommand";
58
- export * from "./commands/UpdateCapacityProviderCommand";
59
- export * from "./commands/UpdateClusterCommand";
60
- export * from "./commands/UpdateClusterSettingsCommand";
61
- export * from "./commands/UpdateContainerAgentCommand";
62
- export * from "./commands/UpdateContainerInstancesStateCommand";
63
- export * from "./commands/UpdateServiceCommand";
64
- export * from "./commands/UpdateServicePrimaryTaskSetCommand";
65
- export * from "./commands/UpdateTaskSetCommand";
66
- export * from "./pagination/Interfaces";
67
- export * from "./models/index";
2
+ export * from "./ECSClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -372,6 +372,25 @@ export var DeregisterContainerInstanceRequest;
372
372
  (function (DeregisterContainerInstanceRequest) {
373
373
  DeregisterContainerInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
374
374
  })(DeregisterContainerInstanceRequest || (DeregisterContainerInstanceRequest = {}));
375
+ export var InstanceHealthCheckState;
376
+ (function (InstanceHealthCheckState) {
377
+ InstanceHealthCheckState["IMPAIRED"] = "IMPAIRED";
378
+ InstanceHealthCheckState["INITIALIZING"] = "INITIALIZING";
379
+ InstanceHealthCheckState["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
380
+ InstanceHealthCheckState["OK"] = "OK";
381
+ })(InstanceHealthCheckState || (InstanceHealthCheckState = {}));
382
+ export var InstanceHealthCheckType;
383
+ (function (InstanceHealthCheckType) {
384
+ InstanceHealthCheckType["CONTAINER_RUNTIME"] = "CONTAINER_RUNTIME";
385
+ })(InstanceHealthCheckType || (InstanceHealthCheckType = {}));
386
+ export var InstanceHealthCheckResult;
387
+ (function (InstanceHealthCheckResult) {
388
+ InstanceHealthCheckResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
389
+ })(InstanceHealthCheckResult || (InstanceHealthCheckResult = {}));
390
+ export var ContainerInstanceHealthStatus;
391
+ (function (ContainerInstanceHealthStatus) {
392
+ ContainerInstanceHealthStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
+ })(ContainerInstanceHealthStatus || (ContainerInstanceHealthStatus = {}));
375
394
  export var Resource;
376
395
  (function (Resource) {
377
396
  Resource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -577,6 +596,26 @@ export var ProxyConfiguration;
577
596
  (function (ProxyConfiguration) {
578
597
  ProxyConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
579
598
  })(ProxyConfiguration || (ProxyConfiguration = {}));
599
+ export var CPUArchitecture;
600
+ (function (CPUArchitecture) {
601
+ CPUArchitecture["ARM64"] = "ARM64";
602
+ CPUArchitecture["X86_64"] = "X86_64";
603
+ })(CPUArchitecture || (CPUArchitecture = {}));
604
+ export var OSFamily;
605
+ (function (OSFamily) {
606
+ OSFamily["LINUX"] = "LINUX";
607
+ OSFamily["WINDOWS_SERVER_2004_CORE"] = "WINDOWS_SERVER_2004_CORE";
608
+ OSFamily["WINDOWS_SERVER_2016_FULL"] = "WINDOWS_SERVER_2016_FULL";
609
+ OSFamily["WINDOWS_SERVER_2019_CORE"] = "WINDOWS_SERVER_2019_CORE";
610
+ OSFamily["WINDOWS_SERVER_2019_FULL"] = "WINDOWS_SERVER_2019_FULL";
611
+ OSFamily["WINDOWS_SERVER_2022_CORE"] = "WINDOWS_SERVER_2022_CORE";
612
+ OSFamily["WINDOWS_SERVER_2022_FULL"] = "WINDOWS_SERVER_2022_FULL";
613
+ OSFamily["WINDOWS_SERVER_20H2_CORE"] = "WINDOWS_SERVER_20H2_CORE";
614
+ })(OSFamily || (OSFamily = {}));
615
+ export var RuntimePlatform;
616
+ (function (RuntimePlatform) {
617
+ RuntimePlatform.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
618
+ })(RuntimePlatform || (RuntimePlatform = {}));
580
619
  export var TaskDefinitionStatus;
581
620
  (function (TaskDefinitionStatus) {
582
621
  TaskDefinitionStatus["ACTIVE"] = "ACTIVE";
@@ -667,6 +706,7 @@ export var DescribeClustersResponse;
667
706
  })(DescribeClustersResponse || (DescribeClustersResponse = {}));
668
707
  export var ContainerInstanceField;
669
708
  (function (ContainerInstanceField) {
709
+ ContainerInstanceField["CONTAINER_INSTANCE_HEALTH"] = "CONTAINER_INSTANCE_HEALTH";
670
710
  ContainerInstanceField["TAGS"] = "TAGS";
671
711
  })(ContainerInstanceField || (ContainerInstanceField = {}));
672
712
  export var DescribeContainerInstancesRequest;
@@ -0,0 +1,9 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAccountSettingsPaginator";
3
+ export * from "./ListAttributesPaginator";
4
+ export * from "./ListClustersPaginator";
5
+ export * from "./ListContainerInstancesPaginator";
6
+ export * from "./ListServicesPaginator";
7
+ export * from "./ListTaskDefinitionFamiliesPaginator";
8
+ export * from "./ListTaskDefinitionsPaginator";
9
+ export * from "./ListTasksPaginator";