@aws-sdk/client-ec2 3.908.0 → 3.910.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 (79) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/endpoint/ruleset.js +1 -1
  3. package/dist-cjs/index.js +217 -78
  4. package/dist-es/EC2.js +2 -0
  5. package/dist-es/commands/CopyVolumesCommand.js +22 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/endpoint/ruleset.js +1 -1
  8. package/dist-es/models/models_1.js +64 -9
  9. package/dist-es/models/models_2.js +0 -20
  10. package/dist-es/models/models_3.js +7 -4
  11. package/dist-es/models/models_4.js +4 -4
  12. package/dist-es/models/models_5.js +5 -5
  13. package/dist-es/models/models_6.js +5 -0
  14. package/dist-es/protocols/Aws_ec2.js +113 -36
  15. package/dist-types/EC2.d.ts +7 -0
  16. package/dist-types/EC2Client.d.ts +3 -2
  17. package/dist-types/commands/CopyVolumesCommand.d.ts +137 -0
  18. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateFleetCommand.d.ts +4 -4
  20. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  21. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  22. package/dist-types/commands/CreateVolumeCommand.d.ts +3 -1
  23. package/dist-types/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +1 -2
  24. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  26. package/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  29. package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  34. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  35. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  37. package/dist-types/commands/DescribeVolumeStatusCommand.d.ts +3 -2
  38. package/dist-types/commands/DescribeVolumesCommand.d.ts +1 -0
  39. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  40. package/dist-types/commands/GetManagedPrefixListEntriesCommand.d.ts +2 -1
  41. package/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +1 -2
  42. package/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  43. package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
  44. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  45. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  46. package/dist-types/commands/ProvisionIpamByoasnCommand.d.ts +1 -1
  47. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  48. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +2 -2
  49. package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  50. package/dist-types/commands/index.d.ts +1 -0
  51. package/dist-types/models/models_1.d.ts +351 -115
  52. package/dist-types/models/models_2.d.ts +104 -227
  53. package/dist-types/models/models_3.d.ts +45 -83
  54. package/dist-types/models/models_4.d.ts +83 -30
  55. package/dist-types/models/models_5.d.ts +37 -32
  56. package/dist-types/models/models_6.d.ts +32 -46
  57. package/dist-types/models/models_7.d.ts +52 -43
  58. package/dist-types/models/models_8.d.ts +44 -7
  59. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  60. package/dist-types/ts3.4/EC2.d.ts +17 -0
  61. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  62. package/dist-types/ts3.4/commands/CopyVolumesCommand.d.ts +47 -0
  63. package/dist-types/ts3.4/commands/CreateVolumeCommand.d.ts +2 -1
  64. package/dist-types/ts3.4/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +4 -2
  65. package/dist-types/ts3.4/commands/DescribeVolumeStatusCommand.d.ts +2 -4
  66. package/dist-types/ts3.4/commands/GetManagedPrefixListEntriesCommand.d.ts +2 -4
  67. package/dist-types/ts3.4/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +4 -2
  68. package/dist-types/ts3.4/commands/ProvisionIpamByoasnCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  70. package/dist-types/ts3.4/models/models_1.d.ts +109 -31
  71. package/dist-types/ts3.4/models/models_2.d.ts +18 -57
  72. package/dist-types/ts3.4/models/models_3.d.ts +14 -15
  73. package/dist-types/ts3.4/models/models_4.d.ts +13 -10
  74. package/dist-types/ts3.4/models/models_5.d.ts +13 -14
  75. package/dist-types/ts3.4/models/models_6.d.ts +13 -12
  76. package/dist-types/ts3.4/models/models_7.d.ts +12 -11
  77. package/dist-types/ts3.4/models/models_8.d.ts +12 -1
  78. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  79. package/package.json +35 -35
package/README.md CHANGED
@@ -685,6 +685,14 @@ CopySnapshot
685
685
 
686
686
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/CopySnapshotCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CopySnapshotCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CopySnapshotCommandOutput/)
687
687
 
688
+ </details>
689
+ <details>
690
+ <summary>
691
+ CopyVolumes
692
+ </summary>
693
+
694
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/CopyVolumesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CopyVolumesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CopyVolumesCommandOutput/)
695
+
688
696
  </details>
689
697
  <details>
690
698
  <summary>
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const u = "required", v = "fn", w = "argv", x = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
6
  const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://ec2.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -720,6 +720,16 @@ const se_CopySnapshotCommand = async (input, context) => {
720
720
  });
721
721
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
722
722
  };
723
+ const se_CopyVolumesCommand = async (input, context) => {
724
+ const headers = SHARED_HEADERS;
725
+ let body;
726
+ body = buildFormUrlencodedString({
727
+ ...se_CopyVolumesRequest(input),
728
+ [_A]: _CV,
729
+ [_V]: _,
730
+ });
731
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
732
+ };
723
733
  const se_CreateCapacityReservationCommand = async (input, context) => {
724
734
  const headers = SHARED_HEADERS;
725
735
  let body;
@@ -1555,7 +1565,7 @@ const se_CreateVolumeCommand = async (input, context) => {
1555
1565
  let body;
1556
1566
  body = buildFormUrlencodedString({
1557
1567
  ...se_CreateVolumeRequest(input),
1558
- [_A]: _CV,
1568
+ [_A]: _CVr,
1559
1569
  [_V]: _,
1560
1570
  });
1561
1571
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1565,7 +1575,7 @@ const se_CreateVpcCommand = async (input, context) => {
1565
1575
  let body;
1566
1576
  body = buildFormUrlencodedString({
1567
1577
  ...se_CreateVpcRequest(input),
1568
- [_A]: _CVr,
1578
+ [_A]: _CVre,
1569
1579
  [_V]: _,
1570
1580
  });
1571
1581
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -7828,6 +7838,19 @@ const de_CopySnapshotCommand = async (output, context) => {
7828
7838
  };
7829
7839
  return response;
7830
7840
  };
7841
+ const de_CopyVolumesCommand = async (output, context) => {
7842
+ if (output.statusCode >= 300) {
7843
+ return de_CommandError(output, context);
7844
+ }
7845
+ const data = await core$1.parseXmlBody(output.body, context);
7846
+ let contents = {};
7847
+ contents = de_CopyVolumesResult(data);
7848
+ const response = {
7849
+ $metadata: deserializeMetadata(output),
7850
+ ...contents,
7851
+ };
7852
+ return response;
7853
+ };
7831
7854
  const de_CreateCapacityReservationCommand = async (output, context) => {
7832
7855
  if (output.statusCode >= 300) {
7833
7856
  return de_CommandError(output, context);
@@ -17913,6 +17936,44 @@ const se_CopySnapshotRequest = (input, context) => {
17913
17936
  }
17914
17937
  return entries;
17915
17938
  };
17939
+ const se_CopyVolumesRequest = (input, context) => {
17940
+ const entries = {};
17941
+ if (input[_SVI] != null) {
17942
+ entries[_SVI] = input[_SVI];
17943
+ }
17944
+ if (input[_I] != null) {
17945
+ entries[_I] = input[_I];
17946
+ }
17947
+ if (input[_Siz] != null) {
17948
+ entries[_Siz] = input[_Siz];
17949
+ }
17950
+ if (input[_VT] != null) {
17951
+ entries[_VT] = input[_VT];
17952
+ }
17953
+ if (input[_DRr] != null) {
17954
+ entries[_DRr] = input[_DRr];
17955
+ }
17956
+ if (input[_TS] != null) {
17957
+ const memberEntries = se_TagSpecificationList(input[_TS]);
17958
+ Object.entries(memberEntries).forEach(([key, value]) => {
17959
+ const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
17960
+ entries[loc] = value;
17961
+ });
17962
+ }
17963
+ if (input[_MAE] != null) {
17964
+ entries[_MAE] = input[_MAE];
17965
+ }
17966
+ if (input[_Th] != null) {
17967
+ entries[_Th] = input[_Th];
17968
+ }
17969
+ if (input[_CTl] === undefined) {
17970
+ input[_CTl] = uuid.v4();
17971
+ }
17972
+ if (input[_CTl] != null) {
17973
+ entries[_CTl] = input[_CTl];
17974
+ }
17975
+ return entries;
17976
+ };
17916
17977
  const se_CpuManufacturerSet = (input, context) => {
17917
17978
  const entries = {};
17918
17979
  let counter = 1;
@@ -20806,8 +20867,8 @@ const se_CreateVerifiedAccessNativeApplicationOidcOptions = (input, context) =>
20806
20867
  if (input[_PSKE] != null) {
20807
20868
  entries[_PSKE] = input[_PSKE];
20808
20869
  }
20809
- if (input[_I] != null) {
20810
- entries[_I] = input[_I];
20870
+ if (input[_Is] != null) {
20871
+ entries[_Is] = input[_Is];
20811
20872
  }
20812
20873
  if (input[_AE] != null) {
20813
20874
  entries[_AE] = input[_AE];
@@ -20841,8 +20902,8 @@ const se_CreateVerifiedAccessTrustProviderDeviceOptions = (input, context) => {
20841
20902
  };
20842
20903
  const se_CreateVerifiedAccessTrustProviderOidcOptions = (input, context) => {
20843
20904
  const entries = {};
20844
- if (input[_I] != null) {
20845
- entries[_I] = input[_I];
20905
+ if (input[_Is] != null) {
20906
+ entries[_Is] = input[_Is];
20846
20907
  }
20847
20908
  if (input[_AE] != null) {
20848
20909
  entries[_AE] = input[_AE];
@@ -20981,8 +21042,8 @@ const se_CreateVolumeRequest = (input, context) => {
20981
21042
  if (input[_Enc] != null) {
20982
21043
  entries[_Enc] = input[_Enc];
20983
21044
  }
20984
- if (input[_Io] != null) {
20985
- entries[_Io] = input[_Io];
21045
+ if (input[_I] != null) {
21046
+ entries[_I] = input[_I];
20986
21047
  }
20987
21048
  if (input[_KKI] != null) {
20988
21049
  entries[_KKI] = input[_KKI];
@@ -27562,8 +27623,8 @@ const se_EbsBlockDevice = (input, context) => {
27562
27623
  if (input[_DOT] != null) {
27563
27624
  entries[_DOT] = input[_DOT];
27564
27625
  }
27565
- if (input[_Io] != null) {
27566
- entries[_Io] = input[_Io];
27626
+ if (input[_I] != null) {
27627
+ entries[_I] = input[_I];
27567
27628
  }
27568
27629
  if (input[_SIn] != null) {
27569
27630
  entries[_SIn] = input[_SIn];
@@ -28280,8 +28341,8 @@ const se_FleetEbsBlockDeviceRequest = (input, context) => {
28280
28341
  if (input[_DOT] != null) {
28281
28342
  entries[_DOT] = input[_DOT];
28282
28343
  }
28283
- if (input[_Io] != null) {
28284
- entries[_Io] = input[_Io];
28344
+ if (input[_I] != null) {
28345
+ entries[_I] = input[_I];
28285
28346
  }
28286
28347
  if (input[_Th] != null) {
28287
28348
  entries[_Th] = input[_Th];
@@ -31389,8 +31450,8 @@ const se_LaunchTemplateEbsBlockDeviceRequest = (input, context) => {
31389
31450
  if (input[_DOT] != null) {
31390
31451
  entries[_DOT] = input[_DOT];
31391
31452
  }
31392
- if (input[_Io] != null) {
31393
- entries[_Io] = input[_Io];
31453
+ if (input[_I] != null) {
31454
+ entries[_I] = input[_I];
31394
31455
  }
31395
31456
  if (input[_KKI] != null) {
31396
31457
  entries[_KKI] = input[_KKI];
@@ -33900,8 +33961,8 @@ const se_ModifyVerifiedAccessNativeApplicationOidcOptions = (input, context) =>
33900
33961
  if (input[_PSKE] != null) {
33901
33962
  entries[_PSKE] = input[_PSKE];
33902
33963
  }
33903
- if (input[_I] != null) {
33904
- entries[_I] = input[_I];
33964
+ if (input[_Is] != null) {
33965
+ entries[_Is] = input[_Is];
33905
33966
  }
33906
33967
  if (input[_AE] != null) {
33907
33968
  entries[_AE] = input[_AE];
@@ -33932,8 +33993,8 @@ const se_ModifyVerifiedAccessTrustProviderDeviceOptions = (input, context) => {
33932
33993
  };
33933
33994
  const se_ModifyVerifiedAccessTrustProviderOidcOptions = (input, context) => {
33934
33995
  const entries = {};
33935
- if (input[_I] != null) {
33936
- entries[_I] = input[_I];
33996
+ if (input[_Is] != null) {
33997
+ entries[_Is] = input[_Is];
33937
33998
  }
33938
33999
  if (input[_AE] != null) {
33939
34000
  entries[_AE] = input[_AE];
@@ -34033,8 +34094,8 @@ const se_ModifyVolumeRequest = (input, context) => {
34033
34094
  if (input[_VT] != null) {
34034
34095
  entries[_VT] = input[_VT];
34035
34096
  }
34036
- if (input[_Io] != null) {
34037
- entries[_Io] = input[_Io];
34097
+ if (input[_I] != null) {
34098
+ entries[_I] = input[_I];
34038
34099
  }
34039
34100
  if (input[_Th] != null) {
34040
34101
  entries[_Th] = input[_Th];
@@ -37637,8 +37698,8 @@ const se_ScheduledInstancesEbs = (input, context) => {
37637
37698
  if (input[_Enc] != null) {
37638
37699
  entries[_Enc] = input[_Enc];
37639
37700
  }
37640
- if (input[_Io] != null) {
37641
- entries[_Io] = input[_Io];
37701
+ if (input[_I] != null) {
37702
+ entries[_I] = input[_I];
37642
37703
  }
37643
37704
  if (input[_SIn] != null) {
37644
37705
  entries[_SIn] = input[_SIn];
@@ -42777,6 +42838,16 @@ const de_CopySnapshotResult = (output, context) => {
42777
42838
  }
42778
42839
  return contents;
42779
42840
  };
42841
+ const de_CopyVolumesResult = (output, context) => {
42842
+ const contents = {};
42843
+ if (String(output.volumeSet).trim() === "") {
42844
+ contents[_Vol] = [];
42845
+ }
42846
+ else if (output[_vS] != null && output[_vS][_i] != null) {
42847
+ contents[_Vol] = de_VolumeList(smithyClient.getArrayIfSingleItem(output[_vS][_i]));
42848
+ }
42849
+ return contents;
42850
+ };
42780
42851
  const de_CoreCountList = (output, context) => {
42781
42852
  return (output || [])
42782
42853
  .filter((e) => e != null)
@@ -47352,7 +47423,7 @@ const de_EbsBlockDevice = (output, context) => {
47352
47423
  contents[_DOT] = smithyClient.parseBoolean(output[_dOT]);
47353
47424
  }
47354
47425
  if (output[_io] != null) {
47355
- contents[_Io] = smithyClient.strictParseInt32(output[_io]);
47426
+ contents[_I] = smithyClient.strictParseInt32(output[_io]);
47356
47427
  }
47357
47428
  if (output[_sIn] != null) {
47358
47429
  contents[_SIn] = smithyClient.expectString(output[_sIn]);
@@ -47395,7 +47466,7 @@ const de_EbsBlockDeviceResponse = (output, context) => {
47395
47466
  contents[_DOT] = smithyClient.parseBoolean(output[_dOT]);
47396
47467
  }
47397
47468
  if (output[_io] != null) {
47398
- contents[_Io] = smithyClient.strictParseInt32(output[_io]);
47469
+ contents[_I] = smithyClient.strictParseInt32(output[_io]);
47399
47470
  }
47400
47471
  if (output[_th] != null) {
47401
47472
  contents[_Th] = smithyClient.strictParseInt32(output[_th]);
@@ -53765,7 +53836,7 @@ const de_LaunchTemplateEbsBlockDevice = (output, context) => {
53765
53836
  contents[_DOT] = smithyClient.parseBoolean(output[_dOT]);
53766
53837
  }
53767
53838
  if (output[_io] != null) {
53768
- contents[_Io] = smithyClient.strictParseInt32(output[_io]);
53839
+ contents[_I] = smithyClient.strictParseInt32(output[_io]);
53769
53840
  }
53770
53841
  if (output[_kKI] != null) {
53771
53842
  contents[_KKI] = smithyClient.expectString(output[_kKI]);
@@ -55513,7 +55584,7 @@ const de_NativeApplicationOidcOptions = (output, context) => {
55513
55584
  contents[_PSKE] = smithyClient.expectString(output[_pSKE]);
55514
55585
  }
55515
55586
  if (output[_is] != null) {
55516
- contents[_I] = smithyClient.expectString(output[_is]);
55587
+ contents[_Is] = smithyClient.expectString(output[_is]);
55517
55588
  }
55518
55589
  if (output[_aE] != null) {
55519
55590
  contents[_AE] = smithyClient.expectString(output[_aE]);
@@ -56338,7 +56409,7 @@ const de_OccurrenceDaySet = (output, context) => {
56338
56409
  const de_OidcOptions = (output, context) => {
56339
56410
  const contents = {};
56340
56411
  if (output[_is] != null) {
56341
- contents[_I] = smithyClient.expectString(output[_is]);
56412
+ contents[_Is] = smithyClient.expectString(output[_is]);
56342
56413
  }
56343
56414
  if (output[_aE] != null) {
56344
56415
  contents[_AE] = smithyClient.expectString(output[_aE]);
@@ -56593,8 +56664,8 @@ const de_PciId = (output, context) => {
56593
56664
  if (output[_SIubs] != null) {
56594
56665
  contents[_SIubs] = smithyClient.expectString(output[_SIubs]);
56595
56666
  }
56596
- if (output[_SVI] != null) {
56597
- contents[_SVI] = smithyClient.expectString(output[_SVI]);
56667
+ if (output[_SVIu] != null) {
56668
+ contents[_SVIu] = smithyClient.expectString(output[_SVIu]);
56598
56669
  }
56599
56670
  return contents;
56600
56671
  };
@@ -62892,7 +62963,7 @@ const de_VerifiedAccessInstanceUserTrustProviderClientConfiguration = (output, c
62892
62963
  contents[_Scop] = smithyClient.expectString(output[_scop]);
62893
62964
  }
62894
62965
  if (output[_is] != null) {
62895
- contents[_I] = smithyClient.expectString(output[_is]);
62966
+ contents[_Is] = smithyClient.expectString(output[_is]);
62896
62967
  }
62897
62968
  if (output[_aE] != null) {
62898
62969
  contents[_AE] = smithyClient.expectString(output[_aE]);
@@ -63124,8 +63195,11 @@ const de_Volume = (output, context) => {
63124
63195
  if (output[_oA] != null) {
63125
63196
  contents[_OA] = smithyClient.expectString(output[_oA]);
63126
63197
  }
63198
+ if (output[_sVI] != null) {
63199
+ contents[_SVI] = smithyClient.expectString(output[_sVI]);
63200
+ }
63127
63201
  if (output[_io] != null) {
63128
- contents[_Io] = smithyClient.strictParseInt32(output[_io]);
63202
+ contents[_I] = smithyClient.strictParseInt32(output[_io]);
63129
63203
  }
63130
63204
  if (String(output.tagSet).trim() === "") {
63131
63205
  contents[_Ta] = [];
@@ -64774,7 +64848,7 @@ const _CTonv = "ConversionTask";
64774
64848
  const _CTr = "CreateTime";
64775
64849
  const _CTre = "CreationTime";
64776
64850
  const _CTrea = "CreationTimestamp";
64777
- const _CV = "CreateVolume";
64851
+ const _CV = "CopyVolumes";
64778
64852
  const _CVAE = "CreateVerifiedAccessEndpoint";
64779
64853
  const _CVAG = "CreateVerifiedAccessGroup";
64780
64854
  const _CVAI = "CreateVerifiedAccessInstance";
@@ -64793,7 +64867,8 @@ const _CVP = "CreateVolumePermission";
64793
64867
  const _CVPC = "CreateVpcPeeringConnection";
64794
64868
  const _CVPr = "CreateVolumePermissions";
64795
64869
  const _CVTN = "ClientVpnTargetNetworks";
64796
- const _CVr = "CreateVpc";
64870
+ const _CVr = "CreateVolume";
64871
+ const _CVre = "CreateVpc";
64797
64872
  const _CVu = "CurrentVersion";
64798
64873
  const _CWL = "CloudWatchLogs";
64799
64874
  const _CWLO = "CloudWatchLogOptions";
@@ -65543,7 +65618,7 @@ const _HTo = "HostnameType";
65543
65618
  const _HZI = "HostedZoneId";
65544
65619
  const _Hi = "Hibernate";
65545
65620
  const _Ho = "Hosts";
65546
- const _I = "Issuer";
65621
+ const _I = "Iops";
65547
65622
  const _IA = "Ipv6Addresses";
65548
65623
  const _IAA = "Ipv6AddressAttribute";
65549
65624
  const _IAC = "Ipv6AddressCount";
@@ -65764,11 +65839,11 @@ const _Ima = "Images";
65764
65839
  const _In = "Instances";
65765
65840
  const _Ins = "Instance";
65766
65841
  const _Int = "Interval";
65767
- const _Io = "Iops";
65768
65842
  const _Ip = "Ipv4";
65769
65843
  const _Ipa = "Ipam";
65770
65844
  const _Ipam = "Ipams";
65771
65845
  const _Ipv = "Ipv6";
65846
+ const _Is = "Issuer";
65772
65847
  const _K = "Kernel";
65773
65848
  const _KDF = "KinesisDataFirehose";
65774
65849
  const _KF = "KeyFormat";
@@ -66802,7 +66877,8 @@ const _STto = "StorageTier";
66802
66877
  const _SUC = "SupportedUsageClasses";
66803
66878
  const _SV = "SourceVersion";
66804
66879
  const _SVESPDV = "StartVpcEndpointServicePrivateDnsVerification";
66805
- const _SVI = "SubsystemVendorId";
66880
+ const _SVI = "SourceVolumeId";
66881
+ const _SVIu = "SubsystemVendorId";
66806
66882
  const _SVT = "SupportedVirtualizationTypes";
66807
66883
  const _SVh = "ShellVersion";
66808
66884
  const _SVo = "SourceVpc";
@@ -68744,6 +68820,7 @@ const _sTs = "sseType";
68744
68820
  const _sTt = "storageTier";
68745
68821
  const _sUC = "supportedUsageClasses";
68746
68822
  const _sV = "sourceVpc";
68823
+ const _sVI = "sourceVolumeId";
68747
68824
  const _sVT = "supportedVirtualizationTypes";
68748
68825
  const _sVh = "shellVersion";
68749
68826
  const _sVu = "supportedVersions";
@@ -70592,6 +70669,28 @@ class CopyImageCommand extends smithyClient.Command
70592
70669
  .build() {
70593
70670
  }
70594
70671
 
70672
+ const VolumeType = {
70673
+ gp2: "gp2",
70674
+ gp3: "gp3",
70675
+ io1: "io1",
70676
+ io2: "io2",
70677
+ sc1: "sc1",
70678
+ st1: "st1",
70679
+ standard: "standard",
70680
+ };
70681
+ const SSEType = {
70682
+ none: "none",
70683
+ sse_ebs: "sse-ebs",
70684
+ sse_kms: "sse-kms",
70685
+ };
70686
+ const VolumeState = {
70687
+ available: "available",
70688
+ creating: "creating",
70689
+ deleted: "deleted",
70690
+ deleting: "deleting",
70691
+ error: "error",
70692
+ in_use: "in-use",
70693
+ };
70595
70694
  const CapacityReservationDeliveryPreference = {
70596
70695
  FIXED: "fixed",
70597
70696
  INCREMENTAL: "incremental",
@@ -70869,6 +70968,26 @@ const _InstanceType = {
70869
70968
  c8gn_metal_24xl: "c8gn.metal-24xl",
70870
70969
  c8gn_metal_48xl: "c8gn.metal-48xl",
70871
70970
  c8gn_xlarge: "c8gn.xlarge",
70971
+ c8i_12xlarge: "c8i.12xlarge",
70972
+ c8i_16xlarge: "c8i.16xlarge",
70973
+ c8i_24xlarge: "c8i.24xlarge",
70974
+ c8i_2xlarge: "c8i.2xlarge",
70975
+ c8i_32xlarge: "c8i.32xlarge",
70976
+ c8i_48xlarge: "c8i.48xlarge",
70977
+ c8i_4xlarge: "c8i.4xlarge",
70978
+ c8i_8xlarge: "c8i.8xlarge",
70979
+ c8i_96xlarge: "c8i.96xlarge",
70980
+ c8i_flex_12xlarge: "c8i-flex.12xlarge",
70981
+ c8i_flex_16xlarge: "c8i-flex.16xlarge",
70982
+ c8i_flex_2xlarge: "c8i-flex.2xlarge",
70983
+ c8i_flex_4xlarge: "c8i-flex.4xlarge",
70984
+ c8i_flex_8xlarge: "c8i-flex.8xlarge",
70985
+ c8i_flex_large: "c8i-flex.large",
70986
+ c8i_flex_xlarge: "c8i-flex.xlarge",
70987
+ c8i_large: "c8i.large",
70988
+ c8i_metal_48xl: "c8i.metal-48xl",
70989
+ c8i_metal_96xl: "c8i.metal-96xl",
70990
+ c8i_xlarge: "c8i.xlarge",
70872
70991
  cc1_4xlarge: "cc1.4xlarge",
70873
70992
  cc2_8xlarge: "cc2.8xlarge",
70874
70993
  cg1_4xlarge: "cg1.4xlarge",
@@ -71256,6 +71375,18 @@ const _InstanceType = {
71256
71375
  m7i_metal_24xl: "m7i.metal-24xl",
71257
71376
  m7i_metal_48xl: "m7i.metal-48xl",
71258
71377
  m7i_xlarge: "m7i.xlarge",
71378
+ m8a_12xlarge: "m8a.12xlarge",
71379
+ m8a_16xlarge: "m8a.16xlarge",
71380
+ m8a_24xlarge: "m8a.24xlarge",
71381
+ m8a_2xlarge: "m8a.2xlarge",
71382
+ m8a_48xlarge: "m8a.48xlarge",
71383
+ m8a_4xlarge: "m8a.4xlarge",
71384
+ m8a_8xlarge: "m8a.8xlarge",
71385
+ m8a_large: "m8a.large",
71386
+ m8a_medium: "m8a.medium",
71387
+ m8a_metal_24xl: "m8a.metal-24xl",
71388
+ m8a_metal_48xl: "m8a.metal-48xl",
71389
+ m8a_xlarge: "m8a.xlarge",
71259
71390
  m8g_12xlarge: "m8g.12xlarge",
71260
71391
  m8g_16xlarge: "m8g.16xlarge",
71261
71392
  m8g_24xlarge: "m8g.24xlarge",
@@ -71526,6 +71657,16 @@ const _InstanceType = {
71526
71657
  r8g_metal_24xl: "r8g.metal-24xl",
71527
71658
  r8g_metal_48xl: "r8g.metal-48xl",
71528
71659
  r8g_xlarge: "r8g.xlarge",
71660
+ r8gb_12xlarge: "r8gb.12xlarge",
71661
+ r8gb_16xlarge: "r8gb.16xlarge",
71662
+ r8gb_24xlarge: "r8gb.24xlarge",
71663
+ r8gb_2xlarge: "r8gb.2xlarge",
71664
+ r8gb_4xlarge: "r8gb.4xlarge",
71665
+ r8gb_8xlarge: "r8gb.8xlarge",
71666
+ r8gb_large: "r8gb.large",
71667
+ r8gb_medium: "r8gb.medium",
71668
+ r8gb_metal_24xl: "r8gb.metal-24xl",
71669
+ r8gb_xlarge: "r8gb.xlarge",
71529
71670
  r8gd_12xlarge: "r8gd.12xlarge",
71530
71671
  r8gd_16xlarge: "r8gd.16xlarge",
71531
71672
  r8gd_24xlarge: "r8gd.24xlarge",
@@ -71792,15 +71933,6 @@ const FleetExcessCapacityTerminationPolicy = {
71792
71933
  NO_TERMINATION: "no-termination",
71793
71934
  TERMINATION: "termination",
71794
71935
  };
71795
- const VolumeType = {
71796
- gp2: "gp2",
71797
- gp3: "gp3",
71798
- io1: "io1",
71799
- io2: "io2",
71800
- sc1: "sc1",
71801
- st1: "st1",
71802
- standard: "standard",
71803
- };
71804
71936
  const BareMetal = {
71805
71937
  EXCLUDED: "excluded",
71806
71938
  INCLUDED: "included",
@@ -72131,6 +72263,23 @@ class CopySnapshotCommand extends smithyClient.Command
72131
72263
  .build() {
72132
72264
  }
72133
72265
 
72266
+ class CopyVolumesCommand extends smithyClient.Command
72267
+ .classBuilder()
72268
+ .ep(commonParams)
72269
+ .m(function (Command, cs, config, o) {
72270
+ return [
72271
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
72272
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
72273
+ ];
72274
+ })
72275
+ .s("AmazonEC2", "CopyVolumes", {})
72276
+ .n("EC2Client", "CopyVolumesCommand")
72277
+ .f(void 0, void 0)
72278
+ .ser(se_CopyVolumesCommand)
72279
+ .de(de_CopyVolumesCommand)
72280
+ .build() {
72281
+ }
72282
+
72134
72283
  class CreateCapacityReservationBySplittingCommand extends smithyClient.Command
72135
72284
  .classBuilder()
72136
72285
  .ep(commonParams)
@@ -72828,11 +72977,6 @@ const RouteState = {
72828
72977
  blackhole: "blackhole",
72829
72978
  filtered: "filtered",
72830
72979
  };
72831
- const SSEType = {
72832
- none: "none",
72833
- sse_ebs: "sse-ebs",
72834
- sse_kms: "sse-kms",
72835
- };
72836
72980
  const SnapshotState = {
72837
72981
  completed: "completed",
72838
72982
  error: "error",
@@ -72995,14 +73139,6 @@ const VerifiedAccessEndpointStatusCode = {
72995
73139
  pending: "pending",
72996
73140
  updating: "updating",
72997
73141
  };
72998
- const VolumeState = {
72999
- available: "available",
73000
- creating: "creating",
73001
- deleted: "deleted",
73002
- deleting: "deleting",
73003
- error: "error",
73004
- in_use: "in-use",
73005
- };
73006
73142
  const InternetGatewayExclusionMode = {
73007
73143
  allow_bidirectional: "allow-bidirectional",
73008
73144
  allow_egress: "allow-egress",
@@ -73025,13 +73161,6 @@ const DnsRecordIpType = {
73025
73161
  ipv6: "ipv6",
73026
73162
  service_defined: "service-defined",
73027
73163
  };
73028
- const VpcEndpointType = {
73029
- Gateway: "Gateway",
73030
- GatewayLoadBalancer: "GatewayLoadBalancer",
73031
- Interface: "Interface",
73032
- Resource: "Resource",
73033
- ServiceNetwork: "ServiceNetwork",
73034
- };
73035
73164
  const ResponseLaunchTemplateDataFilterSensitiveLog = (obj) => ({
73036
73165
  ...obj,
73037
73166
  ...(obj.UserData && { UserData: smithyClient.SENSITIVE_STRING }),
@@ -74096,6 +74225,13 @@ class CreateVpcPeeringConnectionCommand extends smithyClient.Command
74096
74225
  .build() {
74097
74226
  }
74098
74227
 
74228
+ const VpcEndpointType = {
74229
+ Gateway: "Gateway",
74230
+ GatewayLoadBalancer: "GatewayLoadBalancer",
74231
+ Interface: "Interface",
74232
+ Resource: "Resource",
74233
+ ServiceNetwork: "ServiceNetwork",
74234
+ };
74099
74235
  const State = {
74100
74236
  Available: "Available",
74101
74237
  Deleted: "Deleted",
@@ -74264,10 +74400,6 @@ const CapacityBlockInterconnectStatus = {
74264
74400
  insufficient_data: "insufficient-data",
74265
74401
  ok: "ok",
74266
74402
  };
74267
- const CallerRole = {
74268
- odcr_owner: "odcr-owner",
74269
- unused_reservation_billing_owner: "unused-reservation-billing-owner",
74270
- };
74271
74403
  const VpnTunnelOptionsSpecificationFilterSensitiveLog = (obj) => ({
74272
74404
  ...obj,
74273
74405
  ...(obj.PreSharedKey && { PreSharedKey: smithyClient.SENSITIVE_STRING }),
@@ -76316,6 +76448,10 @@ class DescribeCoipPoolsCommand extends smithyClient.Command
76316
76448
  .build() {
76317
76449
  }
76318
76450
 
76451
+ const CallerRole = {
76452
+ odcr_owner: "odcr-owner",
76453
+ unused_reservation_billing_owner: "unused-reservation-billing-owner",
76454
+ };
76319
76455
  const CapacityReservationBillingRequestStatus = {
76320
76456
  accepted: "accepted",
76321
76457
  cancelled: "cancelled",
@@ -76636,10 +76772,6 @@ const FlexibleEnaQueuesSupport = {
76636
76772
  SUPPORTED: "supported",
76637
76773
  UNSUPPORTED: "unsupported",
76638
76774
  };
76639
- const NitroEnclavesSupport = {
76640
- SUPPORTED: "supported",
76641
- UNSUPPORTED: "unsupported",
76642
- };
76643
76775
  const DiskImageDescriptionFilterSensitiveLog = (obj) => ({
76644
76776
  ...obj,
76645
76777
  ...(obj.ImportManifestUrl && { ImportManifestUrl: smithyClient.SENSITIVE_STRING }),
@@ -77562,6 +77694,10 @@ class DescribeLaunchTemplatesCommand extends smithyClient.Command
77562
77694
  .build() {
77563
77695
  }
77564
77696
 
77697
+ const NitroEnclavesSupport = {
77698
+ SUPPORTED: "supported",
77699
+ UNSUPPORTED: "unsupported",
77700
+ };
77565
77701
  const NitroTpmSupport = {
77566
77702
  SUPPORTED: "supported",
77567
77703
  UNSUPPORTED: "unsupported",
@@ -77726,6 +77862,7 @@ const VolumeModificationState = {
77726
77862
  const InitializationType = {
77727
77863
  default: "default",
77728
77864
  provisioned_rate: "provisioned-rate",
77865
+ volume_copy: "volume-copy",
77729
77866
  };
77730
77867
  const VolumeStatusName = {
77731
77868
  initialization_state: "initialization-state",
@@ -77738,11 +77875,6 @@ const VolumeStatusInfoStatus = {
77738
77875
  ok: "ok",
77739
77876
  warning: "warning",
77740
77877
  };
77741
- const VpcAttributeName = {
77742
- enableDnsHostnames: "enableDnsHostnames",
77743
- enableDnsSupport: "enableDnsSupport",
77744
- enableNetworkAddressUsageMetrics: "enableNetworkAddressUsageMetrics",
77745
- };
77746
77878
  const DescribeLaunchTemplateVersionsResultFilterSensitiveLog = (obj) => ({
77747
77879
  ...obj,
77748
77880
  ...(obj.LaunchTemplateVersions && {
@@ -79389,6 +79521,11 @@ class DescribeVpcsCommand extends smithyClient.Command
79389
79521
  .build() {
79390
79522
  }
79391
79523
 
79524
+ const VpcAttributeName = {
79525
+ enableDnsHostnames: "enableDnsHostnames",
79526
+ enableDnsSupport: "enableDnsSupport",
79527
+ enableNetworkAddressUsageMetrics: "enableNetworkAddressUsageMetrics",
79528
+ };
79392
79529
  const VpcBlockPublicAccessExclusionsAllowed = {
79393
79530
  allowed: "allowed",
79394
79531
  not_allowed: "not-allowed",
@@ -84650,6 +84787,7 @@ const commands = {
84650
84787
  CopyFpgaImageCommand,
84651
84788
  CopyImageCommand,
84652
84789
  CopySnapshotCommand,
84790
+ CopyVolumesCommand,
84653
84791
  CreateCapacityReservationCommand,
84654
84792
  CreateCapacityReservationBySplittingCommand,
84655
84793
  CreateCapacityReservationFleetCommand,
@@ -87779,6 +87917,7 @@ exports.CopyImageCommand = CopyImageCommand;
87779
87917
  exports.CopySnapshotCommand = CopySnapshotCommand;
87780
87918
  exports.CopySnapshotRequestFilterSensitiveLog = CopySnapshotRequestFilterSensitiveLog;
87781
87919
  exports.CopyTagsFromSource = CopyTagsFromSource;
87920
+ exports.CopyVolumesCommand = CopyVolumesCommand;
87782
87921
  exports.CpuManufacturer = CpuManufacturer;
87783
87922
  exports.CreateCapacityReservationBySplittingCommand = CreateCapacityReservationBySplittingCommand;
87784
87923
  exports.CreateCapacityReservationCommand = CreateCapacityReservationCommand;
package/dist-es/EC2.js CHANGED
@@ -59,6 +59,7 @@ import { ConfirmProductInstanceCommand, } from "./commands/ConfirmProductInstanc
59
59
  import { CopyFpgaImageCommand, } from "./commands/CopyFpgaImageCommand";
60
60
  import { CopyImageCommand } from "./commands/CopyImageCommand";
61
61
  import { CopySnapshotCommand, } from "./commands/CopySnapshotCommand";
62
+ import { CopyVolumesCommand } from "./commands/CopyVolumesCommand";
62
63
  import { CreateCapacityReservationBySplittingCommand, } from "./commands/CreateCapacityReservationBySplittingCommand";
63
64
  import { CreateCapacityReservationCommand, } from "./commands/CreateCapacityReservationCommand";
64
65
  import { CreateCapacityReservationFleetCommand, } from "./commands/CreateCapacityReservationFleetCommand";
@@ -755,6 +756,7 @@ const commands = {
755
756
  CopyFpgaImageCommand,
756
757
  CopyImageCommand,
757
758
  CopySnapshotCommand,
759
+ CopyVolumesCommand,
758
760
  CreateCapacityReservationCommand,
759
761
  CreateCapacityReservationBySplittingCommand,
760
762
  CreateCapacityReservationFleetCommand,