@aws-sdk/client-ec2 3.450.0 → 3.452.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 (87) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/EC2.js +6 -0
  3. package/dist-cjs/commands/DescribeLockedSnapshotsCommand.js +51 -0
  4. package/dist-cjs/commands/LockSnapshotCommand.js +51 -0
  5. package/dist-cjs/commands/RequestSpotInstancesCommand.js +3 -3
  6. package/dist-cjs/commands/UnlockSnapshotCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +3 -0
  8. package/dist-cjs/models/models_0.js +1 -0
  9. package/dist-cjs/models/models_4.js +8 -2
  10. package/dist-cjs/models/models_6.js +5 -18
  11. package/dist-cjs/models/models_7.js +20 -1
  12. package/dist-cjs/protocols/Aws_ec2.js +285 -20
  13. package/dist-es/EC2.js +6 -0
  14. package/dist-es/commands/DescribeLockedSnapshotsCommand.js +47 -0
  15. package/dist-es/commands/LockSnapshotCommand.js +47 -0
  16. package/dist-es/commands/RequestSpotInstancesCommand.js +1 -1
  17. package/dist-es/commands/UnlockSnapshotCommand.js +47 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/models/models_0.js +1 -0
  20. package/dist-es/models/models_4.js +6 -0
  21. package/dist-es/models/models_6.js +5 -16
  22. package/dist-es/models/models_7.js +17 -0
  23. package/dist-es/protocols/Aws_ec2.js +259 -0
  24. package/dist-types/EC2.d.ts +21 -0
  25. package/dist-types/EC2Client.d.ts +5 -2
  26. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  27. package/dist-types/commands/CreateFleetCommand.d.ts +4 -4
  28. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  30. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  32. package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  34. package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeLockedSnapshotsCommand.d.ts +99 -0
  37. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  40. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  41. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  43. package/dist-types/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -1
  44. package/dist-types/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +1 -2
  46. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  47. package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
  48. package/dist-types/commands/GetSpotPlacementScoresCommand.d.ts +1 -2
  49. package/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  50. package/dist-types/commands/LockSnapshotCommand.d.ts +103 -0
  51. package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
  52. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  53. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  54. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  55. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +3 -3
  56. package/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
  57. package/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  58. package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  59. package/dist-types/commands/UnlockSnapshotCommand.d.ts +76 -0
  60. package/dist-types/commands/index.d.ts +3 -0
  61. package/dist-types/models/models_0.d.ts +1 -0
  62. package/dist-types/models/models_4.d.ts +154 -129
  63. package/dist-types/models/models_5.d.ts +130 -137
  64. package/dist-types/models/models_6.d.ts +309 -210
  65. package/dist-types/models/models_7.d.ts +235 -3
  66. package/dist-types/protocols/Aws_ec2.d.ts +27 -0
  67. package/dist-types/ts3.4/EC2.d.ts +51 -0
  68. package/dist-types/ts3.4/EC2Client.d.ts +18 -0
  69. package/dist-types/ts3.4/commands/DescribeLockedSnapshotsCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +4 -2
  73. package/dist-types/ts3.4/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/GetSpotPlacementScoresCommand.d.ts +4 -2
  75. package/dist-types/ts3.4/commands/LockSnapshotCommand.d.ts +35 -0
  76. package/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UnlockSnapshotCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  81. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  82. package/dist-types/ts3.4/models/models_4.d.ts +29 -24
  83. package/dist-types/ts3.4/models/models_5.d.ts +24 -23
  84. package/dist-types/ts3.4/models/models_6.d.ts +51 -47
  85. package/dist-types/ts3.4/models/models_7.d.ts +54 -1
  86. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
  87. package/package.json +37 -37
@@ -1,9 +1,206 @@
1
- import { _InstanceType, ByoipCidr, ClientVpnAuthorizationRuleStatus, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, TagSpecification, TransitGatewayAttachmentResourceType } from "./models_0";
1
+ import { _InstanceType, AddressAttribute, AddressAttributeName, ByoipCidr, ClientVpnAuthorizationRuleStatus, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, TagSpecification, TransitGatewayAttachmentResourceType } from "./models_0";
2
2
  import { AmdSevSnpSpecification, BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, HostnameType, InstanceInterruptionBehavior, InstanceIpv6Address, LocalGatewayRoute, ManagedPrefixList, MarketType, Placement, ShutdownBehavior, SpotInstanceType } from "./models_1";
3
3
  import { SnapshotState, SSEType, TransitGatewayRoute } from "./models_2";
4
4
  import { ClientVpnConnectionStatus, Filter, InstanceAttributeName } from "./models_3";
5
- import { HttpTokensState, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, RunInstancesMonitoringEnabled, SnapshotAttributeName } from "./models_4";
6
- import { CapacityReservationSpecification, InstanceMonitoring, ResetFpgaImageAttributeName, Status } from "./models_6";
5
+ import { HttpTokensState, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, RunInstancesMonitoringEnabled, SnapshotAttributeName, SpotInstanceRequest } from "./models_4";
6
+ import { CapacityReservationSpecification, InstanceMonitoring, RequestSpotLaunchSpecification, Status } from "./models_6";
7
+ /**
8
+ * @public
9
+ * <p>Contains the parameters for RequestSpotInstances.</p>
10
+ */
11
+ export interface RequestSpotInstancesRequest {
12
+ /**
13
+ * @public
14
+ * <p>The user-specified name for a logical grouping of requests.</p>
15
+ * <p>When you specify an Availability Zone group in a Spot Instance request, all Spot
16
+ * Instances in the request are launched in the same Availability Zone. Instance proximity
17
+ * is maintained with this parameter, but the choice of Availability Zone is not. The group
18
+ * applies only to requests for Spot Instances of the same instance type. Any additional
19
+ * Spot Instance requests that are specified with the same Availability Zone group name are
20
+ * launched in that same Availability Zone, as long as at least one instance from the group
21
+ * is still active.</p>
22
+ * <p>If there is no active instance running in the Availability Zone group that you specify
23
+ * for a new Spot Instance request (all instances are terminated, the request is expired,
24
+ * or the maximum price you specified falls below current Spot price), then Amazon EC2 launches
25
+ * the instance in any Availability Zone where the constraint can be met. Consequently, the
26
+ * subsequent set of Spot Instances could be placed in a different zone from the original
27
+ * request, even if you specified the same Availability Zone group.</p>
28
+ * <p>Default: Instances are launched in any available Availability Zone.</p>
29
+ */
30
+ AvailabilityZoneGroup?: string;
31
+ /**
32
+ * @public
33
+ * <p>Deprecated.</p>
34
+ */
35
+ BlockDurationMinutes?: number;
36
+ /**
37
+ * @public
38
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
39
+ * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How to Ensure
40
+ * Idempotency</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
41
+ */
42
+ ClientToken?: string;
43
+ /**
44
+ * @public
45
+ * <p>Checks whether you have the required permissions for the action, without actually
46
+ * making the request, and provides an error response. If you have the required
47
+ * permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
48
+ * <code>UnauthorizedOperation</code>.</p>
49
+ */
50
+ DryRun?: boolean;
51
+ /**
52
+ * @public
53
+ * <p>The maximum number of Spot Instances to launch.</p>
54
+ * <p>Default: 1</p>
55
+ */
56
+ InstanceCount?: number;
57
+ /**
58
+ * @public
59
+ * <p>The instance launch group. Launch groups are Spot Instances that launch together and
60
+ * terminate together.</p>
61
+ * <p>Default: Instances are launched and terminated individually</p>
62
+ */
63
+ LaunchGroup?: string;
64
+ /**
65
+ * @public
66
+ * <p>The launch specification.</p>
67
+ */
68
+ LaunchSpecification?: RequestSpotLaunchSpecification;
69
+ /**
70
+ * @public
71
+ * <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend
72
+ * using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.</p>
73
+ * <important>
74
+ * <p>If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.</p>
75
+ * </important>
76
+ */
77
+ SpotPrice?: string;
78
+ /**
79
+ * @public
80
+ * <p>The Spot Instance request type.</p>
81
+ * <p>Default: <code>one-time</code>
82
+ * </p>
83
+ */
84
+ Type?: SpotInstanceType;
85
+ /**
86
+ * @public
87
+ * <p>The start date of the request. If this is a one-time request, the request becomes
88
+ * active at this date and time and remains active until all instances launch, the request
89
+ * expires, or the request is canceled. If the request is persistent, the request becomes
90
+ * active at this date and time and remains active until it expires or is canceled.</p>
91
+ * <p>The specified start date and time cannot be equal to the current date and time. You
92
+ * must specify a start date and time that occurs after the current date and time.</p>
93
+ */
94
+ ValidFrom?: Date;
95
+ /**
96
+ * @public
97
+ * <p>The end date of the request, in UTC format
98
+ * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
99
+ * <ul>
100
+ * <li>
101
+ * <p>For a persistent request, the request remains active until the
102
+ * <code>ValidUntil</code> date and time is reached. Otherwise, the request
103
+ * remains active until you cancel it. </p>
104
+ * </li>
105
+ * <li>
106
+ * <p>For a one-time request, the request remains active until all instances launch,
107
+ * the request is canceled, or the <code>ValidUntil</code> date and time is
108
+ * reached. By default, the request is valid for 7 days from the date the request
109
+ * was created.</p>
110
+ * </li>
111
+ * </ul>
112
+ */
113
+ ValidUntil?: Date;
114
+ /**
115
+ * @public
116
+ * <p>The key-value pair for tagging the Spot Instance request on creation. The value for
117
+ * <code>ResourceType</code> must be <code>spot-instances-request</code>, otherwise the
118
+ * Spot Instance request fails. To tag the Spot Instance request after it has been created,
119
+ * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html">CreateTags</a>. </p>
120
+ */
121
+ TagSpecifications?: TagSpecification[];
122
+ /**
123
+ * @public
124
+ * <p>The behavior when a Spot Instance is interrupted. The default is <code>terminate</code>.</p>
125
+ */
126
+ InstanceInterruptionBehavior?: InstanceInterruptionBehavior;
127
+ }
128
+ /**
129
+ * @public
130
+ * <p>Contains the output of RequestSpotInstances.</p>
131
+ */
132
+ export interface RequestSpotInstancesResult {
133
+ /**
134
+ * @public
135
+ * <p>The Spot Instance requests.</p>
136
+ */
137
+ SpotInstanceRequests?: SpotInstanceRequest[];
138
+ }
139
+ /**
140
+ * @public
141
+ */
142
+ export interface ResetAddressAttributeRequest {
143
+ /**
144
+ * @public
145
+ * <p>[EC2-VPC] The allocation ID.</p>
146
+ */
147
+ AllocationId: string | undefined;
148
+ /**
149
+ * @public
150
+ * <p>The attribute of the IP address.</p>
151
+ */
152
+ Attribute: AddressAttributeName | undefined;
153
+ /**
154
+ * @public
155
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
156
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
157
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
158
+ */
159
+ DryRun?: boolean;
160
+ }
161
+ /**
162
+ * @public
163
+ */
164
+ export interface ResetAddressAttributeResult {
165
+ /**
166
+ * @public
167
+ * <p>Information about the IP address.</p>
168
+ */
169
+ Address?: AddressAttribute;
170
+ }
171
+ /**
172
+ * @public
173
+ */
174
+ export interface ResetEbsDefaultKmsKeyIdRequest {
175
+ /**
176
+ * @public
177
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
178
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
179
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
180
+ */
181
+ DryRun?: boolean;
182
+ }
183
+ /**
184
+ * @public
185
+ */
186
+ export interface ResetEbsDefaultKmsKeyIdResult {
187
+ /**
188
+ * @public
189
+ * <p>The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.</p>
190
+ */
191
+ KmsKeyId?: string;
192
+ }
193
+ /**
194
+ * @public
195
+ * @enum
196
+ */
197
+ export declare const ResetFpgaImageAttributeName: {
198
+ readonly loadPermission: "loadPermission";
199
+ };
200
+ /**
201
+ * @public
202
+ */
203
+ export type ResetFpgaImageAttributeName = (typeof ResetFpgaImageAttributeName)[keyof typeof ResetFpgaImageAttributeName];
7
204
  /**
8
205
  * @public
9
206
  */
@@ -2380,6 +2577,33 @@ export interface UnassignPrivateNatGatewayAddressResult {
2380
2577
  */
2381
2578
  NatGatewayAddresses?: NatGatewayAddress[];
2382
2579
  }
2580
+ /**
2581
+ * @public
2582
+ */
2583
+ export interface UnlockSnapshotRequest {
2584
+ /**
2585
+ * @public
2586
+ * <p>The ID of the snapshot to unlock.</p>
2587
+ */
2588
+ SnapshotId: string | undefined;
2589
+ /**
2590
+ * @public
2591
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
2592
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
2593
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
2594
+ */
2595
+ DryRun?: boolean;
2596
+ }
2597
+ /**
2598
+ * @public
2599
+ */
2600
+ export interface UnlockSnapshotResult {
2601
+ /**
2602
+ * @public
2603
+ * <p>The ID of the snapshot.</p>
2604
+ */
2605
+ SnapshotId?: string;
2606
+ }
2383
2607
  /**
2384
2608
  * @public
2385
2609
  */
@@ -2546,6 +2770,14 @@ export interface WithdrawByoipCidrResult {
2546
2770
  */
2547
2771
  ByoipCidr?: ByoipCidr;
2548
2772
  }
2773
+ /**
2774
+ * @internal
2775
+ */
2776
+ export declare const RequestSpotInstancesRequestFilterSensitiveLog: (obj: RequestSpotInstancesRequest) => any;
2777
+ /**
2778
+ * @internal
2779
+ */
2780
+ export declare const RequestSpotInstancesResultFilterSensitiveLog: (obj: RequestSpotInstancesResult) => any;
2549
2781
  /**
2550
2782
  * @internal
2551
2783
  */
@@ -288,6 +288,7 @@ import { DescribeLocalGatewayRouteTableVpcAssociationsCommandInput, DescribeLoca
288
288
  import { DescribeLocalGatewaysCommandInput, DescribeLocalGatewaysCommandOutput } from "../commands/DescribeLocalGatewaysCommand";
289
289
  import { DescribeLocalGatewayVirtualInterfaceGroupsCommandInput, DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput } from "../commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand";
290
290
  import { DescribeLocalGatewayVirtualInterfacesCommandInput, DescribeLocalGatewayVirtualInterfacesCommandOutput } from "../commands/DescribeLocalGatewayVirtualInterfacesCommand";
291
+ import { DescribeLockedSnapshotsCommandInput, DescribeLockedSnapshotsCommandOutput } from "../commands/DescribeLockedSnapshotsCommand";
291
292
  import { DescribeManagedPrefixListsCommandInput, DescribeManagedPrefixListsCommandOutput } from "../commands/DescribeManagedPrefixListsCommand";
292
293
  import { DescribeMovingAddressesCommandInput, DescribeMovingAddressesCommandOutput } from "../commands/DescribeMovingAddressesCommand";
293
294
  import { DescribeNatGatewaysCommandInput, DescribeNatGatewaysCommandOutput } from "../commands/DescribeNatGatewaysCommand";
@@ -474,6 +475,7 @@ import { ImportSnapshotCommandInput, ImportSnapshotCommandOutput } from "../comm
474
475
  import { ImportVolumeCommandInput, ImportVolumeCommandOutput } from "../commands/ImportVolumeCommand";
475
476
  import { ListImagesInRecycleBinCommandInput, ListImagesInRecycleBinCommandOutput } from "../commands/ListImagesInRecycleBinCommand";
476
477
  import { ListSnapshotsInRecycleBinCommandInput, ListSnapshotsInRecycleBinCommandOutput } from "../commands/ListSnapshotsInRecycleBinCommand";
478
+ import { LockSnapshotCommandInput, LockSnapshotCommandOutput } from "../commands/LockSnapshotCommand";
477
479
  import { ModifyAddressAttributeCommandInput, ModifyAddressAttributeCommandOutput } from "../commands/ModifyAddressAttributeCommand";
478
480
  import { ModifyAvailabilityZoneGroupCommandInput, ModifyAvailabilityZoneGroupCommandOutput } from "../commands/ModifyAvailabilityZoneGroupCommand";
479
481
  import { ModifyCapacityReservationCommandInput, ModifyCapacityReservationCommandOutput } from "../commands/ModifyCapacityReservationCommand";
@@ -602,6 +604,7 @@ import { TerminateInstancesCommandInput, TerminateInstancesCommandOutput } from
602
604
  import { UnassignIpv6AddressesCommandInput, UnassignIpv6AddressesCommandOutput } from "../commands/UnassignIpv6AddressesCommand";
603
605
  import { UnassignPrivateIpAddressesCommandInput, UnassignPrivateIpAddressesCommandOutput } from "../commands/UnassignPrivateIpAddressesCommand";
604
606
  import { UnassignPrivateNatGatewayAddressCommandInput, UnassignPrivateNatGatewayAddressCommandOutput } from "../commands/UnassignPrivateNatGatewayAddressCommand";
607
+ import { UnlockSnapshotCommandInput, UnlockSnapshotCommandOutput } from "../commands/UnlockSnapshotCommand";
605
608
  import { UnmonitorInstancesCommandInput, UnmonitorInstancesCommandOutput } from "../commands/UnmonitorInstancesCommand";
606
609
  import { UpdateSecurityGroupRuleDescriptionsEgressCommandInput, UpdateSecurityGroupRuleDescriptionsEgressCommandOutput } from "../commands/UpdateSecurityGroupRuleDescriptionsEgressCommand";
607
610
  import { UpdateSecurityGroupRuleDescriptionsIngressCommandInput, UpdateSecurityGroupRuleDescriptionsIngressCommandOutput } from "../commands/UpdateSecurityGroupRuleDescriptionsIngressCommand";
@@ -1758,6 +1761,10 @@ export declare const se_DescribeLocalGatewayVirtualInterfaceGroupsCommand: (inpu
1758
1761
  * serializeAws_ec2DescribeLocalGatewayVirtualInterfacesCommand
1759
1762
  */
1760
1763
  export declare const se_DescribeLocalGatewayVirtualInterfacesCommand: (input: DescribeLocalGatewayVirtualInterfacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1764
+ /**
1765
+ * serializeAws_ec2DescribeLockedSnapshotsCommand
1766
+ */
1767
+ export declare const se_DescribeLockedSnapshotsCommand: (input: DescribeLockedSnapshotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1761
1768
  /**
1762
1769
  * serializeAws_ec2DescribeManagedPrefixListsCommand
1763
1770
  */
@@ -2502,6 +2509,10 @@ export declare const se_ListImagesInRecycleBinCommand: (input: ListImagesInRecyc
2502
2509
  * serializeAws_ec2ListSnapshotsInRecycleBinCommand
2503
2510
  */
2504
2511
  export declare const se_ListSnapshotsInRecycleBinCommand: (input: ListSnapshotsInRecycleBinCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2512
+ /**
2513
+ * serializeAws_ec2LockSnapshotCommand
2514
+ */
2515
+ export declare const se_LockSnapshotCommand: (input: LockSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2505
2516
  /**
2506
2517
  * serializeAws_ec2ModifyAddressAttributeCommand
2507
2518
  */
@@ -3014,6 +3025,10 @@ export declare const se_UnassignPrivateIpAddressesCommand: (input: UnassignPriva
3014
3025
  * serializeAws_ec2UnassignPrivateNatGatewayAddressCommand
3015
3026
  */
3016
3027
  export declare const se_UnassignPrivateNatGatewayAddressCommand: (input: UnassignPrivateNatGatewayAddressCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
3028
+ /**
3029
+ * serializeAws_ec2UnlockSnapshotCommand
3030
+ */
3031
+ export declare const se_UnlockSnapshotCommand: (input: UnlockSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
3017
3032
  /**
3018
3033
  * serializeAws_ec2UnmonitorInstancesCommand
3019
3034
  */
@@ -4182,6 +4197,10 @@ export declare const de_DescribeLocalGatewayVirtualInterfaceGroupsCommand: (outp
4182
4197
  * deserializeAws_ec2DescribeLocalGatewayVirtualInterfacesCommand
4183
4198
  */
4184
4199
  export declare const de_DescribeLocalGatewayVirtualInterfacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeLocalGatewayVirtualInterfacesCommandOutput>;
4200
+ /**
4201
+ * deserializeAws_ec2DescribeLockedSnapshotsCommand
4202
+ */
4203
+ export declare const de_DescribeLockedSnapshotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeLockedSnapshotsCommandOutput>;
4185
4204
  /**
4186
4205
  * deserializeAws_ec2DescribeManagedPrefixListsCommand
4187
4206
  */
@@ -4926,6 +4945,10 @@ export declare const de_ListImagesInRecycleBinCommand: (output: __HttpResponse,
4926
4945
  * deserializeAws_ec2ListSnapshotsInRecycleBinCommand
4927
4946
  */
4928
4947
  export declare const de_ListSnapshotsInRecycleBinCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSnapshotsInRecycleBinCommandOutput>;
4948
+ /**
4949
+ * deserializeAws_ec2LockSnapshotCommand
4950
+ */
4951
+ export declare const de_LockSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LockSnapshotCommandOutput>;
4929
4952
  /**
4930
4953
  * deserializeAws_ec2ModifyAddressAttributeCommand
4931
4954
  */
@@ -5438,6 +5461,10 @@ export declare const de_UnassignPrivateIpAddressesCommand: (output: __HttpRespon
5438
5461
  * deserializeAws_ec2UnassignPrivateNatGatewayAddressCommand
5439
5462
  */
5440
5463
  export declare const de_UnassignPrivateNatGatewayAddressCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnassignPrivateNatGatewayAddressCommandOutput>;
5464
+ /**
5465
+ * deserializeAws_ec2UnlockSnapshotCommand
5466
+ */
5467
+ export declare const de_UnlockSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnlockSnapshotCommandOutput>;
5441
5468
  /**
5442
5469
  * deserializeAws_ec2UnmonitorInstancesCommand
5443
5470
  */
@@ -1151,6 +1151,10 @@ import {
1151
1151
  DescribeLocalGatewayVirtualInterfacesCommandInput,
1152
1152
  DescribeLocalGatewayVirtualInterfacesCommandOutput,
1153
1153
  } from "./commands/DescribeLocalGatewayVirtualInterfacesCommand";
1154
+ import {
1155
+ DescribeLockedSnapshotsCommandInput,
1156
+ DescribeLockedSnapshotsCommandOutput,
1157
+ } from "./commands/DescribeLockedSnapshotsCommand";
1154
1158
  import {
1155
1159
  DescribeManagedPrefixListsCommandInput,
1156
1160
  DescribeManagedPrefixListsCommandOutput,
@@ -1895,6 +1899,10 @@ import {
1895
1899
  ListSnapshotsInRecycleBinCommandInput,
1896
1900
  ListSnapshotsInRecycleBinCommandOutput,
1897
1901
  } from "./commands/ListSnapshotsInRecycleBinCommand";
1902
+ import {
1903
+ LockSnapshotCommandInput,
1904
+ LockSnapshotCommandOutput,
1905
+ } from "./commands/LockSnapshotCommand";
1898
1906
  import {
1899
1907
  ModifyAddressAttributeCommandInput,
1900
1908
  ModifyAddressAttributeCommandOutput,
@@ -2407,6 +2415,10 @@ import {
2407
2415
  UnassignPrivateNatGatewayAddressCommandInput,
2408
2416
  UnassignPrivateNatGatewayAddressCommandOutput,
2409
2417
  } from "./commands/UnassignPrivateNatGatewayAddressCommand";
2418
+ import {
2419
+ UnlockSnapshotCommandInput,
2420
+ UnlockSnapshotCommandOutput,
2421
+ } from "./commands/UnlockSnapshotCommand";
2410
2422
  import {
2411
2423
  UnmonitorInstancesCommandInput,
2412
2424
  UnmonitorInstancesCommandOutput,
@@ -6445,6 +6457,19 @@ export interface EC2 {
6445
6457
  data?: DescribeLocalGatewayVirtualInterfacesCommandOutput
6446
6458
  ) => void
6447
6459
  ): void;
6460
+ describeLockedSnapshots(
6461
+ args: DescribeLockedSnapshotsCommandInput,
6462
+ options?: __HttpHandlerOptions
6463
+ ): Promise<DescribeLockedSnapshotsCommandOutput>;
6464
+ describeLockedSnapshots(
6465
+ args: DescribeLockedSnapshotsCommandInput,
6466
+ cb: (err: any, data?: DescribeLockedSnapshotsCommandOutput) => void
6467
+ ): void;
6468
+ describeLockedSnapshots(
6469
+ args: DescribeLockedSnapshotsCommandInput,
6470
+ options: __HttpHandlerOptions,
6471
+ cb: (err: any, data?: DescribeLockedSnapshotsCommandOutput) => void
6472
+ ): void;
6448
6473
  describeManagedPrefixLists(
6449
6474
  args: DescribeManagedPrefixListsCommandInput,
6450
6475
  options?: __HttpHandlerOptions
@@ -9187,6 +9212,19 @@ export interface EC2 {
9187
9212
  options: __HttpHandlerOptions,
9188
9213
  cb: (err: any, data?: ListSnapshotsInRecycleBinCommandOutput) => void
9189
9214
  ): void;
9215
+ lockSnapshot(
9216
+ args: LockSnapshotCommandInput,
9217
+ options?: __HttpHandlerOptions
9218
+ ): Promise<LockSnapshotCommandOutput>;
9219
+ lockSnapshot(
9220
+ args: LockSnapshotCommandInput,
9221
+ cb: (err: any, data?: LockSnapshotCommandOutput) => void
9222
+ ): void;
9223
+ lockSnapshot(
9224
+ args: LockSnapshotCommandInput,
9225
+ options: __HttpHandlerOptions,
9226
+ cb: (err: any, data?: LockSnapshotCommandOutput) => void
9227
+ ): void;
9190
9228
  modifyAddressAttribute(
9191
9229
  args: ModifyAddressAttributeCommandInput,
9192
9230
  options?: __HttpHandlerOptions
@@ -10995,6 +11033,19 @@ export interface EC2 {
10995
11033
  options: __HttpHandlerOptions,
10996
11034
  cb: (err: any, data?: UnassignPrivateNatGatewayAddressCommandOutput) => void
10997
11035
  ): void;
11036
+ unlockSnapshot(
11037
+ args: UnlockSnapshotCommandInput,
11038
+ options?: __HttpHandlerOptions
11039
+ ): Promise<UnlockSnapshotCommandOutput>;
11040
+ unlockSnapshot(
11041
+ args: UnlockSnapshotCommandInput,
11042
+ cb: (err: any, data?: UnlockSnapshotCommandOutput) => void
11043
+ ): void;
11044
+ unlockSnapshot(
11045
+ args: UnlockSnapshotCommandInput,
11046
+ options: __HttpHandlerOptions,
11047
+ cb: (err: any, data?: UnlockSnapshotCommandOutput) => void
11048
+ ): void;
10998
11049
  unmonitorInstances(
10999
11050
  args: UnmonitorInstancesCommandInput,
11000
11051
  options?: __HttpHandlerOptions
@@ -1197,6 +1197,10 @@ import {
1197
1197
  DescribeLocalGatewayVirtualInterfacesCommandInput,
1198
1198
  DescribeLocalGatewayVirtualInterfacesCommandOutput,
1199
1199
  } from "./commands/DescribeLocalGatewayVirtualInterfacesCommand";
1200
+ import {
1201
+ DescribeLockedSnapshotsCommandInput,
1202
+ DescribeLockedSnapshotsCommandOutput,
1203
+ } from "./commands/DescribeLockedSnapshotsCommand";
1200
1204
  import {
1201
1205
  DescribeManagedPrefixListsCommandInput,
1202
1206
  DescribeManagedPrefixListsCommandOutput,
@@ -1941,6 +1945,10 @@ import {
1941
1945
  ListSnapshotsInRecycleBinCommandInput,
1942
1946
  ListSnapshotsInRecycleBinCommandOutput,
1943
1947
  } from "./commands/ListSnapshotsInRecycleBinCommand";
1948
+ import {
1949
+ LockSnapshotCommandInput,
1950
+ LockSnapshotCommandOutput,
1951
+ } from "./commands/LockSnapshotCommand";
1944
1952
  import {
1945
1953
  ModifyAddressAttributeCommandInput,
1946
1954
  ModifyAddressAttributeCommandOutput,
@@ -2453,6 +2461,10 @@ import {
2453
2461
  UnassignPrivateNatGatewayAddressCommandInput,
2454
2462
  UnassignPrivateNatGatewayAddressCommandOutput,
2455
2463
  } from "./commands/UnassignPrivateNatGatewayAddressCommand";
2464
+ import {
2465
+ UnlockSnapshotCommandInput,
2466
+ UnlockSnapshotCommandOutput,
2467
+ } from "./commands/UnlockSnapshotCommand";
2456
2468
  import {
2457
2469
  UnmonitorInstancesCommandInput,
2458
2470
  UnmonitorInstancesCommandOutput,
@@ -2765,6 +2777,7 @@ export type ServiceInputTypes =
2765
2777
  | DescribeLocalGatewayVirtualInterfaceGroupsCommandInput
2766
2778
  | DescribeLocalGatewayVirtualInterfacesCommandInput
2767
2779
  | DescribeLocalGatewaysCommandInput
2780
+ | DescribeLockedSnapshotsCommandInput
2768
2781
  | DescribeManagedPrefixListsCommandInput
2769
2782
  | DescribeMovingAddressesCommandInput
2770
2783
  | DescribeNatGatewaysCommandInput
@@ -2951,6 +2964,7 @@ export type ServiceInputTypes =
2951
2964
  | ImportVolumeCommandInput
2952
2965
  | ListImagesInRecycleBinCommandInput
2953
2966
  | ListSnapshotsInRecycleBinCommandInput
2967
+ | LockSnapshotCommandInput
2954
2968
  | ModifyAddressAttributeCommandInput
2955
2969
  | ModifyAvailabilityZoneGroupCommandInput
2956
2970
  | ModifyCapacityReservationCommandInput
@@ -3079,6 +3093,7 @@ export type ServiceInputTypes =
3079
3093
  | UnassignIpv6AddressesCommandInput
3080
3094
  | UnassignPrivateIpAddressesCommandInput
3081
3095
  | UnassignPrivateNatGatewayAddressCommandInput
3096
+ | UnlockSnapshotCommandInput
3082
3097
  | UnmonitorInstancesCommandInput
3083
3098
  | UpdateSecurityGroupRuleDescriptionsEgressCommandInput
3084
3099
  | UpdateSecurityGroupRuleDescriptionsIngressCommandInput
@@ -3372,6 +3387,7 @@ export type ServiceOutputTypes =
3372
3387
  | DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput
3373
3388
  | DescribeLocalGatewayVirtualInterfacesCommandOutput
3374
3389
  | DescribeLocalGatewaysCommandOutput
3390
+ | DescribeLockedSnapshotsCommandOutput
3375
3391
  | DescribeManagedPrefixListsCommandOutput
3376
3392
  | DescribeMovingAddressesCommandOutput
3377
3393
  | DescribeNatGatewaysCommandOutput
@@ -3558,6 +3574,7 @@ export type ServiceOutputTypes =
3558
3574
  | ImportVolumeCommandOutput
3559
3575
  | ListImagesInRecycleBinCommandOutput
3560
3576
  | ListSnapshotsInRecycleBinCommandOutput
3577
+ | LockSnapshotCommandOutput
3561
3578
  | ModifyAddressAttributeCommandOutput
3562
3579
  | ModifyAvailabilityZoneGroupCommandOutput
3563
3580
  | ModifyCapacityReservationCommandOutput
@@ -3686,6 +3703,7 @@ export type ServiceOutputTypes =
3686
3703
  | UnassignIpv6AddressesCommandOutput
3687
3704
  | UnassignPrivateIpAddressesCommandOutput
3688
3705
  | UnassignPrivateNatGatewayAddressCommandOutput
3706
+ | UnlockSnapshotCommandOutput
3689
3707
  | UnmonitorInstancesCommandOutput
3690
3708
  | UpdateSecurityGroupRuleDescriptionsEgressCommandOutput
3691
3709
  | UpdateSecurityGroupRuleDescriptionsIngressCommandOutput
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ EC2ClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../EC2Client";
14
+ import {
15
+ DescribeLockedSnapshotsRequest,
16
+ DescribeLockedSnapshotsResult,
17
+ } from "../models/models_4";
18
+ export { __MetadataBearer, $Command };
19
+ export interface DescribeLockedSnapshotsCommandInput
20
+ extends DescribeLockedSnapshotsRequest {}
21
+ export interface DescribeLockedSnapshotsCommandOutput
22
+ extends DescribeLockedSnapshotsResult,
23
+ __MetadataBearer {}
24
+ export declare class DescribeLockedSnapshotsCommand extends $Command<
25
+ DescribeLockedSnapshotsCommandInput,
26
+ DescribeLockedSnapshotsCommandOutput,
27
+ EC2ClientResolvedConfig
28
+ > {
29
+ readonly input: DescribeLockedSnapshotsCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: DescribeLockedSnapshotsCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: EC2ClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ DescribeLockedSnapshotsCommandInput,
38
+ DescribeLockedSnapshotsCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../EC2Client";
14
- import {
15
- DescribeTransitGatewayMulticastDomainsRequest,
16
- DescribeTransitGatewayMulticastDomainsResult,
17
- } from "../models/models_4";
14
+ import { DescribeTransitGatewayMulticastDomainsRequest } from "../models/models_4";
15
+ import { DescribeTransitGatewayMulticastDomainsResult } from "../models/models_5";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface DescribeTransitGatewayMulticastDomainsCommandInput
20
18
  extends DescribeTransitGatewayMulticastDomainsRequest {}
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  DescribeTransitGatewayPeeringAttachmentsRequest,
16
16
  DescribeTransitGatewayPeeringAttachmentsResult,
17
- } from "../models/models_4";
17
+ } from "../models/models_5";
18
18
  export { __MetadataBearer, $Command };
19
19
  export interface DescribeTransitGatewayPeeringAttachmentsCommandInput
20
20
  extends DescribeTransitGatewayPeeringAttachmentsRequest {}
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../EC2Client";
14
- import { DescribeTransitGatewayPolicyTablesRequest } from "../models/models_4";
15
- import { DescribeTransitGatewayPolicyTablesResult } from "../models/models_5";
14
+ import {
15
+ DescribeTransitGatewayPolicyTablesRequest,
16
+ DescribeTransitGatewayPolicyTablesResult,
17
+ } from "../models/models_5";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface DescribeTransitGatewayPolicyTablesCommandInput
18
20
  extends DescribeTransitGatewayPolicyTablesRequest {}
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  GetSnapshotBlockPublicAccessStateRequest,
16
16
  GetSnapshotBlockPublicAccessStateResult,
17
- } from "../models/models_5";
17
+ } from "../models/models_6";
18
18
  export { __MetadataBearer, $Command };
19
19
  export interface GetSnapshotBlockPublicAccessStateCommandInput
20
20
  extends GetSnapshotBlockPublicAccessStateRequest {}
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../EC2Client";
14
- import { GetSpotPlacementScoresRequest } from "../models/models_5";
15
- import { GetSpotPlacementScoresResult } from "../models/models_6";
14
+ import {
15
+ GetSpotPlacementScoresRequest,
16
+ GetSpotPlacementScoresResult,
17
+ } from "../models/models_6";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface GetSpotPlacementScoresCommandInput
18
20
  extends GetSpotPlacementScoresRequest {}
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ EC2ClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../EC2Client";
14
+ import { LockSnapshotRequest, LockSnapshotResult } from "../models/models_6";
15
+ export { __MetadataBearer, $Command };
16
+ export interface LockSnapshotCommandInput extends LockSnapshotRequest {}
17
+ export interface LockSnapshotCommandOutput
18
+ extends LockSnapshotResult,
19
+ __MetadataBearer {}
20
+ export declare class LockSnapshotCommand extends $Command<
21
+ LockSnapshotCommandInput,
22
+ LockSnapshotCommandOutput,
23
+ EC2ClientResolvedConfig
24
+ > {
25
+ readonly input: LockSnapshotCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: LockSnapshotCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: EC2ClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<LockSnapshotCommandInput, LockSnapshotCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  RequestSpotInstancesRequest,
16
16
  RequestSpotInstancesResult,
17
- } from "../models/models_6";
17
+ } from "../models/models_7";
18
18
  export { __MetadataBearer, $Command };
19
19
  export interface RequestSpotInstancesCommandInput
20
20
  extends RequestSpotInstancesRequest {}