@aws-sdk/client-ec2 3.909.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 (52) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +175 -78
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/CopyVolumesCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_1.js +22 -9
  7. package/dist-es/models/models_2.js +0 -20
  8. package/dist-es/models/models_3.js +7 -4
  9. package/dist-es/models/models_4.js +4 -4
  10. package/dist-es/models/models_5.js +5 -5
  11. package/dist-es/models/models_6.js +5 -0
  12. package/dist-es/protocols/Aws_ec2.js +113 -36
  13. package/dist-types/EC2.d.ts +7 -0
  14. package/dist-types/EC2Client.d.ts +3 -2
  15. package/dist-types/commands/CopyVolumesCommand.d.ts +137 -0
  16. package/dist-types/commands/CreateVolumeCommand.d.ts +3 -1
  17. package/dist-types/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +1 -2
  18. package/dist-types/commands/DescribeVolumeStatusCommand.d.ts +3 -2
  19. package/dist-types/commands/DescribeVolumesCommand.d.ts +1 -0
  20. package/dist-types/commands/GetManagedPrefixListEntriesCommand.d.ts +2 -1
  21. package/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +1 -2
  22. package/dist-types/commands/ProvisionIpamByoasnCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/models/models_1.d.ts +309 -115
  25. package/dist-types/models/models_2.d.ts +104 -227
  26. package/dist-types/models/models_3.d.ts +45 -83
  27. package/dist-types/models/models_4.d.ts +83 -30
  28. package/dist-types/models/models_5.d.ts +37 -32
  29. package/dist-types/models/models_6.d.ts +32 -46
  30. package/dist-types/models/models_7.d.ts +52 -43
  31. package/dist-types/models/models_8.d.ts +44 -7
  32. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  33. package/dist-types/ts3.4/EC2.d.ts +17 -0
  34. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  35. package/dist-types/ts3.4/commands/CopyVolumesCommand.d.ts +47 -0
  36. package/dist-types/ts3.4/commands/CreateVolumeCommand.d.ts +2 -1
  37. package/dist-types/ts3.4/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +4 -2
  38. package/dist-types/ts3.4/commands/DescribeVolumeStatusCommand.d.ts +2 -4
  39. package/dist-types/ts3.4/commands/GetManagedPrefixListEntriesCommand.d.ts +2 -4
  40. package/dist-types/ts3.4/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +4 -2
  41. package/dist-types/ts3.4/commands/ProvisionIpamByoasnCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_1.d.ts +67 -31
  44. package/dist-types/ts3.4/models/models_2.d.ts +18 -57
  45. package/dist-types/ts3.4/models/models_3.d.ts +14 -15
  46. package/dist-types/ts3.4/models/models_4.d.ts +13 -10
  47. package/dist-types/ts3.4/models/models_5.d.ts +13 -14
  48. package/dist-types/ts3.4/models/models_6.d.ts +13 -12
  49. package/dist-types/ts3.4/models/models_7.d.ts +12 -11
  50. package/dist-types/ts3.4/models/models_8.d.ts +12 -1
  51. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  52. 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>
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",
@@ -71834,15 +71933,6 @@ const FleetExcessCapacityTerminationPolicy = {
71834
71933
  NO_TERMINATION: "no-termination",
71835
71934
  TERMINATION: "termination",
71836
71935
  };
71837
- const VolumeType = {
71838
- gp2: "gp2",
71839
- gp3: "gp3",
71840
- io1: "io1",
71841
- io2: "io2",
71842
- sc1: "sc1",
71843
- st1: "st1",
71844
- standard: "standard",
71845
- };
71846
71936
  const BareMetal = {
71847
71937
  EXCLUDED: "excluded",
71848
71938
  INCLUDED: "included",
@@ -72173,6 +72263,23 @@ class CopySnapshotCommand extends smithyClient.Command
72173
72263
  .build() {
72174
72264
  }
72175
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
+
72176
72283
  class CreateCapacityReservationBySplittingCommand extends smithyClient.Command
72177
72284
  .classBuilder()
72178
72285
  .ep(commonParams)
@@ -72870,11 +72977,6 @@ const RouteState = {
72870
72977
  blackhole: "blackhole",
72871
72978
  filtered: "filtered",
72872
72979
  };
72873
- const SSEType = {
72874
- none: "none",
72875
- sse_ebs: "sse-ebs",
72876
- sse_kms: "sse-kms",
72877
- };
72878
72980
  const SnapshotState = {
72879
72981
  completed: "completed",
72880
72982
  error: "error",
@@ -73037,14 +73139,6 @@ const VerifiedAccessEndpointStatusCode = {
73037
73139
  pending: "pending",
73038
73140
  updating: "updating",
73039
73141
  };
73040
- const VolumeState = {
73041
- available: "available",
73042
- creating: "creating",
73043
- deleted: "deleted",
73044
- deleting: "deleting",
73045
- error: "error",
73046
- in_use: "in-use",
73047
- };
73048
73142
  const InternetGatewayExclusionMode = {
73049
73143
  allow_bidirectional: "allow-bidirectional",
73050
73144
  allow_egress: "allow-egress",
@@ -73067,13 +73161,6 @@ const DnsRecordIpType = {
73067
73161
  ipv6: "ipv6",
73068
73162
  service_defined: "service-defined",
73069
73163
  };
73070
- const VpcEndpointType = {
73071
- Gateway: "Gateway",
73072
- GatewayLoadBalancer: "GatewayLoadBalancer",
73073
- Interface: "Interface",
73074
- Resource: "Resource",
73075
- ServiceNetwork: "ServiceNetwork",
73076
- };
73077
73164
  const ResponseLaunchTemplateDataFilterSensitiveLog = (obj) => ({
73078
73165
  ...obj,
73079
73166
  ...(obj.UserData && { UserData: smithyClient.SENSITIVE_STRING }),
@@ -74138,6 +74225,13 @@ class CreateVpcPeeringConnectionCommand extends smithyClient.Command
74138
74225
  .build() {
74139
74226
  }
74140
74227
 
74228
+ const VpcEndpointType = {
74229
+ Gateway: "Gateway",
74230
+ GatewayLoadBalancer: "GatewayLoadBalancer",
74231
+ Interface: "Interface",
74232
+ Resource: "Resource",
74233
+ ServiceNetwork: "ServiceNetwork",
74234
+ };
74141
74235
  const State = {
74142
74236
  Available: "Available",
74143
74237
  Deleted: "Deleted",
@@ -74306,10 +74400,6 @@ const CapacityBlockInterconnectStatus = {
74306
74400
  insufficient_data: "insufficient-data",
74307
74401
  ok: "ok",
74308
74402
  };
74309
- const CallerRole = {
74310
- odcr_owner: "odcr-owner",
74311
- unused_reservation_billing_owner: "unused-reservation-billing-owner",
74312
- };
74313
74403
  const VpnTunnelOptionsSpecificationFilterSensitiveLog = (obj) => ({
74314
74404
  ...obj,
74315
74405
  ...(obj.PreSharedKey && { PreSharedKey: smithyClient.SENSITIVE_STRING }),
@@ -76358,6 +76448,10 @@ class DescribeCoipPoolsCommand extends smithyClient.Command
76358
76448
  .build() {
76359
76449
  }
76360
76450
 
76451
+ const CallerRole = {
76452
+ odcr_owner: "odcr-owner",
76453
+ unused_reservation_billing_owner: "unused-reservation-billing-owner",
76454
+ };
76361
76455
  const CapacityReservationBillingRequestStatus = {
76362
76456
  accepted: "accepted",
76363
76457
  cancelled: "cancelled",
@@ -76678,10 +76772,6 @@ const FlexibleEnaQueuesSupport = {
76678
76772
  SUPPORTED: "supported",
76679
76773
  UNSUPPORTED: "unsupported",
76680
76774
  };
76681
- const NitroEnclavesSupport = {
76682
- SUPPORTED: "supported",
76683
- UNSUPPORTED: "unsupported",
76684
- };
76685
76775
  const DiskImageDescriptionFilterSensitiveLog = (obj) => ({
76686
76776
  ...obj,
76687
76777
  ...(obj.ImportManifestUrl && { ImportManifestUrl: smithyClient.SENSITIVE_STRING }),
@@ -77604,6 +77694,10 @@ class DescribeLaunchTemplatesCommand extends smithyClient.Command
77604
77694
  .build() {
77605
77695
  }
77606
77696
 
77697
+ const NitroEnclavesSupport = {
77698
+ SUPPORTED: "supported",
77699
+ UNSUPPORTED: "unsupported",
77700
+ };
77607
77701
  const NitroTpmSupport = {
77608
77702
  SUPPORTED: "supported",
77609
77703
  UNSUPPORTED: "unsupported",
@@ -77768,6 +77862,7 @@ const VolumeModificationState = {
77768
77862
  const InitializationType = {
77769
77863
  default: "default",
77770
77864
  provisioned_rate: "provisioned-rate",
77865
+ volume_copy: "volume-copy",
77771
77866
  };
77772
77867
  const VolumeStatusName = {
77773
77868
  initialization_state: "initialization-state",
@@ -77780,11 +77875,6 @@ const VolumeStatusInfoStatus = {
77780
77875
  ok: "ok",
77781
77876
  warning: "warning",
77782
77877
  };
77783
- const VpcAttributeName = {
77784
- enableDnsHostnames: "enableDnsHostnames",
77785
- enableDnsSupport: "enableDnsSupport",
77786
- enableNetworkAddressUsageMetrics: "enableNetworkAddressUsageMetrics",
77787
- };
77788
77878
  const DescribeLaunchTemplateVersionsResultFilterSensitiveLog = (obj) => ({
77789
77879
  ...obj,
77790
77880
  ...(obj.LaunchTemplateVersions && {
@@ -79431,6 +79521,11 @@ class DescribeVpcsCommand extends smithyClient.Command
79431
79521
  .build() {
79432
79522
  }
79433
79523
 
79524
+ const VpcAttributeName = {
79525
+ enableDnsHostnames: "enableDnsHostnames",
79526
+ enableDnsSupport: "enableDnsSupport",
79527
+ enableNetworkAddressUsageMetrics: "enableNetworkAddressUsageMetrics",
79528
+ };
79434
79529
  const VpcBlockPublicAccessExclusionsAllowed = {
79435
79530
  allowed: "allowed",
79436
79531
  not_allowed: "not-allowed",
@@ -84692,6 +84787,7 @@ const commands = {
84692
84787
  CopyFpgaImageCommand,
84693
84788
  CopyImageCommand,
84694
84789
  CopySnapshotCommand,
84790
+ CopyVolumesCommand,
84695
84791
  CreateCapacityReservationCommand,
84696
84792
  CreateCapacityReservationBySplittingCommand,
84697
84793
  CreateCapacityReservationFleetCommand,
@@ -87821,6 +87917,7 @@ exports.CopyImageCommand = CopyImageCommand;
87821
87917
  exports.CopySnapshotCommand = CopySnapshotCommand;
87822
87918
  exports.CopySnapshotRequestFilterSensitiveLog = CopySnapshotRequestFilterSensitiveLog;
87823
87919
  exports.CopyTagsFromSource = CopyTagsFromSource;
87920
+ exports.CopyVolumesCommand = CopyVolumesCommand;
87824
87921
  exports.CpuManufacturer = CpuManufacturer;
87825
87922
  exports.CreateCapacityReservationBySplittingCommand = CreateCapacityReservationBySplittingCommand;
87826
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,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CopyVolumesCommand, se_CopyVolumesCommand } from "../protocols/Aws_ec2";
6
+ export { $Command };
7
+ export class CopyVolumesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonEC2", "CopyVolumes", {})
17
+ .n("EC2Client", "CopyVolumesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CopyVolumesCommand)
20
+ .de(de_CopyVolumesCommand)
21
+ .build() {
22
+ }
@@ -58,6 +58,7 @@ export * from "./ConfirmProductInstanceCommand";
58
58
  export * from "./CopyFpgaImageCommand";
59
59
  export * from "./CopyImageCommand";
60
60
  export * from "./CopySnapshotCommand";
61
+ export * from "./CopyVolumesCommand";
61
62
  export * from "./CreateCapacityReservationBySplittingCommand";
62
63
  export * from "./CreateCapacityReservationCommand";
63
64
  export * from "./CreateCapacityReservationFleetCommand";
@@ -1,4 +1,26 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ export const VolumeType = {
3
+ gp2: "gp2",
4
+ gp3: "gp3",
5
+ io1: "io1",
6
+ io2: "io2",
7
+ sc1: "sc1",
8
+ st1: "st1",
9
+ standard: "standard",
10
+ };
11
+ export const SSEType = {
12
+ none: "none",
13
+ sse_ebs: "sse-ebs",
14
+ sse_kms: "sse-kms",
15
+ };
16
+ export const VolumeState = {
17
+ available: "available",
18
+ creating: "creating",
19
+ deleted: "deleted",
20
+ deleting: "deleting",
21
+ error: "error",
22
+ in_use: "in-use",
23
+ };
2
24
  export const CapacityReservationDeliveryPreference = {
3
25
  FIXED: "fixed",
4
26
  INCREMENTAL: "incremental",
@@ -1241,15 +1263,6 @@ export const FleetExcessCapacityTerminationPolicy = {
1241
1263
  NO_TERMINATION: "no-termination",
1242
1264
  TERMINATION: "termination",
1243
1265
  };
1244
- export const VolumeType = {
1245
- gp2: "gp2",
1246
- gp3: "gp3",
1247
- io1: "io1",
1248
- io2: "io2",
1249
- sc1: "sc1",
1250
- st1: "st1",
1251
- standard: "standard",
1252
- };
1253
1266
  export const BareMetal = {
1254
1267
  EXCLUDED: "excluded",
1255
1268
  INCLUDED: "included",