@aws-sdk/client-finspace 3.468.0 → 3.473.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/README.md +112 -0
- package/dist-cjs/Finspace.js +28 -0
- package/dist-cjs/commands/CreateKxDataviewCommand.js +51 -0
- package/dist-cjs/commands/CreateKxScalingGroupCommand.js +51 -0
- package/dist-cjs/commands/CreateKxVolumeCommand.js +51 -0
- package/dist-cjs/commands/DeleteKxDataviewCommand.js +51 -0
- package/dist-cjs/commands/DeleteKxScalingGroupCommand.js +51 -0
- package/dist-cjs/commands/DeleteKxVolumeCommand.js +51 -0
- package/dist-cjs/commands/GetKxDataviewCommand.js +51 -0
- package/dist-cjs/commands/GetKxScalingGroupCommand.js +51 -0
- package/dist-cjs/commands/GetKxVolumeCommand.js +51 -0
- package/dist-cjs/commands/ListKxDataviewsCommand.js +51 -0
- package/dist-cjs/commands/ListKxScalingGroupsCommand.js +51 -0
- package/dist-cjs/commands/ListKxVolumesCommand.js +51 -0
- package/dist-cjs/commands/UpdateKxDataviewCommand.js +51 -0
- package/dist-cjs/commands/UpdateKxVolumeCommand.js +51 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/models/models_0.js +39 -1
- package/dist-cjs/pagination/ListKxDataviewsPaginator.js +29 -0
- package/dist-cjs/pagination/ListKxScalingGroupsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1477 -207
- package/dist-es/Finspace.js +28 -0
- package/dist-es/commands/CreateKxDataviewCommand.js +47 -0
- package/dist-es/commands/CreateKxScalingGroupCommand.js +47 -0
- package/dist-es/commands/CreateKxVolumeCommand.js +47 -0
- package/dist-es/commands/DeleteKxDataviewCommand.js +47 -0
- package/dist-es/commands/DeleteKxScalingGroupCommand.js +47 -0
- package/dist-es/commands/DeleteKxVolumeCommand.js +47 -0
- package/dist-es/commands/GetKxDataviewCommand.js +47 -0
- package/dist-es/commands/GetKxScalingGroupCommand.js +47 -0
- package/dist-es/commands/GetKxVolumeCommand.js +47 -0
- package/dist-es/commands/ListKxDataviewsCommand.js +47 -0
- package/dist-es/commands/ListKxScalingGroupsCommand.js +47 -0
- package/dist-es/commands/ListKxVolumesCommand.js +47 -0
- package/dist-es/commands/UpdateKxDataviewCommand.js +47 -0
- package/dist-es/commands/UpdateKxVolumeCommand.js +47 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/pagination/ListKxDataviewsPaginator.js +25 -0
- package/dist-es/pagination/ListKxScalingGroupsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1397 -155
- package/dist-types/Finspace.d.ts +98 -0
- package/dist-types/FinspaceClient.d.ts +16 -2
- package/dist-types/commands/CreateKxClusterCommand.d.ts +68 -6
- package/dist-types/commands/CreateKxDataviewCommand.d.ts +136 -0
- package/dist-types/commands/CreateKxScalingGroupCommand.d.ts +108 -0
- package/dist-types/commands/CreateKxVolumeCommand.d.ts +129 -0
- package/dist-types/commands/DeleteKxDataviewCommand.d.ts +94 -0
- package/dist-types/commands/DeleteKxEnvironmentCommand.d.ts +4 -0
- package/dist-types/commands/DeleteKxScalingGroupCommand.d.ts +96 -0
- package/dist-types/commands/DeleteKxUserCommand.d.ts +4 -0
- package/dist-types/commands/DeleteKxVolumeCommand.d.ts +98 -0
- package/dist-types/commands/GetKxClusterCommand.d.ts +37 -3
- package/dist-types/commands/GetKxDataviewCommand.d.ts +130 -0
- package/dist-types/commands/GetKxEnvironmentCommand.d.ts +3 -0
- package/dist-types/commands/GetKxScalingGroupCommand.d.ts +107 -0
- package/dist-types/commands/GetKxVolumeCommand.d.ts +120 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +3 -0
- package/dist-types/commands/ListKxClustersCommand.d.ts +8 -2
- package/dist-types/commands/ListKxDataviewsCommand.d.ts +135 -0
- package/dist-types/commands/ListKxEnvironmentsCommand.d.ts +3 -0
- package/dist-types/commands/ListKxScalingGroupsCommand.d.ts +112 -0
- package/dist-types/commands/ListKxVolumesCommand.d.ts +115 -0
- package/dist-types/commands/UpdateKxClusterDatabasesCommand.d.ts +15 -0
- package/dist-types/commands/UpdateKxDataviewCommand.d.ts +145 -0
- package/dist-types/commands/UpdateKxVolumeCommand.d.ts +128 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +2214 -214
- package/dist-types/pagination/ListKxDataviewsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListKxScalingGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/Finspace.d.ts +238 -0
- package/dist-types/ts3.4/FinspaceClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateKxDataviewCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateKxScalingGroupCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateKxVolumeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteKxDataviewCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteKxScalingGroupCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteKxVolumeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetKxDataviewCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetKxScalingGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetKxVolumeCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListKxDataviewsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListKxScalingGroupsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListKxVolumesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateKxDataviewCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateKxVolumeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/models_0.d.ts +360 -4
- package/dist-types/ts3.4/pagination/ListKxDataviewsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListKxScalingGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +13 -13
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListKxVolumesCommand, se_ListKxVolumesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListKxVolumesCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListKxVolumesCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "FinspaceClient";
|
|
26
|
+
const commandName = "ListKxVolumesCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSHabaneroManagementService",
|
|
35
|
+
operation: "ListKxVolumes",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListKxVolumesCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListKxVolumesCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateKxDataviewCommand, se_UpdateKxDataviewCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateKxDataviewCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateKxDataviewCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "FinspaceClient";
|
|
26
|
+
const commandName = "UpdateKxDataviewCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSHabaneroManagementService",
|
|
35
|
+
operation: "UpdateKxDataview",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateKxDataviewCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateKxDataviewCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateKxVolumeCommand, se_UpdateKxVolumeCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateKxVolumeCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateKxVolumeCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "FinspaceClient";
|
|
26
|
+
const commandName = "UpdateKxVolumeCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSHabaneroManagementService",
|
|
35
|
+
operation: "UpdateKxVolume",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateKxVolumeCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateKxVolumeCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -2,27 +2,39 @@ export * from "./CreateEnvironmentCommand";
|
|
|
2
2
|
export * from "./CreateKxChangesetCommand";
|
|
3
3
|
export * from "./CreateKxClusterCommand";
|
|
4
4
|
export * from "./CreateKxDatabaseCommand";
|
|
5
|
+
export * from "./CreateKxDataviewCommand";
|
|
5
6
|
export * from "./CreateKxEnvironmentCommand";
|
|
7
|
+
export * from "./CreateKxScalingGroupCommand";
|
|
6
8
|
export * from "./CreateKxUserCommand";
|
|
9
|
+
export * from "./CreateKxVolumeCommand";
|
|
7
10
|
export * from "./DeleteEnvironmentCommand";
|
|
8
11
|
export * from "./DeleteKxClusterCommand";
|
|
9
12
|
export * from "./DeleteKxDatabaseCommand";
|
|
13
|
+
export * from "./DeleteKxDataviewCommand";
|
|
10
14
|
export * from "./DeleteKxEnvironmentCommand";
|
|
15
|
+
export * from "./DeleteKxScalingGroupCommand";
|
|
11
16
|
export * from "./DeleteKxUserCommand";
|
|
17
|
+
export * from "./DeleteKxVolumeCommand";
|
|
12
18
|
export * from "./GetEnvironmentCommand";
|
|
13
19
|
export * from "./GetKxChangesetCommand";
|
|
14
20
|
export * from "./GetKxClusterCommand";
|
|
15
21
|
export * from "./GetKxConnectionStringCommand";
|
|
16
22
|
export * from "./GetKxDatabaseCommand";
|
|
23
|
+
export * from "./GetKxDataviewCommand";
|
|
17
24
|
export * from "./GetKxEnvironmentCommand";
|
|
25
|
+
export * from "./GetKxScalingGroupCommand";
|
|
18
26
|
export * from "./GetKxUserCommand";
|
|
27
|
+
export * from "./GetKxVolumeCommand";
|
|
19
28
|
export * from "./ListEnvironmentsCommand";
|
|
20
29
|
export * from "./ListKxChangesetsCommand";
|
|
21
30
|
export * from "./ListKxClusterNodesCommand";
|
|
22
31
|
export * from "./ListKxClustersCommand";
|
|
23
32
|
export * from "./ListKxDatabasesCommand";
|
|
33
|
+
export * from "./ListKxDataviewsCommand";
|
|
24
34
|
export * from "./ListKxEnvironmentsCommand";
|
|
35
|
+
export * from "./ListKxScalingGroupsCommand";
|
|
25
36
|
export * from "./ListKxUsersCommand";
|
|
37
|
+
export * from "./ListKxVolumesCommand";
|
|
26
38
|
export * from "./ListTagsForResourceCommand";
|
|
27
39
|
export * from "./TagResourceCommand";
|
|
28
40
|
export * from "./UntagResourceCommand";
|
|
@@ -30,6 +42,8 @@ export * from "./UpdateEnvironmentCommand";
|
|
|
30
42
|
export * from "./UpdateKxClusterCodeConfigurationCommand";
|
|
31
43
|
export * from "./UpdateKxClusterDatabasesCommand";
|
|
32
44
|
export * from "./UpdateKxDatabaseCommand";
|
|
45
|
+
export * from "./UpdateKxDataviewCommand";
|
|
33
46
|
export * from "./UpdateKxEnvironmentCommand";
|
|
34
47
|
export * from "./UpdateKxEnvironmentNetworkCommand";
|
|
35
48
|
export * from "./UpdateKxUserCommand";
|
|
49
|
+
export * from "./UpdateKxVolumeCommand";
|
|
@@ -133,6 +133,7 @@ export const KxClusterType = {
|
|
|
133
133
|
GP: "GP",
|
|
134
134
|
HDB: "HDB",
|
|
135
135
|
RDB: "RDB",
|
|
136
|
+
TICKERPLANT: "TICKERPLANT",
|
|
136
137
|
};
|
|
137
138
|
export const KxSavedownStorageType = {
|
|
138
139
|
SDS01: "SDS01",
|
|
@@ -150,6 +151,9 @@ export const KxClusterStatus = {
|
|
|
150
151
|
RUNNING: "RUNNING",
|
|
151
152
|
UPDATING: "UPDATING",
|
|
152
153
|
};
|
|
154
|
+
export const VolumeType = {
|
|
155
|
+
NAS_1: "NAS_1",
|
|
156
|
+
};
|
|
153
157
|
export class ResourceAlreadyExistsException extends __BaseException {
|
|
154
158
|
constructor(opts) {
|
|
155
159
|
super({
|
|
@@ -162,6 +166,13 @@ export class ResourceAlreadyExistsException extends __BaseException {
|
|
|
162
166
|
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
163
167
|
}
|
|
164
168
|
}
|
|
169
|
+
export const KxDataviewStatus = {
|
|
170
|
+
ACTIVE: "ACTIVE",
|
|
171
|
+
CREATING: "CREATING",
|
|
172
|
+
DELETING: "DELETING",
|
|
173
|
+
FAILED: "FAILED",
|
|
174
|
+
UPDATING: "UPDATING",
|
|
175
|
+
};
|
|
165
176
|
export const EnvironmentStatus = {
|
|
166
177
|
CREATED: "CREATED",
|
|
167
178
|
CREATE_REQUESTED: "CREATE_REQUESTED",
|
|
@@ -177,6 +188,33 @@ export const EnvironmentStatus = {
|
|
|
177
188
|
UPDATE_NETWORK_REQUESTED: "UPDATE_NETWORK_REQUESTED",
|
|
178
189
|
UPDATING_NETWORK: "UPDATING_NETWORK",
|
|
179
190
|
};
|
|
191
|
+
export const KxScalingGroupStatus = {
|
|
192
|
+
ACTIVE: "ACTIVE",
|
|
193
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
194
|
+
CREATING: "CREATING",
|
|
195
|
+
DELETED: "DELETED",
|
|
196
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
197
|
+
DELETING: "DELETING",
|
|
198
|
+
};
|
|
199
|
+
export const KxNAS1Type = {
|
|
200
|
+
HDD_12: "HDD_12",
|
|
201
|
+
SSD_1000: "SSD_1000",
|
|
202
|
+
SSD_250: "SSD_250",
|
|
203
|
+
};
|
|
204
|
+
export const KxVolumeType = {
|
|
205
|
+
NAS_1: "NAS_1",
|
|
206
|
+
};
|
|
207
|
+
export const KxVolumeStatus = {
|
|
208
|
+
ACTIVE: "ACTIVE",
|
|
209
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
210
|
+
CREATING: "CREATING",
|
|
211
|
+
DELETED: "DELETED",
|
|
212
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
213
|
+
DELETING: "DELETING",
|
|
214
|
+
UPDATED: "UPDATED",
|
|
215
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
216
|
+
UPDATING: "UPDATING",
|
|
217
|
+
};
|
|
180
218
|
export const DnsStatus = {
|
|
181
219
|
FAILED_UPDATE: "FAILED_UPDATE",
|
|
182
220
|
NONE: "NONE",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListKxDataviewsCommand, } from "../commands/ListKxDataviewsCommand";
|
|
2
|
+
import { FinspaceClient } from "../FinspaceClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListKxDataviewsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListKxDataviews(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof FinspaceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Finspace | FinspaceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListKxScalingGroupsCommand, } from "../commands/ListKxScalingGroupsCommand";
|
|
2
|
+
import { FinspaceClient } from "../FinspaceClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListKxScalingGroupsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListKxScalingGroups(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof FinspaceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Finspace | FinspaceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -2,4 +2,6 @@ export * from "./Interfaces";
|
|
|
2
2
|
export * from "./ListKxChangesetsPaginator";
|
|
3
3
|
export * from "./ListKxClusterNodesPaginator";
|
|
4
4
|
export * from "./ListKxDatabasesPaginator";
|
|
5
|
+
export * from "./ListKxDataviewsPaginator";
|
|
5
6
|
export * from "./ListKxEnvironmentsPaginator";
|
|
7
|
+
export * from "./ListKxScalingGroupsPaginator";
|