@aws-sdk/client-finspace 3.466.0 → 3.470.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 +34 -34
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateKxUserCommand = exports.de_UpdateKxEnvironmentNetworkCommand = exports.de_UpdateKxEnvironmentCommand = exports.de_UpdateKxDatabaseCommand = exports.de_UpdateKxClusterDatabasesCommand = exports.de_UpdateKxClusterCodeConfigurationCommand = exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListKxUsersCommand = exports.de_ListKxEnvironmentsCommand = exports.de_ListKxDatabasesCommand = exports.de_ListKxClustersCommand = exports.de_ListKxClusterNodesCommand = exports.de_ListKxChangesetsCommand = exports.de_ListEnvironmentsCommand = exports.de_GetKxUserCommand = exports.de_GetKxEnvironmentCommand = exports.de_GetKxDatabaseCommand = void 0;
|
|
3
|
+
exports.de_CreateEnvironmentCommand = exports.se_UpdateKxVolumeCommand = exports.se_UpdateKxUserCommand = exports.se_UpdateKxEnvironmentNetworkCommand = exports.se_UpdateKxEnvironmentCommand = exports.se_UpdateKxDataviewCommand = exports.se_UpdateKxDatabaseCommand = exports.se_UpdateKxClusterDatabasesCommand = exports.se_UpdateKxClusterCodeConfigurationCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListKxVolumesCommand = exports.se_ListKxUsersCommand = exports.se_ListKxScalingGroupsCommand = exports.se_ListKxEnvironmentsCommand = exports.se_ListKxDataviewsCommand = exports.se_ListKxDatabasesCommand = exports.se_ListKxClustersCommand = exports.se_ListKxClusterNodesCommand = exports.se_ListKxChangesetsCommand = exports.se_ListEnvironmentsCommand = exports.se_GetKxVolumeCommand = exports.se_GetKxUserCommand = exports.se_GetKxScalingGroupCommand = exports.se_GetKxEnvironmentCommand = exports.se_GetKxDataviewCommand = exports.se_GetKxDatabaseCommand = exports.se_GetKxConnectionStringCommand = exports.se_GetKxClusterCommand = exports.se_GetKxChangesetCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteKxVolumeCommand = exports.se_DeleteKxUserCommand = exports.se_DeleteKxScalingGroupCommand = exports.se_DeleteKxEnvironmentCommand = exports.se_DeleteKxDataviewCommand = exports.se_DeleteKxDatabaseCommand = exports.se_DeleteKxClusterCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateKxVolumeCommand = exports.se_CreateKxUserCommand = exports.se_CreateKxScalingGroupCommand = exports.se_CreateKxEnvironmentCommand = exports.se_CreateKxDataviewCommand = exports.se_CreateKxDatabaseCommand = exports.se_CreateKxClusterCommand = exports.se_CreateKxChangesetCommand = exports.se_CreateEnvironmentCommand = void 0;
|
|
4
|
+
exports.de_UpdateKxVolumeCommand = exports.de_UpdateKxUserCommand = exports.de_UpdateKxEnvironmentNetworkCommand = exports.de_UpdateKxEnvironmentCommand = exports.de_UpdateKxDataviewCommand = exports.de_UpdateKxDatabaseCommand = exports.de_UpdateKxClusterDatabasesCommand = exports.de_UpdateKxClusterCodeConfigurationCommand = exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListKxVolumesCommand = exports.de_ListKxUsersCommand = exports.de_ListKxScalingGroupsCommand = exports.de_ListKxEnvironmentsCommand = exports.de_ListKxDataviewsCommand = exports.de_ListKxDatabasesCommand = exports.de_ListKxClustersCommand = exports.de_ListKxClusterNodesCommand = exports.de_ListKxChangesetsCommand = exports.de_ListEnvironmentsCommand = exports.de_GetKxVolumeCommand = exports.de_GetKxUserCommand = exports.de_GetKxScalingGroupCommand = exports.de_GetKxEnvironmentCommand = exports.de_GetKxDataviewCommand = exports.de_GetKxDatabaseCommand = exports.de_GetKxConnectionStringCommand = exports.de_GetKxClusterCommand = exports.de_GetKxChangesetCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteKxVolumeCommand = exports.de_DeleteKxUserCommand = exports.de_DeleteKxScalingGroupCommand = exports.de_DeleteKxEnvironmentCommand = exports.de_DeleteKxDataviewCommand = exports.de_DeleteKxDatabaseCommand = exports.de_DeleteKxClusterCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateKxVolumeCommand = exports.de_CreateKxUserCommand = exports.de_CreateKxScalingGroupCommand = exports.de_CreateKxEnvironmentCommand = exports.de_CreateKxDataviewCommand = exports.de_CreateKxDatabaseCommand = exports.de_CreateKxClusterCommand = exports.de_CreateKxChangesetCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -85,7 +85,9 @@ const se_CreateKxClusterCommand = async (input, context) => {
|
|
|
85
85
|
initializationScript: [],
|
|
86
86
|
releaseLabel: [],
|
|
87
87
|
savedownStorageConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
88
|
+
scalingGroupConfiguration: (_) => se_KxScalingGroupConfiguration(_, context),
|
|
88
89
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
90
|
+
tickerplantLogConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
89
91
|
vpcConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
90
92
|
}));
|
|
91
93
|
return new protocol_http_1.HttpRequest({
|
|
@@ -125,6 +127,38 @@ const se_CreateKxDatabaseCommand = async (input, context) => {
|
|
|
125
127
|
});
|
|
126
128
|
};
|
|
127
129
|
exports.se_CreateKxDatabaseCommand = se_CreateKxDatabaseCommand;
|
|
130
|
+
const se_CreateKxDataviewCommand = async (input, context) => {
|
|
131
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/json",
|
|
134
|
+
};
|
|
135
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
136
|
+
"/kx/environments/{environmentId}/databases/{databaseName}/dataviews";
|
|
137
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
138
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
139
|
+
let body;
|
|
140
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
141
|
+
autoUpdate: [],
|
|
142
|
+
availabilityZoneId: [],
|
|
143
|
+
azMode: [],
|
|
144
|
+
changesetId: [],
|
|
145
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
146
|
+
dataviewName: [],
|
|
147
|
+
description: [],
|
|
148
|
+
segmentConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
149
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
150
|
+
}));
|
|
151
|
+
return new protocol_http_1.HttpRequest({
|
|
152
|
+
protocol,
|
|
153
|
+
hostname,
|
|
154
|
+
port,
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers,
|
|
157
|
+
path: resolvedPath,
|
|
158
|
+
body,
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
exports.se_CreateKxDataviewCommand = se_CreateKxDataviewCommand;
|
|
128
162
|
const se_CreateKxEnvironmentCommand = async (input, context) => {
|
|
129
163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
164
|
const headers = {
|
|
@@ -133,7 +167,7 @@ const se_CreateKxEnvironmentCommand = async (input, context) => {
|
|
|
133
167
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments";
|
|
134
168
|
let body;
|
|
135
169
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
136
|
-
clientToken: [],
|
|
170
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
137
171
|
description: [],
|
|
138
172
|
kmsKeyId: [],
|
|
139
173
|
name: [],
|
|
@@ -150,6 +184,33 @@ const se_CreateKxEnvironmentCommand = async (input, context) => {
|
|
|
150
184
|
});
|
|
151
185
|
};
|
|
152
186
|
exports.se_CreateKxEnvironmentCommand = se_CreateKxEnvironmentCommand;
|
|
187
|
+
const se_CreateKxScalingGroupCommand = async (input, context) => {
|
|
188
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
|
+
const headers = {
|
|
190
|
+
"content-type": "application/json",
|
|
191
|
+
};
|
|
192
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
193
|
+
"/kx/environments/{environmentId}/scalingGroups";
|
|
194
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
195
|
+
let body;
|
|
196
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
197
|
+
availabilityZoneId: [],
|
|
198
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
199
|
+
hostType: [],
|
|
200
|
+
scalingGroupName: [],
|
|
201
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
202
|
+
}));
|
|
203
|
+
return new protocol_http_1.HttpRequest({
|
|
204
|
+
protocol,
|
|
205
|
+
hostname,
|
|
206
|
+
port,
|
|
207
|
+
method: "POST",
|
|
208
|
+
headers,
|
|
209
|
+
path: resolvedPath,
|
|
210
|
+
body,
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
exports.se_CreateKxScalingGroupCommand = se_CreateKxScalingGroupCommand;
|
|
153
214
|
const se_CreateKxUserCommand = async (input, context) => {
|
|
154
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
216
|
const headers = {
|
|
@@ -159,7 +220,7 @@ const se_CreateKxUserCommand = async (input, context) => {
|
|
|
159
220
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
160
221
|
let body;
|
|
161
222
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
162
|
-
clientToken: [],
|
|
223
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
163
224
|
iamRole: [],
|
|
164
225
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
165
226
|
userName: [],
|
|
@@ -175,6 +236,36 @@ const se_CreateKxUserCommand = async (input, context) => {
|
|
|
175
236
|
});
|
|
176
237
|
};
|
|
177
238
|
exports.se_CreateKxUserCommand = se_CreateKxUserCommand;
|
|
239
|
+
const se_CreateKxVolumeCommand = async (input, context) => {
|
|
240
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
241
|
+
const headers = {
|
|
242
|
+
"content-type": "application/json",
|
|
243
|
+
};
|
|
244
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
245
|
+
"/kx/environments/{environmentId}/kxvolumes";
|
|
246
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
247
|
+
let body;
|
|
248
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
249
|
+
availabilityZoneIds: (_) => (0, smithy_client_1._json)(_),
|
|
250
|
+
azMode: [],
|
|
251
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
252
|
+
description: [],
|
|
253
|
+
nas1Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
254
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
255
|
+
volumeName: [],
|
|
256
|
+
volumeType: [],
|
|
257
|
+
}));
|
|
258
|
+
return new protocol_http_1.HttpRequest({
|
|
259
|
+
protocol,
|
|
260
|
+
hostname,
|
|
261
|
+
port,
|
|
262
|
+
method: "POST",
|
|
263
|
+
headers,
|
|
264
|
+
path: resolvedPath,
|
|
265
|
+
body,
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
exports.se_CreateKxVolumeCommand = se_CreateKxVolumeCommand;
|
|
178
269
|
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
179
270
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
271
|
const headers = {};
|
|
@@ -238,11 +329,38 @@ const se_DeleteKxDatabaseCommand = async (input, context) => {
|
|
|
238
329
|
});
|
|
239
330
|
};
|
|
240
331
|
exports.se_DeleteKxDatabaseCommand = se_DeleteKxDatabaseCommand;
|
|
332
|
+
const se_DeleteKxDataviewCommand = async (input, context) => {
|
|
333
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
|
+
const headers = {};
|
|
335
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
336
|
+
"/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}";
|
|
337
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
338
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
339
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
340
|
+
const query = (0, smithy_client_1.map)({
|
|
341
|
+
clientToken: [, (0, smithy_client_1.expectNonNull)(input.clientToken, `clientToken`)],
|
|
342
|
+
});
|
|
343
|
+
let body;
|
|
344
|
+
return new protocol_http_1.HttpRequest({
|
|
345
|
+
protocol,
|
|
346
|
+
hostname,
|
|
347
|
+
port,
|
|
348
|
+
method: "DELETE",
|
|
349
|
+
headers,
|
|
350
|
+
path: resolvedPath,
|
|
351
|
+
query,
|
|
352
|
+
body,
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
exports.se_DeleteKxDataviewCommand = se_DeleteKxDataviewCommand;
|
|
241
356
|
const se_DeleteKxEnvironmentCommand = async (input, context) => {
|
|
242
357
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
243
358
|
const headers = {};
|
|
244
359
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}";
|
|
245
360
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
361
|
+
const query = (0, smithy_client_1.map)({
|
|
362
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
363
|
+
});
|
|
246
364
|
let body;
|
|
247
365
|
return new protocol_http_1.HttpRequest({
|
|
248
366
|
protocol,
|
|
@@ -251,10 +369,34 @@ const se_DeleteKxEnvironmentCommand = async (input, context) => {
|
|
|
251
369
|
method: "DELETE",
|
|
252
370
|
headers,
|
|
253
371
|
path: resolvedPath,
|
|
372
|
+
query,
|
|
254
373
|
body,
|
|
255
374
|
});
|
|
256
375
|
};
|
|
257
376
|
exports.se_DeleteKxEnvironmentCommand = se_DeleteKxEnvironmentCommand;
|
|
377
|
+
const se_DeleteKxScalingGroupCommand = async (input, context) => {
|
|
378
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
|
+
const headers = {};
|
|
380
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
381
|
+
"/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}";
|
|
382
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
383
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scalingGroupName", () => input.scalingGroupName, "{scalingGroupName}", false);
|
|
384
|
+
const query = (0, smithy_client_1.map)({
|
|
385
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
386
|
+
});
|
|
387
|
+
let body;
|
|
388
|
+
return new protocol_http_1.HttpRequest({
|
|
389
|
+
protocol,
|
|
390
|
+
hostname,
|
|
391
|
+
port,
|
|
392
|
+
method: "DELETE",
|
|
393
|
+
headers,
|
|
394
|
+
path: resolvedPath,
|
|
395
|
+
query,
|
|
396
|
+
body,
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
exports.se_DeleteKxScalingGroupCommand = se_DeleteKxScalingGroupCommand;
|
|
258
400
|
const se_DeleteKxUserCommand = async (input, context) => {
|
|
259
401
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
260
402
|
const headers = {};
|
|
@@ -262,6 +404,9 @@ const se_DeleteKxUserCommand = async (input, context) => {
|
|
|
262
404
|
"/kx/environments/{environmentId}/users/{userName}";
|
|
263
405
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userName", () => input.userName, "{userName}", false);
|
|
264
406
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
407
|
+
const query = (0, smithy_client_1.map)({
|
|
408
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
409
|
+
});
|
|
265
410
|
let body;
|
|
266
411
|
return new protocol_http_1.HttpRequest({
|
|
267
412
|
protocol,
|
|
@@ -270,10 +415,34 @@ const se_DeleteKxUserCommand = async (input, context) => {
|
|
|
270
415
|
method: "DELETE",
|
|
271
416
|
headers,
|
|
272
417
|
path: resolvedPath,
|
|
418
|
+
query,
|
|
273
419
|
body,
|
|
274
420
|
});
|
|
275
421
|
};
|
|
276
422
|
exports.se_DeleteKxUserCommand = se_DeleteKxUserCommand;
|
|
423
|
+
const se_DeleteKxVolumeCommand = async (input, context) => {
|
|
424
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
425
|
+
const headers = {};
|
|
426
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
427
|
+
"/kx/environments/{environmentId}/kxvolumes/{volumeName}";
|
|
428
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
429
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "volumeName", () => input.volumeName, "{volumeName}", false);
|
|
430
|
+
const query = (0, smithy_client_1.map)({
|
|
431
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
432
|
+
});
|
|
433
|
+
let body;
|
|
434
|
+
return new protocol_http_1.HttpRequest({
|
|
435
|
+
protocol,
|
|
436
|
+
hostname,
|
|
437
|
+
port,
|
|
438
|
+
method: "DELETE",
|
|
439
|
+
headers,
|
|
440
|
+
path: resolvedPath,
|
|
441
|
+
query,
|
|
442
|
+
body,
|
|
443
|
+
});
|
|
444
|
+
};
|
|
445
|
+
exports.se_DeleteKxVolumeCommand = se_DeleteKxVolumeCommand;
|
|
277
446
|
const se_GetEnvironmentCommand = async (input, context) => {
|
|
278
447
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
448
|
const headers = {};
|
|
@@ -372,6 +541,26 @@ const se_GetKxDatabaseCommand = async (input, context) => {
|
|
|
372
541
|
});
|
|
373
542
|
};
|
|
374
543
|
exports.se_GetKxDatabaseCommand = se_GetKxDatabaseCommand;
|
|
544
|
+
const se_GetKxDataviewCommand = async (input, context) => {
|
|
545
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
|
+
const headers = {};
|
|
547
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
548
|
+
"/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}";
|
|
549
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
550
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
551
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
552
|
+
let body;
|
|
553
|
+
return new protocol_http_1.HttpRequest({
|
|
554
|
+
protocol,
|
|
555
|
+
hostname,
|
|
556
|
+
port,
|
|
557
|
+
method: "GET",
|
|
558
|
+
headers,
|
|
559
|
+
path: resolvedPath,
|
|
560
|
+
body,
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
exports.se_GetKxDataviewCommand = se_GetKxDataviewCommand;
|
|
375
564
|
const se_GetKxEnvironmentCommand = async (input, context) => {
|
|
376
565
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
377
566
|
const headers = {};
|
|
@@ -389,6 +578,25 @@ const se_GetKxEnvironmentCommand = async (input, context) => {
|
|
|
389
578
|
});
|
|
390
579
|
};
|
|
391
580
|
exports.se_GetKxEnvironmentCommand = se_GetKxEnvironmentCommand;
|
|
581
|
+
const se_GetKxScalingGroupCommand = async (input, context) => {
|
|
582
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
583
|
+
const headers = {};
|
|
584
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
585
|
+
"/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}";
|
|
586
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
587
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scalingGroupName", () => input.scalingGroupName, "{scalingGroupName}", false);
|
|
588
|
+
let body;
|
|
589
|
+
return new protocol_http_1.HttpRequest({
|
|
590
|
+
protocol,
|
|
591
|
+
hostname,
|
|
592
|
+
port,
|
|
593
|
+
method: "GET",
|
|
594
|
+
headers,
|
|
595
|
+
path: resolvedPath,
|
|
596
|
+
body,
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
exports.se_GetKxScalingGroupCommand = se_GetKxScalingGroupCommand;
|
|
392
600
|
const se_GetKxUserCommand = async (input, context) => {
|
|
393
601
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
602
|
const headers = {};
|
|
@@ -408,6 +616,25 @@ const se_GetKxUserCommand = async (input, context) => {
|
|
|
408
616
|
});
|
|
409
617
|
};
|
|
410
618
|
exports.se_GetKxUserCommand = se_GetKxUserCommand;
|
|
619
|
+
const se_GetKxVolumeCommand = async (input, context) => {
|
|
620
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
621
|
+
const headers = {};
|
|
622
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
623
|
+
"/kx/environments/{environmentId}/kxvolumes/{volumeName}";
|
|
624
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
625
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "volumeName", () => input.volumeName, "{volumeName}", false);
|
|
626
|
+
let body;
|
|
627
|
+
return new protocol_http_1.HttpRequest({
|
|
628
|
+
protocol,
|
|
629
|
+
hostname,
|
|
630
|
+
port,
|
|
631
|
+
method: "GET",
|
|
632
|
+
headers,
|
|
633
|
+
path: resolvedPath,
|
|
634
|
+
body,
|
|
635
|
+
});
|
|
636
|
+
};
|
|
637
|
+
exports.se_GetKxVolumeCommand = se_GetKxVolumeCommand;
|
|
411
638
|
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
412
639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
640
|
const headers = {};
|
|
@@ -523,6 +750,30 @@ const se_ListKxDatabasesCommand = async (input, context) => {
|
|
|
523
750
|
});
|
|
524
751
|
};
|
|
525
752
|
exports.se_ListKxDatabasesCommand = se_ListKxDatabasesCommand;
|
|
753
|
+
const se_ListKxDataviewsCommand = async (input, context) => {
|
|
754
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
755
|
+
const headers = {};
|
|
756
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
757
|
+
"/kx/environments/{environmentId}/databases/{databaseName}/dataviews";
|
|
758
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
759
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
760
|
+
const query = (0, smithy_client_1.map)({
|
|
761
|
+
nextToken: [, input.nextToken],
|
|
762
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
763
|
+
});
|
|
764
|
+
let body;
|
|
765
|
+
return new protocol_http_1.HttpRequest({
|
|
766
|
+
protocol,
|
|
767
|
+
hostname,
|
|
768
|
+
port,
|
|
769
|
+
method: "GET",
|
|
770
|
+
headers,
|
|
771
|
+
path: resolvedPath,
|
|
772
|
+
query,
|
|
773
|
+
body,
|
|
774
|
+
});
|
|
775
|
+
};
|
|
776
|
+
exports.se_ListKxDataviewsCommand = se_ListKxDataviewsCommand;
|
|
526
777
|
const se_ListKxEnvironmentsCommand = async (input, context) => {
|
|
527
778
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
528
779
|
const headers = {};
|
|
@@ -544,6 +795,29 @@ const se_ListKxEnvironmentsCommand = async (input, context) => {
|
|
|
544
795
|
});
|
|
545
796
|
};
|
|
546
797
|
exports.se_ListKxEnvironmentsCommand = se_ListKxEnvironmentsCommand;
|
|
798
|
+
const se_ListKxScalingGroupsCommand = async (input, context) => {
|
|
799
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
800
|
+
const headers = {};
|
|
801
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
802
|
+
"/kx/environments/{environmentId}/scalingGroups";
|
|
803
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
804
|
+
const query = (0, smithy_client_1.map)({
|
|
805
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
806
|
+
nextToken: [, input.nextToken],
|
|
807
|
+
});
|
|
808
|
+
let body;
|
|
809
|
+
return new protocol_http_1.HttpRequest({
|
|
810
|
+
protocol,
|
|
811
|
+
hostname,
|
|
812
|
+
port,
|
|
813
|
+
method: "GET",
|
|
814
|
+
headers,
|
|
815
|
+
path: resolvedPath,
|
|
816
|
+
query,
|
|
817
|
+
body,
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
exports.se_ListKxScalingGroupsCommand = se_ListKxScalingGroupsCommand;
|
|
547
821
|
const se_ListKxUsersCommand = async (input, context) => {
|
|
548
822
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
549
823
|
const headers = {};
|
|
@@ -566,6 +840,30 @@ const se_ListKxUsersCommand = async (input, context) => {
|
|
|
566
840
|
});
|
|
567
841
|
};
|
|
568
842
|
exports.se_ListKxUsersCommand = se_ListKxUsersCommand;
|
|
843
|
+
const se_ListKxVolumesCommand = async (input, context) => {
|
|
844
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
845
|
+
const headers = {};
|
|
846
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
847
|
+
"/kx/environments/{environmentId}/kxvolumes";
|
|
848
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
849
|
+
const query = (0, smithy_client_1.map)({
|
|
850
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
851
|
+
nextToken: [, input.nextToken],
|
|
852
|
+
volumeType: [, input.volumeType],
|
|
853
|
+
});
|
|
854
|
+
let body;
|
|
855
|
+
return new protocol_http_1.HttpRequest({
|
|
856
|
+
protocol,
|
|
857
|
+
hostname,
|
|
858
|
+
port,
|
|
859
|
+
method: "GET",
|
|
860
|
+
headers,
|
|
861
|
+
path: resolvedPath,
|
|
862
|
+
query,
|
|
863
|
+
body,
|
|
864
|
+
});
|
|
865
|
+
};
|
|
866
|
+
exports.se_ListKxVolumesCommand = se_ListKxVolumesCommand;
|
|
569
867
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
570
868
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
571
869
|
const headers = {};
|
|
@@ -733,18 +1031,22 @@ const se_UpdateKxDatabaseCommand = async (input, context) => {
|
|
|
733
1031
|
});
|
|
734
1032
|
};
|
|
735
1033
|
exports.se_UpdateKxDatabaseCommand = se_UpdateKxDatabaseCommand;
|
|
736
|
-
const
|
|
1034
|
+
const se_UpdateKxDataviewCommand = async (input, context) => {
|
|
737
1035
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
738
1036
|
const headers = {
|
|
739
1037
|
"content-type": "application/json",
|
|
740
1038
|
};
|
|
741
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1039
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1040
|
+
"/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}";
|
|
742
1041
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
1042
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
1043
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
743
1044
|
let body;
|
|
744
1045
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
745
|
-
|
|
1046
|
+
changesetId: [],
|
|
1047
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
746
1048
|
description: [],
|
|
747
|
-
|
|
1049
|
+
segmentConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
748
1050
|
}));
|
|
749
1051
|
return new protocol_http_1.HttpRequest({
|
|
750
1052
|
protocol,
|
|
@@ -756,17 +1058,41 @@ const se_UpdateKxEnvironmentCommand = async (input, context) => {
|
|
|
756
1058
|
body,
|
|
757
1059
|
});
|
|
758
1060
|
};
|
|
759
|
-
exports.
|
|
760
|
-
const
|
|
1061
|
+
exports.se_UpdateKxDataviewCommand = se_UpdateKxDataviewCommand;
|
|
1062
|
+
const se_UpdateKxEnvironmentCommand = async (input, context) => {
|
|
761
1063
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
762
1064
|
const headers = {
|
|
763
1065
|
"content-type": "application/json",
|
|
764
1066
|
};
|
|
765
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}
|
|
1067
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}";
|
|
766
1068
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
767
1069
|
let body;
|
|
768
1070
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
769
|
-
clientToken: [],
|
|
1071
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1072
|
+
description: [],
|
|
1073
|
+
name: [],
|
|
1074
|
+
}));
|
|
1075
|
+
return new protocol_http_1.HttpRequest({
|
|
1076
|
+
protocol,
|
|
1077
|
+
hostname,
|
|
1078
|
+
port,
|
|
1079
|
+
method: "PUT",
|
|
1080
|
+
headers,
|
|
1081
|
+
path: resolvedPath,
|
|
1082
|
+
body,
|
|
1083
|
+
});
|
|
1084
|
+
};
|
|
1085
|
+
exports.se_UpdateKxEnvironmentCommand = se_UpdateKxEnvironmentCommand;
|
|
1086
|
+
const se_UpdateKxEnvironmentNetworkCommand = async (input, context) => {
|
|
1087
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1088
|
+
const headers = {
|
|
1089
|
+
"content-type": "application/json",
|
|
1090
|
+
};
|
|
1091
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/network";
|
|
1092
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
1093
|
+
let body;
|
|
1094
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1095
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
770
1096
|
customDNSConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
771
1097
|
transitGatewayConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
772
1098
|
}));
|
|
@@ -792,7 +1118,7 @@ const se_UpdateKxUserCommand = async (input, context) => {
|
|
|
792
1118
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userName", () => input.userName, "{userName}", false);
|
|
793
1119
|
let body;
|
|
794
1120
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
795
|
-
clientToken: [],
|
|
1121
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
796
1122
|
iamRole: [],
|
|
797
1123
|
}));
|
|
798
1124
|
return new protocol_http_1.HttpRequest({
|
|
@@ -806,6 +1132,32 @@ const se_UpdateKxUserCommand = async (input, context) => {
|
|
|
806
1132
|
});
|
|
807
1133
|
};
|
|
808
1134
|
exports.se_UpdateKxUserCommand = se_UpdateKxUserCommand;
|
|
1135
|
+
const se_UpdateKxVolumeCommand = async (input, context) => {
|
|
1136
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1137
|
+
const headers = {
|
|
1138
|
+
"content-type": "application/json",
|
|
1139
|
+
};
|
|
1140
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1141
|
+
"/kx/environments/{environmentId}/kxvolumes/{volumeName}";
|
|
1142
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
1143
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "volumeName", () => input.volumeName, "{volumeName}", false);
|
|
1144
|
+
let body;
|
|
1145
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1146
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1147
|
+
description: [],
|
|
1148
|
+
nas1Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
1149
|
+
}));
|
|
1150
|
+
return new protocol_http_1.HttpRequest({
|
|
1151
|
+
protocol,
|
|
1152
|
+
hostname,
|
|
1153
|
+
port,
|
|
1154
|
+
method: "PATCH",
|
|
1155
|
+
headers,
|
|
1156
|
+
path: resolvedPath,
|
|
1157
|
+
body,
|
|
1158
|
+
});
|
|
1159
|
+
};
|
|
1160
|
+
exports.se_UpdateKxVolumeCommand = se_UpdateKxVolumeCommand;
|
|
809
1161
|
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
810
1162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
1163
|
return de_CreateEnvironmentCommandError(output, context);
|
|
@@ -943,8 +1295,11 @@ const de_CreateKxClusterCommand = async (output, context) => {
|
|
|
943
1295
|
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
944
1296
|
releaseLabel: smithy_client_1.expectString,
|
|
945
1297
|
savedownStorageConfiguration: smithy_client_1._json,
|
|
1298
|
+
scalingGroupConfiguration: (_) => de_KxScalingGroupConfiguration(_, context),
|
|
946
1299
|
status: smithy_client_1.expectString,
|
|
947
1300
|
statusReason: smithy_client_1.expectString,
|
|
1301
|
+
tickerplantLogConfiguration: smithy_client_1._json,
|
|
1302
|
+
volumes: smithy_client_1._json,
|
|
948
1303
|
vpcConfiguration: smithy_client_1._json,
|
|
949
1304
|
});
|
|
950
1305
|
Object.assign(contents, doc);
|
|
@@ -1048,28 +1403,33 @@ const de_CreateKxDatabaseCommandError = async (output, context) => {
|
|
|
1048
1403
|
});
|
|
1049
1404
|
}
|
|
1050
1405
|
};
|
|
1051
|
-
const
|
|
1406
|
+
const de_CreateKxDataviewCommand = async (output, context) => {
|
|
1052
1407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1053
|
-
return
|
|
1408
|
+
return de_CreateKxDataviewCommandError(output, context);
|
|
1054
1409
|
}
|
|
1055
1410
|
const contents = (0, smithy_client_1.map)({
|
|
1056
1411
|
$metadata: deserializeMetadata(output),
|
|
1057
1412
|
});
|
|
1058
1413
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1059
1414
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1060
|
-
|
|
1415
|
+
autoUpdate: smithy_client_1.expectBoolean,
|
|
1416
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
1417
|
+
azMode: smithy_client_1.expectString,
|
|
1418
|
+
changesetId: smithy_client_1.expectString,
|
|
1419
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1420
|
+
databaseName: smithy_client_1.expectString,
|
|
1421
|
+
dataviewName: smithy_client_1.expectString,
|
|
1061
1422
|
description: smithy_client_1.expectString,
|
|
1062
|
-
environmentArn: smithy_client_1.expectString,
|
|
1063
1423
|
environmentId: smithy_client_1.expectString,
|
|
1064
|
-
|
|
1065
|
-
|
|
1424
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1425
|
+
segmentConfigurations: smithy_client_1._json,
|
|
1066
1426
|
status: smithy_client_1.expectString,
|
|
1067
1427
|
});
|
|
1068
1428
|
Object.assign(contents, doc);
|
|
1069
1429
|
return contents;
|
|
1070
1430
|
};
|
|
1071
|
-
exports.
|
|
1072
|
-
const
|
|
1431
|
+
exports.de_CreateKxDataviewCommand = de_CreateKxDataviewCommand;
|
|
1432
|
+
const de_CreateKxDataviewCommandError = async (output, context) => {
|
|
1073
1433
|
const parsedOutput = {
|
|
1074
1434
|
...output,
|
|
1075
1435
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1088,9 +1448,12 @@ const de_CreateKxEnvironmentCommandError = async (output, context) => {
|
|
|
1088
1448
|
case "LimitExceededException":
|
|
1089
1449
|
case "com.amazonaws.finspace#LimitExceededException":
|
|
1090
1450
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "
|
|
1092
|
-
case "com.amazonaws.finspace#
|
|
1093
|
-
throw await
|
|
1451
|
+
case "ResourceAlreadyExistsException":
|
|
1452
|
+
case "com.amazonaws.finspace#ResourceAlreadyExistsException":
|
|
1453
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1454
|
+
case "ResourceNotFoundException":
|
|
1455
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1456
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1094
1457
|
case "ThrottlingException":
|
|
1095
1458
|
case "com.amazonaws.finspace#ThrottlingException":
|
|
1096
1459
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1106,25 +1469,28 @@ const de_CreateKxEnvironmentCommandError = async (output, context) => {
|
|
|
1106
1469
|
});
|
|
1107
1470
|
}
|
|
1108
1471
|
};
|
|
1109
|
-
const
|
|
1472
|
+
const de_CreateKxEnvironmentCommand = async (output, context) => {
|
|
1110
1473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1111
|
-
return
|
|
1474
|
+
return de_CreateKxEnvironmentCommandError(output, context);
|
|
1112
1475
|
}
|
|
1113
1476
|
const contents = (0, smithy_client_1.map)({
|
|
1114
1477
|
$metadata: deserializeMetadata(output),
|
|
1115
1478
|
});
|
|
1116
1479
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1117
1480
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1481
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1482
|
+
description: smithy_client_1.expectString,
|
|
1483
|
+
environmentArn: smithy_client_1.expectString,
|
|
1118
1484
|
environmentId: smithy_client_1.expectString,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1485
|
+
kmsKeyId: smithy_client_1.expectString,
|
|
1486
|
+
name: smithy_client_1.expectString,
|
|
1487
|
+
status: smithy_client_1.expectString,
|
|
1122
1488
|
});
|
|
1123
1489
|
Object.assign(contents, doc);
|
|
1124
1490
|
return contents;
|
|
1125
1491
|
};
|
|
1126
|
-
exports.
|
|
1127
|
-
const
|
|
1492
|
+
exports.de_CreateKxEnvironmentCommand = de_CreateKxEnvironmentCommand;
|
|
1493
|
+
const de_CreateKxEnvironmentCommandError = async (output, context) => {
|
|
1128
1494
|
const parsedOutput = {
|
|
1129
1495
|
...output,
|
|
1130
1496
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1143,12 +1509,9 @@ const de_CreateKxUserCommandError = async (output, context) => {
|
|
|
1143
1509
|
case "LimitExceededException":
|
|
1144
1510
|
case "com.amazonaws.finspace#LimitExceededException":
|
|
1145
1511
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "
|
|
1147
|
-
case "com.amazonaws.finspace#
|
|
1148
|
-
throw await
|
|
1149
|
-
case "ResourceNotFoundException":
|
|
1150
|
-
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1512
|
+
case "ServiceQuotaExceededException":
|
|
1513
|
+
case "com.amazonaws.finspace#ServiceQuotaExceededException":
|
|
1514
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1152
1515
|
case "ThrottlingException":
|
|
1153
1516
|
case "com.amazonaws.finspace#ThrottlingException":
|
|
1154
1517
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1164,18 +1527,28 @@ const de_CreateKxUserCommandError = async (output, context) => {
|
|
|
1164
1527
|
});
|
|
1165
1528
|
}
|
|
1166
1529
|
};
|
|
1167
|
-
const
|
|
1530
|
+
const de_CreateKxScalingGroupCommand = async (output, context) => {
|
|
1168
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1169
|
-
return
|
|
1532
|
+
return de_CreateKxScalingGroupCommandError(output, context);
|
|
1170
1533
|
}
|
|
1171
1534
|
const contents = (0, smithy_client_1.map)({
|
|
1172
1535
|
$metadata: deserializeMetadata(output),
|
|
1173
1536
|
});
|
|
1174
|
-
|
|
1537
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1538
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1539
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
1540
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1541
|
+
environmentId: smithy_client_1.expectString,
|
|
1542
|
+
hostType: smithy_client_1.expectString,
|
|
1543
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1544
|
+
scalingGroupName: smithy_client_1.expectString,
|
|
1545
|
+
status: smithy_client_1.expectString,
|
|
1546
|
+
});
|
|
1547
|
+
Object.assign(contents, doc);
|
|
1175
1548
|
return contents;
|
|
1176
1549
|
};
|
|
1177
|
-
exports.
|
|
1178
|
-
const
|
|
1550
|
+
exports.de_CreateKxScalingGroupCommand = de_CreateKxScalingGroupCommand;
|
|
1551
|
+
const de_CreateKxScalingGroupCommandError = async (output, context) => {
|
|
1179
1552
|
const parsedOutput = {
|
|
1180
1553
|
...output,
|
|
1181
1554
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1185,9 +1558,15 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
1185
1558
|
case "AccessDeniedException":
|
|
1186
1559
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1187
1560
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1561
|
+
case "ConflictException":
|
|
1562
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
1563
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1188
1564
|
case "InternalServerException":
|
|
1189
1565
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1190
1566
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1567
|
+
case "LimitExceededException":
|
|
1568
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
1569
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1191
1570
|
case "ResourceNotFoundException":
|
|
1192
1571
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1193
1572
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1206,18 +1585,25 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
1206
1585
|
});
|
|
1207
1586
|
}
|
|
1208
1587
|
};
|
|
1209
|
-
const
|
|
1588
|
+
const de_CreateKxUserCommand = async (output, context) => {
|
|
1210
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
|
-
return
|
|
1590
|
+
return de_CreateKxUserCommandError(output, context);
|
|
1212
1591
|
}
|
|
1213
1592
|
const contents = (0, smithy_client_1.map)({
|
|
1214
1593
|
$metadata: deserializeMetadata(output),
|
|
1215
1594
|
});
|
|
1216
|
-
|
|
1595
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1596
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1597
|
+
environmentId: smithy_client_1.expectString,
|
|
1598
|
+
iamRole: smithy_client_1.expectString,
|
|
1599
|
+
userArn: smithy_client_1.expectString,
|
|
1600
|
+
userName: smithy_client_1.expectString,
|
|
1601
|
+
});
|
|
1602
|
+
Object.assign(contents, doc);
|
|
1217
1603
|
return contents;
|
|
1218
1604
|
};
|
|
1219
|
-
exports.
|
|
1220
|
-
const
|
|
1605
|
+
exports.de_CreateKxUserCommand = de_CreateKxUserCommand;
|
|
1606
|
+
const de_CreateKxUserCommandError = async (output, context) => {
|
|
1221
1607
|
const parsedOutput = {
|
|
1222
1608
|
...output,
|
|
1223
1609
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1236,6 +1622,9 @@ const de_DeleteKxClusterCommandError = async (output, context) => {
|
|
|
1236
1622
|
case "LimitExceededException":
|
|
1237
1623
|
case "com.amazonaws.finspace#LimitExceededException":
|
|
1238
1624
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1625
|
+
case "ResourceAlreadyExistsException":
|
|
1626
|
+
case "com.amazonaws.finspace#ResourceAlreadyExistsException":
|
|
1627
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1239
1628
|
case "ResourceNotFoundException":
|
|
1240
1629
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1241
1630
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1254,18 +1643,32 @@ const de_DeleteKxClusterCommandError = async (output, context) => {
|
|
|
1254
1643
|
});
|
|
1255
1644
|
}
|
|
1256
1645
|
};
|
|
1257
|
-
const
|
|
1646
|
+
const de_CreateKxVolumeCommand = async (output, context) => {
|
|
1258
1647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
1648
|
+
return de_CreateKxVolumeCommandError(output, context);
|
|
1260
1649
|
}
|
|
1261
1650
|
const contents = (0, smithy_client_1.map)({
|
|
1262
1651
|
$metadata: deserializeMetadata(output),
|
|
1263
1652
|
});
|
|
1264
|
-
|
|
1653
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1654
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1655
|
+
availabilityZoneIds: smithy_client_1._json,
|
|
1656
|
+
azMode: smithy_client_1.expectString,
|
|
1657
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1658
|
+
description: smithy_client_1.expectString,
|
|
1659
|
+
environmentId: smithy_client_1.expectString,
|
|
1660
|
+
nas1Configuration: smithy_client_1._json,
|
|
1661
|
+
status: smithy_client_1.expectString,
|
|
1662
|
+
statusReason: smithy_client_1.expectString,
|
|
1663
|
+
volumeArn: smithy_client_1.expectString,
|
|
1664
|
+
volumeName: smithy_client_1.expectString,
|
|
1665
|
+
volumeType: smithy_client_1.expectString,
|
|
1666
|
+
});
|
|
1667
|
+
Object.assign(contents, doc);
|
|
1265
1668
|
return contents;
|
|
1266
1669
|
};
|
|
1267
|
-
exports.
|
|
1268
|
-
const
|
|
1670
|
+
exports.de_CreateKxVolumeCommand = de_CreateKxVolumeCommand;
|
|
1671
|
+
const de_CreateKxVolumeCommandError = async (output, context) => {
|
|
1269
1672
|
const parsedOutput = {
|
|
1270
1673
|
...output,
|
|
1271
1674
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1281,6 +1684,12 @@ const de_DeleteKxDatabaseCommandError = async (output, context) => {
|
|
|
1281
1684
|
case "InternalServerException":
|
|
1282
1685
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1283
1686
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1687
|
+
case "LimitExceededException":
|
|
1688
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
1689
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1690
|
+
case "ResourceAlreadyExistsException":
|
|
1691
|
+
case "com.amazonaws.finspace#ResourceAlreadyExistsException":
|
|
1692
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1284
1693
|
case "ResourceNotFoundException":
|
|
1285
1694
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1286
1695
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1299,9 +1708,9 @@ const de_DeleteKxDatabaseCommandError = async (output, context) => {
|
|
|
1299
1708
|
});
|
|
1300
1709
|
}
|
|
1301
1710
|
};
|
|
1302
|
-
const
|
|
1711
|
+
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
1303
1712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
|
-
return
|
|
1713
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
1305
1714
|
}
|
|
1306
1715
|
const contents = (0, smithy_client_1.map)({
|
|
1307
1716
|
$metadata: deserializeMetadata(output),
|
|
@@ -1309,8 +1718,8 @@ const de_DeleteKxEnvironmentCommand = async (output, context) => {
|
|
|
1309
1718
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1310
1719
|
return contents;
|
|
1311
1720
|
};
|
|
1312
|
-
exports.
|
|
1313
|
-
const
|
|
1721
|
+
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
1722
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
1314
1723
|
const parsedOutput = {
|
|
1315
1724
|
...output,
|
|
1316
1725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1341,9 +1750,9 @@ const de_DeleteKxEnvironmentCommandError = async (output, context) => {
|
|
|
1341
1750
|
});
|
|
1342
1751
|
}
|
|
1343
1752
|
};
|
|
1344
|
-
const
|
|
1753
|
+
const de_DeleteKxClusterCommand = async (output, context) => {
|
|
1345
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
-
return
|
|
1755
|
+
return de_DeleteKxClusterCommandError(output, context);
|
|
1347
1756
|
}
|
|
1348
1757
|
const contents = (0, smithy_client_1.map)({
|
|
1349
1758
|
$metadata: deserializeMetadata(output),
|
|
@@ -1351,8 +1760,8 @@ const de_DeleteKxUserCommand = async (output, context) => {
|
|
|
1351
1760
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1352
1761
|
return contents;
|
|
1353
1762
|
};
|
|
1354
|
-
exports.
|
|
1355
|
-
const
|
|
1763
|
+
exports.de_DeleteKxClusterCommand = de_DeleteKxClusterCommand;
|
|
1764
|
+
const de_DeleteKxClusterCommandError = async (output, context) => {
|
|
1356
1765
|
const parsedOutput = {
|
|
1357
1766
|
...output,
|
|
1358
1767
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1362,9 +1771,15 @@ const de_DeleteKxUserCommandError = async (output, context) => {
|
|
|
1362
1771
|
case "AccessDeniedException":
|
|
1363
1772
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1364
1773
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1774
|
+
case "ConflictException":
|
|
1775
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
1776
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1365
1777
|
case "InternalServerException":
|
|
1366
1778
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1367
1779
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1780
|
+
case "LimitExceededException":
|
|
1781
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
1782
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1368
1783
|
case "ResourceNotFoundException":
|
|
1369
1784
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1370
1785
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1383,22 +1798,18 @@ const de_DeleteKxUserCommandError = async (output, context) => {
|
|
|
1383
1798
|
});
|
|
1384
1799
|
}
|
|
1385
1800
|
};
|
|
1386
|
-
const
|
|
1801
|
+
const de_DeleteKxDatabaseCommand = async (output, context) => {
|
|
1387
1802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1803
|
+
return de_DeleteKxDatabaseCommandError(output, context);
|
|
1389
1804
|
}
|
|
1390
1805
|
const contents = (0, smithy_client_1.map)({
|
|
1391
1806
|
$metadata: deserializeMetadata(output),
|
|
1392
1807
|
});
|
|
1393
|
-
|
|
1394
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1395
|
-
environment: smithy_client_1._json,
|
|
1396
|
-
});
|
|
1397
|
-
Object.assign(contents, doc);
|
|
1808
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1398
1809
|
return contents;
|
|
1399
1810
|
};
|
|
1400
|
-
exports.
|
|
1401
|
-
const
|
|
1811
|
+
exports.de_DeleteKxDatabaseCommand = de_DeleteKxDatabaseCommand;
|
|
1812
|
+
const de_DeleteKxDatabaseCommandError = async (output, context) => {
|
|
1402
1813
|
const parsedOutput = {
|
|
1403
1814
|
...output,
|
|
1404
1815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1408,12 +1819,18 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
1408
1819
|
case "AccessDeniedException":
|
|
1409
1820
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1410
1821
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
|
+
case "ConflictException":
|
|
1823
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
1824
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1411
1825
|
case "InternalServerException":
|
|
1412
1826
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1413
1827
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1414
1828
|
case "ResourceNotFoundException":
|
|
1415
1829
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1416
1830
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1831
|
+
case "ThrottlingException":
|
|
1832
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
1833
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1417
1834
|
case "ValidationException":
|
|
1418
1835
|
case "com.amazonaws.finspace#ValidationException":
|
|
1419
1836
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1426,30 +1843,18 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
1426
1843
|
});
|
|
1427
1844
|
}
|
|
1428
1845
|
};
|
|
1429
|
-
const
|
|
1846
|
+
const de_DeleteKxDataviewCommand = async (output, context) => {
|
|
1430
1847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
1848
|
+
return de_DeleteKxDataviewCommandError(output, context);
|
|
1432
1849
|
}
|
|
1433
1850
|
const contents = (0, smithy_client_1.map)({
|
|
1434
1851
|
$metadata: deserializeMetadata(output),
|
|
1435
1852
|
});
|
|
1436
|
-
|
|
1437
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1438
|
-
activeFromTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1439
|
-
changeRequests: smithy_client_1._json,
|
|
1440
|
-
changesetId: smithy_client_1.expectString,
|
|
1441
|
-
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1442
|
-
databaseName: smithy_client_1.expectString,
|
|
1443
|
-
environmentId: smithy_client_1.expectString,
|
|
1444
|
-
errorInfo: smithy_client_1._json,
|
|
1445
|
-
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1446
|
-
status: smithy_client_1.expectString,
|
|
1447
|
-
});
|
|
1448
|
-
Object.assign(contents, doc);
|
|
1853
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1449
1854
|
return contents;
|
|
1450
1855
|
};
|
|
1451
|
-
exports.
|
|
1452
|
-
const
|
|
1856
|
+
exports.de_DeleteKxDataviewCommand = de_DeleteKxDataviewCommand;
|
|
1857
|
+
const de_DeleteKxDataviewCommandError = async (output, context) => {
|
|
1453
1858
|
const parsedOutput = {
|
|
1454
1859
|
...output,
|
|
1455
1860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1459,6 +1864,9 @@ const de_GetKxChangesetCommandError = async (output, context) => {
|
|
|
1459
1864
|
case "AccessDeniedException":
|
|
1460
1865
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1461
1866
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1867
|
+
case "ConflictException":
|
|
1868
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
1869
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1462
1870
|
case "InternalServerException":
|
|
1463
1871
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1464
1872
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1480,41 +1888,18 @@ const de_GetKxChangesetCommandError = async (output, context) => {
|
|
|
1480
1888
|
});
|
|
1481
1889
|
}
|
|
1482
1890
|
};
|
|
1483
|
-
const
|
|
1891
|
+
const de_DeleteKxEnvironmentCommand = async (output, context) => {
|
|
1484
1892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
1893
|
+
return de_DeleteKxEnvironmentCommandError(output, context);
|
|
1486
1894
|
}
|
|
1487
1895
|
const contents = (0, smithy_client_1.map)({
|
|
1488
1896
|
$metadata: deserializeMetadata(output),
|
|
1489
1897
|
});
|
|
1490
|
-
|
|
1491
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1492
|
-
autoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
|
|
1493
|
-
availabilityZoneId: smithy_client_1.expectString,
|
|
1494
|
-
azMode: smithy_client_1.expectString,
|
|
1495
|
-
cacheStorageConfigurations: smithy_client_1._json,
|
|
1496
|
-
capacityConfiguration: smithy_client_1._json,
|
|
1497
|
-
clusterDescription: smithy_client_1.expectString,
|
|
1498
|
-
clusterName: smithy_client_1.expectString,
|
|
1499
|
-
clusterType: smithy_client_1.expectString,
|
|
1500
|
-
code: smithy_client_1._json,
|
|
1501
|
-
commandLineArguments: smithy_client_1._json,
|
|
1502
|
-
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1503
|
-
databases: smithy_client_1._json,
|
|
1504
|
-
executionRole: smithy_client_1.expectString,
|
|
1505
|
-
initializationScript: smithy_client_1.expectString,
|
|
1506
|
-
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1507
|
-
releaseLabel: smithy_client_1.expectString,
|
|
1508
|
-
savedownStorageConfiguration: smithy_client_1._json,
|
|
1509
|
-
status: smithy_client_1.expectString,
|
|
1510
|
-
statusReason: smithy_client_1.expectString,
|
|
1511
|
-
vpcConfiguration: smithy_client_1._json,
|
|
1512
|
-
});
|
|
1513
|
-
Object.assign(contents, doc);
|
|
1898
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1514
1899
|
return contents;
|
|
1515
1900
|
};
|
|
1516
|
-
exports.
|
|
1517
|
-
const
|
|
1901
|
+
exports.de_DeleteKxEnvironmentCommand = de_DeleteKxEnvironmentCommand;
|
|
1902
|
+
const de_DeleteKxEnvironmentCommandError = async (output, context) => {
|
|
1518
1903
|
const parsedOutput = {
|
|
1519
1904
|
...output,
|
|
1520
1905
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1530,9 +1915,318 @@ const de_GetKxClusterCommandError = async (output, context) => {
|
|
|
1530
1915
|
case "InternalServerException":
|
|
1531
1916
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1532
1917
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "
|
|
1534
|
-
case "com.amazonaws.finspace#
|
|
1535
|
-
throw await
|
|
1918
|
+
case "ResourceNotFoundException":
|
|
1919
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1920
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1921
|
+
case "ThrottlingException":
|
|
1922
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
1923
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1924
|
+
case "ValidationException":
|
|
1925
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
1926
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1927
|
+
default:
|
|
1928
|
+
const parsedBody = parsedOutput.body;
|
|
1929
|
+
return throwDefaultError({
|
|
1930
|
+
output,
|
|
1931
|
+
parsedBody,
|
|
1932
|
+
errorCode,
|
|
1933
|
+
});
|
|
1934
|
+
}
|
|
1935
|
+
};
|
|
1936
|
+
const de_DeleteKxScalingGroupCommand = async (output, context) => {
|
|
1937
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1938
|
+
return de_DeleteKxScalingGroupCommandError(output, context);
|
|
1939
|
+
}
|
|
1940
|
+
const contents = (0, smithy_client_1.map)({
|
|
1941
|
+
$metadata: deserializeMetadata(output),
|
|
1942
|
+
});
|
|
1943
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1944
|
+
return contents;
|
|
1945
|
+
};
|
|
1946
|
+
exports.de_DeleteKxScalingGroupCommand = de_DeleteKxScalingGroupCommand;
|
|
1947
|
+
const de_DeleteKxScalingGroupCommandError = async (output, context) => {
|
|
1948
|
+
const parsedOutput = {
|
|
1949
|
+
...output,
|
|
1950
|
+
body: await parseErrorBody(output.body, context),
|
|
1951
|
+
};
|
|
1952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
+
switch (errorCode) {
|
|
1954
|
+
case "AccessDeniedException":
|
|
1955
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1956
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1957
|
+
case "ConflictException":
|
|
1958
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
1959
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1960
|
+
case "InternalServerException":
|
|
1961
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
1962
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1963
|
+
case "LimitExceededException":
|
|
1964
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
1965
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1966
|
+
case "ResourceNotFoundException":
|
|
1967
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1968
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1969
|
+
case "ThrottlingException":
|
|
1970
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
1971
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1972
|
+
case "ValidationException":
|
|
1973
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
1974
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1975
|
+
default:
|
|
1976
|
+
const parsedBody = parsedOutput.body;
|
|
1977
|
+
return throwDefaultError({
|
|
1978
|
+
output,
|
|
1979
|
+
parsedBody,
|
|
1980
|
+
errorCode,
|
|
1981
|
+
});
|
|
1982
|
+
}
|
|
1983
|
+
};
|
|
1984
|
+
const de_DeleteKxUserCommand = async (output, context) => {
|
|
1985
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1986
|
+
return de_DeleteKxUserCommandError(output, context);
|
|
1987
|
+
}
|
|
1988
|
+
const contents = (0, smithy_client_1.map)({
|
|
1989
|
+
$metadata: deserializeMetadata(output),
|
|
1990
|
+
});
|
|
1991
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1992
|
+
return contents;
|
|
1993
|
+
};
|
|
1994
|
+
exports.de_DeleteKxUserCommand = de_DeleteKxUserCommand;
|
|
1995
|
+
const de_DeleteKxUserCommandError = async (output, context) => {
|
|
1996
|
+
const parsedOutput = {
|
|
1997
|
+
...output,
|
|
1998
|
+
body: await parseErrorBody(output.body, context),
|
|
1999
|
+
};
|
|
2000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
+
switch (errorCode) {
|
|
2002
|
+
case "AccessDeniedException":
|
|
2003
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2004
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2005
|
+
case "ConflictException":
|
|
2006
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2007
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2008
|
+
case "InternalServerException":
|
|
2009
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2010
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2011
|
+
case "ResourceNotFoundException":
|
|
2012
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2013
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2014
|
+
case "ThrottlingException":
|
|
2015
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2016
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2017
|
+
case "ValidationException":
|
|
2018
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2019
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2020
|
+
default:
|
|
2021
|
+
const parsedBody = parsedOutput.body;
|
|
2022
|
+
return throwDefaultError({
|
|
2023
|
+
output,
|
|
2024
|
+
parsedBody,
|
|
2025
|
+
errorCode,
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
const de_DeleteKxVolumeCommand = async (output, context) => {
|
|
2030
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
|
+
return de_DeleteKxVolumeCommandError(output, context);
|
|
2032
|
+
}
|
|
2033
|
+
const contents = (0, smithy_client_1.map)({
|
|
2034
|
+
$metadata: deserializeMetadata(output),
|
|
2035
|
+
});
|
|
2036
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2037
|
+
return contents;
|
|
2038
|
+
};
|
|
2039
|
+
exports.de_DeleteKxVolumeCommand = de_DeleteKxVolumeCommand;
|
|
2040
|
+
const de_DeleteKxVolumeCommandError = async (output, context) => {
|
|
2041
|
+
const parsedOutput = {
|
|
2042
|
+
...output,
|
|
2043
|
+
body: await parseErrorBody(output.body, context),
|
|
2044
|
+
};
|
|
2045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
+
switch (errorCode) {
|
|
2047
|
+
case "AccessDeniedException":
|
|
2048
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2049
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2050
|
+
case "ConflictException":
|
|
2051
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2052
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2053
|
+
case "InternalServerException":
|
|
2054
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2055
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2056
|
+
case "LimitExceededException":
|
|
2057
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
2058
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2059
|
+
case "ResourceNotFoundException":
|
|
2060
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2061
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2062
|
+
case "ThrottlingException":
|
|
2063
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2064
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2065
|
+
case "ValidationException":
|
|
2066
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2067
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2068
|
+
default:
|
|
2069
|
+
const parsedBody = parsedOutput.body;
|
|
2070
|
+
return throwDefaultError({
|
|
2071
|
+
output,
|
|
2072
|
+
parsedBody,
|
|
2073
|
+
errorCode,
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
};
|
|
2077
|
+
const de_GetEnvironmentCommand = async (output, context) => {
|
|
2078
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2079
|
+
return de_GetEnvironmentCommandError(output, context);
|
|
2080
|
+
}
|
|
2081
|
+
const contents = (0, smithy_client_1.map)({
|
|
2082
|
+
$metadata: deserializeMetadata(output),
|
|
2083
|
+
});
|
|
2084
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2085
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2086
|
+
environment: smithy_client_1._json,
|
|
2087
|
+
});
|
|
2088
|
+
Object.assign(contents, doc);
|
|
2089
|
+
return contents;
|
|
2090
|
+
};
|
|
2091
|
+
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
2092
|
+
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
2093
|
+
const parsedOutput = {
|
|
2094
|
+
...output,
|
|
2095
|
+
body: await parseErrorBody(output.body, context),
|
|
2096
|
+
};
|
|
2097
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
|
+
switch (errorCode) {
|
|
2099
|
+
case "AccessDeniedException":
|
|
2100
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2101
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2102
|
+
case "InternalServerException":
|
|
2103
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2104
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2105
|
+
case "ResourceNotFoundException":
|
|
2106
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2107
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2108
|
+
case "ValidationException":
|
|
2109
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2110
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2111
|
+
default:
|
|
2112
|
+
const parsedBody = parsedOutput.body;
|
|
2113
|
+
return throwDefaultError({
|
|
2114
|
+
output,
|
|
2115
|
+
parsedBody,
|
|
2116
|
+
errorCode,
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2119
|
+
};
|
|
2120
|
+
const de_GetKxChangesetCommand = async (output, context) => {
|
|
2121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2122
|
+
return de_GetKxChangesetCommandError(output, context);
|
|
2123
|
+
}
|
|
2124
|
+
const contents = (0, smithy_client_1.map)({
|
|
2125
|
+
$metadata: deserializeMetadata(output),
|
|
2126
|
+
});
|
|
2127
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2128
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2129
|
+
activeFromTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2130
|
+
changeRequests: smithy_client_1._json,
|
|
2131
|
+
changesetId: smithy_client_1.expectString,
|
|
2132
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2133
|
+
databaseName: smithy_client_1.expectString,
|
|
2134
|
+
environmentId: smithy_client_1.expectString,
|
|
2135
|
+
errorInfo: smithy_client_1._json,
|
|
2136
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2137
|
+
status: smithy_client_1.expectString,
|
|
2138
|
+
});
|
|
2139
|
+
Object.assign(contents, doc);
|
|
2140
|
+
return contents;
|
|
2141
|
+
};
|
|
2142
|
+
exports.de_GetKxChangesetCommand = de_GetKxChangesetCommand;
|
|
2143
|
+
const de_GetKxChangesetCommandError = async (output, context) => {
|
|
2144
|
+
const parsedOutput = {
|
|
2145
|
+
...output,
|
|
2146
|
+
body: await parseErrorBody(output.body, context),
|
|
2147
|
+
};
|
|
2148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
+
switch (errorCode) {
|
|
2150
|
+
case "AccessDeniedException":
|
|
2151
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2152
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2153
|
+
case "InternalServerException":
|
|
2154
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2155
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2156
|
+
case "ResourceNotFoundException":
|
|
2157
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2158
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2159
|
+
case "ThrottlingException":
|
|
2160
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2161
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2162
|
+
case "ValidationException":
|
|
2163
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2164
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2165
|
+
default:
|
|
2166
|
+
const parsedBody = parsedOutput.body;
|
|
2167
|
+
return throwDefaultError({
|
|
2168
|
+
output,
|
|
2169
|
+
parsedBody,
|
|
2170
|
+
errorCode,
|
|
2171
|
+
});
|
|
2172
|
+
}
|
|
2173
|
+
};
|
|
2174
|
+
const de_GetKxClusterCommand = async (output, context) => {
|
|
2175
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2176
|
+
return de_GetKxClusterCommandError(output, context);
|
|
2177
|
+
}
|
|
2178
|
+
const contents = (0, smithy_client_1.map)({
|
|
2179
|
+
$metadata: deserializeMetadata(output),
|
|
2180
|
+
});
|
|
2181
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2182
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2183
|
+
autoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
|
|
2184
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
2185
|
+
azMode: smithy_client_1.expectString,
|
|
2186
|
+
cacheStorageConfigurations: smithy_client_1._json,
|
|
2187
|
+
capacityConfiguration: smithy_client_1._json,
|
|
2188
|
+
clusterDescription: smithy_client_1.expectString,
|
|
2189
|
+
clusterName: smithy_client_1.expectString,
|
|
2190
|
+
clusterType: smithy_client_1.expectString,
|
|
2191
|
+
code: smithy_client_1._json,
|
|
2192
|
+
commandLineArguments: smithy_client_1._json,
|
|
2193
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2194
|
+
databases: smithy_client_1._json,
|
|
2195
|
+
executionRole: smithy_client_1.expectString,
|
|
2196
|
+
initializationScript: smithy_client_1.expectString,
|
|
2197
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2198
|
+
releaseLabel: smithy_client_1.expectString,
|
|
2199
|
+
savedownStorageConfiguration: smithy_client_1._json,
|
|
2200
|
+
scalingGroupConfiguration: (_) => de_KxScalingGroupConfiguration(_, context),
|
|
2201
|
+
status: smithy_client_1.expectString,
|
|
2202
|
+
statusReason: smithy_client_1.expectString,
|
|
2203
|
+
tickerplantLogConfiguration: smithy_client_1._json,
|
|
2204
|
+
volumes: smithy_client_1._json,
|
|
2205
|
+
vpcConfiguration: smithy_client_1._json,
|
|
2206
|
+
});
|
|
2207
|
+
Object.assign(contents, doc);
|
|
2208
|
+
return contents;
|
|
2209
|
+
};
|
|
2210
|
+
exports.de_GetKxClusterCommand = de_GetKxClusterCommand;
|
|
2211
|
+
const de_GetKxClusterCommandError = async (output, context) => {
|
|
2212
|
+
const parsedOutput = {
|
|
2213
|
+
...output,
|
|
2214
|
+
body: await parseErrorBody(output.body, context),
|
|
2215
|
+
};
|
|
2216
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
|
+
switch (errorCode) {
|
|
2218
|
+
case "AccessDeniedException":
|
|
2219
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2220
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2221
|
+
case "ConflictException":
|
|
2222
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2223
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2224
|
+
case "InternalServerException":
|
|
2225
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2226
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2227
|
+
case "LimitExceededException":
|
|
2228
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
2229
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1536
2230
|
case "ResourceNotFoundException":
|
|
1537
2231
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1538
2232
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1553,20 +2247,196 @@ const de_GetKxClusterCommandError = async (output, context) => {
|
|
|
1553
2247
|
};
|
|
1554
2248
|
const de_GetKxConnectionStringCommand = async (output, context) => {
|
|
1555
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1556
|
-
return de_GetKxConnectionStringCommandError(output, context);
|
|
2250
|
+
return de_GetKxConnectionStringCommandError(output, context);
|
|
2251
|
+
}
|
|
2252
|
+
const contents = (0, smithy_client_1.map)({
|
|
2253
|
+
$metadata: deserializeMetadata(output),
|
|
2254
|
+
});
|
|
2255
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2256
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2257
|
+
signedConnectionString: smithy_client_1.expectString,
|
|
2258
|
+
});
|
|
2259
|
+
Object.assign(contents, doc);
|
|
2260
|
+
return contents;
|
|
2261
|
+
};
|
|
2262
|
+
exports.de_GetKxConnectionStringCommand = de_GetKxConnectionStringCommand;
|
|
2263
|
+
const de_GetKxConnectionStringCommandError = async (output, context) => {
|
|
2264
|
+
const parsedOutput = {
|
|
2265
|
+
...output,
|
|
2266
|
+
body: await parseErrorBody(output.body, context),
|
|
2267
|
+
};
|
|
2268
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
|
+
switch (errorCode) {
|
|
2270
|
+
case "AccessDeniedException":
|
|
2271
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2272
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "InternalServerException":
|
|
2274
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2275
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2276
|
+
case "ResourceNotFoundException":
|
|
2277
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2278
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2279
|
+
case "ThrottlingException":
|
|
2280
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2281
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2282
|
+
case "ValidationException":
|
|
2283
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2284
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2285
|
+
default:
|
|
2286
|
+
const parsedBody = parsedOutput.body;
|
|
2287
|
+
return throwDefaultError({
|
|
2288
|
+
output,
|
|
2289
|
+
parsedBody,
|
|
2290
|
+
errorCode,
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
};
|
|
2294
|
+
const de_GetKxDatabaseCommand = async (output, context) => {
|
|
2295
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2296
|
+
return de_GetKxDatabaseCommandError(output, context);
|
|
2297
|
+
}
|
|
2298
|
+
const contents = (0, smithy_client_1.map)({
|
|
2299
|
+
$metadata: deserializeMetadata(output),
|
|
2300
|
+
});
|
|
2301
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2302
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2303
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2304
|
+
databaseArn: smithy_client_1.expectString,
|
|
2305
|
+
databaseName: smithy_client_1.expectString,
|
|
2306
|
+
description: smithy_client_1.expectString,
|
|
2307
|
+
environmentId: smithy_client_1.expectString,
|
|
2308
|
+
lastCompletedChangesetId: smithy_client_1.expectString,
|
|
2309
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2310
|
+
numBytes: smithy_client_1.expectLong,
|
|
2311
|
+
numChangesets: smithy_client_1.expectInt32,
|
|
2312
|
+
numFiles: smithy_client_1.expectInt32,
|
|
2313
|
+
});
|
|
2314
|
+
Object.assign(contents, doc);
|
|
2315
|
+
return contents;
|
|
2316
|
+
};
|
|
2317
|
+
exports.de_GetKxDatabaseCommand = de_GetKxDatabaseCommand;
|
|
2318
|
+
const de_GetKxDatabaseCommandError = async (output, context) => {
|
|
2319
|
+
const parsedOutput = {
|
|
2320
|
+
...output,
|
|
2321
|
+
body: await parseErrorBody(output.body, context),
|
|
2322
|
+
};
|
|
2323
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
|
+
switch (errorCode) {
|
|
2325
|
+
case "AccessDeniedException":
|
|
2326
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2327
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2328
|
+
case "InternalServerException":
|
|
2329
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2330
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2331
|
+
case "ResourceNotFoundException":
|
|
2332
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2333
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2334
|
+
case "ThrottlingException":
|
|
2335
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2336
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2337
|
+
case "ValidationException":
|
|
2338
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2339
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2340
|
+
default:
|
|
2341
|
+
const parsedBody = parsedOutput.body;
|
|
2342
|
+
return throwDefaultError({
|
|
2343
|
+
output,
|
|
2344
|
+
parsedBody,
|
|
2345
|
+
errorCode,
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
};
|
|
2349
|
+
const de_GetKxDataviewCommand = async (output, context) => {
|
|
2350
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2351
|
+
return de_GetKxDataviewCommandError(output, context);
|
|
2352
|
+
}
|
|
2353
|
+
const contents = (0, smithy_client_1.map)({
|
|
2354
|
+
$metadata: deserializeMetadata(output),
|
|
2355
|
+
});
|
|
2356
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2357
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2358
|
+
activeVersions: (_) => de_KxDataviewActiveVersionList(_, context),
|
|
2359
|
+
autoUpdate: smithy_client_1.expectBoolean,
|
|
2360
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
2361
|
+
azMode: smithy_client_1.expectString,
|
|
2362
|
+
changesetId: smithy_client_1.expectString,
|
|
2363
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2364
|
+
databaseName: smithy_client_1.expectString,
|
|
2365
|
+
dataviewName: smithy_client_1.expectString,
|
|
2366
|
+
description: smithy_client_1.expectString,
|
|
2367
|
+
environmentId: smithy_client_1.expectString,
|
|
2368
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2369
|
+
segmentConfigurations: smithy_client_1._json,
|
|
2370
|
+
status: smithy_client_1.expectString,
|
|
2371
|
+
statusReason: smithy_client_1.expectString,
|
|
2372
|
+
});
|
|
2373
|
+
Object.assign(contents, doc);
|
|
2374
|
+
return contents;
|
|
2375
|
+
};
|
|
2376
|
+
exports.de_GetKxDataviewCommand = de_GetKxDataviewCommand;
|
|
2377
|
+
const de_GetKxDataviewCommandError = async (output, context) => {
|
|
2378
|
+
const parsedOutput = {
|
|
2379
|
+
...output,
|
|
2380
|
+
body: await parseErrorBody(output.body, context),
|
|
2381
|
+
};
|
|
2382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
+
switch (errorCode) {
|
|
2384
|
+
case "AccessDeniedException":
|
|
2385
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2386
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2387
|
+
case "InternalServerException":
|
|
2388
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2389
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2390
|
+
case "ResourceNotFoundException":
|
|
2391
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2392
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2393
|
+
case "ThrottlingException":
|
|
2394
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2395
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2396
|
+
case "ValidationException":
|
|
2397
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2398
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2399
|
+
default:
|
|
2400
|
+
const parsedBody = parsedOutput.body;
|
|
2401
|
+
return throwDefaultError({
|
|
2402
|
+
output,
|
|
2403
|
+
parsedBody,
|
|
2404
|
+
errorCode,
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
};
|
|
2408
|
+
const de_GetKxEnvironmentCommand = async (output, context) => {
|
|
2409
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2410
|
+
return de_GetKxEnvironmentCommandError(output, context);
|
|
1557
2411
|
}
|
|
1558
2412
|
const contents = (0, smithy_client_1.map)({
|
|
1559
2413
|
$metadata: deserializeMetadata(output),
|
|
1560
2414
|
});
|
|
1561
2415
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1562
2416
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1563
|
-
|
|
2417
|
+
availabilityZoneIds: smithy_client_1._json,
|
|
2418
|
+
awsAccountId: smithy_client_1.expectString,
|
|
2419
|
+
certificateAuthorityArn: smithy_client_1.expectString,
|
|
2420
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2421
|
+
customDNSConfiguration: smithy_client_1._json,
|
|
2422
|
+
dedicatedServiceAccountId: smithy_client_1.expectString,
|
|
2423
|
+
description: smithy_client_1.expectString,
|
|
2424
|
+
dnsStatus: smithy_client_1.expectString,
|
|
2425
|
+
environmentArn: smithy_client_1.expectString,
|
|
2426
|
+
environmentId: smithy_client_1.expectString,
|
|
2427
|
+
errorMessage: smithy_client_1.expectString,
|
|
2428
|
+
kmsKeyId: smithy_client_1.expectString,
|
|
2429
|
+
name: smithy_client_1.expectString,
|
|
2430
|
+
status: smithy_client_1.expectString,
|
|
2431
|
+
tgwStatus: smithy_client_1.expectString,
|
|
2432
|
+
transitGatewayConfiguration: smithy_client_1._json,
|
|
2433
|
+
updateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1564
2434
|
});
|
|
1565
2435
|
Object.assign(contents, doc);
|
|
1566
2436
|
return contents;
|
|
1567
2437
|
};
|
|
1568
|
-
exports.
|
|
1569
|
-
const
|
|
2438
|
+
exports.de_GetKxEnvironmentCommand = de_GetKxEnvironmentCommand;
|
|
2439
|
+
const de_GetKxEnvironmentCommandError = async (output, context) => {
|
|
1570
2440
|
const parsedOutput = {
|
|
1571
2441
|
...output,
|
|
1572
2442
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1576,15 +2446,15 @@ const de_GetKxConnectionStringCommandError = async (output, context) => {
|
|
|
1576
2446
|
case "AccessDeniedException":
|
|
1577
2447
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1578
2448
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2449
|
+
case "ConflictException":
|
|
2450
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2451
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1579
2452
|
case "InternalServerException":
|
|
1580
2453
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1581
2454
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1582
2455
|
case "ResourceNotFoundException":
|
|
1583
2456
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1584
2457
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ThrottlingException":
|
|
1586
|
-
case "com.amazonaws.finspace#ThrottlingException":
|
|
1587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
2458
|
case "ValidationException":
|
|
1589
2459
|
case "com.amazonaws.finspace#ValidationException":
|
|
1590
2460
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1597,31 +2467,30 @@ const de_GetKxConnectionStringCommandError = async (output, context) => {
|
|
|
1597
2467
|
});
|
|
1598
2468
|
}
|
|
1599
2469
|
};
|
|
1600
|
-
const
|
|
2470
|
+
const de_GetKxScalingGroupCommand = async (output, context) => {
|
|
1601
2471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
|
-
return
|
|
2472
|
+
return de_GetKxScalingGroupCommandError(output, context);
|
|
1603
2473
|
}
|
|
1604
2474
|
const contents = (0, smithy_client_1.map)({
|
|
1605
2475
|
$metadata: deserializeMetadata(output),
|
|
1606
2476
|
});
|
|
1607
2477
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1608
2478
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2479
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
2480
|
+
clusters: smithy_client_1._json,
|
|
1609
2481
|
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1610
|
-
|
|
1611
|
-
databaseName: smithy_client_1.expectString,
|
|
1612
|
-
description: smithy_client_1.expectString,
|
|
1613
|
-
environmentId: smithy_client_1.expectString,
|
|
1614
|
-
lastCompletedChangesetId: smithy_client_1.expectString,
|
|
2482
|
+
hostType: smithy_client_1.expectString,
|
|
1615
2483
|
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
2484
|
+
scalingGroupArn: smithy_client_1.expectString,
|
|
2485
|
+
scalingGroupName: smithy_client_1.expectString,
|
|
2486
|
+
status: smithy_client_1.expectString,
|
|
2487
|
+
statusReason: smithy_client_1.expectString,
|
|
1619
2488
|
});
|
|
1620
2489
|
Object.assign(contents, doc);
|
|
1621
2490
|
return contents;
|
|
1622
2491
|
};
|
|
1623
|
-
exports.
|
|
1624
|
-
const
|
|
2492
|
+
exports.de_GetKxScalingGroupCommand = de_GetKxScalingGroupCommand;
|
|
2493
|
+
const de_GetKxScalingGroupCommandError = async (output, context) => {
|
|
1625
2494
|
const parsedOutput = {
|
|
1626
2495
|
...output,
|
|
1627
2496
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1631,9 +2500,15 @@ const de_GetKxDatabaseCommandError = async (output, context) => {
|
|
|
1631
2500
|
case "AccessDeniedException":
|
|
1632
2501
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1633
2502
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2503
|
+
case "ConflictException":
|
|
2504
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2505
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1634
2506
|
case "InternalServerException":
|
|
1635
2507
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1636
2508
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2509
|
+
case "LimitExceededException":
|
|
2510
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
2511
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1637
2512
|
case "ResourceNotFoundException":
|
|
1638
2513
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1639
2514
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1652,38 +2527,25 @@ const de_GetKxDatabaseCommandError = async (output, context) => {
|
|
|
1652
2527
|
});
|
|
1653
2528
|
}
|
|
1654
2529
|
};
|
|
1655
|
-
const
|
|
2530
|
+
const de_GetKxUserCommand = async (output, context) => {
|
|
1656
2531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
|
-
return
|
|
2532
|
+
return de_GetKxUserCommandError(output, context);
|
|
1658
2533
|
}
|
|
1659
2534
|
const contents = (0, smithy_client_1.map)({
|
|
1660
2535
|
$metadata: deserializeMetadata(output),
|
|
1661
2536
|
});
|
|
1662
2537
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1663
2538
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1664
|
-
availabilityZoneIds: smithy_client_1._json,
|
|
1665
|
-
awsAccountId: smithy_client_1.expectString,
|
|
1666
|
-
certificateAuthorityArn: smithy_client_1.expectString,
|
|
1667
|
-
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1668
|
-
customDNSConfiguration: smithy_client_1._json,
|
|
1669
|
-
dedicatedServiceAccountId: smithy_client_1.expectString,
|
|
1670
|
-
description: smithy_client_1.expectString,
|
|
1671
|
-
dnsStatus: smithy_client_1.expectString,
|
|
1672
|
-
environmentArn: smithy_client_1.expectString,
|
|
1673
2539
|
environmentId: smithy_client_1.expectString,
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
status: smithy_client_1.expectString,
|
|
1678
|
-
tgwStatus: smithy_client_1.expectString,
|
|
1679
|
-
transitGatewayConfiguration: smithy_client_1._json,
|
|
1680
|
-
updateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2540
|
+
iamRole: smithy_client_1.expectString,
|
|
2541
|
+
userArn: smithy_client_1.expectString,
|
|
2542
|
+
userName: smithy_client_1.expectString,
|
|
1681
2543
|
});
|
|
1682
2544
|
Object.assign(contents, doc);
|
|
1683
2545
|
return contents;
|
|
1684
2546
|
};
|
|
1685
|
-
exports.
|
|
1686
|
-
const
|
|
2547
|
+
exports.de_GetKxUserCommand = de_GetKxUserCommand;
|
|
2548
|
+
const de_GetKxUserCommandError = async (output, context) => {
|
|
1687
2549
|
const parsedOutput = {
|
|
1688
2550
|
...output,
|
|
1689
2551
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1699,6 +2561,9 @@ const de_GetKxEnvironmentCommandError = async (output, context) => {
|
|
|
1699
2561
|
case "ResourceNotFoundException":
|
|
1700
2562
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1701
2563
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2564
|
+
case "ThrottlingException":
|
|
2565
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2566
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1702
2567
|
case "ValidationException":
|
|
1703
2568
|
case "com.amazonaws.finspace#ValidationException":
|
|
1704
2569
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1711,25 +2576,34 @@ const de_GetKxEnvironmentCommandError = async (output, context) => {
|
|
|
1711
2576
|
});
|
|
1712
2577
|
}
|
|
1713
2578
|
};
|
|
1714
|
-
const
|
|
2579
|
+
const de_GetKxVolumeCommand = async (output, context) => {
|
|
1715
2580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1716
|
-
return
|
|
2581
|
+
return de_GetKxVolumeCommandError(output, context);
|
|
1717
2582
|
}
|
|
1718
2583
|
const contents = (0, smithy_client_1.map)({
|
|
1719
2584
|
$metadata: deserializeMetadata(output),
|
|
1720
2585
|
});
|
|
1721
2586
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1722
2587
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2588
|
+
attachedClusters: smithy_client_1._json,
|
|
2589
|
+
availabilityZoneIds: smithy_client_1._json,
|
|
2590
|
+
azMode: smithy_client_1.expectString,
|
|
2591
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2592
|
+
description: smithy_client_1.expectString,
|
|
1723
2593
|
environmentId: smithy_client_1.expectString,
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
2594
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2595
|
+
nas1Configuration: smithy_client_1._json,
|
|
2596
|
+
status: smithy_client_1.expectString,
|
|
2597
|
+
statusReason: smithy_client_1.expectString,
|
|
2598
|
+
volumeArn: smithy_client_1.expectString,
|
|
2599
|
+
volumeName: smithy_client_1.expectString,
|
|
2600
|
+
volumeType: smithy_client_1.expectString,
|
|
1727
2601
|
});
|
|
1728
2602
|
Object.assign(contents, doc);
|
|
1729
2603
|
return contents;
|
|
1730
2604
|
};
|
|
1731
|
-
exports.
|
|
1732
|
-
const
|
|
2605
|
+
exports.de_GetKxVolumeCommand = de_GetKxVolumeCommand;
|
|
2606
|
+
const de_GetKxVolumeCommandError = async (output, context) => {
|
|
1733
2607
|
const parsedOutput = {
|
|
1734
2608
|
...output,
|
|
1735
2609
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1739,9 +2613,15 @@ const de_GetKxUserCommandError = async (output, context) => {
|
|
|
1739
2613
|
case "AccessDeniedException":
|
|
1740
2614
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1741
2615
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2616
|
+
case "ConflictException":
|
|
2617
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2618
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1742
2619
|
case "InternalServerException":
|
|
1743
2620
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1744
2621
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2622
|
+
case "LimitExceededException":
|
|
2623
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
2624
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1745
2625
|
case "ResourceNotFoundException":
|
|
1746
2626
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1747
2627
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1783,6 +2663,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
1783
2663
|
};
|
|
1784
2664
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
2665
|
switch (errorCode) {
|
|
2666
|
+
case "AccessDeniedException":
|
|
2667
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2668
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1786
2669
|
case "InternalServerException":
|
|
1787
2670
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1788
2671
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1800,21 +2683,171 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
1800
2683
|
};
|
|
1801
2684
|
const de_ListKxChangesetsCommand = async (output, context) => {
|
|
1802
2685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1803
|
-
return de_ListKxChangesetsCommandError(output, context);
|
|
2686
|
+
return de_ListKxChangesetsCommandError(output, context);
|
|
2687
|
+
}
|
|
2688
|
+
const contents = (0, smithy_client_1.map)({
|
|
2689
|
+
$metadata: deserializeMetadata(output),
|
|
2690
|
+
});
|
|
2691
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2692
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2693
|
+
kxChangesets: (_) => de_KxChangesets(_, context),
|
|
2694
|
+
nextToken: smithy_client_1.expectString,
|
|
2695
|
+
});
|
|
2696
|
+
Object.assign(contents, doc);
|
|
2697
|
+
return contents;
|
|
2698
|
+
};
|
|
2699
|
+
exports.de_ListKxChangesetsCommand = de_ListKxChangesetsCommand;
|
|
2700
|
+
const de_ListKxChangesetsCommandError = async (output, context) => {
|
|
2701
|
+
const parsedOutput = {
|
|
2702
|
+
...output,
|
|
2703
|
+
body: await parseErrorBody(output.body, context),
|
|
2704
|
+
};
|
|
2705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2706
|
+
switch (errorCode) {
|
|
2707
|
+
case "AccessDeniedException":
|
|
2708
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2709
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2710
|
+
case "InternalServerException":
|
|
2711
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2712
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2713
|
+
case "ResourceNotFoundException":
|
|
2714
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2715
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2716
|
+
case "ThrottlingException":
|
|
2717
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2718
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2719
|
+
case "ValidationException":
|
|
2720
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2721
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2722
|
+
default:
|
|
2723
|
+
const parsedBody = parsedOutput.body;
|
|
2724
|
+
return throwDefaultError({
|
|
2725
|
+
output,
|
|
2726
|
+
parsedBody,
|
|
2727
|
+
errorCode,
|
|
2728
|
+
});
|
|
2729
|
+
}
|
|
2730
|
+
};
|
|
2731
|
+
const de_ListKxClusterNodesCommand = async (output, context) => {
|
|
2732
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2733
|
+
return de_ListKxClusterNodesCommandError(output, context);
|
|
2734
|
+
}
|
|
2735
|
+
const contents = (0, smithy_client_1.map)({
|
|
2736
|
+
$metadata: deserializeMetadata(output),
|
|
2737
|
+
});
|
|
2738
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2739
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2740
|
+
nextToken: smithy_client_1.expectString,
|
|
2741
|
+
nodes: (_) => de_KxNodeSummaries(_, context),
|
|
2742
|
+
});
|
|
2743
|
+
Object.assign(contents, doc);
|
|
2744
|
+
return contents;
|
|
2745
|
+
};
|
|
2746
|
+
exports.de_ListKxClusterNodesCommand = de_ListKxClusterNodesCommand;
|
|
2747
|
+
const de_ListKxClusterNodesCommandError = async (output, context) => {
|
|
2748
|
+
const parsedOutput = {
|
|
2749
|
+
...output,
|
|
2750
|
+
body: await parseErrorBody(output.body, context),
|
|
2751
|
+
};
|
|
2752
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2753
|
+
switch (errorCode) {
|
|
2754
|
+
case "AccessDeniedException":
|
|
2755
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2756
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2757
|
+
case "InternalServerException":
|
|
2758
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2759
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2760
|
+
case "LimitExceededException":
|
|
2761
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
2762
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2763
|
+
case "ResourceNotFoundException":
|
|
2764
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2765
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2766
|
+
case "ThrottlingException":
|
|
2767
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2769
|
+
case "ValidationException":
|
|
2770
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2772
|
+
default:
|
|
2773
|
+
const parsedBody = parsedOutput.body;
|
|
2774
|
+
return throwDefaultError({
|
|
2775
|
+
output,
|
|
2776
|
+
parsedBody,
|
|
2777
|
+
errorCode,
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2780
|
+
};
|
|
2781
|
+
const de_ListKxClustersCommand = async (output, context) => {
|
|
2782
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2783
|
+
return de_ListKxClustersCommandError(output, context);
|
|
2784
|
+
}
|
|
2785
|
+
const contents = (0, smithy_client_1.map)({
|
|
2786
|
+
$metadata: deserializeMetadata(output),
|
|
2787
|
+
});
|
|
2788
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2789
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2790
|
+
kxClusterSummaries: (_) => de_KxClusters(_, context),
|
|
2791
|
+
nextToken: smithy_client_1.expectString,
|
|
2792
|
+
});
|
|
2793
|
+
Object.assign(contents, doc);
|
|
2794
|
+
return contents;
|
|
2795
|
+
};
|
|
2796
|
+
exports.de_ListKxClustersCommand = de_ListKxClustersCommand;
|
|
2797
|
+
const de_ListKxClustersCommandError = async (output, context) => {
|
|
2798
|
+
const parsedOutput = {
|
|
2799
|
+
...output,
|
|
2800
|
+
body: await parseErrorBody(output.body, context),
|
|
2801
|
+
};
|
|
2802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
|
+
switch (errorCode) {
|
|
2804
|
+
case "AccessDeniedException":
|
|
2805
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2806
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2807
|
+
case "ConflictException":
|
|
2808
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2809
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2810
|
+
case "InternalServerException":
|
|
2811
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
2812
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2813
|
+
case "LimitExceededException":
|
|
2814
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
2815
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2816
|
+
case "ResourceNotFoundException":
|
|
2817
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2818
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2819
|
+
case "ThrottlingException":
|
|
2820
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
2821
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2822
|
+
case "ValidationException":
|
|
2823
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
2824
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2825
|
+
default:
|
|
2826
|
+
const parsedBody = parsedOutput.body;
|
|
2827
|
+
return throwDefaultError({
|
|
2828
|
+
output,
|
|
2829
|
+
parsedBody,
|
|
2830
|
+
errorCode,
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
};
|
|
2834
|
+
const de_ListKxDatabasesCommand = async (output, context) => {
|
|
2835
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2836
|
+
return de_ListKxDatabasesCommandError(output, context);
|
|
1804
2837
|
}
|
|
1805
2838
|
const contents = (0, smithy_client_1.map)({
|
|
1806
2839
|
$metadata: deserializeMetadata(output),
|
|
1807
2840
|
});
|
|
1808
2841
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1809
2842
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1810
|
-
|
|
2843
|
+
kxDatabases: (_) => de_KxDatabases(_, context),
|
|
1811
2844
|
nextToken: smithy_client_1.expectString,
|
|
1812
2845
|
});
|
|
1813
2846
|
Object.assign(contents, doc);
|
|
1814
2847
|
return contents;
|
|
1815
2848
|
};
|
|
1816
|
-
exports.
|
|
1817
|
-
const
|
|
2849
|
+
exports.de_ListKxDatabasesCommand = de_ListKxDatabasesCommand;
|
|
2850
|
+
const de_ListKxDatabasesCommandError = async (output, context) => {
|
|
1818
2851
|
const parsedOutput = {
|
|
1819
2852
|
...output,
|
|
1820
2853
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1845,23 +2878,23 @@ const de_ListKxChangesetsCommandError = async (output, context) => {
|
|
|
1845
2878
|
});
|
|
1846
2879
|
}
|
|
1847
2880
|
};
|
|
1848
|
-
const
|
|
2881
|
+
const de_ListKxDataviewsCommand = async (output, context) => {
|
|
1849
2882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
2883
|
+
return de_ListKxDataviewsCommandError(output, context);
|
|
1851
2884
|
}
|
|
1852
2885
|
const contents = (0, smithy_client_1.map)({
|
|
1853
2886
|
$metadata: deserializeMetadata(output),
|
|
1854
2887
|
});
|
|
1855
2888
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1856
2889
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2890
|
+
kxDataviews: (_) => de_KxDataviews(_, context),
|
|
1857
2891
|
nextToken: smithy_client_1.expectString,
|
|
1858
|
-
nodes: (_) => de_KxNodeSummaries(_, context),
|
|
1859
2892
|
});
|
|
1860
2893
|
Object.assign(contents, doc);
|
|
1861
2894
|
return contents;
|
|
1862
2895
|
};
|
|
1863
|
-
exports.
|
|
1864
|
-
const
|
|
2896
|
+
exports.de_ListKxDataviewsCommand = de_ListKxDataviewsCommand;
|
|
2897
|
+
const de_ListKxDataviewsCommandError = async (output, context) => {
|
|
1865
2898
|
const parsedOutput = {
|
|
1866
2899
|
...output,
|
|
1867
2900
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1874,9 +2907,6 @@ const de_ListKxClusterNodesCommandError = async (output, context) => {
|
|
|
1874
2907
|
case "InternalServerException":
|
|
1875
2908
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1876
2909
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "LimitExceededException":
|
|
1878
|
-
case "com.amazonaws.finspace#LimitExceededException":
|
|
1879
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1880
2910
|
case "ResourceNotFoundException":
|
|
1881
2911
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1882
2912
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1895,23 +2925,23 @@ const de_ListKxClusterNodesCommandError = async (output, context) => {
|
|
|
1895
2925
|
});
|
|
1896
2926
|
}
|
|
1897
2927
|
};
|
|
1898
|
-
const
|
|
2928
|
+
const de_ListKxEnvironmentsCommand = async (output, context) => {
|
|
1899
2929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1900
|
-
return
|
|
2930
|
+
return de_ListKxEnvironmentsCommandError(output, context);
|
|
1901
2931
|
}
|
|
1902
2932
|
const contents = (0, smithy_client_1.map)({
|
|
1903
2933
|
$metadata: deserializeMetadata(output),
|
|
1904
2934
|
});
|
|
1905
2935
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1906
2936
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1907
|
-
|
|
2937
|
+
environments: (_) => de_KxEnvironmentList(_, context),
|
|
1908
2938
|
nextToken: smithy_client_1.expectString,
|
|
1909
2939
|
});
|
|
1910
2940
|
Object.assign(contents, doc);
|
|
1911
2941
|
return contents;
|
|
1912
2942
|
};
|
|
1913
|
-
exports.
|
|
1914
|
-
const
|
|
2943
|
+
exports.de_ListKxEnvironmentsCommand = de_ListKxEnvironmentsCommand;
|
|
2944
|
+
const de_ListKxEnvironmentsCommandError = async (output, context) => {
|
|
1915
2945
|
const parsedOutput = {
|
|
1916
2946
|
...output,
|
|
1917
2947
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1921,21 +2951,9 @@ const de_ListKxClustersCommandError = async (output, context) => {
|
|
|
1921
2951
|
case "AccessDeniedException":
|
|
1922
2952
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1923
2953
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "ConflictException":
|
|
1925
|
-
case "com.amazonaws.finspace#ConflictException":
|
|
1926
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1927
2954
|
case "InternalServerException":
|
|
1928
2955
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1929
2956
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "LimitExceededException":
|
|
1931
|
-
case "com.amazonaws.finspace#LimitExceededException":
|
|
1932
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1933
|
-
case "ResourceNotFoundException":
|
|
1934
|
-
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ThrottlingException":
|
|
1937
|
-
case "com.amazonaws.finspace#ThrottlingException":
|
|
1938
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1939
2957
|
case "ValidationException":
|
|
1940
2958
|
case "com.amazonaws.finspace#ValidationException":
|
|
1941
2959
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1948,23 +2966,23 @@ const de_ListKxClustersCommandError = async (output, context) => {
|
|
|
1948
2966
|
});
|
|
1949
2967
|
}
|
|
1950
2968
|
};
|
|
1951
|
-
const
|
|
2969
|
+
const de_ListKxScalingGroupsCommand = async (output, context) => {
|
|
1952
2970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
2971
|
+
return de_ListKxScalingGroupsCommandError(output, context);
|
|
1954
2972
|
}
|
|
1955
2973
|
const contents = (0, smithy_client_1.map)({
|
|
1956
2974
|
$metadata: deserializeMetadata(output),
|
|
1957
2975
|
});
|
|
1958
2976
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1959
2977
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1960
|
-
kxDatabases: (_) => de_KxDatabases(_, context),
|
|
1961
2978
|
nextToken: smithy_client_1.expectString,
|
|
2979
|
+
scalingGroups: (_) => de_KxScalingGroupList(_, context),
|
|
1962
2980
|
});
|
|
1963
2981
|
Object.assign(contents, doc);
|
|
1964
2982
|
return contents;
|
|
1965
2983
|
};
|
|
1966
|
-
exports.
|
|
1967
|
-
const
|
|
2984
|
+
exports.de_ListKxScalingGroupsCommand = de_ListKxScalingGroupsCommand;
|
|
2985
|
+
const de_ListKxScalingGroupsCommandError = async (output, context) => {
|
|
1968
2986
|
const parsedOutput = {
|
|
1969
2987
|
...output,
|
|
1970
2988
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1974,9 +2992,15 @@ const de_ListKxDatabasesCommandError = async (output, context) => {
|
|
|
1974
2992
|
case "AccessDeniedException":
|
|
1975
2993
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
1976
2994
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2995
|
+
case "ConflictException":
|
|
2996
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
2997
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1977
2998
|
case "InternalServerException":
|
|
1978
2999
|
case "com.amazonaws.finspace#InternalServerException":
|
|
1979
3000
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3001
|
+
case "LimitExceededException":
|
|
3002
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
3003
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1980
3004
|
case "ResourceNotFoundException":
|
|
1981
3005
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
1982
3006
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1995,32 +3019,41 @@ const de_ListKxDatabasesCommandError = async (output, context) => {
|
|
|
1995
3019
|
});
|
|
1996
3020
|
}
|
|
1997
3021
|
};
|
|
1998
|
-
const
|
|
3022
|
+
const de_ListKxUsersCommand = async (output, context) => {
|
|
1999
3023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2000
|
-
return
|
|
3024
|
+
return de_ListKxUsersCommandError(output, context);
|
|
2001
3025
|
}
|
|
2002
3026
|
const contents = (0, smithy_client_1.map)({
|
|
2003
3027
|
$metadata: deserializeMetadata(output),
|
|
2004
3028
|
});
|
|
2005
3029
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2006
3030
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2007
|
-
environments: (_) => de_KxEnvironmentList(_, context),
|
|
2008
3031
|
nextToken: smithy_client_1.expectString,
|
|
3032
|
+
users: (_) => de_KxUserList(_, context),
|
|
2009
3033
|
});
|
|
2010
3034
|
Object.assign(contents, doc);
|
|
2011
3035
|
return contents;
|
|
2012
3036
|
};
|
|
2013
|
-
exports.
|
|
2014
|
-
const
|
|
3037
|
+
exports.de_ListKxUsersCommand = de_ListKxUsersCommand;
|
|
3038
|
+
const de_ListKxUsersCommandError = async (output, context) => {
|
|
2015
3039
|
const parsedOutput = {
|
|
2016
3040
|
...output,
|
|
2017
3041
|
body: await parseErrorBody(output.body, context),
|
|
2018
3042
|
};
|
|
2019
3043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
3044
|
switch (errorCode) {
|
|
3045
|
+
case "AccessDeniedException":
|
|
3046
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
3047
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2021
3048
|
case "InternalServerException":
|
|
2022
3049
|
case "com.amazonaws.finspace#InternalServerException":
|
|
2023
3050
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3051
|
+
case "ResourceNotFoundException":
|
|
3052
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
3053
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3054
|
+
case "ThrottlingException":
|
|
3055
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
3056
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2024
3057
|
case "ValidationException":
|
|
2025
3058
|
case "com.amazonaws.finspace#ValidationException":
|
|
2026
3059
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -2033,23 +3066,23 @@ const de_ListKxEnvironmentsCommandError = async (output, context) => {
|
|
|
2033
3066
|
});
|
|
2034
3067
|
}
|
|
2035
3068
|
};
|
|
2036
|
-
const
|
|
3069
|
+
const de_ListKxVolumesCommand = async (output, context) => {
|
|
2037
3070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2038
|
-
return
|
|
3071
|
+
return de_ListKxVolumesCommandError(output, context);
|
|
2039
3072
|
}
|
|
2040
3073
|
const contents = (0, smithy_client_1.map)({
|
|
2041
3074
|
$metadata: deserializeMetadata(output),
|
|
2042
3075
|
});
|
|
2043
3076
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2044
3077
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3078
|
+
kxVolumeSummaries: (_) => de_KxVolumes(_, context),
|
|
2045
3079
|
nextToken: smithy_client_1.expectString,
|
|
2046
|
-
users: (_) => de_KxUserList(_, context),
|
|
2047
3080
|
});
|
|
2048
3081
|
Object.assign(contents, doc);
|
|
2049
3082
|
return contents;
|
|
2050
3083
|
};
|
|
2051
|
-
exports.
|
|
2052
|
-
const
|
|
3084
|
+
exports.de_ListKxVolumesCommand = de_ListKxVolumesCommand;
|
|
3085
|
+
const de_ListKxVolumesCommandError = async (output, context) => {
|
|
2053
3086
|
const parsedOutput = {
|
|
2054
3087
|
...output,
|
|
2055
3088
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2059,9 +3092,15 @@ const de_ListKxUsersCommandError = async (output, context) => {
|
|
|
2059
3092
|
case "AccessDeniedException":
|
|
2060
3093
|
case "com.amazonaws.finspace#AccessDeniedException":
|
|
2061
3094
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3095
|
+
case "ConflictException":
|
|
3096
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
3097
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2062
3098
|
case "InternalServerException":
|
|
2063
3099
|
case "com.amazonaws.finspace#InternalServerException":
|
|
2064
3100
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3101
|
+
case "LimitExceededException":
|
|
3102
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
3103
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2065
3104
|
case "ResourceNotFoundException":
|
|
2066
3105
|
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
2067
3106
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -2386,6 +3425,70 @@ const de_UpdateKxDatabaseCommandError = async (output, context) => {
|
|
|
2386
3425
|
});
|
|
2387
3426
|
}
|
|
2388
3427
|
};
|
|
3428
|
+
const de_UpdateKxDataviewCommand = async (output, context) => {
|
|
3429
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3430
|
+
return de_UpdateKxDataviewCommandError(output, context);
|
|
3431
|
+
}
|
|
3432
|
+
const contents = (0, smithy_client_1.map)({
|
|
3433
|
+
$metadata: deserializeMetadata(output),
|
|
3434
|
+
});
|
|
3435
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3436
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3437
|
+
activeVersions: (_) => de_KxDataviewActiveVersionList(_, context),
|
|
3438
|
+
autoUpdate: smithy_client_1.expectBoolean,
|
|
3439
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
3440
|
+
azMode: smithy_client_1.expectString,
|
|
3441
|
+
changesetId: smithy_client_1.expectString,
|
|
3442
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3443
|
+
databaseName: smithy_client_1.expectString,
|
|
3444
|
+
dataviewName: smithy_client_1.expectString,
|
|
3445
|
+
description: smithy_client_1.expectString,
|
|
3446
|
+
environmentId: smithy_client_1.expectString,
|
|
3447
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3448
|
+
segmentConfigurations: smithy_client_1._json,
|
|
3449
|
+
status: smithy_client_1.expectString,
|
|
3450
|
+
});
|
|
3451
|
+
Object.assign(contents, doc);
|
|
3452
|
+
return contents;
|
|
3453
|
+
};
|
|
3454
|
+
exports.de_UpdateKxDataviewCommand = de_UpdateKxDataviewCommand;
|
|
3455
|
+
const de_UpdateKxDataviewCommandError = async (output, context) => {
|
|
3456
|
+
const parsedOutput = {
|
|
3457
|
+
...output,
|
|
3458
|
+
body: await parseErrorBody(output.body, context),
|
|
3459
|
+
};
|
|
3460
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3461
|
+
switch (errorCode) {
|
|
3462
|
+
case "AccessDeniedException":
|
|
3463
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
3464
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3465
|
+
case "ConflictException":
|
|
3466
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
3467
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3468
|
+
case "InternalServerException":
|
|
3469
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
3470
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3471
|
+
case "ResourceAlreadyExistsException":
|
|
3472
|
+
case "com.amazonaws.finspace#ResourceAlreadyExistsException":
|
|
3473
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3474
|
+
case "ResourceNotFoundException":
|
|
3475
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
3476
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3477
|
+
case "ThrottlingException":
|
|
3478
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
3479
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3480
|
+
case "ValidationException":
|
|
3481
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
3482
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3483
|
+
default:
|
|
3484
|
+
const parsedBody = parsedOutput.body;
|
|
3485
|
+
return throwDefaultError({
|
|
3486
|
+
output,
|
|
3487
|
+
parsedBody,
|
|
3488
|
+
errorCode,
|
|
3489
|
+
});
|
|
3490
|
+
}
|
|
3491
|
+
};
|
|
2389
3492
|
const de_UpdateKxEnvironmentCommand = async (output, context) => {
|
|
2390
3493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2391
3494
|
return de_UpdateKxEnvironmentCommandError(output, context);
|
|
@@ -2569,6 +3672,70 @@ const de_UpdateKxUserCommandError = async (output, context) => {
|
|
|
2569
3672
|
});
|
|
2570
3673
|
}
|
|
2571
3674
|
};
|
|
3675
|
+
const de_UpdateKxVolumeCommand = async (output, context) => {
|
|
3676
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3677
|
+
return de_UpdateKxVolumeCommandError(output, context);
|
|
3678
|
+
}
|
|
3679
|
+
const contents = (0, smithy_client_1.map)({
|
|
3680
|
+
$metadata: deserializeMetadata(output),
|
|
3681
|
+
});
|
|
3682
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3683
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3684
|
+
attachedClusters: smithy_client_1._json,
|
|
3685
|
+
availabilityZoneIds: smithy_client_1._json,
|
|
3686
|
+
azMode: smithy_client_1.expectString,
|
|
3687
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3688
|
+
description: smithy_client_1.expectString,
|
|
3689
|
+
environmentId: smithy_client_1.expectString,
|
|
3690
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3691
|
+
nas1Configuration: smithy_client_1._json,
|
|
3692
|
+
status: smithy_client_1.expectString,
|
|
3693
|
+
statusReason: smithy_client_1.expectString,
|
|
3694
|
+
volumeArn: smithy_client_1.expectString,
|
|
3695
|
+
volumeName: smithy_client_1.expectString,
|
|
3696
|
+
volumeType: smithy_client_1.expectString,
|
|
3697
|
+
});
|
|
3698
|
+
Object.assign(contents, doc);
|
|
3699
|
+
return contents;
|
|
3700
|
+
};
|
|
3701
|
+
exports.de_UpdateKxVolumeCommand = de_UpdateKxVolumeCommand;
|
|
3702
|
+
const de_UpdateKxVolumeCommandError = async (output, context) => {
|
|
3703
|
+
const parsedOutput = {
|
|
3704
|
+
...output,
|
|
3705
|
+
body: await parseErrorBody(output.body, context),
|
|
3706
|
+
};
|
|
3707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3708
|
+
switch (errorCode) {
|
|
3709
|
+
case "AccessDeniedException":
|
|
3710
|
+
case "com.amazonaws.finspace#AccessDeniedException":
|
|
3711
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3712
|
+
case "ConflictException":
|
|
3713
|
+
case "com.amazonaws.finspace#ConflictException":
|
|
3714
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3715
|
+
case "InternalServerException":
|
|
3716
|
+
case "com.amazonaws.finspace#InternalServerException":
|
|
3717
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3718
|
+
case "LimitExceededException":
|
|
3719
|
+
case "com.amazonaws.finspace#LimitExceededException":
|
|
3720
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3721
|
+
case "ResourceNotFoundException":
|
|
3722
|
+
case "com.amazonaws.finspace#ResourceNotFoundException":
|
|
3723
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3724
|
+
case "ThrottlingException":
|
|
3725
|
+
case "com.amazonaws.finspace#ThrottlingException":
|
|
3726
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3727
|
+
case "ValidationException":
|
|
3728
|
+
case "com.amazonaws.finspace#ValidationException":
|
|
3729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3730
|
+
default:
|
|
3731
|
+
const parsedBody = parsedOutput.body;
|
|
3732
|
+
return throwDefaultError({
|
|
3733
|
+
output,
|
|
3734
|
+
parsedBody,
|
|
3735
|
+
errorCode,
|
|
3736
|
+
});
|
|
3737
|
+
}
|
|
3738
|
+
};
|
|
2572
3739
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(FinspaceServiceException_1.FinspaceServiceException);
|
|
2573
3740
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2574
3741
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -2711,6 +3878,15 @@ const se_AutoScalingConfiguration = (input, context) => {
|
|
|
2711
3878
|
scaleOutCooldownSeconds: smithy_client_1.serializeFloat,
|
|
2712
3879
|
});
|
|
2713
3880
|
};
|
|
3881
|
+
const se_KxScalingGroupConfiguration = (input, context) => {
|
|
3882
|
+
return (0, smithy_client_1.take)(input, {
|
|
3883
|
+
cpu: smithy_client_1.serializeFloat,
|
|
3884
|
+
memoryLimit: [],
|
|
3885
|
+
memoryReservation: [],
|
|
3886
|
+
nodeCount: [],
|
|
3887
|
+
scalingGroupName: [],
|
|
3888
|
+
});
|
|
3889
|
+
};
|
|
2714
3890
|
const de_AutoScalingConfiguration = (output, context) => {
|
|
2715
3891
|
return (0, smithy_client_1.take)(output, {
|
|
2716
3892
|
autoScalingMetric: smithy_client_1.expectString,
|
|
@@ -2752,6 +3928,7 @@ const de_KxCluster = (output, context) => {
|
|
|
2752
3928
|
releaseLabel: smithy_client_1.expectString,
|
|
2753
3929
|
status: smithy_client_1.expectString,
|
|
2754
3930
|
statusReason: smithy_client_1.expectString,
|
|
3931
|
+
volumes: smithy_client_1._json,
|
|
2755
3932
|
});
|
|
2756
3933
|
};
|
|
2757
3934
|
const de_KxClusters = (output, context) => {
|
|
@@ -2777,6 +3954,49 @@ const de_KxDatabases = (output, context) => {
|
|
|
2777
3954
|
});
|
|
2778
3955
|
return retVal;
|
|
2779
3956
|
};
|
|
3957
|
+
const de_KxDataviewActiveVersion = (output, context) => {
|
|
3958
|
+
return (0, smithy_client_1.take)(output, {
|
|
3959
|
+
attachedClusters: smithy_client_1._json,
|
|
3960
|
+
changesetId: smithy_client_1.expectString,
|
|
3961
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3962
|
+
segmentConfigurations: smithy_client_1._json,
|
|
3963
|
+
versionId: smithy_client_1.expectString,
|
|
3964
|
+
});
|
|
3965
|
+
};
|
|
3966
|
+
const de_KxDataviewActiveVersionList = (output, context) => {
|
|
3967
|
+
const retVal = (output || [])
|
|
3968
|
+
.filter((e) => e != null)
|
|
3969
|
+
.map((entry) => {
|
|
3970
|
+
return de_KxDataviewActiveVersion(entry, context);
|
|
3971
|
+
});
|
|
3972
|
+
return retVal;
|
|
3973
|
+
};
|
|
3974
|
+
const de_KxDataviewListEntry = (output, context) => {
|
|
3975
|
+
return (0, smithy_client_1.take)(output, {
|
|
3976
|
+
activeVersions: (_) => de_KxDataviewActiveVersionList(_, context),
|
|
3977
|
+
autoUpdate: smithy_client_1.expectBoolean,
|
|
3978
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
3979
|
+
azMode: smithy_client_1.expectString,
|
|
3980
|
+
changesetId: smithy_client_1.expectString,
|
|
3981
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3982
|
+
databaseName: smithy_client_1.expectString,
|
|
3983
|
+
dataviewName: smithy_client_1.expectString,
|
|
3984
|
+
description: smithy_client_1.expectString,
|
|
3985
|
+
environmentId: smithy_client_1.expectString,
|
|
3986
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3987
|
+
segmentConfigurations: smithy_client_1._json,
|
|
3988
|
+
status: smithy_client_1.expectString,
|
|
3989
|
+
statusReason: smithy_client_1.expectString,
|
|
3990
|
+
});
|
|
3991
|
+
};
|
|
3992
|
+
const de_KxDataviews = (output, context) => {
|
|
3993
|
+
const retVal = (output || [])
|
|
3994
|
+
.filter((e) => e != null)
|
|
3995
|
+
.map((entry) => {
|
|
3996
|
+
return de_KxDataviewListEntry(entry, context);
|
|
3997
|
+
});
|
|
3998
|
+
return retVal;
|
|
3999
|
+
};
|
|
2780
4000
|
const de_KxEnvironment = (output, context) => {
|
|
2781
4001
|
return (0, smithy_client_1.take)(output, {
|
|
2782
4002
|
availabilityZoneIds: smithy_client_1._json,
|
|
@@ -2821,6 +4041,35 @@ const de_KxNodeSummaries = (output, context) => {
|
|
|
2821
4041
|
});
|
|
2822
4042
|
return retVal;
|
|
2823
4043
|
};
|
|
4044
|
+
const de_KxScalingGroup = (output, context) => {
|
|
4045
|
+
return (0, smithy_client_1.take)(output, {
|
|
4046
|
+
availabilityZoneId: smithy_client_1.expectString,
|
|
4047
|
+
clusters: smithy_client_1._json,
|
|
4048
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4049
|
+
hostType: smithy_client_1.expectString,
|
|
4050
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4051
|
+
scalingGroupName: smithy_client_1.expectString,
|
|
4052
|
+
status: smithy_client_1.expectString,
|
|
4053
|
+
statusReason: smithy_client_1.expectString,
|
|
4054
|
+
});
|
|
4055
|
+
};
|
|
4056
|
+
const de_KxScalingGroupConfiguration = (output, context) => {
|
|
4057
|
+
return (0, smithy_client_1.take)(output, {
|
|
4058
|
+
cpu: smithy_client_1.limitedParseDouble,
|
|
4059
|
+
memoryLimit: smithy_client_1.expectInt32,
|
|
4060
|
+
memoryReservation: smithy_client_1.expectInt32,
|
|
4061
|
+
nodeCount: smithy_client_1.expectInt32,
|
|
4062
|
+
scalingGroupName: smithy_client_1.expectString,
|
|
4063
|
+
});
|
|
4064
|
+
};
|
|
4065
|
+
const de_KxScalingGroupList = (output, context) => {
|
|
4066
|
+
const retVal = (output || [])
|
|
4067
|
+
.filter((e) => e != null)
|
|
4068
|
+
.map((entry) => {
|
|
4069
|
+
return de_KxScalingGroup(entry, context);
|
|
4070
|
+
});
|
|
4071
|
+
return retVal;
|
|
4072
|
+
};
|
|
2824
4073
|
const de_KxUser = (output, context) => {
|
|
2825
4074
|
return (0, smithy_client_1.take)(output, {
|
|
2826
4075
|
createTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -2838,6 +4087,27 @@ const de_KxUserList = (output, context) => {
|
|
|
2838
4087
|
});
|
|
2839
4088
|
return retVal;
|
|
2840
4089
|
};
|
|
4090
|
+
const de_KxVolume = (output, context) => {
|
|
4091
|
+
return (0, smithy_client_1.take)(output, {
|
|
4092
|
+
availabilityZoneIds: smithy_client_1._json,
|
|
4093
|
+
azMode: smithy_client_1.expectString,
|
|
4094
|
+
createdTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4095
|
+
description: smithy_client_1.expectString,
|
|
4096
|
+
lastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4097
|
+
status: smithy_client_1.expectString,
|
|
4098
|
+
statusReason: smithy_client_1.expectString,
|
|
4099
|
+
volumeName: smithy_client_1.expectString,
|
|
4100
|
+
volumeType: smithy_client_1.expectString,
|
|
4101
|
+
});
|
|
4102
|
+
};
|
|
4103
|
+
const de_KxVolumes = (output, context) => {
|
|
4104
|
+
const retVal = (output || [])
|
|
4105
|
+
.filter((e) => e != null)
|
|
4106
|
+
.map((entry) => {
|
|
4107
|
+
return de_KxVolume(entry, context);
|
|
4108
|
+
});
|
|
4109
|
+
return retVal;
|
|
4110
|
+
};
|
|
2841
4111
|
const deserializeMetadata = (output) => ({
|
|
2842
4112
|
httpStatusCode: output.statusCode,
|
|
2843
4113
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|