@aws-sdk/client-backup-gateway 3.975.0 → 3.978.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
CHANGED
|
@@ -1109,6 +1109,12 @@ class UpdateHypervisorCommand extends smithyClient.Command
|
|
|
1109
1109
|
.build() {
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
|
+
const paginateListGateways = core.createPaginator(BackupGatewayClient, ListGatewaysCommand, "NextToken", "NextToken", "MaxResults");
|
|
1113
|
+
|
|
1114
|
+
const paginateListHypervisors = core.createPaginator(BackupGatewayClient, ListHypervisorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1115
|
+
|
|
1116
|
+
const paginateListVirtualMachines = core.createPaginator(BackupGatewayClient, ListVirtualMachinesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1117
|
+
|
|
1112
1118
|
const commands = {
|
|
1113
1119
|
AssociateGatewayToServerCommand,
|
|
1114
1120
|
CreateGatewayCommand,
|
|
@@ -1136,15 +1142,14 @@ const commands = {
|
|
|
1136
1142
|
UpdateGatewaySoftwareNowCommand,
|
|
1137
1143
|
UpdateHypervisorCommand,
|
|
1138
1144
|
};
|
|
1145
|
+
const paginators = {
|
|
1146
|
+
paginateListGateways,
|
|
1147
|
+
paginateListHypervisors,
|
|
1148
|
+
paginateListVirtualMachines,
|
|
1149
|
+
};
|
|
1139
1150
|
class BackupGateway extends BackupGatewayClient {
|
|
1140
1151
|
}
|
|
1141
|
-
smithyClient.createAggregatedClient(commands, BackupGateway);
|
|
1142
|
-
|
|
1143
|
-
const paginateListGateways = core.createPaginator(BackupGatewayClient, ListGatewaysCommand, "NextToken", "NextToken", "MaxResults");
|
|
1144
|
-
|
|
1145
|
-
const paginateListHypervisors = core.createPaginator(BackupGatewayClient, ListHypervisorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1146
|
-
|
|
1147
|
-
const paginateListVirtualMachines = core.createPaginator(BackupGatewayClient, ListVirtualMachinesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1152
|
+
smithyClient.createAggregatedClient(commands, BackupGateway, { paginators });
|
|
1148
1153
|
|
|
1149
1154
|
const GatewayType = {
|
|
1150
1155
|
BACKUP_VM: "BACKUP_VM",
|
package/dist-es/BackupGateway.js
CHANGED
|
@@ -25,6 +25,9 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
25
25
|
import { UpdateGatewayInformationCommand, } from "./commands/UpdateGatewayInformationCommand";
|
|
26
26
|
import { UpdateGatewaySoftwareNowCommand, } from "./commands/UpdateGatewaySoftwareNowCommand";
|
|
27
27
|
import { UpdateHypervisorCommand, } from "./commands/UpdateHypervisorCommand";
|
|
28
|
+
import { paginateListGateways } from "./pagination/ListGatewaysPaginator";
|
|
29
|
+
import { paginateListHypervisors } from "./pagination/ListHypervisorsPaginator";
|
|
30
|
+
import { paginateListVirtualMachines } from "./pagination/ListVirtualMachinesPaginator";
|
|
28
31
|
const commands = {
|
|
29
32
|
AssociateGatewayToServerCommand,
|
|
30
33
|
CreateGatewayCommand,
|
|
@@ -52,6 +55,11 @@ const commands = {
|
|
|
52
55
|
UpdateGatewaySoftwareNowCommand,
|
|
53
56
|
UpdateHypervisorCommand,
|
|
54
57
|
};
|
|
58
|
+
const paginators = {
|
|
59
|
+
paginateListGateways,
|
|
60
|
+
paginateListHypervisors,
|
|
61
|
+
paginateListVirtualMachines,
|
|
62
|
+
};
|
|
55
63
|
export class BackupGateway extends BackupGatewayClient {
|
|
56
64
|
}
|
|
57
|
-
createAggregatedClient(commands, BackupGateway);
|
|
65
|
+
createAggregatedClient(commands, BackupGateway, { 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 { BackupGatewayClient } from "./BackupGatewayClient";
|
|
3
3
|
import { AssociateGatewayToServerCommandInput, AssociateGatewayToServerCommandOutput } from "./commands/AssociateGatewayToServerCommand";
|
|
4
4
|
import { CreateGatewayCommandInput, CreateGatewayCommandOutput } from "./commands/CreateGatewayCommand";
|
|
@@ -179,6 +179,27 @@ export interface BackupGateway {
|
|
|
179
179
|
updateHypervisor(args: UpdateHypervisorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateHypervisorCommandOutput>;
|
|
180
180
|
updateHypervisor(args: UpdateHypervisorCommandInput, cb: (err: any, data?: UpdateHypervisorCommandOutput) => void): void;
|
|
181
181
|
updateHypervisor(args: UpdateHypervisorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateHypervisorCommandOutput) => void): void;
|
|
182
|
+
/**
|
|
183
|
+
* @see {@link ListGatewaysCommand}
|
|
184
|
+
* @param args - command input.
|
|
185
|
+
* @param paginationConfig - optional pagination config.
|
|
186
|
+
* @returns AsyncIterable of {@link ListGatewaysCommandOutput}.
|
|
187
|
+
*/
|
|
188
|
+
paginateListGateways(args?: ListGatewaysCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGatewaysCommandOutput>;
|
|
189
|
+
/**
|
|
190
|
+
* @see {@link ListHypervisorsCommand}
|
|
191
|
+
* @param args - command input.
|
|
192
|
+
* @param paginationConfig - optional pagination config.
|
|
193
|
+
* @returns AsyncIterable of {@link ListHypervisorsCommandOutput}.
|
|
194
|
+
*/
|
|
195
|
+
paginateListHypervisors(args?: ListHypervisorsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListHypervisorsCommandOutput>;
|
|
196
|
+
/**
|
|
197
|
+
* @see {@link ListVirtualMachinesCommand}
|
|
198
|
+
* @param args - command input.
|
|
199
|
+
* @param paginationConfig - optional pagination config.
|
|
200
|
+
* @returns AsyncIterable of {@link ListVirtualMachinesCommandOutput}.
|
|
201
|
+
*/
|
|
202
|
+
paginateListVirtualMachines(args?: ListVirtualMachinesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListVirtualMachinesCommandOutput>;
|
|
182
203
|
}
|
|
183
204
|
/**
|
|
184
205
|
* <fullname>Backup gateway</fullname>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import { BackupGatewayClient } from "./BackupGatewayClient";
|
|
3
7
|
import {
|
|
4
8
|
AssociateGatewayToServerCommandInput,
|
|
@@ -429,6 +433,27 @@ export interface BackupGateway {
|
|
|
429
433
|
options: __HttpHandlerOptions,
|
|
430
434
|
cb: (err: any, data?: UpdateHypervisorCommandOutput) => void
|
|
431
435
|
): void;
|
|
436
|
+
paginateListGateways(
|
|
437
|
+
args?: ListGatewaysCommandInput,
|
|
438
|
+
paginationConfig?: Pick<
|
|
439
|
+
PaginationConfiguration,
|
|
440
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
441
|
+
>
|
|
442
|
+
): Paginator<ListGatewaysCommandOutput>;
|
|
443
|
+
paginateListHypervisors(
|
|
444
|
+
args?: ListHypervisorsCommandInput,
|
|
445
|
+
paginationConfig?: Pick<
|
|
446
|
+
PaginationConfiguration,
|
|
447
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
448
|
+
>
|
|
449
|
+
): Paginator<ListHypervisorsCommandOutput>;
|
|
450
|
+
paginateListVirtualMachines(
|
|
451
|
+
args?: ListVirtualMachinesCommandInput,
|
|
452
|
+
paginationConfig?: Pick<
|
|
453
|
+
PaginationConfiguration,
|
|
454
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
455
|
+
>
|
|
456
|
+
): Paginator<ListVirtualMachinesCommandOutput>;
|
|
432
457
|
}
|
|
433
458
|
export declare class BackupGateway
|
|
434
459
|
extends BackupGatewayClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-backup-gateway",
|
|
3
3
|
"description": "AWS SDK for JavaScript Backup Gateway Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.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-backup-gateway",
|
|
@@ -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.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
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",
|