@aws-sdk/client-docdb-elastic 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 +12 -7
- package/dist-es/DocDBElastic.js +9 -1
- package/dist-types/DocDBElastic.d.ts +22 -1
- package/dist-types/ts3.4/DocDBElastic.d.ts +26 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -941,6 +941,12 @@ class UpdateClusterCommand extends smithyClient.Command
|
|
|
941
941
|
.build() {
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
+
const paginateListClusterSnapshots = core.createPaginator(DocDBElasticClient, ListClusterSnapshotsCommand, "nextToken", "nextToken", "maxResults");
|
|
945
|
+
|
|
946
|
+
const paginateListClusters = core.createPaginator(DocDBElasticClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
|
|
947
|
+
|
|
948
|
+
const paginateListPendingMaintenanceActions = core.createPaginator(DocDBElasticClient, ListPendingMaintenanceActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
949
|
+
|
|
944
950
|
const commands = {
|
|
945
951
|
ApplyPendingMaintenanceActionCommand,
|
|
946
952
|
CopyClusterSnapshotCommand,
|
|
@@ -962,15 +968,14 @@ const commands = {
|
|
|
962
968
|
UntagResourceCommand,
|
|
963
969
|
UpdateClusterCommand,
|
|
964
970
|
};
|
|
971
|
+
const paginators = {
|
|
972
|
+
paginateListClusters,
|
|
973
|
+
paginateListClusterSnapshots,
|
|
974
|
+
paginateListPendingMaintenanceActions,
|
|
975
|
+
};
|
|
965
976
|
class DocDBElastic extends DocDBElasticClient {
|
|
966
977
|
}
|
|
967
|
-
smithyClient.createAggregatedClient(commands, DocDBElastic);
|
|
968
|
-
|
|
969
|
-
const paginateListClusters = core.createPaginator(DocDBElasticClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
|
|
970
|
-
|
|
971
|
-
const paginateListClusterSnapshots = core.createPaginator(DocDBElasticClient, ListClusterSnapshotsCommand, "nextToken", "nextToken", "maxResults");
|
|
972
|
-
|
|
973
|
-
const paginateListPendingMaintenanceActions = core.createPaginator(DocDBElasticClient, ListPendingMaintenanceActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
978
|
+
smithyClient.createAggregatedClient(commands, DocDBElastic, { paginators });
|
|
974
979
|
|
|
975
980
|
const OptInType = {
|
|
976
981
|
APPLY_ON: "APPLY_ON",
|
package/dist-es/DocDBElastic.js
CHANGED
|
@@ -19,6 +19,9 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
19
19
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
20
20
|
import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
|
|
21
21
|
import { DocDBElasticClient } from "./DocDBElasticClient";
|
|
22
|
+
import { paginateListClusterSnapshots } from "./pagination/ListClusterSnapshotsPaginator";
|
|
23
|
+
import { paginateListClusters } from "./pagination/ListClustersPaginator";
|
|
24
|
+
import { paginateListPendingMaintenanceActions } from "./pagination/ListPendingMaintenanceActionsPaginator";
|
|
22
25
|
const commands = {
|
|
23
26
|
ApplyPendingMaintenanceActionCommand,
|
|
24
27
|
CopyClusterSnapshotCommand,
|
|
@@ -40,6 +43,11 @@ const commands = {
|
|
|
40
43
|
UntagResourceCommand,
|
|
41
44
|
UpdateClusterCommand,
|
|
42
45
|
};
|
|
46
|
+
const paginators = {
|
|
47
|
+
paginateListClusters,
|
|
48
|
+
paginateListClusterSnapshots,
|
|
49
|
+
paginateListPendingMaintenanceActions,
|
|
50
|
+
};
|
|
43
51
|
export class DocDBElastic extends DocDBElasticClient {
|
|
44
52
|
}
|
|
45
|
-
createAggregatedClient(commands, DocDBElastic);
|
|
53
|
+
createAggregatedClient(commands, DocDBElastic, { paginators });
|
|
@@ -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 { ApplyPendingMaintenanceActionCommandInput, ApplyPendingMaintenanceActionCommandOutput } from "./commands/ApplyPendingMaintenanceActionCommand";
|
|
3
3
|
import { CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput } from "./commands/CopyClusterSnapshotCommand";
|
|
4
4
|
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
@@ -137,6 +137,27 @@ export interface DocDBElastic {
|
|
|
137
137
|
updateCluster(args: UpdateClusterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateClusterCommandOutput>;
|
|
138
138
|
updateCluster(args: UpdateClusterCommandInput, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
|
|
139
139
|
updateCluster(args: UpdateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
|
|
140
|
+
/**
|
|
141
|
+
* @see {@link ListClustersCommand}
|
|
142
|
+
* @param args - command input.
|
|
143
|
+
* @param paginationConfig - optional pagination config.
|
|
144
|
+
* @returns AsyncIterable of {@link ListClustersCommandOutput}.
|
|
145
|
+
*/
|
|
146
|
+
paginateListClusters(args?: ListClustersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListClustersCommandOutput>;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link ListClusterSnapshotsCommand}
|
|
149
|
+
* @param args - command input.
|
|
150
|
+
* @param paginationConfig - optional pagination config.
|
|
151
|
+
* @returns AsyncIterable of {@link ListClusterSnapshotsCommandOutput}.
|
|
152
|
+
*/
|
|
153
|
+
paginateListClusterSnapshots(args?: ListClusterSnapshotsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListClusterSnapshotsCommandOutput>;
|
|
154
|
+
/**
|
|
155
|
+
* @see {@link ListPendingMaintenanceActionsCommand}
|
|
156
|
+
* @param args - command input.
|
|
157
|
+
* @param paginationConfig - optional pagination config.
|
|
158
|
+
* @returns AsyncIterable of {@link ListPendingMaintenanceActionsCommandOutput}.
|
|
159
|
+
*/
|
|
160
|
+
paginateListPendingMaintenanceActions(args?: ListPendingMaintenanceActionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPendingMaintenanceActionsCommandOutput>;
|
|
140
161
|
}
|
|
141
162
|
/**
|
|
142
163
|
* <fullname>Amazon DocumentDB elastic clusters</fullname>
|
|
@@ -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
|
ApplyPendingMaintenanceActionCommandInput,
|
|
4
8
|
ApplyPendingMaintenanceActionCommandOutput,
|
|
@@ -327,6 +331,27 @@ export interface DocDBElastic {
|
|
|
327
331
|
options: __HttpHandlerOptions,
|
|
328
332
|
cb: (err: any, data?: UpdateClusterCommandOutput) => void
|
|
329
333
|
): void;
|
|
334
|
+
paginateListClusters(
|
|
335
|
+
args?: ListClustersCommandInput,
|
|
336
|
+
paginationConfig?: Pick<
|
|
337
|
+
PaginationConfiguration,
|
|
338
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
339
|
+
>
|
|
340
|
+
): Paginator<ListClustersCommandOutput>;
|
|
341
|
+
paginateListClusterSnapshots(
|
|
342
|
+
args?: ListClusterSnapshotsCommandInput,
|
|
343
|
+
paginationConfig?: Pick<
|
|
344
|
+
PaginationConfiguration,
|
|
345
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
346
|
+
>
|
|
347
|
+
): Paginator<ListClusterSnapshotsCommandOutput>;
|
|
348
|
+
paginateListPendingMaintenanceActions(
|
|
349
|
+
args?: ListPendingMaintenanceActionsCommandInput,
|
|
350
|
+
paginationConfig?: Pick<
|
|
351
|
+
PaginationConfiguration,
|
|
352
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
353
|
+
>
|
|
354
|
+
): Paginator<ListPendingMaintenanceActionsCommandOutput>;
|
|
330
355
|
}
|
|
331
356
|
export declare class DocDBElastic
|
|
332
357
|
extends DocDBElasticClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-docdb-elastic",
|
|
3
3
|
"description": "AWS SDK for JavaScript Docdb Elastic 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-docdb-elastic",
|
|
@@ -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",
|