@aws-sdk/client-ec2 3.267.0 → 3.269.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 (31) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-cjs/models/models_1.js +7 -0
  3. package/dist-cjs/models/models_4.js +19 -0
  4. package/dist-cjs/models/models_5.js +4 -0
  5. package/dist-cjs/models/models_6.js +12 -0
  6. package/dist-cjs/waiters/index.js +1 -0
  7. package/dist-cjs/waiters/waitForSnapshotImported.js +59 -0
  8. package/dist-es/endpoint/ruleset.js +3 -3
  9. package/dist-es/models/models_1.js +7 -0
  10. package/dist-es/models/models_4.js +19 -0
  11. package/dist-es/models/models_5.js +4 -0
  12. package/dist-es/models/models_6.js +12 -0
  13. package/dist-es/waiters/index.js +1 -0
  14. package/dist-es/waiters/waitForSnapshotImported.js +54 -0
  15. package/dist-types/EC2.d.ts +6 -13
  16. package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +3 -2
  17. package/dist-types/commands/DescribeSnapshotsCommand.d.ts +1 -5
  18. package/dist-types/commands/DescribeVolumesCommand.d.ts +1 -5
  19. package/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  20. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  21. package/dist-types/models/models_0.d.ts +2 -1
  22. package/dist-types/models/models_1.d.ts +31 -6
  23. package/dist-types/models/models_3.d.ts +50 -41
  24. package/dist-types/models/models_4.d.ts +135 -130
  25. package/dist-types/models/models_5.d.ts +24 -18
  26. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  27. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  28. package/dist-types/ts3.4/waiters/waitForSnapshotImported.d.ts +11 -0
  29. package/dist-types/waiters/index.d.ts +1 -0
  30. package/dist-types/waiters/waitForSnapshotImported.d.ts +14 -0
  31. package/package.json +1 -1
@@ -56,8 +56,8 @@ export interface VolumeStatusItem {
56
56
  }
57
57
  export interface DescribeVolumeStatusResult {
58
58
  /**
59
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code>
60
- * when there are no more results to return.</p>
59
+ * <p>The token to include in another request to get the next page of items.
60
+ * This value is <code>null</code> when there are no more items to return.</p>
61
61
  */
62
62
  NextToken?: string;
63
63
  /**
@@ -169,12 +169,13 @@ export interface DescribeVpcClassicLinkResult {
169
169
  }
170
170
  export interface DescribeVpcClassicLinkDnsSupportRequest {
171
171
  /**
172
- * <p>The maximum number of results to return with a single call.
173
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
172
+ * <p>The maximum number of items to return for this request.
173
+ * To get the next page of items, make another request with the token returned in the output.
174
+ * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
174
175
  */
175
176
  MaxResults?: number;
176
177
  /**
177
- * <p>The token for the next page of results.</p>
178
+ * <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
178
179
  */
179
180
  NextToken?: string;
180
181
  /**
@@ -197,7 +198,7 @@ export interface ClassicLinkDnsSupport {
197
198
  }
198
199
  export interface DescribeVpcClassicLinkDnsSupportResult {
199
200
  /**
200
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
201
+ * <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
201
202
  */
202
203
  NextToken?: string;
203
204
  /**
@@ -789,12 +790,13 @@ export interface DescribeVpcPeeringConnectionsRequest {
789
790
  */
790
791
  VpcPeeringConnectionIds?: string[];
791
792
  /**
792
- * <p>The token for the next page of results.</p>
793
+ * <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
793
794
  */
794
795
  NextToken?: string;
795
796
  /**
796
- * <p>The maximum number of results to return with a single call.
797
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
797
+ * <p>The maximum number of items to return for this request.
798
+ * To get the next page of items, make another request with the token returned in the output.
799
+ * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
798
800
  */
799
801
  MaxResults?: number;
800
802
  }
@@ -804,7 +806,7 @@ export interface DescribeVpcPeeringConnectionsResult {
804
806
  */
805
807
  VpcPeeringConnections?: VpcPeeringConnection[];
806
808
  /**
807
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
809
+ * <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
808
810
  */
809
811
  NextToken?: string;
810
812
  }
@@ -897,12 +899,13 @@ export interface DescribeVpcsRequest {
897
899
  */
898
900
  DryRun?: boolean;
899
901
  /**
900
- * <p>The token for the next page of results.</p>
902
+ * <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
901
903
  */
902
904
  NextToken?: string;
903
905
  /**
904
- * <p>The maximum number of results to return with a single call.
905
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
906
+ * <p>The maximum number of items to return for this request.
907
+ * To get the next page of items, make another request with the token returned in the output.
908
+ * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
906
909
  */
907
910
  MaxResults?: number;
908
911
  }
@@ -912,7 +915,7 @@ export interface DescribeVpcsResult {
912
915
  */
913
916
  Vpcs?: Vpc[];
914
917
  /**
915
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
918
+ * <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
916
919
  */
917
920
  NextToken?: string;
918
921
  }
@@ -5687,12 +5690,14 @@ export interface ListImagesInRecycleBinResult {
5687
5690
  }
5688
5691
  export interface ListSnapshotsInRecycleBinRequest {
5689
5692
  /**
5690
- * <p>The maximum number of results to return with a single call.
5691
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
5693
+ * <p>The maximum number of items to return for this request.
5694
+ * To get the next page of items, make another request with the token returned in the output.
5695
+ * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
5692
5696
  */
5693
5697
  MaxResults?: number;
5694
5698
  /**
5695
- * <p>The token for the next page of results.</p>
5699
+ * <p>The token returned from a previous paginated request.
5700
+ * Pagination continues from the end of the items returned by the previous request.</p>
5696
5701
  */
5697
5702
  NextToken?: string;
5698
5703
  /**
@@ -5738,7 +5743,8 @@ export interface ListSnapshotsInRecycleBinResult {
5738
5743
  */
5739
5744
  Snapshots?: SnapshotRecycleBinInfo[];
5740
5745
  /**
5741
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
5746
+ * <p>The token to include in another request to get the next page of items.
5747
+ * This value is <code>null</code> when there are no more items to return.</p>
5742
5748
  */
5743
5749
  NextToken?: string;
5744
5750
  }
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region: string;
30
+ Region?: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -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,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { DescribeImportSnapshotTasksCommandInput } from "../commands/DescribeImportSnapshotTasksCommand";
3
+ import { EC2Client } from "../EC2Client";
4
+ export declare const waitForSnapshotImported: (
5
+ params: WaiterConfiguration<EC2Client>,
6
+ input: DescribeImportSnapshotTasksCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilSnapshotImported: (
9
+ params: WaiterConfiguration<EC2Client>,
10
+ input: DescribeImportSnapshotTasksCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -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,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { DescribeImportSnapshotTasksCommandInput } from "../commands/DescribeImportSnapshotTasksCommand";
3
+ import { EC2Client } from "../EC2Client";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilSnapshotImported instead. waitForSnapshotImported does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForSnapshotImported: (params: WaiterConfiguration<EC2Client>, input: DescribeImportSnapshotTasksCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeImportSnapshotTasksCommand for polling.
13
+ */
14
+ export declare const waitUntilSnapshotImported: (params: WaiterConfiguration<EC2Client>, input: DescribeImportSnapshotTasksCommandInput) => Promise<WaiterResult>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.267.0",
4
+ "version": "3.269.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",