@aws-sdk/client-finspace 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Finspace.js +12 -112
- package/dist-cjs/protocols/Aws_restJson1.js +97 -199
- package/dist-es/Finspace.js +12 -112
- package/dist-es/protocols/Aws_restJson1.js +80 -182
- package/dist-types/Finspace.d.ts +15 -21
- package/dist-types/ts3.4/Finspace.d.ts +2 -1
- package/package.json +6 -6
package/dist-es/Finspace.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
|
|
2
3
|
import { DeleteEnvironmentCommand, } from "./commands/DeleteEnvironmentCommand";
|
|
3
4
|
import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
|
|
@@ -7,117 +8,16 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
7
8
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
8
9
|
import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
|
|
9
10
|
import { FinspaceClient } from "./FinspaceClient";
|
|
11
|
+
const commands = {
|
|
12
|
+
CreateEnvironmentCommand,
|
|
13
|
+
DeleteEnvironmentCommand,
|
|
14
|
+
GetEnvironmentCommand,
|
|
15
|
+
ListEnvironmentsCommand,
|
|
16
|
+
ListTagsForResourceCommand,
|
|
17
|
+
TagResourceCommand,
|
|
18
|
+
UntagResourceCommand,
|
|
19
|
+
UpdateEnvironmentCommand,
|
|
20
|
+
};
|
|
10
21
|
export class Finspace extends FinspaceClient {
|
|
11
|
-
createEnvironment(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new CreateEnvironmentCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
deleteEnvironment(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new DeleteEnvironmentCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
getEnvironment(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new GetEnvironmentCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
listEnvironments(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new ListEnvironmentsCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new ListTagsForResourceCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
tagResource(args, optionsOrCb, cb) {
|
|
82
|
-
const command = new TagResourceCommand(args);
|
|
83
|
-
if (typeof optionsOrCb === "function") {
|
|
84
|
-
this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
else if (typeof cb === "function") {
|
|
87
|
-
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
untagResource(args, optionsOrCb, cb) {
|
|
96
|
-
const command = new UntagResourceCommand(args);
|
|
97
|
-
if (typeof optionsOrCb === "function") {
|
|
98
|
-
this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
else if (typeof cb === "function") {
|
|
101
|
-
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
updateEnvironment(args, optionsOrCb, cb) {
|
|
110
|
-
const command = new UpdateEnvironmentCommand(args);
|
|
111
|
-
if (typeof optionsOrCb === "function") {
|
|
112
|
-
this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
return this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
22
|
}
|
|
23
|
+
createAggregatedClient(commands, Finspace);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { FinspaceServiceException as __BaseException } from "../models/FinspaceServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
@@ -9,20 +9,16 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
superuserParameters: se_SuperuserParameters(input.superuserParameters, context),
|
|
23
|
-
}),
|
|
24
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
25
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
dataBundles: (_) => _json(_),
|
|
14
|
+
description: [],
|
|
15
|
+
federationMode: [],
|
|
16
|
+
federationParameters: (_) => _json(_),
|
|
17
|
+
kmsKeyId: [],
|
|
18
|
+
name: [],
|
|
19
|
+
superuserParameters: (_) => _json(_),
|
|
20
|
+
tags: (_) => _json(_),
|
|
21
|
+
}));
|
|
26
22
|
return new __HttpRequest({
|
|
27
23
|
protocol,
|
|
28
24
|
hostname,
|
|
@@ -109,9 +105,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
109
105
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
110
106
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
111
107
|
let body;
|
|
112
|
-
body = JSON.stringify({
|
|
113
|
-
|
|
114
|
-
});
|
|
108
|
+
body = JSON.stringify(take(input, {
|
|
109
|
+
tags: (_) => _json(_),
|
|
110
|
+
}));
|
|
115
111
|
return new __HttpRequest({
|
|
116
112
|
protocol,
|
|
117
113
|
hostname,
|
|
@@ -153,14 +149,12 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
153
149
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
|
|
154
150
|
resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
155
151
|
let body;
|
|
156
|
-
body = JSON.stringify({
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
...(input.name != null && { name: input.name }),
|
|
163
|
-
});
|
|
152
|
+
body = JSON.stringify(take(input, {
|
|
153
|
+
description: [],
|
|
154
|
+
federationMode: [],
|
|
155
|
+
federationParameters: (_) => _json(_),
|
|
156
|
+
name: [],
|
|
157
|
+
}));
|
|
164
158
|
return new __HttpRequest({
|
|
165
159
|
protocol,
|
|
166
160
|
hostname,
|
|
@@ -179,15 +173,12 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
179
173
|
$metadata: deserializeMetadata(output),
|
|
180
174
|
});
|
|
181
175
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
if (data.environmentUrl != null) {
|
|
189
|
-
contents.environmentUrl = __expectString(data.environmentUrl);
|
|
190
|
-
}
|
|
176
|
+
const doc = take(data, {
|
|
177
|
+
environmentArn: __expectString,
|
|
178
|
+
environmentId: __expectString,
|
|
179
|
+
environmentUrl: __expectString,
|
|
180
|
+
});
|
|
181
|
+
Object.assign(contents, doc);
|
|
191
182
|
return contents;
|
|
192
183
|
};
|
|
193
184
|
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
@@ -217,10 +208,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
217
208
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
218
209
|
default:
|
|
219
210
|
const parsedBody = parsedOutput.body;
|
|
220
|
-
throwDefaultError({
|
|
211
|
+
return throwDefaultError({
|
|
221
212
|
output,
|
|
222
213
|
parsedBody,
|
|
223
|
-
exceptionCtor: __BaseException,
|
|
224
214
|
errorCode,
|
|
225
215
|
});
|
|
226
216
|
}
|
|
@@ -259,10 +249,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
259
249
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
260
250
|
default:
|
|
261
251
|
const parsedBody = parsedOutput.body;
|
|
262
|
-
throwDefaultError({
|
|
252
|
+
return throwDefaultError({
|
|
263
253
|
output,
|
|
264
254
|
parsedBody,
|
|
265
|
-
exceptionCtor: __BaseException,
|
|
266
255
|
errorCode,
|
|
267
256
|
});
|
|
268
257
|
}
|
|
@@ -275,9 +264,10 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
275
264
|
$metadata: deserializeMetadata(output),
|
|
276
265
|
});
|
|
277
266
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
267
|
+
const doc = take(data, {
|
|
268
|
+
environment: _json,
|
|
269
|
+
});
|
|
270
|
+
Object.assign(contents, doc);
|
|
281
271
|
return contents;
|
|
282
272
|
};
|
|
283
273
|
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
@@ -301,10 +291,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
301
291
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
302
292
|
default:
|
|
303
293
|
const parsedBody = parsedOutput.body;
|
|
304
|
-
throwDefaultError({
|
|
294
|
+
return throwDefaultError({
|
|
305
295
|
output,
|
|
306
296
|
parsedBody,
|
|
307
|
-
exceptionCtor: __BaseException,
|
|
308
297
|
errorCode,
|
|
309
298
|
});
|
|
310
299
|
}
|
|
@@ -317,12 +306,11 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
317
306
|
$metadata: deserializeMetadata(output),
|
|
318
307
|
});
|
|
319
308
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
309
|
+
const doc = take(data, {
|
|
310
|
+
environments: _json,
|
|
311
|
+
nextToken: __expectString,
|
|
312
|
+
});
|
|
313
|
+
Object.assign(contents, doc);
|
|
326
314
|
return contents;
|
|
327
315
|
};
|
|
328
316
|
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
@@ -340,10 +328,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
340
328
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
341
329
|
default:
|
|
342
330
|
const parsedBody = parsedOutput.body;
|
|
343
|
-
throwDefaultError({
|
|
331
|
+
return throwDefaultError({
|
|
344
332
|
output,
|
|
345
333
|
parsedBody,
|
|
346
|
-
exceptionCtor: __BaseException,
|
|
347
334
|
errorCode,
|
|
348
335
|
});
|
|
349
336
|
}
|
|
@@ -356,9 +343,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
356
343
|
$metadata: deserializeMetadata(output),
|
|
357
344
|
});
|
|
358
345
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
346
|
+
const doc = take(data, {
|
|
347
|
+
tags: _json,
|
|
348
|
+
});
|
|
349
|
+
Object.assign(contents, doc);
|
|
362
350
|
return contents;
|
|
363
351
|
};
|
|
364
352
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -379,10 +367,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
379
367
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
380
368
|
default:
|
|
381
369
|
const parsedBody = parsedOutput.body;
|
|
382
|
-
throwDefaultError({
|
|
370
|
+
return throwDefaultError({
|
|
383
371
|
output,
|
|
384
372
|
parsedBody,
|
|
385
|
-
exceptionCtor: __BaseException,
|
|
386
373
|
errorCode,
|
|
387
374
|
});
|
|
388
375
|
}
|
|
@@ -415,10 +402,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
415
402
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
416
403
|
default:
|
|
417
404
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
throwDefaultError({
|
|
405
|
+
return throwDefaultError({
|
|
419
406
|
output,
|
|
420
407
|
parsedBody,
|
|
421
|
-
exceptionCtor: __BaseException,
|
|
422
408
|
errorCode,
|
|
423
409
|
});
|
|
424
410
|
}
|
|
@@ -451,10 +437,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
451
437
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
452
438
|
default:
|
|
453
439
|
const parsedBody = parsedOutput.body;
|
|
454
|
-
throwDefaultError({
|
|
440
|
+
return throwDefaultError({
|
|
455
441
|
output,
|
|
456
442
|
parsedBody,
|
|
457
|
-
exceptionCtor: __BaseException,
|
|
458
443
|
errorCode,
|
|
459
444
|
});
|
|
460
445
|
}
|
|
@@ -467,9 +452,10 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
467
452
|
$metadata: deserializeMetadata(output),
|
|
468
453
|
});
|
|
469
454
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
455
|
+
const doc = take(data, {
|
|
456
|
+
environment: _json,
|
|
457
|
+
});
|
|
458
|
+
Object.assign(contents, doc);
|
|
473
459
|
return contents;
|
|
474
460
|
};
|
|
475
461
|
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
@@ -496,18 +482,19 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
|
496
482
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
497
483
|
default:
|
|
498
484
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
throwDefaultError({
|
|
485
|
+
return throwDefaultError({
|
|
500
486
|
output,
|
|
501
487
|
parsedBody,
|
|
502
|
-
exceptionCtor: __BaseException,
|
|
503
488
|
errorCode,
|
|
504
489
|
});
|
|
505
490
|
}
|
|
506
491
|
};
|
|
507
|
-
const
|
|
492
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
508
493
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
509
494
|
const contents = map({});
|
|
510
495
|
const data = parsedOutput.body;
|
|
496
|
+
const doc = take(data, {});
|
|
497
|
+
Object.assign(contents, doc);
|
|
511
498
|
const exception = new AccessDeniedException({
|
|
512
499
|
$metadata: deserializeMetadata(parsedOutput),
|
|
513
500
|
...contents,
|
|
@@ -517,9 +504,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
517
504
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
518
505
|
const contents = map({});
|
|
519
506
|
const data = parsedOutput.body;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
507
|
+
const doc = take(data, {
|
|
508
|
+
message: __expectString,
|
|
509
|
+
});
|
|
510
|
+
Object.assign(contents, doc);
|
|
523
511
|
const exception = new InternalServerException({
|
|
524
512
|
$metadata: deserializeMetadata(parsedOutput),
|
|
525
513
|
...contents,
|
|
@@ -529,9 +517,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
529
517
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
530
518
|
const contents = map({});
|
|
531
519
|
const data = parsedOutput.body;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
520
|
+
const doc = take(data, {
|
|
521
|
+
message: __expectString,
|
|
522
|
+
});
|
|
523
|
+
Object.assign(contents, doc);
|
|
535
524
|
const exception = new InvalidRequestException({
|
|
536
525
|
$metadata: deserializeMetadata(parsedOutput),
|
|
537
526
|
...contents,
|
|
@@ -541,9 +530,10 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
541
530
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
542
531
|
const contents = map({});
|
|
543
532
|
const data = parsedOutput.body;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
533
|
+
const doc = take(data, {
|
|
534
|
+
message: __expectString,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
547
537
|
const exception = new LimitExceededException({
|
|
548
538
|
$metadata: deserializeMetadata(parsedOutput),
|
|
549
539
|
...contents,
|
|
@@ -553,9 +543,10 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
553
543
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
554
544
|
const contents = map({});
|
|
555
545
|
const data = parsedOutput.body;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}
|
|
546
|
+
const doc = take(data, {
|
|
547
|
+
message: __expectString,
|
|
548
|
+
});
|
|
549
|
+
Object.assign(contents, doc);
|
|
559
550
|
const exception = new ResourceNotFoundException({
|
|
560
551
|
$metadata: deserializeMetadata(parsedOutput),
|
|
561
552
|
...contents,
|
|
@@ -565,9 +556,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
565
556
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
566
557
|
const contents = map({});
|
|
567
558
|
const data = parsedOutput.body;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
559
|
+
const doc = take(data, {
|
|
560
|
+
message: __expectString,
|
|
561
|
+
});
|
|
562
|
+
Object.assign(contents, doc);
|
|
571
563
|
const exception = new ServiceQuotaExceededException({
|
|
572
564
|
$metadata: deserializeMetadata(parsedOutput),
|
|
573
565
|
...contents,
|
|
@@ -577,6 +569,8 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
577
569
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
578
570
|
const contents = map({});
|
|
579
571
|
const data = parsedOutput.body;
|
|
572
|
+
const doc = take(data, {});
|
|
573
|
+
Object.assign(contents, doc);
|
|
580
574
|
const exception = new ThrottlingException({
|
|
581
575
|
$metadata: deserializeMetadata(parsedOutput),
|
|
582
576
|
...contents,
|
|
@@ -586,112 +580,16 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
586
580
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
587
581
|
const contents = map({});
|
|
588
582
|
const data = parsedOutput.body;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
583
|
+
const doc = take(data, {
|
|
584
|
+
message: __expectString,
|
|
585
|
+
});
|
|
586
|
+
Object.assign(contents, doc);
|
|
592
587
|
const exception = new ValidationException({
|
|
593
588
|
$metadata: deserializeMetadata(parsedOutput),
|
|
594
589
|
...contents,
|
|
595
590
|
});
|
|
596
591
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
597
592
|
};
|
|
598
|
-
const se_AttributeMap = (input, context) => {
|
|
599
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
600
|
-
if (value === null) {
|
|
601
|
-
return acc;
|
|
602
|
-
}
|
|
603
|
-
acc[key] = value;
|
|
604
|
-
return acc;
|
|
605
|
-
}, {});
|
|
606
|
-
};
|
|
607
|
-
const se_DataBundleArns = (input, context) => {
|
|
608
|
-
return input
|
|
609
|
-
.filter((e) => e != null)
|
|
610
|
-
.map((entry) => {
|
|
611
|
-
return entry;
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
const se_FederationParameters = (input, context) => {
|
|
615
|
-
return {
|
|
616
|
-
...(input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL }),
|
|
617
|
-
...(input.attributeMap != null && { attributeMap: se_AttributeMap(input.attributeMap, context) }),
|
|
618
|
-
...(input.federationProviderName != null && { federationProviderName: input.federationProviderName }),
|
|
619
|
-
...(input.federationURN != null && { federationURN: input.federationURN }),
|
|
620
|
-
...(input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument }),
|
|
621
|
-
...(input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }),
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
const se_SuperuserParameters = (input, context) => {
|
|
625
|
-
return {
|
|
626
|
-
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
627
|
-
...(input.firstName != null && { firstName: input.firstName }),
|
|
628
|
-
...(input.lastName != null && { lastName: input.lastName }),
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
const se_TagMap = (input, context) => {
|
|
632
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
633
|
-
if (value === null) {
|
|
634
|
-
return acc;
|
|
635
|
-
}
|
|
636
|
-
acc[key] = value;
|
|
637
|
-
return acc;
|
|
638
|
-
}, {});
|
|
639
|
-
};
|
|
640
|
-
const de_AttributeMap = (output, context) => {
|
|
641
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
642
|
-
if (value === null) {
|
|
643
|
-
return acc;
|
|
644
|
-
}
|
|
645
|
-
acc[key] = __expectString(value);
|
|
646
|
-
return acc;
|
|
647
|
-
}, {});
|
|
648
|
-
};
|
|
649
|
-
const de_Environment = (output, context) => {
|
|
650
|
-
return {
|
|
651
|
-
awsAccountId: __expectString(output.awsAccountId),
|
|
652
|
-
dedicatedServiceAccountId: __expectString(output.dedicatedServiceAccountId),
|
|
653
|
-
description: __expectString(output.description),
|
|
654
|
-
environmentArn: __expectString(output.environmentArn),
|
|
655
|
-
environmentId: __expectString(output.environmentId),
|
|
656
|
-
environmentUrl: __expectString(output.environmentUrl),
|
|
657
|
-
federationMode: __expectString(output.federationMode),
|
|
658
|
-
federationParameters: output.federationParameters != null ? de_FederationParameters(output.federationParameters, context) : undefined,
|
|
659
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
660
|
-
name: __expectString(output.name),
|
|
661
|
-
sageMakerStudioDomainUrl: __expectString(output.sageMakerStudioDomainUrl),
|
|
662
|
-
status: __expectString(output.status),
|
|
663
|
-
};
|
|
664
|
-
};
|
|
665
|
-
const de_EnvironmentList = (output, context) => {
|
|
666
|
-
const retVal = (output || [])
|
|
667
|
-
.filter((e) => e != null)
|
|
668
|
-
.map((entry) => {
|
|
669
|
-
if (entry === null) {
|
|
670
|
-
return null;
|
|
671
|
-
}
|
|
672
|
-
return de_Environment(entry, context);
|
|
673
|
-
});
|
|
674
|
-
return retVal;
|
|
675
|
-
};
|
|
676
|
-
const de_FederationParameters = (output, context) => {
|
|
677
|
-
return {
|
|
678
|
-
applicationCallBackURL: __expectString(output.applicationCallBackURL),
|
|
679
|
-
attributeMap: output.attributeMap != null ? de_AttributeMap(output.attributeMap, context) : undefined,
|
|
680
|
-
federationProviderName: __expectString(output.federationProviderName),
|
|
681
|
-
federationURN: __expectString(output.federationURN),
|
|
682
|
-
samlMetadataDocument: __expectString(output.samlMetadataDocument),
|
|
683
|
-
samlMetadataURL: __expectString(output.samlMetadataURL),
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
const de_TagMap = (output, context) => {
|
|
687
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
688
|
-
if (value === null) {
|
|
689
|
-
return acc;
|
|
690
|
-
}
|
|
691
|
-
acc[key] = __expectString(value);
|
|
692
|
-
return acc;
|
|
693
|
-
}, {});
|
|
694
|
-
};
|
|
695
593
|
const deserializeMetadata = (output) => ({
|
|
696
594
|
httpStatusCode: output.statusCode,
|
|
697
595
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-types/Finspace.d.ts
CHANGED
|
@@ -8,65 +8,59 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
8
8
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
9
9
|
import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
|
|
10
10
|
import { FinspaceClient } from "./FinspaceClient";
|
|
11
|
-
|
|
12
|
-
* @public
|
|
13
|
-
* <p>The FinSpace management service provides the APIs for managing FinSpace environments.</p>
|
|
14
|
-
*/
|
|
15
|
-
export declare class Finspace extends FinspaceClient {
|
|
11
|
+
export interface Finspace {
|
|
16
12
|
/**
|
|
17
|
-
* @
|
|
18
|
-
* <p>Create a new FinSpace environment.</p>
|
|
13
|
+
* @see {@link CreateEnvironmentCommand}
|
|
19
14
|
*/
|
|
20
15
|
createEnvironment(args: CreateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateEnvironmentCommandOutput>;
|
|
21
16
|
createEnvironment(args: CreateEnvironmentCommandInput, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
22
17
|
createEnvironment(args: CreateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
23
18
|
/**
|
|
24
|
-
* @
|
|
25
|
-
* <p>Delete an FinSpace environment.</p>
|
|
19
|
+
* @see {@link DeleteEnvironmentCommand}
|
|
26
20
|
*/
|
|
27
21
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEnvironmentCommandOutput>;
|
|
28
22
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
29
23
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
30
24
|
/**
|
|
31
|
-
* @
|
|
32
|
-
* <p>Returns the FinSpace environment object.</p>
|
|
25
|
+
* @see {@link GetEnvironmentCommand}
|
|
33
26
|
*/
|
|
34
27
|
getEnvironment(args: GetEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetEnvironmentCommandOutput>;
|
|
35
28
|
getEnvironment(args: GetEnvironmentCommandInput, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
36
29
|
getEnvironment(args: GetEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
37
30
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* <p>A list of all of your FinSpace environments.</p>
|
|
31
|
+
* @see {@link ListEnvironmentsCommand}
|
|
40
32
|
*/
|
|
41
33
|
listEnvironments(args: ListEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentsCommandOutput>;
|
|
42
34
|
listEnvironments(args: ListEnvironmentsCommandInput, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
43
35
|
listEnvironments(args: ListEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
44
36
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* <p>A list of all tags for a resource.</p>
|
|
37
|
+
* @see {@link ListTagsForResourceCommand}
|
|
47
38
|
*/
|
|
48
39
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
49
40
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
50
41
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
51
42
|
/**
|
|
52
|
-
* @
|
|
53
|
-
* <p>Adds metadata tags to a FinSpace resource.</p>
|
|
43
|
+
* @see {@link TagResourceCommand}
|
|
54
44
|
*/
|
|
55
45
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
56
46
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
57
47
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
58
48
|
/**
|
|
59
|
-
* @
|
|
60
|
-
* <p>Removes metadata tags from a FinSpace resource.</p>
|
|
49
|
+
* @see {@link UntagResourceCommand}
|
|
61
50
|
*/
|
|
62
51
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
63
52
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
64
53
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
65
54
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* <p>Update your FinSpace environment.</p>
|
|
55
|
+
* @see {@link UpdateEnvironmentCommand}
|
|
68
56
|
*/
|
|
69
57
|
updateEnvironment(args: UpdateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnvironmentCommandOutput>;
|
|
70
58
|
updateEnvironment(args: UpdateEnvironmentCommandInput, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
|
|
71
59
|
updateEnvironment(args: UpdateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
|
|
72
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
* <p>The FinSpace management service provides the APIs for managing FinSpace environments.</p>
|
|
64
|
+
*/
|
|
65
|
+
export declare class Finspace extends FinspaceClient implements Finspace {
|
|
66
|
+
}
|