@aws-sdk/client-ecs 3.896.0 → 3.900.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 (48) hide show
  1. package/dist-cjs/index.js +395 -65
  2. package/dist-es/models/models_0.js +111 -93
  3. package/dist-es/models/models_1.js +69 -0
  4. package/dist-es/protocols/Aws_json1_1.js +227 -14
  5. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +188 -9
  6. package/dist-types/commands/CreateServiceCommand.d.ts +4 -4
  7. package/dist-types/commands/CreateTaskSetCommand.d.ts +2 -2
  8. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +99 -2
  9. package/dist-types/commands/DeleteClusterCommand.d.ts +3 -0
  10. package/dist-types/commands/DeleteServiceCommand.d.ts +3 -3
  11. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +2 -2
  12. package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
  13. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +2 -2
  14. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +99 -2
  15. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +1 -1
  16. package/dist-types/commands/DescribeServicesCommand.d.ts +3 -3
  17. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +2 -2
  18. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
  20. package/dist-types/commands/ListServicesCommand.d.ts +1 -1
  21. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  22. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  23. package/dist-types/commands/PutAttributesCommand.d.ts +1 -1
  24. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +2 -1
  25. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  26. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +4 -4
  27. package/dist-types/commands/RunTaskCommand.d.ts +3 -3
  28. package/dist-types/commands/StartTaskCommand.d.ts +2 -2
  29. package/dist-types/commands/StopServiceDeploymentCommand.d.ts +1 -1
  30. package/dist-types/commands/StopTaskCommand.d.ts +2 -3
  31. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +188 -2
  32. package/dist-types/commands/UpdateServiceCommand.d.ts +3 -3
  33. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  35. package/dist-types/models/models_0.d.ts +8064 -8888
  36. package/dist-types/models/models_1.d.ts +1487 -11
  37. package/dist-types/ts3.4/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/PutAttributesCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/PutClusterCapacityProvidersCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/StopServiceDeploymentCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -2
  46. package/dist-types/ts3.4/models/models_0.d.ts +217 -205
  47. package/dist-types/ts3.4/models/models_1.d.ts +233 -1
  48. package/package.json +11 -11
@@ -3,12 +3,12 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
5
  import { ECSServiceException as __BaseException } from "../models/ECSServiceException";
6
- import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, ConflictException, InvalidParameterException, LimitExceededException, NamespaceNotFoundException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceDeploymentNotFoundException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
7
- import { MissingVersionException, NoUpdateAvailableException, } from "../models/models_1";
6
+ import { AccessDeniedException, ClientException, ClusterContainsCapacityProviderException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, InvalidParameterException, LimitExceededException, NamespaceNotFoundException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
7
+ import { AttributeLimitExceededException, BlockedException, ConflictException, MissingVersionException, NoUpdateAvailableException, ResourceInUseException, ServiceDeploymentNotFoundException, } from "../models/models_1";
8
8
  export const se_CreateCapacityProviderCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("CreateCapacityProvider");
10
10
  let body;
11
- body = JSON.stringify(_json(input));
11
+ body = JSON.stringify(se_CreateCapacityProviderRequest(input, context));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  export const se_CreateClusterCommand = async (input, context) => {
@@ -314,7 +314,7 @@ export const se_UntagResourceCommand = async (input, context) => {
314
314
  export const se_UpdateCapacityProviderCommand = async (input, context) => {
315
315
  const headers = sharedHeaders("UpdateCapacityProvider");
316
316
  let body;
317
- body = JSON.stringify(_json(input));
317
+ body = JSON.stringify(se_UpdateCapacityProviderRequest(input, context));
318
318
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
319
  };
320
320
  export const se_UpdateClusterCommand = async (input, context) => {
@@ -371,7 +371,7 @@ export const de_CreateCapacityProviderCommand = async (output, context) => {
371
371
  }
372
372
  const data = await parseBody(output.body, context);
373
373
  let contents = {};
374
- contents = _json(data);
374
+ contents = de_CreateCapacityProviderResponse(data, context);
375
375
  const response = {
376
376
  $metadata: deserializeMetadata(output),
377
377
  ...contents,
@@ -449,7 +449,7 @@ export const de_DeleteCapacityProviderCommand = async (output, context) => {
449
449
  }
450
450
  const data = await parseBody(output.body, context);
451
451
  let contents = {};
452
- contents = _json(data);
452
+ contents = de_DeleteCapacityProviderResponse(data, context);
453
453
  const response = {
454
454
  $metadata: deserializeMetadata(output),
455
455
  ...contents,
@@ -540,7 +540,7 @@ export const de_DescribeCapacityProvidersCommand = async (output, context) => {
540
540
  }
541
541
  const data = await parseBody(output.body, context);
542
542
  let contents = {};
543
- contents = _json(data);
543
+ contents = de_DescribeCapacityProvidersResponse(data, context);
544
544
  const response = {
545
545
  $metadata: deserializeMetadata(output),
546
546
  ...contents,
@@ -1034,7 +1034,7 @@ export const de_UpdateCapacityProviderCommand = async (output, context) => {
1034
1034
  }
1035
1035
  const data = await parseBody(output.body, context);
1036
1036
  let contents = {};
1037
- contents = _json(data);
1037
+ contents = de_UpdateCapacityProviderResponse(data, context);
1038
1038
  const response = {
1039
1039
  $metadata: deserializeMetadata(output),
1040
1040
  ...contents,
@@ -1155,6 +1155,9 @@ const de_CommandError = async (output, context) => {
1155
1155
  case "ClientException":
1156
1156
  case "com.amazonaws.ecs#ClientException":
1157
1157
  throw await de_ClientExceptionRes(parsedOutput, context);
1158
+ case "ClusterNotFoundException":
1159
+ case "com.amazonaws.ecs#ClusterNotFoundException":
1160
+ throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
1158
1161
  case "InvalidParameterException":
1159
1162
  case "com.amazonaws.ecs#InvalidParameterException":
1160
1163
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
@@ -1164,6 +1167,9 @@ const de_CommandError = async (output, context) => {
1164
1167
  case "ServerException":
1165
1168
  case "com.amazonaws.ecs#ServerException":
1166
1169
  throw await de_ServerExceptionRes(parsedOutput, context);
1170
+ case "UnsupportedFeatureException":
1171
+ case "com.amazonaws.ecs#UnsupportedFeatureException":
1172
+ throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
1167
1173
  case "UpdateInProgressException":
1168
1174
  case "com.amazonaws.ecs#UpdateInProgressException":
1169
1175
  throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
@@ -1173,18 +1179,12 @@ const de_CommandError = async (output, context) => {
1173
1179
  case "AccessDeniedException":
1174
1180
  case "com.amazonaws.ecs#AccessDeniedException":
1175
1181
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1176
- case "ClusterNotFoundException":
1177
- case "com.amazonaws.ecs#ClusterNotFoundException":
1178
- throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
1179
1182
  case "PlatformTaskDefinitionIncompatibilityException":
1180
1183
  case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
1181
1184
  throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
1182
1185
  case "PlatformUnknownException":
1183
1186
  case "com.amazonaws.ecs#PlatformUnknownException":
1184
1187
  throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
1185
- case "UnsupportedFeatureException":
1186
- case "com.amazonaws.ecs#UnsupportedFeatureException":
1187
- throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
1188
1188
  case "ServiceNotActiveException":
1189
1189
  case "com.amazonaws.ecs#ServiceNotActiveException":
1190
1190
  throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
@@ -1194,6 +1194,9 @@ const de_CommandError = async (output, context) => {
1194
1194
  case "TargetNotFoundException":
1195
1195
  case "com.amazonaws.ecs#TargetNotFoundException":
1196
1196
  throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
1197
+ case "ClusterContainsCapacityProviderException":
1198
+ case "com.amazonaws.ecs#ClusterContainsCapacityProviderException":
1199
+ throw await de_ClusterContainsCapacityProviderExceptionRes(parsedOutput, context);
1197
1200
  case "ClusterContainsContainerInstancesException":
1198
1201
  case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
1199
1202
  throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
@@ -1278,6 +1281,15 @@ const de_ClientExceptionRes = async (parsedOutput, context) => {
1278
1281
  });
1279
1282
  return __decorateServiceException(exception, body);
1280
1283
  };
1284
+ const de_ClusterContainsCapacityProviderExceptionRes = async (parsedOutput, context) => {
1285
+ const body = parsedOutput.body;
1286
+ const deserialized = _json(body);
1287
+ const exception = new ClusterContainsCapacityProviderException({
1288
+ $metadata: deserializeMetadata(parsedOutput),
1289
+ ...deserialized,
1290
+ });
1291
+ return __decorateServiceException(exception, body);
1292
+ };
1281
1293
  const de_ClusterContainsContainerInstancesExceptionRes = async (parsedOutput, context) => {
1282
1294
  const body = parsedOutput.body;
1283
1295
  const deserialized = _json(body);
@@ -1485,12 +1497,28 @@ const de_UpdateInProgressExceptionRes = async (parsedOutput, context) => {
1485
1497
  });
1486
1498
  return __decorateServiceException(exception, body);
1487
1499
  };
1500
+ const se_CreateCapacityProviderRequest = (input, context) => {
1501
+ return take(input, {
1502
+ autoScalingGroupProvider: _json,
1503
+ cluster: [],
1504
+ managedInstancesProvider: (_) => se_CreateManagedInstancesProviderConfiguration(_, context),
1505
+ name: [],
1506
+ tags: _json,
1507
+ });
1508
+ };
1488
1509
  const se_CreatedAt = (input, context) => {
1489
1510
  return take(input, {
1490
1511
  after: (_) => _.getTime() / 1_000,
1491
1512
  before: (_) => _.getTime() / 1_000,
1492
1513
  });
1493
1514
  };
1515
+ const se_CreateManagedInstancesProviderConfiguration = (input, context) => {
1516
+ return take(input, {
1517
+ infrastructureRoleArn: [],
1518
+ instanceLaunchTemplate: (_) => se_InstanceLaunchTemplate(_, context),
1519
+ propagateTags: [],
1520
+ });
1521
+ };
1494
1522
  const se_CreateServiceRequest = (input, context) => {
1495
1523
  return take(input, {
1496
1524
  availabilityZoneRebalancing: [],
@@ -1567,6 +1595,52 @@ const se_DeploymentLifecycleHookList = (input, context) => {
1567
1595
  const se_HookDetails = (input, context) => {
1568
1596
  return input;
1569
1597
  };
1598
+ const se_InstanceLaunchTemplate = (input, context) => {
1599
+ return take(input, {
1600
+ ec2InstanceProfileArn: [],
1601
+ instanceRequirements: (_) => se_InstanceRequirementsRequest(_, context),
1602
+ monitoring: [],
1603
+ networkConfiguration: _json,
1604
+ storageConfiguration: _json,
1605
+ });
1606
+ };
1607
+ const se_InstanceLaunchTemplateUpdate = (input, context) => {
1608
+ return take(input, {
1609
+ ec2InstanceProfileArn: [],
1610
+ instanceRequirements: (_) => se_InstanceRequirementsRequest(_, context),
1611
+ monitoring: [],
1612
+ networkConfiguration: _json,
1613
+ storageConfiguration: _json,
1614
+ });
1615
+ };
1616
+ const se_InstanceRequirementsRequest = (input, context) => {
1617
+ return take(input, {
1618
+ acceleratorCount: _json,
1619
+ acceleratorManufacturers: _json,
1620
+ acceleratorNames: _json,
1621
+ acceleratorTotalMemoryMiB: _json,
1622
+ acceleratorTypes: _json,
1623
+ allowedInstanceTypes: _json,
1624
+ bareMetal: [],
1625
+ baselineEbsBandwidthMbps: _json,
1626
+ burstablePerformance: [],
1627
+ cpuManufacturers: _json,
1628
+ excludedInstanceTypes: _json,
1629
+ instanceGenerations: _json,
1630
+ localStorage: [],
1631
+ localStorageTypes: _json,
1632
+ maxSpotPriceAsPercentageOfOptimalOnDemandPrice: [],
1633
+ memoryGiBPerVCpu: (_) => se_MemoryGiBPerVCpuRequest(_, context),
1634
+ memoryMiB: _json,
1635
+ networkBandwidthGbps: (_) => se_NetworkBandwidthGbpsRequest(_, context),
1636
+ networkInterfaceCount: _json,
1637
+ onDemandMaxPricePercentageOverLowestPrice: [],
1638
+ requireHibernateSupport: [],
1639
+ spotMaxPricePercentageOverLowestPrice: [],
1640
+ totalLocalStorageGB: (_) => se_TotalLocalStorageGBRequest(_, context),
1641
+ vCpuCount: _json,
1642
+ });
1643
+ };
1570
1644
  const se_ListServiceDeploymentsRequest = (input, context) => {
1571
1645
  return take(input, {
1572
1646
  cluster: [],
@@ -1577,6 +1651,18 @@ const se_ListServiceDeploymentsRequest = (input, context) => {
1577
1651
  status: _json,
1578
1652
  });
1579
1653
  };
1654
+ const se_MemoryGiBPerVCpuRequest = (input, context) => {
1655
+ return take(input, {
1656
+ max: __serializeFloat,
1657
+ min: __serializeFloat,
1658
+ });
1659
+ };
1660
+ const se_NetworkBandwidthGbpsRequest = (input, context) => {
1661
+ return take(input, {
1662
+ max: __serializeFloat,
1663
+ min: __serializeFloat,
1664
+ });
1665
+ };
1580
1666
  const se_RegisterContainerInstanceRequest = (input, context) => {
1581
1667
  return take(input, {
1582
1668
  attributes: _json,
@@ -1650,6 +1736,27 @@ const se_SubmitTaskStateChangeRequest = (input, context) => {
1650
1736
  task: [],
1651
1737
  });
1652
1738
  };
1739
+ const se_TotalLocalStorageGBRequest = (input, context) => {
1740
+ return take(input, {
1741
+ max: __serializeFloat,
1742
+ min: __serializeFloat,
1743
+ });
1744
+ };
1745
+ const se_UpdateCapacityProviderRequest = (input, context) => {
1746
+ return take(input, {
1747
+ autoScalingGroupProvider: _json,
1748
+ cluster: [],
1749
+ managedInstancesProvider: (_) => se_UpdateManagedInstancesProviderConfiguration(_, context),
1750
+ name: [],
1751
+ });
1752
+ };
1753
+ const se_UpdateManagedInstancesProviderConfiguration = (input, context) => {
1754
+ return take(input, {
1755
+ infrastructureRoleArn: [],
1756
+ instanceLaunchTemplate: (_) => se_InstanceLaunchTemplateUpdate(_, context),
1757
+ propagateTags: [],
1758
+ });
1759
+ };
1653
1760
  const se_UpdateServiceRequest = (input, context) => {
1654
1761
  return take(input, {
1655
1762
  availabilityZoneRebalancing: [],
@@ -1684,6 +1791,28 @@ const se_UpdateTaskSetRequest = (input, context) => {
1684
1791
  taskSet: [],
1685
1792
  });
1686
1793
  };
1794
+ const de_CapacityProvider = (output, context) => {
1795
+ return take(output, {
1796
+ autoScalingGroupProvider: _json,
1797
+ capacityProviderArn: __expectString,
1798
+ cluster: __expectString,
1799
+ managedInstancesProvider: (_) => de_ManagedInstancesProvider(_, context),
1800
+ name: __expectString,
1801
+ status: __expectString,
1802
+ tags: _json,
1803
+ type: __expectString,
1804
+ updateStatus: __expectString,
1805
+ updateStatusReason: __expectString,
1806
+ });
1807
+ };
1808
+ const de_CapacityProviders = (output, context) => {
1809
+ const retVal = (output || [])
1810
+ .filter((e) => e != null)
1811
+ .map((entry) => {
1812
+ return de_CapacityProvider(entry, context);
1813
+ });
1814
+ return retVal;
1815
+ };
1687
1816
  const de_Container = (output, context) => {
1688
1817
  return take(output, {
1689
1818
  containerArn: __expectString,
@@ -1749,6 +1878,11 @@ const de_Containers = (output, context) => {
1749
1878
  });
1750
1879
  return retVal;
1751
1880
  };
1881
+ const de_CreateCapacityProviderResponse = (output, context) => {
1882
+ return take(output, {
1883
+ capacityProvider: (_) => de_CapacityProvider(_, context),
1884
+ });
1885
+ };
1752
1886
  const de_CreateServiceResponse = (output, context) => {
1753
1887
  return take(output, {
1754
1888
  service: (_) => de_Service(_, context),
@@ -1759,6 +1893,11 @@ const de_CreateTaskSetResponse = (output, context) => {
1759
1893
  taskSet: (_) => de_TaskSet(_, context),
1760
1894
  });
1761
1895
  };
1896
+ const de_DeleteCapacityProviderResponse = (output, context) => {
1897
+ return take(output, {
1898
+ capacityProvider: (_) => de_CapacityProvider(_, context),
1899
+ });
1900
+ };
1762
1901
  const de_DeleteServiceResponse = (output, context) => {
1763
1902
  return take(output, {
1764
1903
  service: (_) => de_Service(_, context),
@@ -1845,6 +1984,13 @@ const de_DeregisterTaskDefinitionResponse = (output, context) => {
1845
1984
  taskDefinition: (_) => de_TaskDefinition(_, context),
1846
1985
  });
1847
1986
  };
1987
+ const de_DescribeCapacityProvidersResponse = (output, context) => {
1988
+ return take(output, {
1989
+ capacityProviders: (_) => de_CapacityProviders(_, context),
1990
+ failures: _json,
1991
+ nextToken: __expectString,
1992
+ });
1993
+ };
1848
1994
  const de_DescribeContainerInstancesResponse = (output, context) => {
1849
1995
  return take(output, {
1850
1996
  containerInstances: (_) => de_ContainerInstances(_, context),
@@ -1912,6 +2058,43 @@ const de_InstanceHealthCheckResultList = (output, context) => {
1912
2058
  });
1913
2059
  return retVal;
1914
2060
  };
2061
+ const de_InstanceLaunchTemplate = (output, context) => {
2062
+ return take(output, {
2063
+ ec2InstanceProfileArn: __expectString,
2064
+ instanceRequirements: (_) => de_InstanceRequirementsRequest(_, context),
2065
+ monitoring: __expectString,
2066
+ networkConfiguration: _json,
2067
+ storageConfiguration: _json,
2068
+ });
2069
+ };
2070
+ const de_InstanceRequirementsRequest = (output, context) => {
2071
+ return take(output, {
2072
+ acceleratorCount: _json,
2073
+ acceleratorManufacturers: _json,
2074
+ acceleratorNames: _json,
2075
+ acceleratorTotalMemoryMiB: _json,
2076
+ acceleratorTypes: _json,
2077
+ allowedInstanceTypes: _json,
2078
+ bareMetal: __expectString,
2079
+ baselineEbsBandwidthMbps: _json,
2080
+ burstablePerformance: __expectString,
2081
+ cpuManufacturers: _json,
2082
+ excludedInstanceTypes: _json,
2083
+ instanceGenerations: _json,
2084
+ localStorage: __expectString,
2085
+ localStorageTypes: _json,
2086
+ maxSpotPriceAsPercentageOfOptimalOnDemandPrice: __expectInt32,
2087
+ memoryGiBPerVCpu: (_) => de_MemoryGiBPerVCpuRequest(_, context),
2088
+ memoryMiB: _json,
2089
+ networkBandwidthGbps: (_) => de_NetworkBandwidthGbpsRequest(_, context),
2090
+ networkInterfaceCount: _json,
2091
+ onDemandMaxPricePercentageOverLowestPrice: __expectInt32,
2092
+ requireHibernateSupport: __expectBoolean,
2093
+ spotMaxPricePercentageOverLowestPrice: __expectInt32,
2094
+ totalLocalStorageGB: (_) => de_TotalLocalStorageGBRequest(_, context),
2095
+ vCpuCount: _json,
2096
+ });
2097
+ };
1915
2098
  const de_ListServiceDeploymentsResponse = (output, context) => {
1916
2099
  return take(output, {
1917
2100
  nextToken: __expectString,
@@ -1934,6 +2117,25 @@ const de_ManagedAgents = (output, context) => {
1934
2117
  });
1935
2118
  return retVal;
1936
2119
  };
2120
+ const de_ManagedInstancesProvider = (output, context) => {
2121
+ return take(output, {
2122
+ infrastructureRoleArn: __expectString,
2123
+ instanceLaunchTemplate: (_) => de_InstanceLaunchTemplate(_, context),
2124
+ propagateTags: __expectString,
2125
+ });
2126
+ };
2127
+ const de_MemoryGiBPerVCpuRequest = (output, context) => {
2128
+ return take(output, {
2129
+ max: __limitedParseDouble,
2130
+ min: __limitedParseDouble,
2131
+ });
2132
+ };
2133
+ const de_NetworkBandwidthGbpsRequest = (output, context) => {
2134
+ return take(output, {
2135
+ max: __limitedParseDouble,
2136
+ min: __limitedParseDouble,
2137
+ });
2138
+ };
1937
2139
  const de_ProtectedTask = (output, context) => {
1938
2140
  return take(output, {
1939
2141
  expirationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -2271,6 +2473,17 @@ const de_TaskSets = (output, context) => {
2271
2473
  });
2272
2474
  return retVal;
2273
2475
  };
2476
+ const de_TotalLocalStorageGBRequest = (output, context) => {
2477
+ return take(output, {
2478
+ max: __limitedParseDouble,
2479
+ min: __limitedParseDouble,
2480
+ });
2481
+ };
2482
+ const de_UpdateCapacityProviderResponse = (output, context) => {
2483
+ return take(output, {
2484
+ capacityProvider: (_) => de_CapacityProvider(_, context),
2485
+ });
2486
+ };
2274
2487
  const de_UpdateContainerAgentResponse = (output, context) => {
2275
2488
  return take(output, {
2276
2489
  containerInstance: (_) => de_ContainerInstance(_, context),
@@ -27,13 +27,7 @@ declare const CreateCapacityProviderCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a new capacity provider. Capacity providers are associated with an Amazon ECS
31
- * cluster and are used in capacity provider strategies to facilitate cluster auto
32
- * scaling.</p>
33
- * <p>Only capacity providers that use an Auto Scaling group can be created. Amazon ECS tasks on
34
- * Fargate use the <code>FARGATE</code> and <code>FARGATE_SPOT</code> capacity providers.
35
- * These providers are available to all accounts in the Amazon Web Services Regions that Fargate
36
- * supports.</p>
30
+ * <p>Creates a capacity provider. Capacity providers are associated with a cluster and are used in capacity provider strategies to facilitate cluster auto scaling. You can create capacity providers for Amazon ECS Managed Instances and EC2 instances. Fargate has the predefined <code>FARGATE</code> and <code>FARGATE_SPOT</code> capacity providers.</p>
37
31
  * @example
38
32
  * Use a bare-bones client and the command you need to make an API call.
39
33
  * ```javascript
@@ -44,6 +38,7 @@ declare const CreateCapacityProviderCommand_base: {
44
38
  * const client = new ECSClient(config);
45
39
  * const input = { // CreateCapacityProviderRequest
46
40
  * name: "STRING_VALUE", // required
41
+ * cluster: "STRING_VALUE",
47
42
  * autoScalingGroupProvider: { // AutoScalingGroupProvider
48
43
  * autoScalingGroupArn: "STRING_VALUE", // required
49
44
  * managedScaling: { // ManagedScaling
@@ -56,6 +51,94 @@ declare const CreateCapacityProviderCommand_base: {
56
51
  * managedTerminationProtection: "ENABLED" || "DISABLED",
57
52
  * managedDraining: "ENABLED" || "DISABLED",
58
53
  * },
54
+ * managedInstancesProvider: { // CreateManagedInstancesProviderConfiguration
55
+ * infrastructureRoleArn: "STRING_VALUE", // required
56
+ * instanceLaunchTemplate: { // InstanceLaunchTemplate
57
+ * ec2InstanceProfileArn: "STRING_VALUE", // required
58
+ * networkConfiguration: { // ManagedInstancesNetworkConfiguration
59
+ * subnets: [ // StringList
60
+ * "STRING_VALUE",
61
+ * ],
62
+ * securityGroups: [
63
+ * "STRING_VALUE",
64
+ * ],
65
+ * },
66
+ * storageConfiguration: { // ManagedInstancesStorageConfiguration
67
+ * storageSizeGiB: Number("int"),
68
+ * },
69
+ * monitoring: "BASIC" || "DETAILED",
70
+ * instanceRequirements: { // InstanceRequirementsRequest
71
+ * vCpuCount: { // VCpuCountRangeRequest
72
+ * min: Number("int"), // required
73
+ * max: Number("int"),
74
+ * },
75
+ * memoryMiB: { // MemoryMiBRequest
76
+ * min: Number("int"), // required
77
+ * max: Number("int"),
78
+ * },
79
+ * cpuManufacturers: [ // CpuManufacturerSet
80
+ * "intel" || "amd" || "amazon-web-services",
81
+ * ],
82
+ * memoryGiBPerVCpu: { // MemoryGiBPerVCpuRequest
83
+ * min: Number("double"),
84
+ * max: Number("double"),
85
+ * },
86
+ * excludedInstanceTypes: [ // ExcludedInstanceTypeSet
87
+ * "STRING_VALUE",
88
+ * ],
89
+ * instanceGenerations: [ // InstanceGenerationSet
90
+ * "current" || "previous",
91
+ * ],
92
+ * spotMaxPricePercentageOverLowestPrice: Number("int"),
93
+ * onDemandMaxPricePercentageOverLowestPrice: Number("int"),
94
+ * bareMetal: "included" || "required" || "excluded",
95
+ * burstablePerformance: "included" || "required" || "excluded",
96
+ * requireHibernateSupport: true || false,
97
+ * networkInterfaceCount: { // NetworkInterfaceCountRequest
98
+ * min: Number("int"),
99
+ * max: Number("int"),
100
+ * },
101
+ * localStorage: "included" || "required" || "excluded",
102
+ * localStorageTypes: [ // LocalStorageTypeSet
103
+ * "hdd" || "ssd",
104
+ * ],
105
+ * totalLocalStorageGB: { // TotalLocalStorageGBRequest
106
+ * min: Number("double"),
107
+ * max: Number("double"),
108
+ * },
109
+ * baselineEbsBandwidthMbps: { // BaselineEbsBandwidthMbpsRequest
110
+ * min: Number("int"),
111
+ * max: Number("int"),
112
+ * },
113
+ * acceleratorTypes: [ // AcceleratorTypeSet
114
+ * "gpu" || "fpga" || "inference",
115
+ * ],
116
+ * acceleratorCount: { // AcceleratorCountRequest
117
+ * min: Number("int"),
118
+ * max: Number("int"),
119
+ * },
120
+ * acceleratorManufacturers: [ // AcceleratorManufacturerSet
121
+ * "amazon-web-services" || "amd" || "nvidia" || "xilinx" || "habana",
122
+ * ],
123
+ * acceleratorNames: [ // AcceleratorNameSet
124
+ * "a100" || "inferentia" || "k520" || "k80" || "m60" || "radeon-pro-v520" || "t4" || "vu9p" || "v100" || "a10g" || "h100" || "t4g",
125
+ * ],
126
+ * acceleratorTotalMemoryMiB: { // AcceleratorTotalMemoryMiBRequest
127
+ * min: Number("int"),
128
+ * max: Number("int"),
129
+ * },
130
+ * networkBandwidthGbps: { // NetworkBandwidthGbpsRequest
131
+ * min: Number("double"),
132
+ * max: Number("double"),
133
+ * },
134
+ * allowedInstanceTypes: [ // AllowedInstanceTypeSet
135
+ * "STRING_VALUE",
136
+ * ],
137
+ * maxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
138
+ * },
139
+ * },
140
+ * propagateTags: "CAPACITY_PROVIDER" || "NONE",
141
+ * },
59
142
  * tags: [ // Tags
60
143
  * { // Tag
61
144
  * key: "STRING_VALUE",
@@ -69,7 +152,8 @@ declare const CreateCapacityProviderCommand_base: {
69
152
  * // capacityProvider: { // CapacityProvider
70
153
  * // capacityProviderArn: "STRING_VALUE",
71
154
  * // name: "STRING_VALUE",
72
- * // status: "ACTIVE" || "INACTIVE",
155
+ * // cluster: "STRING_VALUE",
156
+ * // status: "PROVISIONING" || "ACTIVE" || "DEPROVISIONING" || "INACTIVE",
73
157
  * // autoScalingGroupProvider: { // AutoScalingGroupProvider
74
158
  * // autoScalingGroupArn: "STRING_VALUE", // required
75
159
  * // managedScaling: { // ManagedScaling
@@ -82,7 +166,95 @@ declare const CreateCapacityProviderCommand_base: {
82
166
  * // managedTerminationProtection: "ENABLED" || "DISABLED",
83
167
  * // managedDraining: "ENABLED" || "DISABLED",
84
168
  * // },
85
- * // updateStatus: "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
169
+ * // managedInstancesProvider: { // ManagedInstancesProvider
170
+ * // infrastructureRoleArn: "STRING_VALUE",
171
+ * // instanceLaunchTemplate: { // InstanceLaunchTemplate
172
+ * // ec2InstanceProfileArn: "STRING_VALUE", // required
173
+ * // networkConfiguration: { // ManagedInstancesNetworkConfiguration
174
+ * // subnets: [ // StringList
175
+ * // "STRING_VALUE",
176
+ * // ],
177
+ * // securityGroups: [
178
+ * // "STRING_VALUE",
179
+ * // ],
180
+ * // },
181
+ * // storageConfiguration: { // ManagedInstancesStorageConfiguration
182
+ * // storageSizeGiB: Number("int"),
183
+ * // },
184
+ * // monitoring: "BASIC" || "DETAILED",
185
+ * // instanceRequirements: { // InstanceRequirementsRequest
186
+ * // vCpuCount: { // VCpuCountRangeRequest
187
+ * // min: Number("int"), // required
188
+ * // max: Number("int"),
189
+ * // },
190
+ * // memoryMiB: { // MemoryMiBRequest
191
+ * // min: Number("int"), // required
192
+ * // max: Number("int"),
193
+ * // },
194
+ * // cpuManufacturers: [ // CpuManufacturerSet
195
+ * // "intel" || "amd" || "amazon-web-services",
196
+ * // ],
197
+ * // memoryGiBPerVCpu: { // MemoryGiBPerVCpuRequest
198
+ * // min: Number("double"),
199
+ * // max: Number("double"),
200
+ * // },
201
+ * // excludedInstanceTypes: [ // ExcludedInstanceTypeSet
202
+ * // "STRING_VALUE",
203
+ * // ],
204
+ * // instanceGenerations: [ // InstanceGenerationSet
205
+ * // "current" || "previous",
206
+ * // ],
207
+ * // spotMaxPricePercentageOverLowestPrice: Number("int"),
208
+ * // onDemandMaxPricePercentageOverLowestPrice: Number("int"),
209
+ * // bareMetal: "included" || "required" || "excluded",
210
+ * // burstablePerformance: "included" || "required" || "excluded",
211
+ * // requireHibernateSupport: true || false,
212
+ * // networkInterfaceCount: { // NetworkInterfaceCountRequest
213
+ * // min: Number("int"),
214
+ * // max: Number("int"),
215
+ * // },
216
+ * // localStorage: "included" || "required" || "excluded",
217
+ * // localStorageTypes: [ // LocalStorageTypeSet
218
+ * // "hdd" || "ssd",
219
+ * // ],
220
+ * // totalLocalStorageGB: { // TotalLocalStorageGBRequest
221
+ * // min: Number("double"),
222
+ * // max: Number("double"),
223
+ * // },
224
+ * // baselineEbsBandwidthMbps: { // BaselineEbsBandwidthMbpsRequest
225
+ * // min: Number("int"),
226
+ * // max: Number("int"),
227
+ * // },
228
+ * // acceleratorTypes: [ // AcceleratorTypeSet
229
+ * // "gpu" || "fpga" || "inference",
230
+ * // ],
231
+ * // acceleratorCount: { // AcceleratorCountRequest
232
+ * // min: Number("int"),
233
+ * // max: Number("int"),
234
+ * // },
235
+ * // acceleratorManufacturers: [ // AcceleratorManufacturerSet
236
+ * // "amazon-web-services" || "amd" || "nvidia" || "xilinx" || "habana",
237
+ * // ],
238
+ * // acceleratorNames: [ // AcceleratorNameSet
239
+ * // "a100" || "inferentia" || "k520" || "k80" || "m60" || "radeon-pro-v520" || "t4" || "vu9p" || "v100" || "a10g" || "h100" || "t4g",
240
+ * // ],
241
+ * // acceleratorTotalMemoryMiB: { // AcceleratorTotalMemoryMiBRequest
242
+ * // min: Number("int"),
243
+ * // max: Number("int"),
244
+ * // },
245
+ * // networkBandwidthGbps: { // NetworkBandwidthGbpsRequest
246
+ * // min: Number("double"),
247
+ * // max: Number("double"),
248
+ * // },
249
+ * // allowedInstanceTypes: [ // AllowedInstanceTypeSet
250
+ * // "STRING_VALUE",
251
+ * // ],
252
+ * // maxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
253
+ * // },
254
+ * // },
255
+ * // propagateTags: "CAPACITY_PROVIDER" || "NONE",
256
+ * // },
257
+ * // updateStatus: "CREATE_IN_PROGRESS" || "CREATE_COMPLETE" || "CREATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
86
258
  * // updateStatusReason: "STRING_VALUE",
87
259
  * // tags: [ // Tags
88
260
  * // { // Tag
@@ -90,6 +262,7 @@ declare const CreateCapacityProviderCommand_base: {
90
262
  * // value: "STRING_VALUE",
91
263
  * // },
92
264
  * // ],
265
+ * // type: "EC2_AUTOSCALING" || "MANAGED_INSTANCES" || "FARGATE" || "FARGATE_SPOT",
93
266
  * // },
94
267
  * // };
95
268
  *
@@ -106,6 +279,9 @@ declare const CreateCapacityProviderCommand_base: {
106
279
  * an action or resource on behalf of a user that doesn't have permissions to use the
107
280
  * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
108
281
  *
282
+ * @throws {@link ClusterNotFoundException} (client fault)
283
+ * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
284
+ *
109
285
  * @throws {@link InvalidParameterException} (client fault)
110
286
  * <p>The specified parameter isn't valid. Review the available parameters for the API
111
287
  * request.</p>
@@ -118,6 +294,9 @@ declare const CreateCapacityProviderCommand_base: {
118
294
  * @throws {@link ServerException} (server fault)
119
295
  * <p>These errors are usually caused by a server issue.</p>
120
296
  *
297
+ * @throws {@link UnsupportedFeatureException} (client fault)
298
+ * <p>The specified task isn't supported in this Region.</p>
299
+ *
121
300
  * @throws {@link UpdateInProgressException} (client fault)
122
301
  * <p>There's already a current Amazon ECS container agent update in progress on the container
123
302
  * instance that's specified. If the container agent becomes disconnected while it's in a