@aws-sdk/client-ecs 3.36.1 → 3.40.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 (38) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/commands/index.js +55 -0
  3. package/dist-cjs/endpoints.js +138 -24
  4. package/dist-cjs/index.js +5 -66
  5. package/dist-cjs/models/models_0.js +26 -4
  6. package/dist-cjs/pagination/index.js +12 -0
  7. package/dist-cjs/protocols/Aws_json1_1.js +25 -0
  8. package/dist-cjs/runtimeConfig.browser.js +6 -3
  9. package/dist-cjs/runtimeConfig.js +5 -3
  10. package/dist-cjs/waiters/index.js +6 -0
  11. package/dist-es/commands/index.js +52 -0
  12. package/dist-es/endpoints.js +138 -24
  13. package/dist-es/index.js +5 -66
  14. package/dist-es/models/models_0.js +20 -0
  15. package/dist-es/pagination/index.js +9 -0
  16. package/dist-es/protocols/Aws_json1_1.js +22 -1
  17. package/dist-es/runtimeConfig.browser.js +3 -2
  18. package/dist-es/runtimeConfig.js +3 -3
  19. package/dist-es/waiters/index.js +3 -0
  20. package/dist-types/ECSClient.d.ts +8 -0
  21. package/dist-types/commands/index.d.ts +52 -0
  22. package/dist-types/index.d.ts +5 -66
  23. package/dist-types/models/models_0.d.ts +170 -25
  24. package/dist-types/pagination/index.d.ts +9 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  26. package/dist-types/runtimeConfig.d.ts +2 -0
  27. package/dist-types/runtimeConfig.native.d.ts +2 -0
  28. package/dist-types/ts3.4/ECSClient.d.ts +4 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +52 -0
  30. package/dist-types/ts3.4/index.d.ts +5 -66
  31. package/dist-types/ts3.4/models/models_0.d.ts +37 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  36. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  37. package/dist-types/waiters/index.d.ts +3 -0
  38. package/package.json +33 -33
@@ -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,89 @@ 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
- regions: ["us-iso-east-1"],
66
- hostname: "ecs.{region}.c2s.ic.gov",
149
+ regions: ["us-iso-east-1", "us-iso-west-1"],
150
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
151
+ variants: [
152
+ {
153
+ hostname: "ecs.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ ],
67
157
  },
68
158
  "aws-iso-b": {
69
159
  regions: ["us-isob-east-1"],
70
- hostname: "ecs.{region}.sc2s.sgov.gov",
160
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
161
+ variants: [
162
+ {
163
+ hostname: "ecs.{region}.sc2s.sgov.gov",
164
+ tags: [],
165
+ },
166
+ ],
71
167
  },
72
168
  "aws-us-gov": {
73
169
  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",
170
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
171
+ variants: [
172
+ {
173
+ hostname: "ecs.{region}.amazonaws.com",
174
+ tags: [],
175
+ },
176
+ {
177
+ hostname: "ecs-fips.{region}.amazonaws.com",
178
+ tags: ["fips"],
179
+ },
180
+ {
181
+ hostname: "ecs-fips.{region}.api.aws",
182
+ tags: ["dualstack", "fips"],
183
+ },
184
+ {
185
+ hostname: "ecs.{region}.api.aws",
186
+ tags: ["dualstack"],
187
+ },
188
+ ],
75
189
  },
76
190
  };
77
191
  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";
@@ -577,6 +577,26 @@ export var ProxyConfiguration;
577
577
  (function (ProxyConfiguration) {
578
578
  ProxyConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
579
579
  })(ProxyConfiguration || (ProxyConfiguration = {}));
580
+ export var CPUArchitecture;
581
+ (function (CPUArchitecture) {
582
+ CPUArchitecture["ARM64"] = "ARM64";
583
+ CPUArchitecture["X86_64"] = "X86_64";
584
+ })(CPUArchitecture || (CPUArchitecture = {}));
585
+ export var OSFamily;
586
+ (function (OSFamily) {
587
+ OSFamily["LINUX"] = "LINUX";
588
+ OSFamily["WINDOWS_SERVER_2004_CORE"] = "WINDOWS_SERVER_2004_CORE";
589
+ OSFamily["WINDOWS_SERVER_2016_FULL"] = "WINDOWS_SERVER_2016_FULL";
590
+ OSFamily["WINDOWS_SERVER_2019_CORE"] = "WINDOWS_SERVER_2019_CORE";
591
+ OSFamily["WINDOWS_SERVER_2019_FULL"] = "WINDOWS_SERVER_2019_FULL";
592
+ OSFamily["WINDOWS_SERVER_2022_CORE"] = "WINDOWS_SERVER_2022_CORE";
593
+ OSFamily["WINDOWS_SERVER_2022_FULL"] = "WINDOWS_SERVER_2022_FULL";
594
+ OSFamily["WINDOWS_SERVER_20H2_CORE"] = "WINDOWS_SERVER_20H2_CORE";
595
+ })(OSFamily || (OSFamily = {}));
596
+ export var RuntimePlatform;
597
+ (function (RuntimePlatform) {
598
+ RuntimePlatform.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
599
+ })(RuntimePlatform || (RuntimePlatform = {}));
580
600
  export var TaskDefinitionStatus;
581
601
  (function (TaskDefinitionStatus) {
582
602
  TaskDefinitionStatus["ACTIVE"] = "ACTIVE";
@@ -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";
@@ -6014,7 +6014,7 @@ var serializeAws_json1_1RegisterContainerInstanceRequest = function (input, cont
6014
6014
  input.versionInfo !== null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }));
6015
6015
  };
6016
6016
  var serializeAws_json1_1RegisterTaskDefinitionRequest = function (input, context) {
6017
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerDefinitions !== undefined &&
6017
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerDefinitions !== undefined &&
6018
6018
  input.containerDefinitions !== null && {
6019
6019
  containerDefinitions: serializeAws_json1_1ContainerDefinitions(input.containerDefinitions, context),
6020
6020
  })), (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.ephemeralStorage !== undefined &&
@@ -6033,6 +6033,9 @@ var serializeAws_json1_1RegisterTaskDefinitionRequest = function (input, context
6033
6033
  })), (input.requiresCompatibilities !== undefined &&
6034
6034
  input.requiresCompatibilities !== null && {
6035
6035
  requiresCompatibilities: serializeAws_json1_1CompatibilityList(input.requiresCompatibilities, context),
6036
+ })), (input.runtimePlatform !== undefined &&
6037
+ input.runtimePlatform !== null && {
6038
+ runtimePlatform: serializeAws_json1_1RuntimePlatform(input.runtimePlatform, context),
6036
6039
  })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn })), (input.volumes !== undefined &&
6037
6040
  input.volumes !== null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }));
6038
6041
  };
@@ -6090,6 +6093,11 @@ var serializeAws_json1_1RunTaskRequest = function (input, context) {
6090
6093
  input.platformVersion !== null && { platformVersion: input.platformVersion })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.referenceId !== undefined && input.referenceId !== null && { referenceId: input.referenceId })), (input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition !== undefined &&
6091
6094
  input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
6092
6095
  };
6096
+ var serializeAws_json1_1RuntimePlatform = function (input, context) {
6097
+ return __assign(__assign({}, (input.cpuArchitecture !== undefined &&
6098
+ input.cpuArchitecture !== null && { cpuArchitecture: input.cpuArchitecture })), (input.operatingSystemFamily !== undefined &&
6099
+ input.operatingSystemFamily !== null && { operatingSystemFamily: input.operatingSystemFamily }));
6100
+ };
6093
6101
  var serializeAws_json1_1Scale = function (input, context) {
6094
6102
  return __assign(__assign({}, (input.unit !== undefined && input.unit !== null && { unit: input.unit })), (input.value !== undefined && input.value !== null && { value: __serializeFloat(input.value) }));
6095
6103
  };
@@ -6955,6 +6963,7 @@ var deserializeAws_json1_1Deployment = function (output, context) {
6955
6963
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
6956
6964
  : undefined,
6957
6965
  pendingCount: __expectInt32(output.pendingCount),
6966
+ platformFamily: __expectString(output.platformFamily),
6958
6967
  platformVersion: __expectString(output.platformVersion),
6959
6968
  rolloutState: __expectString(output.rolloutState),
6960
6969
  rolloutStateReason: __expectString(output.rolloutStateReason),
@@ -7782,6 +7791,12 @@ var deserializeAws_json1_1RunTaskResponse = function (output, context) {
7782
7791
  : undefined,
7783
7792
  };
7784
7793
  };
7794
+ var deserializeAws_json1_1RuntimePlatform = function (output, context) {
7795
+ return {
7796
+ cpuArchitecture: __expectString(output.cpuArchitecture),
7797
+ operatingSystemFamily: __expectString(output.operatingSystemFamily),
7798
+ };
7799
+ };
7785
7800
  var deserializeAws_json1_1Scale = function (output, context) {
7786
7801
  return {
7787
7802
  unit: __expectString(output.unit),
@@ -7849,6 +7864,7 @@ var deserializeAws_json1_1Service = function (output, context) {
7849
7864
  placementStrategy: output.placementStrategy !== undefined && output.placementStrategy !== null
7850
7865
  ? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
7851
7866
  : undefined,
7867
+ platformFamily: __expectString(output.platformFamily),
7852
7868
  platformVersion: __expectString(output.platformVersion),
7853
7869
  propagateTags: __expectString(output.propagateTags),
7854
7870
  roleArn: __expectString(output.roleArn),
@@ -8095,6 +8111,7 @@ var deserializeAws_json1_1Task = function (output, context) {
8095
8111
  overrides: output.overrides !== undefined && output.overrides !== null
8096
8112
  ? deserializeAws_json1_1TaskOverride(output.overrides, context)
8097
8113
  : undefined,
8114
+ platformFamily: __expectString(output.platformFamily),
8098
8115
  platformVersion: __expectString(output.platformVersion),
8099
8116
  pullStartedAt: output.pullStartedAt !== undefined && output.pullStartedAt !== null
8100
8117
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pullStartedAt)))
@@ -8161,6 +8178,9 @@ var deserializeAws_json1_1TaskDefinition = function (output, context) {
8161
8178
  ? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
8162
8179
  : undefined,
8163
8180
  revision: __expectInt32(output.revision),
8181
+ runtimePlatform: output.runtimePlatform !== undefined && output.runtimePlatform !== null
8182
+ ? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
8183
+ : undefined,
8164
8184
  status: __expectString(output.status),
8165
8185
  taskDefinitionArn: __expectString(output.taskDefinitionArn),
8166
8186
  taskRoleArn: __expectString(output.taskRoleArn),
@@ -8232,6 +8252,7 @@ var deserializeAws_json1_1TaskSet = function (output, context) {
8232
8252
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
8233
8253
  : undefined,
8234
8254
  pendingCount: __expectInt32(output.pendingCount),
8255
+ platformFamily: __expectString(output.platformFamily),
8235
8256
  platformVersion: __expectString(output.platformVersion),
8236
8257
  runningCount: __expectInt32(output.runningCount),
8237
8258
  scale: output.scale !== undefined && output.scale !== null
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
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
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- 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;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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 });
21
21
  };
@@ -0,0 +1,3 @@
1
+ export * from "./waitForServicesInactive";
2
+ export * from "./waitForTasksRunning";
3
+ export * from "./waitForTasksStopped";
@@ -128,6 +128,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
128
128
  * Optional logger for logging debug/info/warn/error.
129
129
  */
130
130
  logger?: __Logger;
131
+ /**
132
+ * Enables IPv6/IPv4 dualstack endpoint.
133
+ */
134
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
135
+ /**
136
+ * Enables FIPS compatible endpoints.
137
+ */
138
+ useFipsEndpoint?: boolean | __Provider<boolean>;
131
139
  /**
132
140
  * Unique service identifier.
133
141
  * @internal
@@ -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,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";