@aws-sdk/client-ebs 3.975.0 → 3.980.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.
- package/dist-cjs/index.js +9 -5
- package/dist-es/EBS.js +7 -1
- package/dist-types/EBS.d.ts +15 -1
- package/dist-types/ts3.4/EBS.d.ts +19 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -556,6 +556,10 @@ class StartSnapshotCommand extends smithyClient.Command
|
|
|
556
556
|
.build() {
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
+
const paginateListChangedBlocks = core.createPaginator(EBSClient, ListChangedBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
560
|
+
|
|
561
|
+
const paginateListSnapshotBlocks = core.createPaginator(EBSClient, ListSnapshotBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
562
|
+
|
|
559
563
|
const commands = {
|
|
560
564
|
CompleteSnapshotCommand,
|
|
561
565
|
GetSnapshotBlockCommand,
|
|
@@ -564,13 +568,13 @@ const commands = {
|
|
|
564
568
|
PutSnapshotBlockCommand,
|
|
565
569
|
StartSnapshotCommand,
|
|
566
570
|
};
|
|
571
|
+
const paginators = {
|
|
572
|
+
paginateListChangedBlocks,
|
|
573
|
+
paginateListSnapshotBlocks,
|
|
574
|
+
};
|
|
567
575
|
class EBS extends EBSClient {
|
|
568
576
|
}
|
|
569
|
-
smithyClient.createAggregatedClient(commands, EBS);
|
|
570
|
-
|
|
571
|
-
const paginateListChangedBlocks = core.createPaginator(EBSClient, ListChangedBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
572
|
-
|
|
573
|
-
const paginateListSnapshotBlocks = core.createPaginator(EBSClient, ListSnapshotBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
577
|
+
smithyClient.createAggregatedClient(commands, EBS, { paginators });
|
|
574
578
|
|
|
575
579
|
const AccessDeniedExceptionReason = {
|
|
576
580
|
DEPENDENCY_ACCESS_DENIED: "DEPENDENCY_ACCESS_DENIED",
|
package/dist-es/EBS.js
CHANGED
|
@@ -6,6 +6,8 @@ import { ListSnapshotBlocksCommand, } from "./commands/ListSnapshotBlocksCommand
|
|
|
6
6
|
import { PutSnapshotBlockCommand, } from "./commands/PutSnapshotBlockCommand";
|
|
7
7
|
import { StartSnapshotCommand, } from "./commands/StartSnapshotCommand";
|
|
8
8
|
import { EBSClient } from "./EBSClient";
|
|
9
|
+
import { paginateListChangedBlocks } from "./pagination/ListChangedBlocksPaginator";
|
|
10
|
+
import { paginateListSnapshotBlocks } from "./pagination/ListSnapshotBlocksPaginator";
|
|
9
11
|
const commands = {
|
|
10
12
|
CompleteSnapshotCommand,
|
|
11
13
|
GetSnapshotBlockCommand,
|
|
@@ -14,6 +16,10 @@ const commands = {
|
|
|
14
16
|
PutSnapshotBlockCommand,
|
|
15
17
|
StartSnapshotCommand,
|
|
16
18
|
};
|
|
19
|
+
const paginators = {
|
|
20
|
+
paginateListChangedBlocks,
|
|
21
|
+
paginateListSnapshotBlocks,
|
|
22
|
+
};
|
|
17
23
|
export class EBS extends EBSClient {
|
|
18
24
|
}
|
|
19
|
-
createAggregatedClient(commands, EBS);
|
|
25
|
+
createAggregatedClient(commands, EBS, { paginators });
|
package/dist-types/EBS.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "./commands/CompleteSnapshotCommand";
|
|
3
3
|
import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "./commands/GetSnapshotBlockCommand";
|
|
4
4
|
import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "./commands/ListChangedBlocksCommand";
|
|
@@ -43,6 +43,20 @@ export interface EBS {
|
|
|
43
43
|
startSnapshot(args: StartSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<StartSnapshotCommandOutput>;
|
|
44
44
|
startSnapshot(args: StartSnapshotCommandInput, cb: (err: any, data?: StartSnapshotCommandOutput) => void): void;
|
|
45
45
|
startSnapshot(args: StartSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSnapshotCommandOutput) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* @see {@link ListChangedBlocksCommand}
|
|
48
|
+
* @param args - command input.
|
|
49
|
+
* @param paginationConfig - optional pagination config.
|
|
50
|
+
* @returns AsyncIterable of {@link ListChangedBlocksCommandOutput}.
|
|
51
|
+
*/
|
|
52
|
+
paginateListChangedBlocks(args: ListChangedBlocksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChangedBlocksCommandOutput>;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link ListSnapshotBlocksCommand}
|
|
55
|
+
* @param args - command input.
|
|
56
|
+
* @param paginationConfig - optional pagination config.
|
|
57
|
+
* @returns AsyncIterable of {@link ListSnapshotBlocksCommandOutput}.
|
|
58
|
+
*/
|
|
59
|
+
paginateListSnapshotBlocks(args: ListSnapshotBlocksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSnapshotBlocksCommandOutput>;
|
|
46
60
|
}
|
|
47
61
|
/**
|
|
48
62
|
* <p>You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
CompleteSnapshotCommandInput,
|
|
4
8
|
CompleteSnapshotCommandOutput,
|
|
@@ -103,5 +107,19 @@ export interface EBS {
|
|
|
103
107
|
options: __HttpHandlerOptions,
|
|
104
108
|
cb: (err: any, data?: StartSnapshotCommandOutput) => void
|
|
105
109
|
): void;
|
|
110
|
+
paginateListChangedBlocks(
|
|
111
|
+
args: ListChangedBlocksCommandInput,
|
|
112
|
+
paginationConfig?: Pick<
|
|
113
|
+
PaginationConfiguration,
|
|
114
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
115
|
+
>
|
|
116
|
+
): Paginator<ListChangedBlocksCommandOutput>;
|
|
117
|
+
paginateListSnapshotBlocks(
|
|
118
|
+
args: ListSnapshotBlocksCommandInput,
|
|
119
|
+
paginationConfig?: Pick<
|
|
120
|
+
PaginationConfiguration,
|
|
121
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
122
|
+
>
|
|
123
|
+
): Paginator<ListSnapshotBlocksCommandOutput>;
|
|
106
124
|
}
|
|
107
125
|
export declare class EBS extends EBSClient implements EBS {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ebs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ebs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ebs",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|