@aws-sdk/client-ec2 3.756.0 → 3.758.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 (65) hide show
  1. package/dist-cjs/index.js +154 -23
  2. package/dist-es/models/models_1.js +9 -9
  3. package/dist-es/models/models_3.js +0 -5
  4. package/dist-es/models/models_4.js +5 -4
  5. package/dist-es/models/models_5.js +4 -0
  6. package/dist-es/protocols/Aws_ec2.js +135 -1
  7. package/dist-types/commands/CreateFleetCommand.d.ts +51 -0
  8. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +3 -3
  9. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +1 -1
  10. package/dist-types/commands/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand.d.ts +2 -1
  11. package/dist-types/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.d.ts +1 -2
  12. package/dist-types/commands/DeleteCarrierGatewayCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteClientVpnEndpointCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteFleetsCommand.d.ts +14 -12
  15. package/dist-types/commands/DeleteLaunchTemplateVersionsCommand.d.ts +1 -1
  16. package/dist-types/commands/DeregisterImageCommand.d.ts +2 -2
  17. package/dist-types/commands/DescribeFastSnapshotRestoresCommand.d.ts +2 -1
  18. package/dist-types/commands/DescribeFleetHistoryCommand.d.ts +1 -2
  19. package/dist-types/commands/DescribeFleetsCommand.d.ts +51 -0
  20. package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeRegionsCommand.d.ts +2 -1
  22. package/dist-types/commands/DescribeReplaceRootVolumeTasksCommand.d.ts +1 -1
  23. package/dist-types/commands/DisassociateTrunkInterfaceCommand.d.ts +1 -1
  24. package/dist-types/commands/DisassociateVpcCidrBlockCommand.d.ts +1 -1
  25. package/dist-types/commands/EnableAddressTransferCommand.d.ts +1 -2
  26. package/dist-types/commands/ModifyFleetCommand.d.ts +17 -0
  27. package/dist-types/commands/ModifyInstanceCreditSpecificationCommand.d.ts +2 -1
  28. package/dist-types/commands/ModifyInstanceEventStartTimeCommand.d.ts +1 -1
  29. package/dist-types/commands/UnassignIpv6AddressesCommand.d.ts +1 -1
  30. package/dist-types/commands/UnassignPrivateIpAddressesCommand.d.ts +1 -1
  31. package/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  32. package/dist-types/models/models_1.d.ts +412 -191
  33. package/dist-types/models/models_2.d.ts +130 -53
  34. package/dist-types/models/models_3.d.ts +59 -244
  35. package/dist-types/models/models_4.d.ts +247 -106
  36. package/dist-types/models/models_5.d.ts +105 -97
  37. package/dist-types/models/models_6.d.ts +95 -91
  38. package/dist-types/models/models_7.d.ts +94 -109
  39. package/dist-types/models/models_8.d.ts +105 -1
  40. package/dist-types/ts3.4/commands/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand.d.ts +2 -4
  41. package/dist-types/ts3.4/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.d.ts +4 -2
  42. package/dist-types/ts3.4/commands/DeleteCarrierGatewayCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/DeleteClientVpnEndpointCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/DeregisterImageCommand.d.ts +7 -2
  45. package/dist-types/ts3.4/commands/DescribeFastSnapshotRestoresCommand.d.ts +2 -4
  46. package/dist-types/ts3.4/commands/DescribeFleetHistoryCommand.d.ts +4 -2
  47. package/dist-types/ts3.4/commands/DescribeRegionsCommand.d.ts +2 -4
  48. package/dist-types/ts3.4/commands/DescribeReplaceRootVolumeTasksCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/DisassociateTrunkInterfaceCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/DisassociateVpcCidrBlockCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/EnableAddressTransferCommand.d.ts +4 -2
  52. package/dist-types/ts3.4/commands/ModifyInstanceCreditSpecificationCommand.d.ts +2 -4
  53. package/dist-types/ts3.4/commands/ModifyInstanceEventStartTimeCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/UnassignIpv6AddressesCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/UnassignPrivateIpAddressesCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/models/models_1.d.ts +44 -41
  58. package/dist-types/ts3.4/models/models_2.d.ts +31 -17
  59. package/dist-types/ts3.4/models/models_3.d.ts +17 -31
  60. package/dist-types/ts3.4/models/models_4.d.ts +32 -29
  61. package/dist-types/ts3.4/models/models_5.d.ts +27 -26
  62. package/dist-types/ts3.4/models/models_6.d.ts +24 -26
  63. package/dist-types/ts3.4/models/models_7.d.ts +28 -26
  64. package/dist-types/ts3.4/models/models_8.d.ts +26 -1
  65. package/package.json +13 -13
package/dist-cjs/index.js CHANGED
@@ -10944,9 +10944,12 @@ var de_DeregisterImageCommand = /* @__PURE__ */ __name(async (output, context) =
10944
10944
  if (output.statusCode >= 300) {
10945
10945
  return de_CommandError(output, context);
10946
10946
  }
10947
- await (0, import_smithy_client.collectBody)(output.body, context);
10947
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
10948
+ let contents = {};
10949
+ contents = de_DeregisterImageResult(data, context);
10948
10950
  const response = {
10949
- $metadata: deserializeMetadata(output)
10951
+ $metadata: deserializeMetadata(output),
10952
+ ...contents
10950
10953
  };
10951
10954
  return response;
10952
10955
  }, "de_DeregisterImageCommand");
@@ -27993,6 +27996,69 @@ var se_FilterList = /* @__PURE__ */ __name((input, context) => {
27993
27996
  }
27994
27997
  return entries;
27995
27998
  }, "se_FilterList");
27999
+ var se_FleetBlockDeviceMappingRequest = /* @__PURE__ */ __name((input, context) => {
28000
+ const entries = {};
28001
+ if (input[_DN] != null) {
28002
+ entries[_DN] = input[_DN];
28003
+ }
28004
+ if (input[_VN] != null) {
28005
+ entries[_VN] = input[_VN];
28006
+ }
28007
+ if (input[_E] != null) {
28008
+ const memberEntries = se_FleetEbsBlockDeviceRequest(input[_E], context);
28009
+ Object.entries(memberEntries).forEach(([key, value]) => {
28010
+ const loc = `Ebs.${key}`;
28011
+ entries[loc] = value;
28012
+ });
28013
+ }
28014
+ if (input[_ND] != null) {
28015
+ entries[_ND] = input[_ND];
28016
+ }
28017
+ return entries;
28018
+ }, "se_FleetBlockDeviceMappingRequest");
28019
+ var se_FleetBlockDeviceMappingRequestList = /* @__PURE__ */ __name((input, context) => {
28020
+ const entries = {};
28021
+ let counter = 1;
28022
+ for (const entry of input) {
28023
+ if (entry === null) {
28024
+ continue;
28025
+ }
28026
+ const memberEntries = se_FleetBlockDeviceMappingRequest(entry, context);
28027
+ Object.entries(memberEntries).forEach(([key, value]) => {
28028
+ entries[`BlockDeviceMapping.${counter}.${key}`] = value;
28029
+ });
28030
+ counter++;
28031
+ }
28032
+ return entries;
28033
+ }, "se_FleetBlockDeviceMappingRequestList");
28034
+ var se_FleetEbsBlockDeviceRequest = /* @__PURE__ */ __name((input, context) => {
28035
+ const entries = {};
28036
+ if (input[_Enc] != null) {
28037
+ entries[_Enc] = input[_Enc];
28038
+ }
28039
+ if (input[_DOT] != null) {
28040
+ entries[_DOT] = input[_DOT];
28041
+ }
28042
+ if (input[_Io] != null) {
28043
+ entries[_Io] = input[_Io];
28044
+ }
28045
+ if (input[_Th] != null) {
28046
+ entries[_Th] = input[_Th];
28047
+ }
28048
+ if (input[_KKI] != null) {
28049
+ entries[_KKI] = input[_KKI];
28050
+ }
28051
+ if (input[_SIn] != null) {
28052
+ entries[_SIn] = input[_SIn];
28053
+ }
28054
+ if (input[_VS] != null) {
28055
+ entries[_VS] = input[_VS];
28056
+ }
28057
+ if (input[_VT] != null) {
28058
+ entries[_VT] = input[_VT];
28059
+ }
28060
+ return entries;
28061
+ }, "se_FleetEbsBlockDeviceRequest");
27996
28062
  var se_FleetIdSet = /* @__PURE__ */ __name((input, context) => {
27997
28063
  const entries = {};
27998
28064
  let counter = 1;
@@ -28080,6 +28146,13 @@ var se_FleetLaunchTemplateOverridesRequest = /* @__PURE__ */ __name((input, cont
28080
28146
  entries[loc] = value;
28081
28147
  });
28082
28148
  }
28149
+ if (input[_BDM] != null) {
28150
+ const memberEntries = se_FleetBlockDeviceMappingRequestList(input[_BDM], context);
28151
+ Object.entries(memberEntries).forEach(([key, value]) => {
28152
+ const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
28153
+ entries[loc] = value;
28154
+ });
28155
+ }
28083
28156
  if (input[_IR] != null) {
28084
28157
  const memberEntries = se_InstanceRequirementsRequest(input[_IR], context);
28085
28158
  Object.entries(memberEntries).forEach(([key, value]) => {
@@ -40245,6 +40318,27 @@ var de_BlockDeviceMappingList = /* @__PURE__ */ __name((output, context) => {
40245
40318
  return de_BlockDeviceMapping(entry, context);
40246
40319
  });
40247
40320
  }, "de_BlockDeviceMappingList");
40321
+ var de_BlockDeviceMappingResponse = /* @__PURE__ */ __name((output, context) => {
40322
+ const contents = {};
40323
+ if (output[_dN] != null) {
40324
+ contents[_DN] = (0, import_smithy_client.expectString)(output[_dN]);
40325
+ }
40326
+ if (output[_vN] != null) {
40327
+ contents[_VN] = (0, import_smithy_client.expectString)(output[_vN]);
40328
+ }
40329
+ if (output[_eb] != null) {
40330
+ contents[_E] = de_EbsBlockDeviceResponse(output[_eb], context);
40331
+ }
40332
+ if (output[_nD] != null) {
40333
+ contents[_ND] = (0, import_smithy_client.expectString)(output[_nD]);
40334
+ }
40335
+ return contents;
40336
+ }, "de_BlockDeviceMappingResponse");
40337
+ var de_BlockDeviceMappingResponseList = /* @__PURE__ */ __name((output, context) => {
40338
+ return (output || []).filter((e) => e != null).map((entry) => {
40339
+ return de_BlockDeviceMappingResponse(entry, context);
40340
+ });
40341
+ }, "de_BlockDeviceMappingResponseList");
40248
40342
  var de_BlockPublicAccessStates = /* @__PURE__ */ __name((output, context) => {
40249
40343
  const contents = {};
40250
40344
  if (output[_iGBM] != null) {
@@ -43016,6 +43110,10 @@ var de_DeprovisionPublicIpv4PoolCidrResult = /* @__PURE__ */ __name((output, con
43016
43110
  }
43017
43111
  return contents;
43018
43112
  }, "de_DeprovisionPublicIpv4PoolCidrResult");
43113
+ var de_DeregisterImageResult = /* @__PURE__ */ __name((output, context) => {
43114
+ const contents = {};
43115
+ return contents;
43116
+ }, "de_DeregisterImageResult");
43019
43117
  var de_DeregisterInstanceEventNotificationAttributesResult = /* @__PURE__ */ __name((output, context) => {
43020
43118
  const contents = {};
43021
43119
  if (output[_iTA] != null) {
@@ -45623,6 +45721,34 @@ var de_EbsBlockDevice = /* @__PURE__ */ __name((output, context) => {
45623
45721
  }
45624
45722
  return contents;
45625
45723
  }, "de_EbsBlockDevice");
45724
+ var de_EbsBlockDeviceResponse = /* @__PURE__ */ __name((output, context) => {
45725
+ const contents = {};
45726
+ if (output[_enc] != null) {
45727
+ contents[_Enc] = (0, import_smithy_client.parseBoolean)(output[_enc]);
45728
+ }
45729
+ if (output[_dOT] != null) {
45730
+ contents[_DOT] = (0, import_smithy_client.parseBoolean)(output[_dOT]);
45731
+ }
45732
+ if (output[_io] != null) {
45733
+ contents[_Io] = (0, import_smithy_client.strictParseInt32)(output[_io]);
45734
+ }
45735
+ if (output[_th] != null) {
45736
+ contents[_Th] = (0, import_smithy_client.strictParseInt32)(output[_th]);
45737
+ }
45738
+ if (output[_kKI] != null) {
45739
+ contents[_KKI] = (0, import_smithy_client.expectString)(output[_kKI]);
45740
+ }
45741
+ if (output[_sIn] != null) {
45742
+ contents[_SIn] = (0, import_smithy_client.expectString)(output[_sIn]);
45743
+ }
45744
+ if (output[_vSo] != null) {
45745
+ contents[_VS] = (0, import_smithy_client.strictParseInt32)(output[_vSo]);
45746
+ }
45747
+ if (output[_vT] != null) {
45748
+ contents[_VT] = (0, import_smithy_client.expectString)(output[_vT]);
45749
+ }
45750
+ return contents;
45751
+ }, "de_EbsBlockDeviceResponse");
45626
45752
  var de_EbsInfo = /* @__PURE__ */ __name((output, context) => {
45627
45753
  const contents = {};
45628
45754
  if (output[_eOS] != null) {
@@ -46850,6 +46976,11 @@ var de_FleetLaunchTemplateOverrides = /* @__PURE__ */ __name((output, context) =
46850
46976
  if (output[_iIma] != null) {
46851
46977
  contents[_IIma] = (0, import_smithy_client.expectString)(output[_iIma]);
46852
46978
  }
46979
+ if (output.blockDeviceMappingSet === "") {
46980
+ contents[_BDM] = [];
46981
+ } else if (output[_bDMS] != null && output[_bDMS][_i] != null) {
46982
+ contents[_BDM] = de_BlockDeviceMappingResponseList((0, import_smithy_client.getArrayIfSingleItem)(output[_bDMS][_i]), context);
46983
+ }
46853
46984
  return contents;
46854
46985
  }, "de_FleetLaunchTemplateOverrides");
46855
46986
  var de_FleetLaunchTemplateOverridesList = /* @__PURE__ */ __name((output, context) => {
@@ -67706,6 +67837,15 @@ var FleetExcessCapacityTerminationPolicy = {
67706
67837
  NO_TERMINATION: "no-termination",
67707
67838
  TERMINATION: "termination"
67708
67839
  };
67840
+ var VolumeType = {
67841
+ gp2: "gp2",
67842
+ gp3: "gp3",
67843
+ io1: "io1",
67844
+ io2: "io2",
67845
+ sc1: "sc1",
67846
+ st1: "st1",
67847
+ standard: "standard"
67848
+ };
67709
67849
  var BareMetal = {
67710
67850
  EXCLUDED: "excluded",
67711
67851
  INCLUDED: "included",
@@ -67801,15 +67941,6 @@ var TrafficType = {
67801
67941
  ALL: "ALL",
67802
67942
  REJECT: "REJECT"
67803
67943
  };
67804
- var VolumeType = {
67805
- gp2: "gp2",
67806
- gp3: "gp3",
67807
- io1: "io1",
67808
- io2: "io2",
67809
- sc1: "sc1",
67810
- st1: "st1",
67811
- standard: "standard"
67812
- };
67813
67944
  var Ec2InstanceConnectEndpointState = {
67814
67945
  create_complete: "create-complete",
67815
67946
  create_failed: "create-failed",
@@ -70494,11 +70625,6 @@ var FastSnapshotRestoreStateCode = {
70494
70625
  enabling: "enabling",
70495
70626
  optimizing: "optimizing"
70496
70627
  };
70497
- var FleetEventType = {
70498
- FLEET_CHANGE: "fleet-change",
70499
- INSTANCE_CHANGE: "instance-change",
70500
- SERVICE_ERROR: "service-error"
70501
- };
70502
70628
  var DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
70503
70629
  ...obj,
70504
70630
  ...obj.VerifiedAccessTrustProvider && {
@@ -71531,6 +71657,11 @@ var DescribeImagesCommand = class extends import_smithy_client.Command.classBuil
71531
71657
 
71532
71658
  // src/models/models_4.ts
71533
71659
 
71660
+ var FleetEventType = {
71661
+ FLEET_CHANGE: "fleet-change",
71662
+ INSTANCE_CHANGE: "instance-change",
71663
+ SERVICE_ERROR: "service-error"
71664
+ };
71534
71665
  var FleetActivityStatus = {
71535
71666
  ERROR: "error",
71536
71667
  FULFILLED: "fulfilled",
@@ -71829,10 +71960,6 @@ var NetworkInterfaceAttribute = {
71829
71960
  groupSet: "groupSet",
71830
71961
  sourceDestCheck: "sourceDestCheck"
71831
71962
  };
71832
- var OfferingClassType = {
71833
- CONVERTIBLE: "convertible",
71834
- STANDARD: "standard"
71835
- };
71836
71963
  var SnapshotDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
71837
71964
  ...obj,
71838
71965
  ...obj.Url && { Url: import_smithy_client.SENSITIVE_STRING }
@@ -72876,6 +73003,10 @@ var DescribeSpotFleetRequestHistoryCommand = class extends import_smithy_client.
72876
73003
 
72877
73004
  // src/models/models_5.ts
72878
73005
 
73006
+ var OfferingClassType = {
73007
+ CONVERTIBLE: "convertible",
73008
+ STANDARD: "standard"
73009
+ };
72879
73010
  var OfferingTypeValues = {
72880
73011
  All_Upfront: "All Upfront",
72881
73012
  Heavy_Utilization: "Heavy Utilization",
@@ -82282,6 +82413,7 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
82282
82413
  Tenancy,
82283
82414
  VpcState,
82284
82415
  FleetExcessCapacityTerminationPolicy,
82416
+ VolumeType,
82285
82417
  BareMetal,
82286
82418
  BurstablePerformance,
82287
82419
  CpuManufacturer,
@@ -82302,7 +82434,6 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
82302
82434
  LogDestinationType,
82303
82435
  FlowLogsResourceType,
82304
82436
  TrafficType,
82305
- VolumeType,
82306
82437
  Ec2InstanceConnectEndpointState,
82307
82438
  ContainerFormat,
82308
82439
  DiskImageFormat,
@@ -82451,7 +82582,6 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
82451
82582
  FastLaunchResourceType,
82452
82583
  FastLaunchStateCode,
82453
82584
  FastSnapshotRestoreStateCode,
82454
- FleetEventType,
82455
82585
  DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog,
82456
82586
  DescribeBundleTasksResultFilterSensitiveLog,
82457
82587
  DiskImageDescriptionFilterSensitiveLog,
@@ -82460,6 +82590,7 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
82460
82590
  ImportVolumeTaskDetailsFilterSensitiveLog,
82461
82591
  ConversionTaskFilterSensitiveLog,
82462
82592
  DescribeConversionTasksResultFilterSensitiveLog,
82593
+ FleetEventType,
82463
82594
  FleetActivityStatus,
82464
82595
  FpgaImageAttributeName,
82465
82596
  PermissionGroup,
@@ -82516,7 +82647,6 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
82516
82647
  FindingsFound,
82517
82648
  AnalysisStatus,
82518
82649
  NetworkInterfaceAttribute,
82519
- OfferingClassType,
82520
82650
  SnapshotDetailFilterSensitiveLog,
82521
82651
  ImportImageTaskFilterSensitiveLog,
82522
82652
  DescribeImportImageTasksResultFilterSensitiveLog,
@@ -82524,6 +82654,7 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
82524
82654
  ImportSnapshotTaskFilterSensitiveLog,
82525
82655
  DescribeImportSnapshotTasksResultFilterSensitiveLog,
82526
82656
  DescribeLaunchTemplateVersionsResultFilterSensitiveLog,
82657
+ OfferingClassType,
82527
82658
  OfferingTypeValues,
82528
82659
  RIProductDescription,
82529
82660
  RecurringChargeFrequency,
@@ -1007,6 +1007,15 @@ export const FleetExcessCapacityTerminationPolicy = {
1007
1007
  NO_TERMINATION: "no-termination",
1008
1008
  TERMINATION: "termination",
1009
1009
  };
1010
+ export const VolumeType = {
1011
+ gp2: "gp2",
1012
+ gp3: "gp3",
1013
+ io1: "io1",
1014
+ io2: "io2",
1015
+ sc1: "sc1",
1016
+ st1: "st1",
1017
+ standard: "standard",
1018
+ };
1010
1019
  export const BareMetal = {
1011
1020
  EXCLUDED: "excluded",
1012
1021
  INCLUDED: "included",
@@ -1102,15 +1111,6 @@ export const TrafficType = {
1102
1111
  ALL: "ALL",
1103
1112
  REJECT: "REJECT",
1104
1113
  };
1105
- export const VolumeType = {
1106
- gp2: "gp2",
1107
- gp3: "gp3",
1108
- io1: "io1",
1109
- io2: "io2",
1110
- sc1: "sc1",
1111
- st1: "st1",
1112
- standard: "standard",
1113
- };
1114
1114
  export const Ec2InstanceConnectEndpointState = {
1115
1115
  create_complete: "create-complete",
1116
1116
  create_failed: "create-failed",
@@ -146,11 +146,6 @@ export const FastSnapshotRestoreStateCode = {
146
146
  enabling: "enabling",
147
147
  optimizing: "optimizing",
148
148
  };
149
- export const FleetEventType = {
150
- FLEET_CHANGE: "fleet-change",
151
- INSTANCE_CHANGE: "instance-change",
152
- SERVICE_ERROR: "service-error",
153
- };
154
149
  export const DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) => ({
155
150
  ...obj,
156
151
  ...(obj.VerifiedAccessTrustProvider && {
@@ -1,5 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { LaunchTemplateVersionFilterSensitiveLog, } from "./models_1";
3
+ export const FleetEventType = {
4
+ FLEET_CHANGE: "fleet-change",
5
+ INSTANCE_CHANGE: "instance-change",
6
+ SERVICE_ERROR: "service-error",
7
+ };
3
8
  export const FleetActivityStatus = {
4
9
  ERROR: "error",
5
10
  FULFILLED: "fulfilled",
@@ -298,10 +303,6 @@ export const NetworkInterfaceAttribute = {
298
303
  groupSet: "groupSet",
299
304
  sourceDestCheck: "sourceDestCheck",
300
305
  };
301
- export const OfferingClassType = {
302
- CONVERTIBLE: "convertible",
303
- STANDARD: "standard",
304
- };
305
306
  export const SnapshotDetailFilterSensitiveLog = (obj) => ({
306
307
  ...obj,
307
308
  ...(obj.Url && { Url: SENSITIVE_STRING }),
@@ -1,6 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
3
  import { VpnConnectionFilterSensitiveLog, } from "./models_2";
4
+ export const OfferingClassType = {
5
+ CONVERTIBLE: "convertible",
6
+ STANDARD: "standard",
7
+ };
4
8
  export const OfferingTypeValues = {
5
9
  All_Upfront: "All Upfront",
6
10
  Heavy_Utilization: "Heavy Utilization",
@@ -9424,9 +9424,12 @@ export const de_DeregisterImageCommand = async (output, context) => {
9424
9424
  if (output.statusCode >= 300) {
9425
9425
  return de_CommandError(output, context);
9426
9426
  }
9427
- await collectBody(output.body, context);
9427
+ const data = await parseBody(output.body, context);
9428
+ let contents = {};
9429
+ contents = de_DeregisterImageResult(data, context);
9428
9430
  const response = {
9429
9431
  $metadata: deserializeMetadata(output),
9432
+ ...contents,
9430
9433
  };
9431
9434
  return response;
9432
9435
  };
@@ -26473,6 +26476,69 @@ const se_FilterList = (input, context) => {
26473
26476
  }
26474
26477
  return entries;
26475
26478
  };
26479
+ const se_FleetBlockDeviceMappingRequest = (input, context) => {
26480
+ const entries = {};
26481
+ if (input[_DN] != null) {
26482
+ entries[_DN] = input[_DN];
26483
+ }
26484
+ if (input[_VN] != null) {
26485
+ entries[_VN] = input[_VN];
26486
+ }
26487
+ if (input[_E] != null) {
26488
+ const memberEntries = se_FleetEbsBlockDeviceRequest(input[_E], context);
26489
+ Object.entries(memberEntries).forEach(([key, value]) => {
26490
+ const loc = `Ebs.${key}`;
26491
+ entries[loc] = value;
26492
+ });
26493
+ }
26494
+ if (input[_ND] != null) {
26495
+ entries[_ND] = input[_ND];
26496
+ }
26497
+ return entries;
26498
+ };
26499
+ const se_FleetBlockDeviceMappingRequestList = (input, context) => {
26500
+ const entries = {};
26501
+ let counter = 1;
26502
+ for (const entry of input) {
26503
+ if (entry === null) {
26504
+ continue;
26505
+ }
26506
+ const memberEntries = se_FleetBlockDeviceMappingRequest(entry, context);
26507
+ Object.entries(memberEntries).forEach(([key, value]) => {
26508
+ entries[`BlockDeviceMapping.${counter}.${key}`] = value;
26509
+ });
26510
+ counter++;
26511
+ }
26512
+ return entries;
26513
+ };
26514
+ const se_FleetEbsBlockDeviceRequest = (input, context) => {
26515
+ const entries = {};
26516
+ if (input[_Enc] != null) {
26517
+ entries[_Enc] = input[_Enc];
26518
+ }
26519
+ if (input[_DOT] != null) {
26520
+ entries[_DOT] = input[_DOT];
26521
+ }
26522
+ if (input[_Io] != null) {
26523
+ entries[_Io] = input[_Io];
26524
+ }
26525
+ if (input[_Th] != null) {
26526
+ entries[_Th] = input[_Th];
26527
+ }
26528
+ if (input[_KKI] != null) {
26529
+ entries[_KKI] = input[_KKI];
26530
+ }
26531
+ if (input[_SIn] != null) {
26532
+ entries[_SIn] = input[_SIn];
26533
+ }
26534
+ if (input[_VS] != null) {
26535
+ entries[_VS] = input[_VS];
26536
+ }
26537
+ if (input[_VT] != null) {
26538
+ entries[_VT] = input[_VT];
26539
+ }
26540
+ return entries;
26541
+ };
26476
26542
  const se_FleetIdSet = (input, context) => {
26477
26543
  const entries = {};
26478
26544
  let counter = 1;
@@ -26560,6 +26626,13 @@ const se_FleetLaunchTemplateOverridesRequest = (input, context) => {
26560
26626
  entries[loc] = value;
26561
26627
  });
26562
26628
  }
26629
+ if (input[_BDM] != null) {
26630
+ const memberEntries = se_FleetBlockDeviceMappingRequestList(input[_BDM], context);
26631
+ Object.entries(memberEntries).forEach(([key, value]) => {
26632
+ const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
26633
+ entries[loc] = value;
26634
+ });
26635
+ }
26563
26636
  if (input[_IR] != null) {
26564
26637
  const memberEntries = se_InstanceRequirementsRequest(input[_IR], context);
26565
26638
  Object.entries(memberEntries).forEach(([key, value]) => {
@@ -38812,6 +38885,29 @@ const de_BlockDeviceMappingList = (output, context) => {
38812
38885
  return de_BlockDeviceMapping(entry, context);
38813
38886
  });
38814
38887
  };
38888
+ const de_BlockDeviceMappingResponse = (output, context) => {
38889
+ const contents = {};
38890
+ if (output[_dN] != null) {
38891
+ contents[_DN] = __expectString(output[_dN]);
38892
+ }
38893
+ if (output[_vN] != null) {
38894
+ contents[_VN] = __expectString(output[_vN]);
38895
+ }
38896
+ if (output[_eb] != null) {
38897
+ contents[_E] = de_EbsBlockDeviceResponse(output[_eb], context);
38898
+ }
38899
+ if (output[_nD] != null) {
38900
+ contents[_ND] = __expectString(output[_nD]);
38901
+ }
38902
+ return contents;
38903
+ };
38904
+ const de_BlockDeviceMappingResponseList = (output, context) => {
38905
+ return (output || [])
38906
+ .filter((e) => e != null)
38907
+ .map((entry) => {
38908
+ return de_BlockDeviceMappingResponse(entry, context);
38909
+ });
38910
+ };
38815
38911
  const de_BlockPublicAccessStates = (output, context) => {
38816
38912
  const contents = {};
38817
38913
  if (output[_iGBM] != null) {
@@ -41706,6 +41802,10 @@ const de_DeprovisionPublicIpv4PoolCidrResult = (output, context) => {
41706
41802
  }
41707
41803
  return contents;
41708
41804
  };
41805
+ const de_DeregisterImageResult = (output, context) => {
41806
+ const contents = {};
41807
+ return contents;
41808
+ };
41709
41809
  const de_DeregisterInstanceEventNotificationAttributesResult = (output, context) => {
41710
41810
  const contents = {};
41711
41811
  if (output[_iTA] != null) {
@@ -44490,6 +44590,34 @@ const de_EbsBlockDevice = (output, context) => {
44490
44590
  }
44491
44591
  return contents;
44492
44592
  };
44593
+ const de_EbsBlockDeviceResponse = (output, context) => {
44594
+ const contents = {};
44595
+ if (output[_enc] != null) {
44596
+ contents[_Enc] = __parseBoolean(output[_enc]);
44597
+ }
44598
+ if (output[_dOT] != null) {
44599
+ contents[_DOT] = __parseBoolean(output[_dOT]);
44600
+ }
44601
+ if (output[_io] != null) {
44602
+ contents[_Io] = __strictParseInt32(output[_io]);
44603
+ }
44604
+ if (output[_th] != null) {
44605
+ contents[_Th] = __strictParseInt32(output[_th]);
44606
+ }
44607
+ if (output[_kKI] != null) {
44608
+ contents[_KKI] = __expectString(output[_kKI]);
44609
+ }
44610
+ if (output[_sIn] != null) {
44611
+ contents[_SIn] = __expectString(output[_sIn]);
44612
+ }
44613
+ if (output[_vSo] != null) {
44614
+ contents[_VS] = __strictParseInt32(output[_vSo]);
44615
+ }
44616
+ if (output[_vT] != null) {
44617
+ contents[_VT] = __expectString(output[_vT]);
44618
+ }
44619
+ return contents;
44620
+ };
44493
44621
  const de_EbsInfo = (output, context) => {
44494
44622
  const contents = {};
44495
44623
  if (output[_eOS] != null) {
@@ -45788,6 +45916,12 @@ const de_FleetLaunchTemplateOverrides = (output, context) => {
45788
45916
  if (output[_iIma] != null) {
45789
45917
  contents[_IIma] = __expectString(output[_iIma]);
45790
45918
  }
45919
+ if (output.blockDeviceMappingSet === "") {
45920
+ contents[_BDM] = [];
45921
+ }
45922
+ else if (output[_bDMS] != null && output[_bDMS][_i] != null) {
45923
+ contents[_BDM] = de_BlockDeviceMappingResponseList(__getArrayIfSingleItem(output[_bDMS][_i]), context);
45924
+ }
45791
45925
  return contents;
45792
45926
  };
45793
45927
  const de_FleetLaunchTemplateOverridesList = (output, context) => {
@@ -93,6 +93,23 @@ declare const CreateFleetCommand_base: {
93
93
  * GroupId: "STRING_VALUE",
94
94
  * AvailabilityZone: "STRING_VALUE",
95
95
  * },
96
+ * BlockDeviceMappings: [ // FleetBlockDeviceMappingRequestList
97
+ * { // FleetBlockDeviceMappingRequest
98
+ * DeviceName: "STRING_VALUE",
99
+ * VirtualName: "STRING_VALUE",
100
+ * Ebs: { // FleetEbsBlockDeviceRequest
101
+ * Encrypted: true || false,
102
+ * DeleteOnTermination: true || false,
103
+ * Iops: Number("int"),
104
+ * Throughput: Number("int"),
105
+ * KmsKeyId: "STRING_VALUE",
106
+ * SnapshotId: "STRING_VALUE",
107
+ * VolumeSize: Number("int"),
108
+ * VolumeType: "standard" || "io1" || "io2" || "gp2" || "sc1" || "st1" || "gp3",
109
+ * },
110
+ * NoDevice: "STRING_VALUE",
111
+ * },
112
+ * ],
96
113
  * InstanceRequirements: { // InstanceRequirementsRequest
97
114
  * VCpuCount: { // VCpuCountRangeRequest
98
115
  * Min: Number("int"), // required
@@ -302,6 +319,23 @@ declare const CreateFleetCommand_base: {
302
319
  * // },
303
320
  * // },
304
321
  * // ImageId: "STRING_VALUE",
322
+ * // BlockDeviceMappings: [ // BlockDeviceMappingResponseList
323
+ * // { // BlockDeviceMappingResponse
324
+ * // DeviceName: "STRING_VALUE",
325
+ * // VirtualName: "STRING_VALUE",
326
+ * // Ebs: { // EbsBlockDeviceResponse
327
+ * // Encrypted: true || false,
328
+ * // DeleteOnTermination: true || false,
329
+ * // Iops: Number("int"),
330
+ * // Throughput: Number("int"),
331
+ * // KmsKeyId: "STRING_VALUE",
332
+ * // SnapshotId: "STRING_VALUE",
333
+ * // VolumeSize: Number("int"),
334
+ * // VolumeType: "standard" || "io1" || "io2" || "gp2" || "sc1" || "st1" || "gp3",
335
+ * // },
336
+ * // NoDevice: "STRING_VALUE",
337
+ * // },
338
+ * // ],
305
339
  * // },
306
340
  * // },
307
341
  * // Lifecycle: "spot" || "on-demand",
@@ -406,6 +440,23 @@ declare const CreateFleetCommand_base: {
406
440
  * // },
407
441
  * // },
408
442
  * // ImageId: "STRING_VALUE",
443
+ * // BlockDeviceMappings: [
444
+ * // {
445
+ * // DeviceName: "STRING_VALUE",
446
+ * // VirtualName: "STRING_VALUE",
447
+ * // Ebs: {
448
+ * // Encrypted: true || false,
449
+ * // DeleteOnTermination: true || false,
450
+ * // Iops: Number("int"),
451
+ * // Throughput: Number("int"),
452
+ * // KmsKeyId: "STRING_VALUE",
453
+ * // SnapshotId: "STRING_VALUE",
454
+ * // VolumeSize: Number("int"),
455
+ * // VolumeType: "standard" || "io1" || "io2" || "gp2" || "sc1" || "st1" || "gp3",
456
+ * // },
457
+ * // NoDevice: "STRING_VALUE",
458
+ * // },
459
+ * // ],
409
460
  * // },
410
461
  * // },
411
462
  * // Lifecycle: "spot" || "on-demand",
@@ -30,12 +30,12 @@ declare const CreateLaunchTemplateCommand_base: {
30
30
  * <p>Creates a launch template.</p>
31
31
  * <p>A launch template contains the parameters to launch an instance. When you launch an
32
32
  * instance using <a>RunInstances</a>, you can specify a launch template instead
33
- * of providing the launch parameters in the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">Launch
34
- * an instance from a launch template</a> in the
33
+ * of providing the launch parameters in the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">Store
34
+ * instance launch parameters in Amazon EC2 launch templates</a> in the
35
35
  * <i>Amazon EC2 User Guide</i>.</p>
36
36
  * <p>To clone an existing launch template as the basis for a new launch template, use the
37
37
  * Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more
38
- * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template-from-existing-launch-template">Create a launch template from an existing launch template</a> in the
38
+ * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#create-launch-template-from-existing-launch-template">Create a launch template from an existing launch template</a> in the
39
39
  * <i>Amazon EC2 User Guide</i>.</p>
40
40
  * @example
41
41
  * Use a bare-bones client and the command you need to make an API call.
@@ -35,7 +35,7 @@ declare const CreateLaunchTemplateVersionCommand_base: {
35
35
  * <p>Launch templates are immutable; after you create a launch template, you can't modify
36
36
  * it. Instead, you can create a new version of the launch template that includes the
37
37
  * changes that you require.</p>
38
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions">Modify a launch template (manage launch template versions)</a> in the
38
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-launch-template-versions.html">Modify a launch template (manage launch template versions)</a> in the
39
39
  * <i>Amazon EC2 User Guide</i>.</p>
40
40
  * @example
41
41
  * Use a bare-bones client and the command you need to make an API call.
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult } from "../models/models_1";
4
+ import { CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest } from "../models/models_1";
5
+ import { CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult } from "../models/models_2";
5
6
  /**
6
7
  * @public
7
8
  */