@aws-sdk/client-ec2 3.818.0 → 3.821.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 (46) hide show
  1. package/dist-cjs/index.js +47 -9
  2. package/dist-es/models/models_3.js +7 -0
  3. package/dist-es/protocols/Aws_ec2.js +41 -9
  4. package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +1 -1
  5. package/dist-types/commands/CopyImageCommand.d.ts +1 -1
  6. package/dist-types/commands/CreateImageCommand.d.ts +2 -2
  7. package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +2 -2
  8. package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +3 -3
  9. package/dist-types/commands/DeregisterImageCommand.d.ts +19 -6
  10. package/dist-types/commands/DescribeKeyPairsCommand.d.ts +1 -2
  11. package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +3 -3
  12. package/dist-types/commands/DescribeVpcsCommand.d.ts +1 -1
  13. package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +1 -1
  14. package/dist-types/commands/DisableImageDeprecationCommand.d.ts +1 -1
  15. package/dist-types/commands/DisableImageDeregistrationProtectionCommand.d.ts +2 -2
  16. package/dist-types/commands/EnableImageBlockPublicAccessCommand.d.ts +1 -1
  17. package/dist-types/commands/EnableImageCommand.d.ts +2 -2
  18. package/dist-types/commands/EnableImageDeregistrationProtectionCommand.d.ts +2 -2
  19. package/dist-types/commands/GetImageBlockPublicAccessStateCommand.d.ts +1 -1
  20. package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -1
  21. package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -2
  22. package/dist-types/commands/RegisterImageCommand.d.ts +2 -2
  23. package/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -1
  24. package/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
  25. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +3 -2
  26. package/dist-types/models/models_1.d.ts +5 -4
  27. package/dist-types/models/models_3.d.ts +82 -94
  28. package/dist-types/models/models_4.d.ts +104 -133
  29. package/dist-types/models/models_5.d.ts +125 -123
  30. package/dist-types/models/models_6.d.ts +122 -49
  31. package/dist-types/models/models_7.d.ts +57 -50
  32. package/dist-types/models/models_8.d.ts +41 -2
  33. package/dist-types/ts3.4/commands/DeregisterImageCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/DescribeKeyPairsCommand.d.ts +4 -2
  35. package/dist-types/ts3.4/commands/DescribeVpcsCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -4
  37. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +4 -2
  38. package/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -4
  39. package/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/models/models_3.d.ts +18 -21
  41. package/dist-types/ts3.4/models/models_4.d.ts +21 -18
  42. package/dist-types/ts3.4/models/models_5.d.ts +17 -13
  43. package/dist-types/ts3.4/models/models_6.d.ts +12 -13
  44. package/dist-types/ts3.4/models/models_7.d.ts +14 -9
  45. package/dist-types/ts3.4/models/models_8.d.ts +11 -1
  46. package/package.json +35 -35
package/dist-cjs/index.js CHANGED
@@ -1070,6 +1070,7 @@ __export(index_exports, {
1070
1070
  SnapshotDetailFilterSensitiveLog: () => SnapshotDetailFilterSensitiveLog,
1071
1071
  SnapshotDiskContainerFilterSensitiveLog: () => SnapshotDiskContainerFilterSensitiveLog,
1072
1072
  SnapshotLocationEnum: () => SnapshotLocationEnum,
1073
+ SnapshotReturnCodes: () => SnapshotReturnCodes,
1073
1074
  SnapshotState: () => SnapshotState,
1074
1075
  SnapshotTaskDetailFilterSensitiveLog: () => SnapshotTaskDetailFilterSensitiveLog,
1075
1076
  SpotAllocationStrategy: () => SpotAllocationStrategy,
@@ -23622,6 +23623,9 @@ var se_DeregisterImageRequest = /* @__PURE__ */ __name((input, context) => {
23622
23623
  if (input[_IIma] != null) {
23623
23624
  entries[_IIma] = input[_IIma];
23624
23625
  }
23626
+ if (input[_DAS] != null) {
23627
+ entries[_DAS] = input[_DAS];
23628
+ }
23625
23629
  if (input[_DRr] != null) {
23626
23630
  entries[_DRr] = input[_DRr];
23627
23631
  }
@@ -33357,8 +33361,8 @@ var se_ModifyInstanceAttributeRequest = /* @__PURE__ */ __name((input, context)
33357
33361
  entries[loc] = value;
33358
33362
  });
33359
33363
  }
33360
- if (input[_DAS] != null) {
33361
- const memberEntries = se_AttributeBooleanValue(input[_DAS], context);
33364
+ if (input[_DASi] != null) {
33365
+ const memberEntries = se_AttributeBooleanValue(input[_DASi], context);
33362
33366
  Object.entries(memberEntries).forEach(([key, value]) => {
33363
33367
  const loc = `DisableApiStop.${key}`;
33364
33368
  entries[loc] = value;
@@ -37281,8 +37285,8 @@ var se_RequestLaunchTemplateData = /* @__PURE__ */ __name((input, context) => {
37281
37285
  entries[loc] = value;
37282
37286
  });
37283
37287
  }
37284
- if (input[_DAS] != null) {
37285
- entries[_DAS] = input[_DAS];
37288
+ if (input[_DASi] != null) {
37289
+ entries[_DASi] = input[_DASi];
37286
37290
  }
37287
37291
  if (input[_O] != null) {
37288
37292
  const memberEntries = se_OperatorRequest(input[_O], context);
@@ -38148,8 +38152,8 @@ var se_RunInstancesRequest = /* @__PURE__ */ __name((input, context) => {
38148
38152
  entries[loc] = value;
38149
38153
  });
38150
38154
  }
38151
- if (input[_DAS] != null) {
38152
- entries[_DAS] = input[_DAS];
38155
+ if (input[_DASi] != null) {
38156
+ entries[_DASi] = input[_DASi];
38153
38157
  }
38154
38158
  if (input[_EPI] != null) {
38155
38159
  entries[_EPI] = input[_EPI];
@@ -44506,6 +44510,21 @@ var de_DeleteSecurityGroupResult = /* @__PURE__ */ __name((output, context) => {
44506
44510
  }
44507
44511
  return contents;
44508
44512
  }, "de_DeleteSecurityGroupResult");
44513
+ var de_DeleteSnapshotResultSet = /* @__PURE__ */ __name((output, context) => {
44514
+ return (output || []).filter((e) => e != null).map((entry) => {
44515
+ return de_DeleteSnapshotReturnCode(entry, context);
44516
+ });
44517
+ }, "de_DeleteSnapshotResultSet");
44518
+ var de_DeleteSnapshotReturnCode = /* @__PURE__ */ __name((output, context) => {
44519
+ const contents = {};
44520
+ if (output[_sIn] != null) {
44521
+ contents[_SIn] = (0, import_smithy_client.expectString)(output[_sIn]);
44522
+ }
44523
+ if (output[_rC] != null) {
44524
+ contents[_RCet] = (0, import_smithy_client.expectString)(output[_rC]);
44525
+ }
44526
+ return contents;
44527
+ }, "de_DeleteSnapshotReturnCode");
44509
44528
  var de_DeleteSubnetCidrReservationResult = /* @__PURE__ */ __name((output, context) => {
44510
44529
  const contents = {};
44511
44530
  if (output[_dSCR] != null) {
@@ -44727,6 +44746,14 @@ var de_DeprovisionPublicIpv4PoolCidrResult = /* @__PURE__ */ __name((output, con
44727
44746
  }, "de_DeprovisionPublicIpv4PoolCidrResult");
44728
44747
  var de_DeregisterImageResult = /* @__PURE__ */ __name((output, context) => {
44729
44748
  const contents = {};
44749
+ if (output[_r] != null) {
44750
+ contents[_Ret] = (0, import_smithy_client.parseBoolean)(output[_r]);
44751
+ }
44752
+ if (output.deleteSnapshotResultSet === "") {
44753
+ contents[_DSR] = [];
44754
+ } else if (output[_dSRS] != null && output[_dSRS][_i] != null) {
44755
+ contents[_DSR] = de_DeleteSnapshotResultSet((0, import_smithy_client.getArrayIfSingleItem)(output[_dSRS][_i]), context);
44756
+ }
44730
44757
  return contents;
44731
44758
  }, "de_DeregisterImageResult");
44732
44759
  var de_DeregisterInstanceEventNotificationAttributesResult = /* @__PURE__ */ __name((output, context) => {
@@ -50881,7 +50908,7 @@ var de_InstanceAttribute = /* @__PURE__ */ __name((output, context) => {
50881
50908
  contents[_UD] = de_AttributeValue(output[_uDs], context);
50882
50909
  }
50883
50910
  if (output[_dASi] != null) {
50884
- contents[_DAS] = de_AttributeBooleanValue(output[_dASi], context);
50911
+ contents[_DASi] = de_AttributeBooleanValue(output[_dASi], context);
50885
50912
  }
50886
50913
  if (output.groupSet === "") {
50887
50914
  contents[_G] = [];
@@ -57286,7 +57313,7 @@ var de_ResponseLaunchTemplateData = /* @__PURE__ */ __name((output, context) =>
57286
57313
  contents[_MOa] = de_LaunchTemplateInstanceMaintenanceOptions(output[_mOa], context);
57287
57314
  }
57288
57315
  if (output[_dASi] != null) {
57289
- contents[_DAS] = (0, import_smithy_client.parseBoolean)(output[_dASi]);
57316
+ contents[_DASi] = (0, import_smithy_client.parseBoolean)(output[_dASi]);
57290
57317
  }
57291
57318
  if (output[_op] != null) {
57292
57319
  contents[_O] = de_OperatorResponse(output[_op], context);
@@ -63436,7 +63463,8 @@ var _DAIT = "DenyAllIgwTraffic";
63436
63463
  var _DANPMS = "DescribeAwsNetworkPerformanceMetricSubscriptions";
63437
63464
  var _DANPMSi = "DisableAwsNetworkPerformanceMetricSubscription";
63438
63465
  var _DART = "DefaultAssociationRouteTable";
63439
- var _DAS = "DisableApiStop";
63466
+ var _DAS = "DeleteAssociatedSnapshots";
63467
+ var _DASi = "DisableApiStop";
63440
63468
  var _DAT = "DescribeAddressTransfers";
63441
63469
  var _DATi = "DisableAddressTransfer";
63442
63470
  var _DATis = "DisableApiTermination";
@@ -63719,6 +63747,7 @@ var _DSIR = "DescribeSpotInstanceRequests";
63719
63747
  var _DSIT = "DescribeStoreImageTasks";
63720
63748
  var _DSLVI = "DescribeServiceLinkVirtualInterfaces";
63721
63749
  var _DSPH = "DescribeSpotPriceHistory";
63750
+ var _DSR = "DeleteSnapshotResults";
63722
63751
  var _DSSG = "DescribeStaleSecurityGroups";
63723
63752
  var _DSTS = "DescribeSnapshotTierStatus";
63724
63753
  var _DSe = "DeleteSubnet";
@@ -66122,6 +66151,7 @@ var _dRe = "debuggingRestrictions";
66122
66151
  var _dRy = "dynamicRouting";
66123
66152
  var _dS = "dnsServer";
66124
66153
  var _dSCR = "deletedSubnetCidrReservation";
66154
+ var _dSRS = "deleteSnapshotResultSet";
66125
66155
  var _dSe = "destinationSet";
66126
66156
  var _dSel = "deliveryStatus";
66127
66157
  var _dSeli = "deliveryStream";
@@ -72342,6 +72372,13 @@ var IpamPoolCidrState = {
72342
72372
  pending_provision: "pending-provision",
72343
72373
  provisioned: "provisioned"
72344
72374
  };
72375
+ var SnapshotReturnCodes = {
72376
+ ERROR_CODE_CLIENT_ERROR: "client-error",
72377
+ ERROR_CODE_INTERNAL_ERROR: "internal-error",
72378
+ ERROR_MISSING_PERMISSIONS: "missing-permissions",
72379
+ SUCCESS: "success",
72380
+ WARN_SKIPPED: "skipped"
72381
+ };
72345
72382
  var AvailabilityZoneOptInStatus = {
72346
72383
  not_opted_in: "not-opted-in",
72347
72384
  opt_in_not_required: "opt-in-not-required",
@@ -85859,6 +85896,7 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
85859
85896
  AsnState,
85860
85897
  IpamPoolCidrFailureCode,
85861
85898
  IpamPoolCidrState,
85899
+ SnapshotReturnCodes,
85862
85900
  AvailabilityZoneOptInStatus,
85863
85901
  AvailabilityZoneState,
85864
85902
  MetricType,
@@ -104,6 +104,13 @@ export const IpamPoolCidrState = {
104
104
  pending_provision: "pending-provision",
105
105
  provisioned: "provisioned",
106
106
  };
107
+ export const SnapshotReturnCodes = {
108
+ ERROR_CODE_CLIENT_ERROR: "client-error",
109
+ ERROR_CODE_INTERNAL_ERROR: "internal-error",
110
+ ERROR_MISSING_PERMISSIONS: "missing-permissions",
111
+ SUCCESS: "success",
112
+ WARN_SKIPPED: "skipped",
113
+ };
107
114
  export const AvailabilityZoneOptInStatus = {
108
115
  not_opted_in: "not-opted-in",
109
116
  opt_in_not_required: "opt-in-not-required",
@@ -22041,6 +22041,9 @@ const se_DeregisterImageRequest = (input, context) => {
22041
22041
  if (input[_IIma] != null) {
22042
22042
  entries[_IIma] = input[_IIma];
22043
22043
  }
22044
+ if (input[_DAS] != null) {
22045
+ entries[_DAS] = input[_DAS];
22046
+ }
22044
22047
  if (input[_DRr] != null) {
22045
22048
  entries[_DRr] = input[_DRr];
22046
22049
  }
@@ -31776,8 +31779,8 @@ const se_ModifyInstanceAttributeRequest = (input, context) => {
31776
31779
  entries[loc] = value;
31777
31780
  });
31778
31781
  }
31779
- if (input[_DAS] != null) {
31780
- const memberEntries = se_AttributeBooleanValue(input[_DAS], context);
31782
+ if (input[_DASi] != null) {
31783
+ const memberEntries = se_AttributeBooleanValue(input[_DASi], context);
31781
31784
  Object.entries(memberEntries).forEach(([key, value]) => {
31782
31785
  const loc = `DisableApiStop.${key}`;
31783
31786
  entries[loc] = value;
@@ -35700,8 +35703,8 @@ const se_RequestLaunchTemplateData = (input, context) => {
35700
35703
  entries[loc] = value;
35701
35704
  });
35702
35705
  }
35703
- if (input[_DAS] != null) {
35704
- entries[_DAS] = input[_DAS];
35706
+ if (input[_DASi] != null) {
35707
+ entries[_DASi] = input[_DASi];
35705
35708
  }
35706
35709
  if (input[_O] != null) {
35707
35710
  const memberEntries = se_OperatorRequest(input[_O], context);
@@ -36567,8 +36570,8 @@ const se_RunInstancesRequest = (input, context) => {
36567
36570
  entries[loc] = value;
36568
36571
  });
36569
36572
  }
36570
- if (input[_DAS] != null) {
36571
- entries[_DAS] = input[_DAS];
36573
+ if (input[_DASi] != null) {
36574
+ entries[_DASi] = input[_DASi];
36572
36575
  }
36573
36576
  if (input[_EPI] != null) {
36574
36577
  entries[_EPI] = input[_EPI];
@@ -43133,6 +43136,23 @@ const de_DeleteSecurityGroupResult = (output, context) => {
43133
43136
  }
43134
43137
  return contents;
43135
43138
  };
43139
+ const de_DeleteSnapshotResultSet = (output, context) => {
43140
+ return (output || [])
43141
+ .filter((e) => e != null)
43142
+ .map((entry) => {
43143
+ return de_DeleteSnapshotReturnCode(entry, context);
43144
+ });
43145
+ };
43146
+ const de_DeleteSnapshotReturnCode = (output, context) => {
43147
+ const contents = {};
43148
+ if (output[_sIn] != null) {
43149
+ contents[_SIn] = __expectString(output[_sIn]);
43150
+ }
43151
+ if (output[_rC] != null) {
43152
+ contents[_RCet] = __expectString(output[_rC]);
43153
+ }
43154
+ return contents;
43155
+ };
43136
43156
  const de_DeleteSubnetCidrReservationResult = (output, context) => {
43137
43157
  const contents = {};
43138
43158
  if (output[_dSCR] != null) {
@@ -43360,6 +43380,15 @@ const de_DeprovisionPublicIpv4PoolCidrResult = (output, context) => {
43360
43380
  };
43361
43381
  const de_DeregisterImageResult = (output, context) => {
43362
43382
  const contents = {};
43383
+ if (output[_r] != null) {
43384
+ contents[_Ret] = __parseBoolean(output[_r]);
43385
+ }
43386
+ if (output.deleteSnapshotResultSet === "") {
43387
+ contents[_DSR] = [];
43388
+ }
43389
+ else if (output[_dSRS] != null && output[_dSRS][_i] != null) {
43390
+ contents[_DSR] = de_DeleteSnapshotResultSet(__getArrayIfSingleItem(output[_dSRS][_i]), context);
43391
+ }
43363
43392
  return contents;
43364
43393
  };
43365
43394
  const de_DeregisterInstanceEventNotificationAttributesResult = (output, context) => {
@@ -49898,7 +49927,7 @@ const de_InstanceAttribute = (output, context) => {
49898
49927
  contents[_UD] = de_AttributeValue(output[_uDs], context);
49899
49928
  }
49900
49929
  if (output[_dASi] != null) {
49901
- contents[_DAS] = de_AttributeBooleanValue(output[_dASi], context);
49930
+ contents[_DASi] = de_AttributeBooleanValue(output[_dASi], context);
49902
49931
  }
49903
49932
  if (output.groupSet === "") {
49904
49933
  contents[_G] = [];
@@ -56783,7 +56812,7 @@ const de_ResponseLaunchTemplateData = (output, context) => {
56783
56812
  contents[_MOa] = de_LaunchTemplateInstanceMaintenanceOptions(output[_mOa], context);
56784
56813
  }
56785
56814
  if (output[_dASi] != null) {
56786
- contents[_DAS] = __parseBoolean(output[_dASi]);
56815
+ contents[_DASi] = __parseBoolean(output[_dASi]);
56787
56816
  }
56788
56817
  if (output[_op] != null) {
56789
56818
  contents[_O] = de_OperatorResponse(output[_op], context);
@@ -63360,7 +63389,8 @@ const _DAIT = "DenyAllIgwTraffic";
63360
63389
  const _DANPMS = "DescribeAwsNetworkPerformanceMetricSubscriptions";
63361
63390
  const _DANPMSi = "DisableAwsNetworkPerformanceMetricSubscription";
63362
63391
  const _DART = "DefaultAssociationRouteTable";
63363
- const _DAS = "DisableApiStop";
63392
+ const _DAS = "DeleteAssociatedSnapshots";
63393
+ const _DASi = "DisableApiStop";
63364
63394
  const _DAT = "DescribeAddressTransfers";
63365
63395
  const _DATi = "DisableAddressTransfer";
63366
63396
  const _DATis = "DisableApiTermination";
@@ -63643,6 +63673,7 @@ const _DSIR = "DescribeSpotInstanceRequests";
63643
63673
  const _DSIT = "DescribeStoreImageTasks";
63644
63674
  const _DSLVI = "DescribeServiceLinkVirtualInterfaces";
63645
63675
  const _DSPH = "DescribeSpotPriceHistory";
63676
+ const _DSR = "DeleteSnapshotResults";
63646
63677
  const _DSSG = "DescribeStaleSecurityGroups";
63647
63678
  const _DSTS = "DescribeSnapshotTierStatus";
63648
63679
  const _DSe = "DeleteSubnet";
@@ -66046,6 +66077,7 @@ const _dRe = "debuggingRestrictions";
66046
66077
  const _dRy = "dynamicRouting";
66047
66078
  const _dS = "dnsServer";
66048
66079
  const _dSCR = "deletedSubnetCidrReservation";
66080
+ const _dSRS = "deleteSnapshotResultSet";
66049
66081
  const _dSe = "destinationSet";
66050
66082
  const _dSel = "deliveryStatus";
66051
66083
  const _dSeli = "deliveryStream";
@@ -28,7 +28,7 @@ declare const CancelImageLaunchPermissionCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI.
31
- * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cancel-sharing-an-AMI.html"> Cancel having an AMI shared with
31
+ * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cancel-sharing-an-AMI.html">Cancel having an AMI shared with
32
32
  * your Amazon Web Services account</a> in the <i>Amazon EC2 User Guide</i>.</p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
@@ -36,7 +36,7 @@ declare const CopyImageCommand_base: {
36
36
  * destination. Backing snapshots copied to an Outpost are encrypted by default using the default
37
37
  * encryption key for the Region or the key that you specify. Outposts do not support unencrypted
38
38
  * snapshots.</p>
39
- * <p>For information about the prerequisites when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</a> in the
39
+ * <p>For information about the prerequisites when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an Amazon EC2 AMI</a> in the
40
40
  * <i>Amazon EC2 User Guide</i>.</p>
41
41
  * @example
42
42
  * Use a bare-bones client and the command you need to make an API call.
@@ -33,8 +33,8 @@ declare const CreateImageCommand_base: {
33
33
  * to the root device volume, the new AMI contains block device mapping information for those
34
34
  * volumes. When you launch an instance from this new AMI, the instance automatically launches
35
35
  * with those additional volumes.</p>
36
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Create an Amazon EBS-backed Linux
37
- * AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
36
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Create an Amazon EBS-backed AMI</a> in
37
+ * the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
38
38
  * @example
39
39
  * Use a bare-bones client and the command you need to make an API call.
40
40
  * ```javascript
@@ -29,10 +29,10 @@ declare const CreateRestoreImageTaskCommand_base: {
29
29
  /**
30
30
  * <p>Starts a task that restores an AMI from an Amazon S3 object that was previously created by
31
31
  * using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a>.</p>
32
- * <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
32
+ * <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using S3</a> in the
33
33
  * <i>Amazon EC2 User Guide</i>.</p>
34
34
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
35
- * Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
35
+ * S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
36
36
  * @example
37
37
  * Use a bare-bones client and the command you need to make an API call.
38
38
  * ```javascript
@@ -28,10 +28,10 @@ declare const CreateStoreImageTaskCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Stores an AMI as a single object in an Amazon S3 bucket.</p>
31
- * <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
32
- * <i>Amazon EC2 User Guide</i>.</p>
31
+ * <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using S3</a> in the
32
+ * <i>Amazon EC2 User Guide</i>.</p>
33
33
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
34
- * Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
34
+ * S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
37
37
  * ```javascript
@@ -32,8 +32,12 @@ declare const DeregisterImageCommand_base: {
32
32
  * <p>If a deregistered EBS-backed AMI matches a Recycle Bin retention rule, it moves to the
33
33
  * Recycle Bin for the specified retention period. It can be restored before its retention period
34
34
  * expires, after which it is permanently deleted. If the deregistered AMI doesn't match a
35
- * retention rule, it is permanently deleted immediately. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in
36
- * the <i>Amazon EBS User Guide</i>.</p>
35
+ * retention rule, it is permanently deleted immediately. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recover deleted Amazon EBS
36
+ * snapshots and EBS-backed AMIs with Recycle Bin</a> in the <i>Amazon EBS User
37
+ * Guide</i>.</p>
38
+ * <p>When deregistering an EBS-backed AMI, you can optionally delete its associated snapshots
39
+ * at the same time. However, if a snapshot is associated with multiple AMIs, it won't be deleted
40
+ * even if specified for deletion, although the AMI will still be deregistered.</p>
37
41
  * <p>Deregistering an AMI does not delete the following:</p>
38
42
  * <ul>
39
43
  * <li>
@@ -41,8 +45,8 @@ declare const DeregisterImageCommand_base: {
41
45
  * instances until you terminate them.</p>
42
46
  * </li>
43
47
  * <li>
44
- * <p>For EBS-backed AMIs: The snapshots that were created of the root and data volumes of
45
- * the instance during AMI creation. You'll continue to incur snapshot storage costs.</p>
48
+ * <p>For EBS-backed AMIs: Snapshots that are associated with multiple AMIs. You'll continue
49
+ * to incur snapshot storage costs.</p>
46
50
  * </li>
47
51
  * <li>
48
52
  * <p>For instance store-backed AMIs: The files uploaded to Amazon S3 during AMI creation. You'll
@@ -59,11 +63,20 @@ declare const DeregisterImageCommand_base: {
59
63
  * const client = new EC2Client(config);
60
64
  * const input = { // DeregisterImageRequest
61
65
  * ImageId: "STRING_VALUE", // required
66
+ * DeleteAssociatedSnapshots: true || false,
62
67
  * DryRun: true || false,
63
68
  * };
64
69
  * const command = new DeregisterImageCommand(input);
65
70
  * const response = await client.send(command);
66
- * // {};
71
+ * // { // DeregisterImageResult
72
+ * // Return: true || false,
73
+ * // DeleteSnapshotResults: [ // DeleteSnapshotResultSet
74
+ * // { // DeleteSnapshotReturnCode
75
+ * // SnapshotId: "STRING_VALUE",
76
+ * // ReturnCode: "success" || "skipped" || "missing-permissions" || "internal-error" || "client-error",
77
+ * // },
78
+ * // ],
79
+ * // };
67
80
  *
68
81
  * ```
69
82
  *
@@ -84,7 +97,7 @@ export declare class DeregisterImageCommand extends DeregisterImageCommand_base
84
97
  protected static __types: {
85
98
  api: {
86
99
  input: DeregisterImageRequest;
87
- output: {};
100
+ output: DeregisterImageResult;
88
101
  };
89
102
  sdk: {
90
103
  input: DeregisterImageCommandInput;
@@ -1,8 +1,7 @@
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 { DescribeKeyPairsRequest } from "../models/models_4";
5
- import { DescribeKeyPairsResult } from "../models/models_5";
4
+ import { DescribeKeyPairsRequest, DescribeKeyPairsResult } from "../models/models_5";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -35,10 +35,10 @@ declare const DescribeStoreImageTasksCommand_base: {
35
35
  * response shows the estimated progress as a percentage.</p>
36
36
  * <p>Tasks are listed in reverse chronological order. Currently, only tasks from the past 31
37
37
  * days can be viewed.</p>
38
- * <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
39
- * <i>Amazon EC2 User Guide</i>.</p>
38
+ * <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using S3</a> in the
39
+ * <i>Amazon EC2 User Guide</i>.</p>
40
40
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
41
- * Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
41
+ * S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
42
42
  * @example
43
43
  * Use a bare-bones client and the command you need to make an API call.
44
44
  * ```javascript
@@ -1,7 +1,7 @@
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 { DescribeVpcsRequest, DescribeVpcsResult } from "../models/models_5";
4
+ import { DescribeVpcsRequest, DescribeVpcsResult } from "../models/models_6";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -35,7 +35,7 @@ declare const DisableImageBlockPublicAccessCommand_base: {
35
35
  * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html">GetImageBlockPublicAccessState</a>, the response will be
36
36
  * <code>block-new-sharing</code>. When the API has completed the configuration, the response
37
37
  * will be <code>unblocked</code>.</p>
38
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis">Block
38
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html">Block
39
39
  * public access to your AMIs</a> in the <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.
@@ -28,7 +28,7 @@ declare const DisableImageDeprecationCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Cancels the deprecation of the specified AMI.</p>
31
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the
31
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an Amazon EC2 AMI</a> in the
32
32
  * <i>Amazon EC2 User Guide</i>.</p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
@@ -32,8 +32,8 @@ declare const DisableImageDeregistrationProtectionCommand_base: {
32
32
  * <p>If you chose to include a 24-hour cooldown period when you enabled deregistration
33
33
  * protection for the AMI, then, when you disable deregistration protection, you won’t
34
34
  * immediately be able to deregister the AMI.</p>
35
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection">Protect an
36
- * AMI from deregistration</a> in the <i>Amazon EC2 User Guide</i>.</p>
35
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deregistration-protection.html">Protect an Amazon EC2 AMI from
36
+ * deregistration</a> in the <i>Amazon EC2 User Guide</i>.</p>
37
37
  * @example
38
38
  * Use a bare-bones client and the command you need to make an API call.
39
39
  * ```javascript
@@ -34,7 +34,7 @@ declare const EnableImageBlockPublicAccessCommand_base: {
34
34
  * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html">GetImageBlockPublicAccessState</a>, the response will be <code>unblocked</code>. When
35
35
  * the API has completed the configuration, the response will be
36
36
  * <code>block-new-sharing</code>.</p>
37
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis">Block
37
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html">Block
38
38
  * public access to your AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
39
39
  * @example
40
40
  * Use a bare-bones client and the command you need to make an API call.
@@ -33,8 +33,8 @@ declare const EnableImageCommand_base: {
33
33
  * disabled do not regain access automatically. Once the AMI is available, it can be shared with
34
34
  * them again.</p>
35
35
  * <p>Only the AMI owner can re-enable a disabled AMI.</p>
36
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html">Disable an AMI</a> in the
37
- * <i>Amazon EC2 User Guide</i>.</p>
36
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html">Disable an Amazon EC2 AMI</a>
37
+ * in the <i>Amazon EC2 User Guide</i>.</p>
38
38
  * @example
39
39
  * Use a bare-bones client and the command you need to make an API call.
40
40
  * ```javascript
@@ -31,8 +31,8 @@ declare const EnableImageDeregistrationProtectionCommand_base: {
31
31
  * the AMI can't be deregistered.</p>
32
32
  * <p>To allow the AMI to be deregistered, you must first disable deregistration protection
33
33
  * using <a>DisableImageDeregistrationProtection</a>.</p>
34
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection">Protect an
35
- * AMI from deregistration</a> in the <i>Amazon EC2 User Guide</i>.</p>
34
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deregistration-protection.html">Protect an
35
+ * Amazon EC2 AMI from deregistration</a> in the <i>Amazon EC2 User Guide</i>.</p>
36
36
  * @example
37
37
  * Use a bare-bones client and the command you need to make an API call.
38
38
  * ```javascript
@@ -29,7 +29,7 @@ declare const GetImageBlockPublicAccessStateCommand_base: {
29
29
  /**
30
30
  * <p>Gets the current state of <i>block public access for AMIs</i> at the account
31
31
  * level in the specified Amazon Web Services Region.</p>
32
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis">Block
32
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html">Block
33
33
  * public access to your AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
34
34
  * @example
35
35
  * 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 { GetTransitGatewayMulticastDomainAssociationsRequest, GetTransitGatewayMulticastDomainAssociationsResult } from "../models/models_6";
4
+ import { GetTransitGatewayMulticastDomainAssociationsRequest } from "../models/models_6";
5
+ import { GetTransitGatewayMulticastDomainAssociationsResult } from "../models/models_7";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,8 +1,7 @@
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 { GetTransitGatewayPolicyTableAssociationsRequest } from "../models/models_6";
5
- import { GetTransitGatewayPolicyTableAssociationsResult } from "../models/models_7";
4
+ import { GetTransitGatewayPolicyTableAssociationsRequest, GetTransitGatewayPolicyTableAssociationsResult } from "../models/models_7";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -48,8 +48,8 @@ declare const RegisterImageCommand_base: {
48
48
  * the encryption state of the volume using the block device mapping. If the snapshot is
49
49
  * encrypted, or encryption by default is enabled, the root volume of an instance launched from
50
50
  * the AMI is encrypted.</p>
51
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot">Create an AMI from a snapshot</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html">Use encryption with Amazon EBS-backed
52
- * AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
51
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot">Create an AMI from a snapshot</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html">Use encryption with EBS-backed AMIs</a>
52
+ * in the <i>Amazon EC2 User Guide</i>.</p>
53
53
  * <p>
54
54
  * <b>Amazon Web Services Marketplace product codes</b>
55
55
  * </p>
@@ -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 { RejectVpcPeeringConnectionRequest, RejectVpcPeeringConnectionResult } from "../models/models_7";
4
+ import { RejectVpcPeeringConnectionRequest } from "../models/models_7";
5
+ import { RejectVpcPeeringConnectionResult } from "../models/models_8";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
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 { ReleaseAddressRequest } from "../models/models_7";
4
+ import { ReleaseAddressRequest } from "../models/models_8";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -27,8 +27,9 @@ declare const RestoreImageFromRecycleBinCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Restores an AMI from the Recycle Bin. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in
31
- * the <i>Amazon EC2 User Guide</i>.</p>
30
+ * <p>Restores an AMI from the Recycle Bin. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recover deleted Amazon EBS
31
+ * snapshots and EBS-back AMIs with Recycle Bin</a> in the
32
+ * <i>Amazon EC2 User Guide</i>.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -54,8 +54,9 @@ export interface CopyFpgaImageResult {
54
54
  export interface CopyImageRequest {
55
55
  /**
56
56
  * <p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For
57
- * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>
58
- * in the <i>Amazon EC2 API Reference</i>.</p>
57
+ * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency in
58
+ * Amazon EC2 API requests</a> in the <i>Amazon EC2 API
59
+ * Reference</i>.</p>
59
60
  * @public
60
61
  */
61
62
  ClientToken?: string | undefined;
@@ -166,8 +167,8 @@ export interface CopyImageRequest {
166
167
  * meet the timing target.</p>
167
168
  * <p>If you do not specify a value, the AMI copy operation is completed on a best-effort
168
169
  * basis.</p>
169
- * <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html">
170
- * Time-based copies</a>.</p>
170
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html">Time-based copies for Amazon EBS snapshots and
171
+ * EBS-backed AMIs</a>.</p>
171
172
  * @public
172
173
  */
173
174
  SnapshotCopyCompletionDurationMinutes?: number | undefined;