@aws-sdk/client-ecs 3.38.0 → 3.42.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 (76) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/endpoints.js +145 -23
  4. package/dist-cjs/models/models_0.js +51 -5
  5. package/dist-cjs/protocols/Aws_json1_1.js +58 -0
  6. package/dist-cjs/runtimeConfig.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-es/endpoints.js +145 -23
  9. package/dist-es/models/models_0.js +40 -0
  10. package/dist-es/protocols/Aws_json1_1.js +55 -1
  11. package/dist-es/runtimeConfig.browser.js +3 -2
  12. package/dist-es/runtimeConfig.js +3 -3
  13. package/dist-types/ECS.d.ts +147 -152
  14. package/dist-types/ECSClient.d.ts +15 -7
  15. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +5 -5
  16. package/dist-types/commands/CreateClusterCommand.d.ts +5 -5
  17. package/dist-types/commands/CreateServiceCommand.d.ts +52 -51
  18. package/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteAttributesCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +4 -4
  22. package/dist-types/commands/DeleteClusterCommand.d.ts +5 -6
  23. package/dist-types/commands/DeleteServiceCommand.d.ts +2 -2
  24. package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
  25. package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +8 -7
  26. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +8 -9
  27. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeServicesCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
  34. package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +2 -3
  35. package/dist-types/commands/ExecuteCommandCommand.d.ts +1 -1
  36. package/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
  37. package/dist-types/commands/ListAttributesCommand.d.ts +4 -4
  38. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  39. package/dist-types/commands/ListContainerInstancesCommand.d.ts +1 -1
  40. package/dist-types/commands/ListServicesCommand.d.ts +1 -1
  41. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +7 -7
  43. package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +1 -1
  44. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  45. package/dist-types/commands/PutAccountSettingCommand.d.ts +6 -6
  46. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  47. package/dist-types/commands/PutAttributesCommand.d.ts +3 -3
  48. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +7 -7
  49. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +3 -4
  50. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -2
  51. package/dist-types/commands/RunTaskCommand.d.ts +6 -6
  52. package/dist-types/commands/StartTaskCommand.d.ts +1 -1
  53. package/dist-types/commands/StopTaskCommand.d.ts +1 -1
  54. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +2 -3
  55. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +2 -3
  56. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +2 -3
  57. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  58. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +1 -1
  60. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -1
  61. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +1 -1
  62. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +4 -4
  63. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +6 -6
  64. package/dist-types/commands/UpdateServiceCommand.d.ts +16 -16
  65. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  66. package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  67. package/dist-types/models/models_0.d.ts +1132 -910
  68. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  69. package/dist-types/runtimeConfig.d.ts +2 -0
  70. package/dist-types/runtimeConfig.native.d.ts +2 -0
  71. package/dist-types/ts3.4/ECSClient.d.ts +4 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +75 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  76. package/package.json +26 -26
@@ -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 () {
@@ -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;
@@ -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
  };
@@ -6799,6 +6807,9 @@ var deserializeAws_json1_1ContainerInstance = function (output, context) {
6799
6807
  capacityProviderName: __expectString(output.capacityProviderName),
6800
6808
  containerInstanceArn: __expectString(output.containerInstanceArn),
6801
6809
  ec2InstanceId: __expectString(output.ec2InstanceId),
6810
+ healthStatus: output.healthStatus !== undefined && output.healthStatus !== null
6811
+ ? deserializeAws_json1_1ContainerInstanceHealthStatus(output.healthStatus, context)
6812
+ : undefined,
6802
6813
  pendingTasksCount: __expectInt32(output.pendingTasksCount),
6803
6814
  registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
6804
6815
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
@@ -6819,6 +6830,14 @@ var deserializeAws_json1_1ContainerInstance = function (output, context) {
6819
6830
  : undefined,
6820
6831
  };
6821
6832
  };
6833
+ var deserializeAws_json1_1ContainerInstanceHealthStatus = function (output, context) {
6834
+ return {
6835
+ details: output.details !== undefined && output.details !== null
6836
+ ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context)
6837
+ : undefined,
6838
+ overallStatus: __expectString(output.overallStatus),
6839
+ };
6840
+ };
6822
6841
  var deserializeAws_json1_1ContainerInstances = function (output, context) {
6823
6842
  return (output || [])
6824
6843
  .filter(function (e) { return e != null; })
@@ -6955,6 +6974,7 @@ var deserializeAws_json1_1Deployment = function (output, context) {
6955
6974
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
6956
6975
  : undefined,
6957
6976
  pendingCount: __expectInt32(output.pendingCount),
6977
+ platformFamily: __expectString(output.platformFamily),
6958
6978
  platformVersion: __expectString(output.platformVersion),
6959
6979
  rolloutState: __expectString(output.rolloutState),
6960
6980
  rolloutStateReason: __expectString(output.rolloutStateReason),
@@ -7339,6 +7359,28 @@ var deserializeAws_json1_1InferenceAccelerators = function (output, context) {
7339
7359
  return deserializeAws_json1_1InferenceAccelerator(entry, context);
7340
7360
  });
7341
7361
  };
7362
+ var deserializeAws_json1_1InstanceHealthCheckResult = function (output, context) {
7363
+ return {
7364
+ lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
7365
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChange)))
7366
+ : undefined,
7367
+ lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
7368
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
7369
+ : undefined,
7370
+ status: __expectString(output.status),
7371
+ type: __expectString(output.type),
7372
+ };
7373
+ };
7374
+ var deserializeAws_json1_1InstanceHealthCheckResultList = function (output, context) {
7375
+ return (output || [])
7376
+ .filter(function (e) { return e != null; })
7377
+ .map(function (entry) {
7378
+ if (entry === null) {
7379
+ return null;
7380
+ }
7381
+ return deserializeAws_json1_1InstanceHealthCheckResult(entry, context);
7382
+ });
7383
+ };
7342
7384
  var deserializeAws_json1_1InvalidParameterException = function (output, context) {
7343
7385
  return {
7344
7386
  message: __expectString(output.message),
@@ -7782,6 +7824,12 @@ var deserializeAws_json1_1RunTaskResponse = function (output, context) {
7782
7824
  : undefined,
7783
7825
  };
7784
7826
  };
7827
+ var deserializeAws_json1_1RuntimePlatform = function (output, context) {
7828
+ return {
7829
+ cpuArchitecture: __expectString(output.cpuArchitecture),
7830
+ operatingSystemFamily: __expectString(output.operatingSystemFamily),
7831
+ };
7832
+ };
7785
7833
  var deserializeAws_json1_1Scale = function (output, context) {
7786
7834
  return {
7787
7835
  unit: __expectString(output.unit),
@@ -7849,6 +7897,7 @@ var deserializeAws_json1_1Service = function (output, context) {
7849
7897
  placementStrategy: output.placementStrategy !== undefined && output.placementStrategy !== null
7850
7898
  ? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
7851
7899
  : undefined,
7900
+ platformFamily: __expectString(output.platformFamily),
7852
7901
  platformVersion: __expectString(output.platformVersion),
7853
7902
  propagateTags: __expectString(output.propagateTags),
7854
7903
  roleArn: __expectString(output.roleArn),
@@ -8095,6 +8144,7 @@ var deserializeAws_json1_1Task = function (output, context) {
8095
8144
  overrides: output.overrides !== undefined && output.overrides !== null
8096
8145
  ? deserializeAws_json1_1TaskOverride(output.overrides, context)
8097
8146
  : undefined,
8147
+ platformFamily: __expectString(output.platformFamily),
8098
8148
  platformVersion: __expectString(output.platformVersion),
8099
8149
  pullStartedAt: output.pullStartedAt !== undefined && output.pullStartedAt !== null
8100
8150
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pullStartedAt)))
@@ -8161,6 +8211,9 @@ var deserializeAws_json1_1TaskDefinition = function (output, context) {
8161
8211
  ? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
8162
8212
  : undefined,
8163
8213
  revision: __expectInt32(output.revision),
8214
+ runtimePlatform: output.runtimePlatform !== undefined && output.runtimePlatform !== null
8215
+ ? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
8216
+ : undefined,
8164
8217
  status: __expectString(output.status),
8165
8218
  taskDefinitionArn: __expectString(output.taskDefinitionArn),
8166
8219
  taskRoleArn: __expectString(output.taskRoleArn),
@@ -8232,6 +8285,7 @@ var deserializeAws_json1_1TaskSet = function (output, context) {
8232
8285
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
8233
8286
  : undefined,
8234
8287
  pendingCount: __expectInt32(output.pendingCount),
8288
+ platformFamily: __expectString(output.platformFamily),
8235
8289
  platformVersion: __expectString(output.platformVersion),
8236
8290
  runningCount: __expectInt32(output.runningCount),
8237
8291
  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
  };