@aws-sdk/client-ec2 3.267.0 → 3.271.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 (68) hide show
  1. package/dist-cjs/commands/DeleteTrafficMirrorSessionCommand.js +2 -1
  2. package/dist-cjs/commands/UnassignIpv6AddressesCommand.js +1 -2
  3. package/dist-cjs/endpoint/ruleset.js +3 -3
  4. package/dist-cjs/models/models_0.js +7 -7
  5. package/dist-cjs/models/models_1.js +18 -10
  6. package/dist-cjs/models/models_2.js +9 -9
  7. package/dist-cjs/models/models_3.js +10 -10
  8. package/dist-cjs/models/models_4.js +29 -10
  9. package/dist-cjs/models/models_5.js +9 -6
  10. package/dist-cjs/models/models_6.js +23 -10
  11. package/dist-cjs/models/models_7.js +5 -1
  12. package/dist-cjs/protocols/Aws_ec2.js +10 -0
  13. package/dist-cjs/waiters/index.js +1 -0
  14. package/dist-cjs/waiters/waitForSnapshotImported.js +59 -0
  15. package/dist-es/commands/DeleteTrafficMirrorSessionCommand.js +2 -1
  16. package/dist-es/commands/UnassignIpv6AddressesCommand.js +1 -2
  17. package/dist-es/endpoint/ruleset.js +3 -3
  18. package/dist-es/models/models_0.js +5 -5
  19. package/dist-es/models/models_1.js +12 -3
  20. package/dist-es/models/models_2.js +3 -3
  21. package/dist-es/models/models_3.js +3 -3
  22. package/dist-es/models/models_4.js +22 -3
  23. package/dist-es/models/models_5.js +7 -5
  24. package/dist-es/models/models_6.js +17 -3
  25. package/dist-es/models/models_7.js +3 -0
  26. package/dist-es/protocols/Aws_ec2.js +10 -0
  27. package/dist-es/waiters/index.js +1 -0
  28. package/dist-es/waiters/waitForSnapshotImported.js +54 -0
  29. package/dist-types/EC2.d.ts +6 -13
  30. package/dist-types/EC2Client.d.ts +15 -15
  31. package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +3 -2
  32. package/dist-types/commands/DeleteTrafficMirrorSessionCommand.d.ts +2 -1
  33. package/dist-types/commands/DescribeSnapshotsCommand.d.ts +1 -5
  34. package/dist-types/commands/DescribeVolumesCommand.d.ts +1 -5
  35. package/dist-types/commands/UnassignIpv6AddressesCommand.d.ts +1 -2
  36. package/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  37. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  38. package/dist-types/models/models_0.d.ts +14 -5
  39. package/dist-types/models/models_1.d.ts +36 -40
  40. package/dist-types/models/models_2.d.ts +35 -12
  41. package/dist-types/models/models_3.d.ts +65 -304
  42. package/dist-types/models/models_4.d.ts +399 -148
  43. package/dist-types/models/models_5.d.ts +42 -23
  44. package/dist-types/models/models_6.d.ts +13 -21
  45. package/dist-types/models/models_7.d.ts +18 -0
  46. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  47. package/dist-types/runtimeConfig.d.ts +1 -1
  48. package/dist-types/runtimeConfig.native.d.ts +4 -4
  49. package/dist-types/ts3.4/EC2Client.d.ts +4 -4
  50. package/dist-types/ts3.4/commands/DeleteTrafficMirrorSessionCommand.d.ts +2 -4
  51. package/dist-types/ts3.4/commands/UnassignIpv6AddressesCommand.d.ts +4 -2
  52. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  53. package/dist-types/ts3.4/models/models_0.d.ts +5 -4
  54. package/dist-types/ts3.4/models/models_1.d.ts +4 -13
  55. package/dist-types/ts3.4/models/models_2.d.ts +12 -7
  56. package/dist-types/ts3.4/models/models_3.d.ts +8 -61
  57. package/dist-types/ts3.4/models/models_4.d.ts +81 -8
  58. package/dist-types/ts3.4/models/models_5.d.ts +8 -5
  59. package/dist-types/ts3.4/models/models_6.d.ts +7 -10
  60. package/dist-types/ts3.4/models/models_7.d.ts +8 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
  64. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  65. package/dist-types/ts3.4/waiters/waitForSnapshotImported.d.ts +11 -0
  66. package/dist-types/waiters/index.d.ts +1 -0
  67. package/dist-types/waiters/waitForSnapshotImported.d.ts +14 -0
  68. package/package.json +31 -31
@@ -1,4 +1,9 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
+ export var SelfServicePortal;
3
+ (function (SelfServicePortal) {
4
+ SelfServicePortal["disabled"] = "disabled";
5
+ SelfServicePortal["enabled"] = "enabled";
6
+ })(SelfServicePortal || (SelfServicePortal = {}));
2
7
  export var TransportProtocol;
3
8
  (function (TransportProtocol) {
4
9
  TransportProtocol["tcp"] = "tcp";
@@ -945,12 +950,19 @@ export const LaunchTemplateTagSpecificationFilterSensitiveLog = (obj) => ({
945
950
  });
946
951
  export const ResponseLaunchTemplateDataFilterSensitiveLog = (obj) => ({
947
952
  ...obj,
953
+ ...(obj.UserData && { UserData: SENSITIVE_STRING }),
948
954
  });
949
955
  export const LaunchTemplateVersionFilterSensitiveLog = (obj) => ({
950
956
  ...obj,
957
+ ...(obj.LaunchTemplateData && {
958
+ LaunchTemplateData: ResponseLaunchTemplateDataFilterSensitiveLog(obj.LaunchTemplateData),
959
+ }),
951
960
  });
952
961
  export const CreateLaunchTemplateVersionResultFilterSensitiveLog = (obj) => ({
953
962
  ...obj,
963
+ ...(obj.LaunchTemplateVersion && {
964
+ LaunchTemplateVersion: LaunchTemplateVersionFilterSensitiveLog(obj.LaunchTemplateVersion),
965
+ }),
954
966
  });
955
967
  export const CreateLocalGatewayRouteRequestFilterSensitiveLog = (obj) => ({
956
968
  ...obj,
@@ -1147,6 +1159,3 @@ export const CreateRouteResultFilterSensitiveLog = (obj) => ({
1147
1159
  export const CreateRouteTableRequestFilterSensitiveLog = (obj) => ({
1148
1160
  ...obj,
1149
1161
  });
1150
- export const RouteTableAssociationFilterSensitiveLog = (obj) => ({
1151
- ...obj,
1152
- });
@@ -334,6 +334,9 @@ export var DeleteQueuedReservedInstancesErrorCode;
334
334
  DeleteQueuedReservedInstancesErrorCode["RESERVED_INSTANCES_NOT_IN_QUEUED_STATE"] = "reserved-instances-not-in-queued-state";
335
335
  DeleteQueuedReservedInstancesErrorCode["UNEXPECTED_ERROR"] = "unexpected-error";
336
336
  })(DeleteQueuedReservedInstancesErrorCode || (DeleteQueuedReservedInstancesErrorCode = {}));
337
+ export const RouteTableAssociationFilterSensitiveLog = (obj) => ({
338
+ ...obj,
339
+ });
337
340
  export const PropagatingVgwFilterSensitiveLog = (obj) => ({
338
341
  ...obj,
339
342
  });
@@ -1063,6 +1066,3 @@ export const DeleteTrafficMirrorFilterRuleResultFilterSensitiveLog = (obj) => ({
1063
1066
  export const DeleteTrafficMirrorSessionRequestFilterSensitiveLog = (obj) => ({
1064
1067
  ...obj,
1065
1068
  });
1066
- export const DeleteTrafficMirrorSessionResultFilterSensitiveLog = (obj) => ({
1067
- ...obj,
1068
- });
@@ -287,6 +287,9 @@ export var InstanceStateName;
287
287
  InstanceStateName["stopping"] = "stopping";
288
288
  InstanceStateName["terminated"] = "terminated";
289
289
  })(InstanceStateName || (InstanceStateName = {}));
290
+ export const DeleteTrafficMirrorSessionResultFilterSensitiveLog = (obj) => ({
291
+ ...obj,
292
+ });
290
293
  export const DeleteTrafficMirrorTargetRequestFilterSensitiveLog = (obj) => ({
291
294
  ...obj,
292
295
  });
@@ -1049,6 +1052,3 @@ export const PrivateDnsNameOptionsResponseFilterSensitiveLog = (obj) => ({
1049
1052
  export const InstanceStateFilterSensitiveLog = (obj) => ({
1050
1053
  ...obj,
1051
1054
  });
1052
- export const InstanceFilterSensitiveLog = (obj) => ({
1053
- ...obj,
1054
- });
@@ -1,3 +1,5 @@
1
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
+ import { LaunchTemplateVersionFilterSensitiveLog, } from "./models_1";
1
3
  export var EventCode;
2
4
  (function (EventCode) {
3
5
  EventCode["instance_reboot"] = "instance-reboot";
@@ -229,6 +231,9 @@ export var VolumeStatusName;
229
231
  VolumeStatusName["io_enabled"] = "io-enabled";
230
232
  VolumeStatusName["io_performance"] = "io-performance";
231
233
  })(VolumeStatusName || (VolumeStatusName = {}));
234
+ export const InstanceFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
232
237
  export const ReservationFilterSensitiveLog = (obj) => ({
233
238
  ...obj,
234
239
  });
@@ -396,6 +401,9 @@ export const DescribeLaunchTemplateVersionsRequestFilterSensitiveLog = (obj) =>
396
401
  });
397
402
  export const DescribeLaunchTemplateVersionsResultFilterSensitiveLog = (obj) => ({
398
403
  ...obj,
404
+ ...(obj.LaunchTemplateVersions && {
405
+ LaunchTemplateVersions: obj.LaunchTemplateVersions.map((item) => LaunchTemplateVersionFilterSensitiveLog(item)),
406
+ }),
399
407
  });
400
408
  export const DescribeLocalGatewayRouteTablesRequestFilterSensitiveLog = (obj) => ({
401
409
  ...obj,
@@ -738,6 +746,7 @@ export const SpotFleetTagSpecificationFilterSensitiveLog = (obj) => ({
738
746
  });
739
747
  export const SpotFleetLaunchSpecificationFilterSensitiveLog = (obj) => ({
740
748
  ...obj,
749
+ ...(obj.UserData && { UserData: SENSITIVE_STRING }),
741
750
  });
742
751
  export const LaunchTemplateOverridesFilterSensitiveLog = (obj) => ({
743
752
  ...obj,
@@ -768,9 +777,15 @@ export const SpotMaintenanceStrategiesFilterSensitiveLog = (obj) => ({
768
777
  });
769
778
  export const SpotFleetRequestConfigDataFilterSensitiveLog = (obj) => ({
770
779
  ...obj,
780
+ ...(obj.LaunchSpecifications && {
781
+ LaunchSpecifications: obj.LaunchSpecifications.map((item) => SpotFleetLaunchSpecificationFilterSensitiveLog(item)),
782
+ }),
771
783
  });
772
784
  export const SpotFleetRequestConfigFilterSensitiveLog = (obj) => ({
773
785
  ...obj,
786
+ ...(obj.SpotFleetRequestConfig && {
787
+ SpotFleetRequestConfig: SpotFleetRequestConfigDataFilterSensitiveLog(obj.SpotFleetRequestConfig),
788
+ }),
774
789
  });
775
790
  export const DescribeSpotFleetRequestsResponseFilterSensitiveLog = (obj) => ({
776
791
  ...obj,
@@ -783,15 +798,22 @@ export const RunInstancesMonitoringEnabledFilterSensitiveLog = (obj) => ({
783
798
  });
784
799
  export const LaunchSpecificationFilterSensitiveLog = (obj) => ({
785
800
  ...obj,
801
+ ...(obj.UserData && { UserData: SENSITIVE_STRING }),
786
802
  });
787
803
  export const SpotInstanceStatusFilterSensitiveLog = (obj) => ({
788
804
  ...obj,
789
805
  });
790
806
  export const SpotInstanceRequestFilterSensitiveLog = (obj) => ({
791
807
  ...obj,
808
+ ...(obj.LaunchSpecification && {
809
+ LaunchSpecification: LaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification),
810
+ }),
792
811
  });
793
812
  export const DescribeSpotInstanceRequestsResultFilterSensitiveLog = (obj) => ({
794
813
  ...obj,
814
+ ...(obj.SpotInstanceRequests && {
815
+ SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => SpotInstanceRequestFilterSensitiveLog(item)),
816
+ }),
795
817
  });
796
818
  export const DescribeSpotPriceHistoryRequestFilterSensitiveLog = (obj) => ({
797
819
  ...obj,
@@ -1009,6 +1031,3 @@ export const VolumeStatusAttachmentStatusFilterSensitiveLog = (obj) => ({
1009
1031
  export const VolumeStatusEventFilterSensitiveLog = (obj) => ({
1010
1032
  ...obj,
1011
1033
  });
1012
- export const VolumeStatusDetailsFilterSensitiveLog = (obj) => ({
1013
- ...obj,
1014
- });
@@ -1,4 +1,5 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
+ import { ResponseLaunchTemplateDataFilterSensitiveLog, } from "./models_1";
2
3
  export var VolumeStatusInfoStatus;
3
4
  (function (VolumeStatusInfoStatus) {
4
5
  VolumeStatusInfoStatus["impaired"] = "impaired";
@@ -78,11 +79,9 @@ export var IpamManagementState;
78
79
  IpamManagementState["managed"] = "managed";
79
80
  IpamManagementState["unmanaged"] = "unmanaged";
80
81
  })(IpamManagementState || (IpamManagementState = {}));
81
- export var ModifyAvailabilityZoneOptInStatus;
82
- (function (ModifyAvailabilityZoneOptInStatus) {
83
- ModifyAvailabilityZoneOptInStatus["not_opted_in"] = "not-opted-in";
84
- ModifyAvailabilityZoneOptInStatus["opted_in"] = "opted-in";
85
- })(ModifyAvailabilityZoneOptInStatus || (ModifyAvailabilityZoneOptInStatus = {}));
82
+ export const VolumeStatusDetailsFilterSensitiveLog = (obj) => ({
83
+ ...obj,
84
+ });
86
85
  export const VolumeStatusInfoFilterSensitiveLog = (obj) => ({
87
86
  ...obj,
88
87
  });
@@ -685,6 +684,9 @@ export const GetLaunchTemplateDataRequestFilterSensitiveLog = (obj) => ({
685
684
  });
686
685
  export const GetLaunchTemplateDataResultFilterSensitiveLog = (obj) => ({
687
686
  ...obj,
687
+ ...(obj.LaunchTemplateData && {
688
+ LaunchTemplateData: ResponseLaunchTemplateDataFilterSensitiveLog(obj.LaunchTemplateData),
689
+ }),
688
690
  });
689
691
  export const GetManagedPrefixListAssociationsRequestFilterSensitiveLog = (obj) => ({
690
692
  ...obj,
@@ -1,4 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
+ import { SpotFleetRequestConfigDataFilterSensitiveLog, SpotInstanceRequestFilterSensitiveLog, } from "./models_4";
3
+ export var ModifyAvailabilityZoneOptInStatus;
4
+ (function (ModifyAvailabilityZoneOptInStatus) {
5
+ ModifyAvailabilityZoneOptInStatus["not_opted_in"] = "not-opted-in";
6
+ ModifyAvailabilityZoneOptInStatus["opted_in"] = "opted-in";
7
+ })(ModifyAvailabilityZoneOptInStatus || (ModifyAvailabilityZoneOptInStatus = {}));
2
8
  export var OperationType;
3
9
  (function (OperationType) {
4
10
  OperationType["add"] = "add";
@@ -699,18 +705,28 @@ export const ReportInstanceStatusRequestFilterSensitiveLog = (obj) => ({
699
705
  });
700
706
  export const RequestSpotFleetRequestFilterSensitiveLog = (obj) => ({
701
707
  ...obj,
708
+ ...(obj.SpotFleetRequestConfig && {
709
+ SpotFleetRequestConfig: SpotFleetRequestConfigDataFilterSensitiveLog(obj.SpotFleetRequestConfig),
710
+ }),
702
711
  });
703
712
  export const RequestSpotFleetResponseFilterSensitiveLog = (obj) => ({
704
713
  ...obj,
705
714
  });
706
715
  export const RequestSpotLaunchSpecificationFilterSensitiveLog = (obj) => ({
707
716
  ...obj,
717
+ ...(obj.UserData && { UserData: SENSITIVE_STRING }),
708
718
  });
709
719
  export const RequestSpotInstancesRequestFilterSensitiveLog = (obj) => ({
710
720
  ...obj,
721
+ ...(obj.LaunchSpecification && {
722
+ LaunchSpecification: RequestSpotLaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification),
723
+ }),
711
724
  });
712
725
  export const RequestSpotInstancesResultFilterSensitiveLog = (obj) => ({
713
726
  ...obj,
727
+ ...(obj.SpotInstanceRequests && {
728
+ SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => SpotInstanceRequestFilterSensitiveLog(item)),
729
+ }),
714
730
  });
715
731
  export const ResetAddressAttributeRequestFilterSensitiveLog = (obj) => ({
716
732
  ...obj,
@@ -856,6 +872,7 @@ export const ScheduledInstancesLaunchSpecificationFilterSensitiveLog = (obj) =>
856
872
  });
857
873
  export const RunScheduledInstancesRequestFilterSensitiveLog = (obj) => ({
858
874
  ...obj,
875
+ ...(obj.LaunchSpecification && { LaunchSpecification: SENSITIVE_STRING }),
859
876
  });
860
877
  export const RunScheduledInstancesResultFilterSensitiveLog = (obj) => ({
861
878
  ...obj,
@@ -932,6 +949,3 @@ export const TerminateInstancesRequestFilterSensitiveLog = (obj) => ({
932
949
  export const TerminateInstancesResultFilterSensitiveLog = (obj) => ({
933
950
  ...obj,
934
951
  });
935
- export const UnassignIpv6AddressesRequestFilterSensitiveLog = (obj) => ({
936
- ...obj,
937
- });
@@ -1,3 +1,6 @@
1
+ export const UnassignIpv6AddressesRequestFilterSensitiveLog = (obj) => ({
2
+ ...obj,
3
+ });
1
4
  export const UnassignIpv6AddressesResultFilterSensitiveLog = (obj) => ({
2
5
  ...obj,
3
6
  });
@@ -23182,6 +23182,9 @@ const serializeAws_ec2AllocateHostsRequest = (input, context) => {
23182
23182
  if (input.OutpostArn != null) {
23183
23183
  entries["OutpostArn"] = input.OutpostArn;
23184
23184
  }
23185
+ if (input.HostMaintenance != null) {
23186
+ entries["HostMaintenance"] = input.HostMaintenance;
23187
+ }
23185
23188
  return entries;
23186
23189
  };
23187
23190
  const serializeAws_ec2AllocateIpamPoolCidrRequest = (input, context) => {
@@ -37988,6 +37991,9 @@ const serializeAws_ec2ModifyHostsRequest = (input, context) => {
37988
37991
  if (input.InstanceFamily != null) {
37989
37992
  entries["InstanceFamily"] = input.InstanceFamily;
37990
37993
  }
37994
+ if (input.HostMaintenance != null) {
37995
+ entries["HostMaintenance"] = input.HostMaintenance;
37996
+ }
37991
37997
  return entries;
37992
37998
  };
37993
37999
  const serializeAws_ec2ModifyIdentityIdFormatRequest = (input, context) => {
@@ -55023,6 +55029,7 @@ const deserializeAws_ec2Host = (output, context) => {
55023
55029
  AvailabilityZoneId: undefined,
55024
55030
  MemberOfServiceLinkedResourceGroup: undefined,
55025
55031
  OutpostArn: undefined,
55032
+ HostMaintenance: undefined,
55026
55033
  };
55027
55034
  if (output["autoPlacement"] !== undefined) {
55028
55035
  contents.AutoPlacement = __expectString(output["autoPlacement"]);
@@ -55084,6 +55091,9 @@ const deserializeAws_ec2Host = (output, context) => {
55084
55091
  if (output["outpostArn"] !== undefined) {
55085
55092
  contents.OutpostArn = __expectString(output["outpostArn"]);
55086
55093
  }
55094
+ if (output["hostMaintenance"] !== undefined) {
55095
+ contents.HostMaintenance = __expectString(output["hostMaintenance"]);
55096
+ }
55087
55097
  return contents;
55088
55098
  };
55089
55099
  const deserializeAws_ec2HostInstance = (output, context) => {
@@ -17,6 +17,7 @@ export * from "./waitForKeyPairExists";
17
17
  export * from "./waitForNatGatewayAvailable";
18
18
  export * from "./waitForNatGatewayDeleted";
19
19
  export * from "./waitForNetworkInterfaceAvailable";
20
+ export * from "./waitForSnapshotImported";
20
21
  export * from "./waitForSecurityGroupExists";
21
22
  export * from "./waitForSnapshotCompleted";
22
23
  export * from "./waitForSpotInstanceRequestFulfilled";
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
2
+ import { DescribeImportSnapshotTasksCommand, } from "../commands/DescribeImportSnapshotTasksCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new DescribeImportSnapshotTasksCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ const flat_1 = [].concat(...result.ImportSnapshotTasks);
11
+ const projection_3 = flat_1.map((element_2) => {
12
+ return element_2.SnapshotTaskDetail.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = returnComparator().length > 0;
17
+ for (const element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && element_4 == "completed";
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ const flat_1 = [].concat(...result.ImportSnapshotTasks);
28
+ const projection_3 = flat_1.map((element_2) => {
29
+ return element_2.SnapshotTaskDetail.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (const anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "error") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForSnapshotImported = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilSnapshotImported = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -1119,8 +1119,9 @@ export declare class EC2 extends EC2Client {
1119
1119
  cancelExportTask(args: CancelExportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelExportTaskCommandOutput) => void): void;
1120
1120
  /**
1121
1121
  * <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more
1122
- * information, see <a href="https://docs.aws.amazon.com/">Cancel having an AMI shared with your Amazon Web Services account</a>
1123
- * in the <i>Amazon EC2 User Guide</i>.</p>
1122
+ * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cancel-sharing-an-AMI.html">
1123
+ * Cancel having an AMI shared with your Amazon Web Services account</a> in the
1124
+ * <i>Amazon EC2 User Guide</i>.</p>
1124
1125
  */
1125
1126
  cancelImageLaunchPermission(args: CancelImageLaunchPermissionCommandInput, options?: __HttpHandlerOptions): Promise<CancelImageLaunchPermissionCommandOutput>;
1126
1127
  cancelImageLaunchPermission(args: CancelImageLaunchPermissionCommandInput, cb: (err: any, data?: CancelImageLaunchPermissionCommandOutput) => void): void;
@@ -3746,11 +3747,7 @@ export declare class EC2 extends EC2Client {
3746
3747
  * <code>self</code> for snapshots for which you own or have explicit permissions, or
3747
3748
  * <code>all</code> for public snapshots.</p>
3748
3749
  * <p>If you are describing a long list of snapshots, we recommend that you paginate the output to make the
3749
- * list more manageable. The <code>MaxResults</code> parameter sets the maximum number of results
3750
- * returned in a single page. If the list of results exceeds your <code>MaxResults</code> value,
3751
- * then that number of results is returned along with a <code>NextToken</code> value that can be
3752
- * passed to a subsequent <code>DescribeSnapshots</code> request to retrieve the remaining
3753
- * results.</p>
3750
+ * list more manageable. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
3754
3751
  * <p>To get the state of fast snapshot restores for a snapshot, use <a>DescribeFastSnapshotRestores</a>.</p>
3755
3752
  * <p>For more information about EBS snapshots, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html">Amazon EBS snapshots</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
3756
3753
  */
@@ -4002,11 +3999,7 @@ export declare class EC2 extends EC2Client {
4002
3999
  /**
4003
4000
  * <p>Describes the specified EBS volumes or all of your EBS volumes.</p>
4004
4001
  * <p>If you are describing a long list of volumes, we recommend that you paginate the output to make the list
4005
- * more manageable. The <code>MaxResults</code> parameter sets the maximum number of results
4006
- * returned in a single page. If the list of results exceeds your <code>MaxResults</code> value,
4007
- * then that number of results is returned along with a <code>NextToken</code> value that can be
4008
- * passed to a subsequent <code>DescribeVolumes</code> request to retrieve the remaining
4009
- * results.</p>
4002
+ * more manageable. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
4010
4003
  * <p>For more information about EBS volumes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html">Amazon EBS volumes</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4011
4004
  */
4012
4005
  describeVolumes(args: DescribeVolumesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVolumesCommandOutput>;
@@ -6623,7 +6616,7 @@ export declare class EC2 extends EC2Client {
6623
6616
  unassignPrivateIpAddresses(args: UnassignPrivateIpAddressesCommandInput, cb: (err: any, data?: UnassignPrivateIpAddressesCommandOutput) => void): void;
6624
6617
  unassignPrivateIpAddresses(args: UnassignPrivateIpAddressesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnassignPrivateIpAddressesCommandOutput) => void): void;
6625
6618
  /**
6626
- * <p>Unassigns secondary private NAT gateway IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary">Edit secondary IP address associations</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
6619
+ * <p>Unassigns secondary private IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary">Edit secondary IP address associations</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
6627
6620
  * <p>While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.</p>
6628
6621
  * <p>A private IP address will only be released at the end of MaxDrainDurationSeconds. The
6629
6622
  * private IP addresses stay associated and support the existing connections but do not
@@ -656,17 +656,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
656
656
  */
657
657
  disableHostPrefix?: boolean;
658
658
  /**
659
- * Value for how many times a request will be made at most in case of retry.
660
- */
661
- maxAttempts?: number | __Provider<number>;
662
- /**
663
- * Specifies which retry algorithm to use.
664
- */
665
- retryMode?: string | __Provider<string>;
666
- /**
667
- * Optional logger for logging debug/info/warn/error.
659
+ * Unique service identifier.
660
+ * @internal
668
661
  */
669
- logger?: __Logger;
662
+ serviceId?: string;
670
663
  /**
671
664
  * Enables IPv6/IPv4 dualstack endpoint.
672
665
  */
@@ -675,11 +668,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
675
668
  * Enables FIPS compatible endpoints.
676
669
  */
677
670
  useFipsEndpoint?: boolean | __Provider<boolean>;
678
- /**
679
- * Unique service identifier.
680
- * @internal
681
- */
682
- serviceId?: string;
683
671
  /**
684
672
  * The AWS region to which this client will send requests
685
673
  */
@@ -694,6 +682,18 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
694
682
  * @internal
695
683
  */
696
684
  defaultUserAgentProvider?: Provider<__UserAgent>;
685
+ /**
686
+ * Value for how many times a request will be made at most in case of retry.
687
+ */
688
+ maxAttempts?: number | __Provider<number>;
689
+ /**
690
+ * Specifies which retry algorithm to use.
691
+ */
692
+ retryMode?: string | __Provider<string>;
693
+ /**
694
+ * Optional logger for logging debug/info/warn/error.
695
+ */
696
+ logger?: __Logger;
697
697
  /**
698
698
  * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
699
699
  */
@@ -9,8 +9,9 @@ export interface CancelImageLaunchPermissionCommandOutput extends CancelImageLau
9
9
  }
10
10
  /**
11
11
  * <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more
12
- * information, see <a href="https://docs.aws.amazon.com/">Cancel having an AMI shared with your Amazon Web Services account</a>
13
- * in the <i>Amazon EC2 User Guide</i>.</p>
12
+ * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cancel-sharing-an-AMI.html">
13
+ * Cancel having an AMI shared with your Amazon Web Services account</a> in the
14
+ * <i>Amazon EC2 User Guide</i>.</p>
14
15
  * @example
15
16
  * Use a bare-bones client and the command you need to make an API call.
16
17
  * ```javascript
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { DeleteTrafficMirrorSessionRequest, DeleteTrafficMirrorSessionResult } from "../models/models_2";
5
+ import { DeleteTrafficMirrorSessionRequest } from "../models/models_2";
6
+ import { DeleteTrafficMirrorSessionResult } from "../models/models_3";
6
7
  export interface DeleteTrafficMirrorSessionCommandInput extends DeleteTrafficMirrorSessionRequest {
7
8
  }
8
9
  export interface DeleteTrafficMirrorSessionCommandOutput extends DeleteTrafficMirrorSessionResult, __MetadataBearer {
@@ -48,11 +48,7 @@ export interface DescribeSnapshotsCommandOutput extends DescribeSnapshotsResult,
48
48
  * <code>self</code> for snapshots for which you own or have explicit permissions, or
49
49
  * <code>all</code> for public snapshots.</p>
50
50
  * <p>If you are describing a long list of snapshots, we recommend that you paginate the output to make the
51
- * list more manageable. The <code>MaxResults</code> parameter sets the maximum number of results
52
- * returned in a single page. If the list of results exceeds your <code>MaxResults</code> value,
53
- * then that number of results is returned along with a <code>NextToken</code> value that can be
54
- * passed to a subsequent <code>DescribeSnapshots</code> request to retrieve the remaining
55
- * results.</p>
51
+ * list more manageable. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
56
52
  * <p>To get the state of fast snapshot restores for a snapshot, use <a>DescribeFastSnapshotRestores</a>.</p>
57
53
  * <p>For more information about EBS snapshots, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html">Amazon EBS snapshots</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
58
54
  * @example
@@ -10,11 +10,7 @@ export interface DescribeVolumesCommandOutput extends DescribeVolumesResult, __M
10
10
  /**
11
11
  * <p>Describes the specified EBS volumes or all of your EBS volumes.</p>
12
12
  * <p>If you are describing a long list of volumes, we recommend that you paginate the output to make the list
13
- * more manageable. The <code>MaxResults</code> parameter sets the maximum number of results
14
- * returned in a single page. If the list of results exceeds your <code>MaxResults</code> value,
15
- * then that number of results is returned along with a <code>NextToken</code> value that can be
16
- * passed to a subsequent <code>DescribeVolumes</code> request to retrieve the remaining
17
- * results.</p>
13
+ * more manageable. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
18
14
  * <p>For more information about EBS volumes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html">Amazon EBS volumes</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
19
15
  * @example
20
16
  * Use a bare-bones client and the command you need to make an API call.
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { UnassignIpv6AddressesRequest } from "../models/models_6";
6
- import { UnassignIpv6AddressesResult } from "../models/models_7";
5
+ import { UnassignIpv6AddressesRequest, UnassignIpv6AddressesResult } from "../models/models_7";
7
6
  export interface UnassignIpv6AddressesCommandInput extends UnassignIpv6AddressesRequest {
8
7
  }
9
8
  export interface UnassignIpv6AddressesCommandOutput extends UnassignIpv6AddressesResult, __MetadataBearer {
@@ -8,7 +8,7 @@ export interface UnassignPrivateNatGatewayAddressCommandInput extends UnassignPr
8
8
  export interface UnassignPrivateNatGatewayAddressCommandOutput extends UnassignPrivateNatGatewayAddressResult, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Unassigns secondary private NAT gateway IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary">Edit secondary IP address associations</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
11
+ * <p>Unassigns secondary private IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary">Edit secondary IP address associations</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
12
12
  * <p>While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.</p>
13
13
  * <p>A private IP address will only be released at the end of MaxDrainDurationSeconds. The
14
14
  * private IP addresses stay associated and support the existing connections but do not
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -188,7 +188,8 @@ export interface Tag {
188
188
  Value?: string;
189
189
  }
190
190
  /**
191
- * <p>The tags to apply to a resource when the resource is being created.</p>
191
+ * <p>The tags to apply to a resource when the resource is being created. When you specify a tag, you must
192
+ * specify the resource type to tag, otherwise the request will fail.</p>
192
193
  * <note>
193
194
  * <p>The <code>Valid Values</code> lists all the resource types that can be tagged.
194
195
  * However, the action you're using might not support tagging all of these resource types.
@@ -1923,6 +1924,10 @@ export declare enum AutoPlacement {
1923
1924
  off = "off",
1924
1925
  on = "on"
1925
1926
  }
1927
+ export declare enum HostMaintenance {
1928
+ off = "off",
1929
+ on = "on"
1930
+ }
1926
1931
  export declare enum HostRecovery {
1927
1932
  off = "off",
1928
1933
  on = "on"
@@ -1985,6 +1990,14 @@ export interface AllocateHostsRequest {
1985
1990
  * the Dedicated Host.</p>
1986
1991
  */
1987
1992
  OutpostArn?: string;
1993
+ /**
1994
+ * <p>Indicates whether to enable or disable host maintenance for the Dedicated Host. For
1995
+ * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html"> Host
1996
+ * maintenance</a> in the <i>Amazon EC2 User Guide</i>.</p>
1997
+ * <p>Default: <code>on</code>
1998
+ * </p>
1999
+ */
2000
+ HostMaintenance?: HostMaintenance | string;
1988
2001
  }
1989
2002
  /**
1990
2003
  * <p>Contains the output of AllocateHosts.</p>
@@ -6365,10 +6378,6 @@ export interface ConnectionLogOptions {
6365
6378
  */
6366
6379
  CloudwatchLogStream?: string;
6367
6380
  }
6368
- export declare enum SelfServicePortal {
6369
- disabled = "disabled",
6370
- enabled = "enabled"
6371
- }
6372
6381
  /**
6373
6382
  * @internal
6374
6383
  */