@aws-sdk/client-finspace 3.32.0 → 3.36.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/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/Finspace.js +1 -2
- package/{dist/cjs → dist-cjs}/FinspaceClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListEnvironmentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -3
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/Finspace.js +2 -7
- package/{dist/es → dist-es}/FinspaceClient.js +2 -12
- package/{dist/es → dist-es}/commands/CreateEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListEnvironmentsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -79
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +196 -202
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/Finspace.d.ts +2 -2
- package/{dist/types → dist-types}/FinspaceClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListEnvironmentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Finspace.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/FinspaceClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListEnvironmentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateEnvironmentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/Finspace.ts +0 -294
- package/FinspaceClient.ts +0 -263
- package/commands/CreateEnvironmentCommand.ts +0 -94
- package/commands/DeleteEnvironmentCommand.ts +0 -94
- package/commands/GetEnvironmentCommand.ts +0 -94
- package/commands/ListEnvironmentsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateEnvironmentCommand.ts +0 -94
- package/dist/cjs/Finspace.js.map +0 -1
- package/dist/cjs/FinspaceClient.js.map +0 -1
- package/dist/cjs/commands/CreateEnvironmentCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist/cjs/commands/GetEnvironmentCommand.js.map +0 -1
- package/dist/cjs/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Finspace.js.map +0 -1
- package/dist/es/FinspaceClient.js.map +0 -1
- package/dist/es/commands/CreateEnvironmentCommand.js.map +0 -1
- package/dist/es/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist/es/commands/GetEnvironmentCommand.js.map +0 -1
- package/dist/es/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -12
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -626
- package/protocols/Aws_restJson1.ts +0 -1214
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -17,7 +17,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
17
17
|
input.federationParameters !== null && {
|
|
18
18
|
federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
|
|
19
19
|
})), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
20
|
-
return [2
|
|
20
|
+
return [2, new __HttpRequest({
|
|
21
21
|
protocol: protocol,
|
|
22
22
|
hostname: hostname,
|
|
23
23
|
port: port,
|
|
@@ -33,7 +33,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
33
33
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
|
-
case 0: return [4
|
|
36
|
+
case 0: return [4, context.endpoint()];
|
|
37
37
|
case 1:
|
|
38
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
39
|
headers = {};
|
|
@@ -48,7 +48,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
48
48
|
else {
|
|
49
49
|
throw new Error("No value provided for input HTTP label: environmentId.");
|
|
50
50
|
}
|
|
51
|
-
return [2
|
|
51
|
+
return [2, new __HttpRequest({
|
|
52
52
|
protocol: protocol,
|
|
53
53
|
hostname: hostname,
|
|
54
54
|
port: port,
|
|
@@ -64,7 +64,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
64
64
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
65
65
|
return __generator(this, function (_c) {
|
|
66
66
|
switch (_c.label) {
|
|
67
|
-
case 0: return [4
|
|
67
|
+
case 0: return [4, context.endpoint()];
|
|
68
68
|
case 1:
|
|
69
69
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
70
70
|
headers = {};
|
|
@@ -79,7 +79,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
79
79
|
else {
|
|
80
80
|
throw new Error("No value provided for input HTTP label: environmentId.");
|
|
81
81
|
}
|
|
82
|
-
return [2
|
|
82
|
+
return [2, new __HttpRequest({
|
|
83
83
|
protocol: protocol,
|
|
84
84
|
hostname: hostname,
|
|
85
85
|
port: port,
|
|
@@ -95,13 +95,13 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
95
95
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
96
96
|
return __generator(this, function (_c) {
|
|
97
97
|
switch (_c.label) {
|
|
98
|
-
case 0: return [4
|
|
98
|
+
case 0: return [4, context.endpoint()];
|
|
99
99
|
case 1:
|
|
100
100
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
101
101
|
headers = {};
|
|
102
102
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
|
|
103
103
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
104
|
-
return [2
|
|
104
|
+
return [2, new __HttpRequest({
|
|
105
105
|
protocol: protocol,
|
|
106
106
|
hostname: hostname,
|
|
107
107
|
port: port,
|
|
@@ -118,7 +118,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
118
118
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
119
119
|
return __generator(this, function (_c) {
|
|
120
120
|
switch (_c.label) {
|
|
121
|
-
case 0: return [4
|
|
121
|
+
case 0: return [4, context.endpoint()];
|
|
122
122
|
case 1:
|
|
123
123
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
124
|
headers = {};
|
|
@@ -133,7 +133,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
133
133
|
else {
|
|
134
134
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
135
135
|
}
|
|
136
|
-
return [2
|
|
136
|
+
return [2, new __HttpRequest({
|
|
137
137
|
protocol: protocol,
|
|
138
138
|
hostname: hostname,
|
|
139
139
|
port: port,
|
|
@@ -149,7 +149,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
149
149
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
150
150
|
return __generator(this, function (_c) {
|
|
151
151
|
switch (_c.label) {
|
|
152
|
-
case 0: return [4
|
|
152
|
+
case 0: return [4, context.endpoint()];
|
|
153
153
|
case 1:
|
|
154
154
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
155
155
|
headers = {
|
|
@@ -167,7 +167,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
167
167
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
168
168
|
}
|
|
169
169
|
body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
170
|
-
return [2
|
|
170
|
+
return [2, new __HttpRequest({
|
|
171
171
|
protocol: protocol,
|
|
172
172
|
hostname: hostname,
|
|
173
173
|
port: port,
|
|
@@ -183,7 +183,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
183
183
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
184
184
|
return __generator(this, function (_c) {
|
|
185
185
|
switch (_c.label) {
|
|
186
|
-
case 0: return [4
|
|
186
|
+
case 0: return [4, context.endpoint()];
|
|
187
187
|
case 1:
|
|
188
188
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
189
189
|
headers = {};
|
|
@@ -199,7 +199,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
199
199
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
200
200
|
}
|
|
201
201
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
202
|
-
return [2
|
|
202
|
+
return [2, new __HttpRequest({
|
|
203
203
|
protocol: protocol,
|
|
204
204
|
hostname: hostname,
|
|
205
205
|
port: port,
|
|
@@ -216,7 +216,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
216
216
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
217
217
|
return __generator(this, function (_c) {
|
|
218
218
|
switch (_c.label) {
|
|
219
|
-
case 0: return [4
|
|
219
|
+
case 0: return [4, context.endpoint()];
|
|
220
220
|
case 1:
|
|
221
221
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
222
222
|
headers = {
|
|
@@ -238,7 +238,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
238
238
|
input.federationParameters !== null && {
|
|
239
239
|
federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
|
|
240
240
|
})), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
241
|
-
return [2
|
|
241
|
+
return [2, new __HttpRequest({
|
|
242
242
|
protocol: protocol,
|
|
243
243
|
hostname: hostname,
|
|
244
244
|
port: port,
|
|
@@ -256,7 +256,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
256
256
|
switch (_c.label) {
|
|
257
257
|
case 0:
|
|
258
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
-
return [2
|
|
259
|
+
return [2, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
|
|
260
260
|
}
|
|
261
261
|
contents = {
|
|
262
262
|
$metadata: deserializeMetadata(output),
|
|
@@ -266,7 +266,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
266
266
|
};
|
|
267
267
|
_a = __expectNonNull;
|
|
268
268
|
_b = __expectObject;
|
|
269
|
-
return [4
|
|
269
|
+
return [4, parseBody(output.body, context)];
|
|
270
270
|
case 1:
|
|
271
271
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
272
272
|
if (data.environmentArn !== undefined && data.environmentArn !== null) {
|
|
@@ -278,7 +278,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
278
278
|
if (data.environmentUrl !== undefined && data.environmentUrl !== null) {
|
|
279
279
|
contents.environmentUrl = __expectString(data.environmentUrl);
|
|
280
280
|
}
|
|
281
|
-
return [2
|
|
281
|
+
return [2, Promise.resolve(contents)];
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
}); };
|
|
@@ -290,63 +290,63 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
290
290
|
case 0:
|
|
291
291
|
_a = [__assign({}, output)];
|
|
292
292
|
_j = {};
|
|
293
|
-
return [4
|
|
293
|
+
return [4, parseBody(output.body, context)];
|
|
294
294
|
case 1:
|
|
295
295
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
296
296
|
errorCode = "UnknownError";
|
|
297
297
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
298
298
|
_b = errorCode;
|
|
299
299
|
switch (_b) {
|
|
300
|
-
case "AccessDeniedException": return [3
|
|
301
|
-
case "com.amazonaws.finspace#AccessDeniedException": return [3
|
|
302
|
-
case "InternalServerException": return [3
|
|
303
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
304
|
-
case "LimitExceededException": return [3
|
|
305
|
-
case "com.amazonaws.finspace#LimitExceededException": return [3
|
|
306
|
-
case "ServiceQuotaExceededException": return [3
|
|
307
|
-
case "com.amazonaws.finspace#ServiceQuotaExceededException": return [3
|
|
308
|
-
case "ThrottlingException": return [3
|
|
309
|
-
case "com.amazonaws.finspace#ThrottlingException": return [3
|
|
310
|
-
case "ValidationException": return [3
|
|
311
|
-
case "com.amazonaws.finspace#ValidationException": return [3
|
|
300
|
+
case "AccessDeniedException": return [3, 2];
|
|
301
|
+
case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
|
|
302
|
+
case "InternalServerException": return [3, 4];
|
|
303
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 4];
|
|
304
|
+
case "LimitExceededException": return [3, 6];
|
|
305
|
+
case "com.amazonaws.finspace#LimitExceededException": return [3, 6];
|
|
306
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
307
|
+
case "com.amazonaws.finspace#ServiceQuotaExceededException": return [3, 8];
|
|
308
|
+
case "ThrottlingException": return [3, 10];
|
|
309
|
+
case "com.amazonaws.finspace#ThrottlingException": return [3, 10];
|
|
310
|
+
case "ValidationException": return [3, 12];
|
|
311
|
+
case "com.amazonaws.finspace#ValidationException": return [3, 12];
|
|
312
312
|
}
|
|
313
|
-
return [3
|
|
313
|
+
return [3, 14];
|
|
314
314
|
case 2:
|
|
315
315
|
_c = [{}];
|
|
316
|
-
return [4
|
|
316
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
317
317
|
case 3:
|
|
318
318
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
319
|
-
return [3
|
|
319
|
+
return [3, 15];
|
|
320
320
|
case 4:
|
|
321
321
|
_d = [{}];
|
|
322
|
-
return [4
|
|
322
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
323
323
|
case 5:
|
|
324
324
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
325
|
-
return [3
|
|
325
|
+
return [3, 15];
|
|
326
326
|
case 6:
|
|
327
327
|
_e = [{}];
|
|
328
|
-
return [4
|
|
328
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
329
329
|
case 7:
|
|
330
330
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
331
|
-
return [3
|
|
331
|
+
return [3, 15];
|
|
332
332
|
case 8:
|
|
333
333
|
_f = [{}];
|
|
334
|
-
return [4
|
|
334
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
335
335
|
case 9:
|
|
336
336
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
337
|
-
return [3
|
|
337
|
+
return [3, 15];
|
|
338
338
|
case 10:
|
|
339
339
|
_g = [{}];
|
|
340
|
-
return [4
|
|
340
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
341
341
|
case 11:
|
|
342
342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
343
|
-
return [3
|
|
343
|
+
return [3, 15];
|
|
344
344
|
case 12:
|
|
345
345
|
_h = [{}];
|
|
346
|
-
return [4
|
|
346
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
347
347
|
case 13:
|
|
348
348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
349
|
-
return [3
|
|
349
|
+
return [3, 15];
|
|
350
350
|
case 14:
|
|
351
351
|
parsedBody = parsedOutput.body;
|
|
352
352
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -356,7 +356,7 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
356
356
|
message = response.message || response.Message || errorCode;
|
|
357
357
|
response.message = message;
|
|
358
358
|
delete response.Message;
|
|
359
|
-
return [2
|
|
359
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
}); };
|
|
@@ -366,15 +366,15 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
|
|
|
366
366
|
switch (_a.label) {
|
|
367
367
|
case 0:
|
|
368
368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
-
return [2
|
|
369
|
+
return [2, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
|
|
370
370
|
}
|
|
371
371
|
contents = {
|
|
372
372
|
$metadata: deserializeMetadata(output),
|
|
373
373
|
};
|
|
374
|
-
return [4
|
|
374
|
+
return [4, collectBody(output.body, context)];
|
|
375
375
|
case 1:
|
|
376
376
|
_a.sent();
|
|
377
|
-
return [2
|
|
377
|
+
return [2, Promise.resolve(contents)];
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}); };
|
|
@@ -386,55 +386,55 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
386
386
|
case 0:
|
|
387
387
|
_a = [__assign({}, output)];
|
|
388
388
|
_h = {};
|
|
389
|
-
return [4
|
|
389
|
+
return [4, parseBody(output.body, context)];
|
|
390
390
|
case 1:
|
|
391
391
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
392
392
|
errorCode = "UnknownError";
|
|
393
393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
394
394
|
_b = errorCode;
|
|
395
395
|
switch (_b) {
|
|
396
|
-
case "AccessDeniedException": return [3
|
|
397
|
-
case "com.amazonaws.finspace#AccessDeniedException": return [3
|
|
398
|
-
case "InternalServerException": return [3
|
|
399
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
400
|
-
case "ResourceNotFoundException": return [3
|
|
401
|
-
case "com.amazonaws.finspace#ResourceNotFoundException": return [3
|
|
402
|
-
case "ThrottlingException": return [3
|
|
403
|
-
case "com.amazonaws.finspace#ThrottlingException": return [3
|
|
404
|
-
case "ValidationException": return [3
|
|
405
|
-
case "com.amazonaws.finspace#ValidationException": return [3
|
|
396
|
+
case "AccessDeniedException": return [3, 2];
|
|
397
|
+
case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
|
|
398
|
+
case "InternalServerException": return [3, 4];
|
|
399
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 4];
|
|
400
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
401
|
+
case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
|
|
402
|
+
case "ThrottlingException": return [3, 8];
|
|
403
|
+
case "com.amazonaws.finspace#ThrottlingException": return [3, 8];
|
|
404
|
+
case "ValidationException": return [3, 10];
|
|
405
|
+
case "com.amazonaws.finspace#ValidationException": return [3, 10];
|
|
406
406
|
}
|
|
407
|
-
return [3
|
|
407
|
+
return [3, 12];
|
|
408
408
|
case 2:
|
|
409
409
|
_c = [{}];
|
|
410
|
-
return [4
|
|
410
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
411
411
|
case 3:
|
|
412
412
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
413
|
-
return [3
|
|
413
|
+
return [3, 13];
|
|
414
414
|
case 4:
|
|
415
415
|
_d = [{}];
|
|
416
|
-
return [4
|
|
416
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
417
417
|
case 5:
|
|
418
418
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
419
|
-
return [3
|
|
419
|
+
return [3, 13];
|
|
420
420
|
case 6:
|
|
421
421
|
_e = [{}];
|
|
422
|
-
return [4
|
|
422
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
423
423
|
case 7:
|
|
424
424
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
425
|
-
return [3
|
|
425
|
+
return [3, 13];
|
|
426
426
|
case 8:
|
|
427
427
|
_f = [{}];
|
|
428
|
-
return [4
|
|
428
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
429
429
|
case 9:
|
|
430
430
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
431
|
-
return [3
|
|
431
|
+
return [3, 13];
|
|
432
432
|
case 10:
|
|
433
433
|
_g = [{}];
|
|
434
|
-
return [4
|
|
434
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
435
435
|
case 11:
|
|
436
436
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
437
|
-
return [3
|
|
437
|
+
return [3, 13];
|
|
438
438
|
case 12:
|
|
439
439
|
parsedBody = parsedOutput.body;
|
|
440
440
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -444,7 +444,7 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
444
444
|
message = response.message || response.Message || errorCode;
|
|
445
445
|
response.message = message;
|
|
446
446
|
delete response.Message;
|
|
447
|
-
return [2
|
|
447
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
450
|
}); };
|
|
@@ -454,7 +454,7 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
454
454
|
switch (_c.label) {
|
|
455
455
|
case 0:
|
|
456
456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
457
|
-
return [2
|
|
457
|
+
return [2, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
|
|
458
458
|
}
|
|
459
459
|
contents = {
|
|
460
460
|
$metadata: deserializeMetadata(output),
|
|
@@ -462,13 +462,13 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
462
462
|
};
|
|
463
463
|
_a = __expectNonNull;
|
|
464
464
|
_b = __expectObject;
|
|
465
|
-
return [4
|
|
465
|
+
return [4, parseBody(output.body, context)];
|
|
466
466
|
case 1:
|
|
467
467
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
468
468
|
if (data.environment !== undefined && data.environment !== null) {
|
|
469
469
|
contents.environment = deserializeAws_restJson1Environment(data.environment, context);
|
|
470
470
|
}
|
|
471
|
-
return [2
|
|
471
|
+
return [2, Promise.resolve(contents)];
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
}); };
|
|
@@ -480,47 +480,47 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
480
480
|
case 0:
|
|
481
481
|
_a = [__assign({}, output)];
|
|
482
482
|
_g = {};
|
|
483
|
-
return [4
|
|
483
|
+
return [4, parseBody(output.body, context)];
|
|
484
484
|
case 1:
|
|
485
485
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
486
486
|
errorCode = "UnknownError";
|
|
487
487
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
488
|
_b = errorCode;
|
|
489
489
|
switch (_b) {
|
|
490
|
-
case "AccessDeniedException": return [3
|
|
491
|
-
case "com.amazonaws.finspace#AccessDeniedException": return [3
|
|
492
|
-
case "InternalServerException": return [3
|
|
493
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
494
|
-
case "ResourceNotFoundException": return [3
|
|
495
|
-
case "com.amazonaws.finspace#ResourceNotFoundException": return [3
|
|
496
|
-
case "ValidationException": return [3
|
|
497
|
-
case "com.amazonaws.finspace#ValidationException": return [3
|
|
490
|
+
case "AccessDeniedException": return [3, 2];
|
|
491
|
+
case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
|
|
492
|
+
case "InternalServerException": return [3, 4];
|
|
493
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 4];
|
|
494
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
495
|
+
case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
|
|
496
|
+
case "ValidationException": return [3, 8];
|
|
497
|
+
case "com.amazonaws.finspace#ValidationException": return [3, 8];
|
|
498
498
|
}
|
|
499
|
-
return [3
|
|
499
|
+
return [3, 10];
|
|
500
500
|
case 2:
|
|
501
501
|
_c = [{}];
|
|
502
|
-
return [4
|
|
502
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
503
503
|
case 3:
|
|
504
504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
505
|
-
return [3
|
|
505
|
+
return [3, 11];
|
|
506
506
|
case 4:
|
|
507
507
|
_d = [{}];
|
|
508
|
-
return [4
|
|
508
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
509
509
|
case 5:
|
|
510
510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
511
|
-
return [3
|
|
511
|
+
return [3, 11];
|
|
512
512
|
case 6:
|
|
513
513
|
_e = [{}];
|
|
514
|
-
return [4
|
|
514
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
515
515
|
case 7:
|
|
516
516
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
517
|
-
return [3
|
|
517
|
+
return [3, 11];
|
|
518
518
|
case 8:
|
|
519
519
|
_f = [{}];
|
|
520
|
-
return [4
|
|
520
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
521
521
|
case 9:
|
|
522
522
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
523
|
-
return [3
|
|
523
|
+
return [3, 11];
|
|
524
524
|
case 10:
|
|
525
525
|
parsedBody = parsedOutput.body;
|
|
526
526
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -530,7 +530,7 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
530
530
|
message = response.message || response.Message || errorCode;
|
|
531
531
|
response.message = message;
|
|
532
532
|
delete response.Message;
|
|
533
|
-
return [2
|
|
533
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
536
|
}); };
|
|
@@ -540,7 +540,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
540
540
|
switch (_c.label) {
|
|
541
541
|
case 0:
|
|
542
542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
-
return [2
|
|
543
|
+
return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
|
|
544
544
|
}
|
|
545
545
|
contents = {
|
|
546
546
|
$metadata: deserializeMetadata(output),
|
|
@@ -549,7 +549,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
549
549
|
};
|
|
550
550
|
_a = __expectNonNull;
|
|
551
551
|
_b = __expectObject;
|
|
552
|
-
return [4
|
|
552
|
+
return [4, parseBody(output.body, context)];
|
|
553
553
|
case 1:
|
|
554
554
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
555
555
|
if (data.environments !== undefined && data.environments !== null) {
|
|
@@ -558,7 +558,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
558
558
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
559
559
|
contents.nextToken = __expectString(data.nextToken);
|
|
560
560
|
}
|
|
561
|
-
return [2
|
|
561
|
+
return [2, Promise.resolve(contents)];
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
}); };
|
|
@@ -570,31 +570,31 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
570
570
|
case 0:
|
|
571
571
|
_a = [__assign({}, output)];
|
|
572
572
|
_e = {};
|
|
573
|
-
return [4
|
|
573
|
+
return [4, parseBody(output.body, context)];
|
|
574
574
|
case 1:
|
|
575
575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
576
576
|
errorCode = "UnknownError";
|
|
577
577
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
578
|
_b = errorCode;
|
|
579
579
|
switch (_b) {
|
|
580
|
-
case "InternalServerException": return [3
|
|
581
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
582
|
-
case "ValidationException": return [3
|
|
583
|
-
case "com.amazonaws.finspace#ValidationException": return [3
|
|
580
|
+
case "InternalServerException": return [3, 2];
|
|
581
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 2];
|
|
582
|
+
case "ValidationException": return [3, 4];
|
|
583
|
+
case "com.amazonaws.finspace#ValidationException": return [3, 4];
|
|
584
584
|
}
|
|
585
|
-
return [3
|
|
585
|
+
return [3, 6];
|
|
586
586
|
case 2:
|
|
587
587
|
_c = [{}];
|
|
588
|
-
return [4
|
|
588
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
589
589
|
case 3:
|
|
590
590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
591
|
-
return [3
|
|
591
|
+
return [3, 7];
|
|
592
592
|
case 4:
|
|
593
593
|
_d = [{}];
|
|
594
|
-
return [4
|
|
594
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
595
595
|
case 5:
|
|
596
596
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
597
|
-
return [3
|
|
597
|
+
return [3, 7];
|
|
598
598
|
case 6:
|
|
599
599
|
parsedBody = parsedOutput.body;
|
|
600
600
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -604,7 +604,7 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
604
604
|
message = response.message || response.Message || errorCode;
|
|
605
605
|
response.message = message;
|
|
606
606
|
delete response.Message;
|
|
607
|
-
return [2
|
|
607
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
610
|
}); };
|
|
@@ -614,7 +614,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
614
614
|
switch (_c.label) {
|
|
615
615
|
case 0:
|
|
616
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
-
return [2
|
|
617
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
618
618
|
}
|
|
619
619
|
contents = {
|
|
620
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -622,13 +622,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
622
622
|
};
|
|
623
623
|
_a = __expectNonNull;
|
|
624
624
|
_b = __expectObject;
|
|
625
|
-
return [4
|
|
625
|
+
return [4, parseBody(output.body, context)];
|
|
626
626
|
case 1:
|
|
627
627
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
628
628
|
if (data.tags !== undefined && data.tags !== null) {
|
|
629
629
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
630
630
|
}
|
|
631
|
-
return [2
|
|
631
|
+
return [2, Promise.resolve(contents)];
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
634
|
}); };
|
|
@@ -640,39 +640,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
640
640
|
case 0:
|
|
641
641
|
_a = [__assign({}, output)];
|
|
642
642
|
_f = {};
|
|
643
|
-
return [4
|
|
643
|
+
return [4, parseBody(output.body, context)];
|
|
644
644
|
case 1:
|
|
645
645
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
646
646
|
errorCode = "UnknownError";
|
|
647
647
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
648
|
_b = errorCode;
|
|
649
649
|
switch (_b) {
|
|
650
|
-
case "InternalServerException": return [3
|
|
651
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
652
|
-
case "InvalidRequestException": return [3
|
|
653
|
-
case "com.amazonaws.finspace#InvalidRequestException": return [3
|
|
654
|
-
case "ResourceNotFoundException": return [3
|
|
655
|
-
case "com.amazonaws.finspace#ResourceNotFoundException": return [3
|
|
650
|
+
case "InternalServerException": return [3, 2];
|
|
651
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 2];
|
|
652
|
+
case "InvalidRequestException": return [3, 4];
|
|
653
|
+
case "com.amazonaws.finspace#InvalidRequestException": return [3, 4];
|
|
654
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
655
|
+
case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
|
|
656
656
|
}
|
|
657
|
-
return [3
|
|
657
|
+
return [3, 8];
|
|
658
658
|
case 2:
|
|
659
659
|
_c = [{}];
|
|
660
|
-
return [4
|
|
660
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
661
661
|
case 3:
|
|
662
662
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
663
|
-
return [3
|
|
663
|
+
return [3, 9];
|
|
664
664
|
case 4:
|
|
665
665
|
_d = [{}];
|
|
666
|
-
return [4
|
|
666
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
667
667
|
case 5:
|
|
668
668
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
669
|
-
return [3
|
|
669
|
+
return [3, 9];
|
|
670
670
|
case 6:
|
|
671
671
|
_e = [{}];
|
|
672
|
-
return [4
|
|
672
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
673
673
|
case 7:
|
|
674
674
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
675
|
-
return [3
|
|
675
|
+
return [3, 9];
|
|
676
676
|
case 8:
|
|
677
677
|
parsedBody = parsedOutput.body;
|
|
678
678
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -682,7 +682,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
682
682
|
message = response.message || response.Message || errorCode;
|
|
683
683
|
response.message = message;
|
|
684
684
|
delete response.Message;
|
|
685
|
-
return [2
|
|
685
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
688
|
}); };
|
|
@@ -692,15 +692,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
692
692
|
switch (_a.label) {
|
|
693
693
|
case 0:
|
|
694
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return [2
|
|
695
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
696
696
|
}
|
|
697
697
|
contents = {
|
|
698
698
|
$metadata: deserializeMetadata(output),
|
|
699
699
|
};
|
|
700
|
-
return [4
|
|
700
|
+
return [4, collectBody(output.body, context)];
|
|
701
701
|
case 1:
|
|
702
702
|
_a.sent();
|
|
703
|
-
return [2
|
|
703
|
+
return [2, Promise.resolve(contents)];
|
|
704
704
|
}
|
|
705
705
|
});
|
|
706
706
|
}); };
|
|
@@ -712,39 +712,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
712
712
|
case 0:
|
|
713
713
|
_a = [__assign({}, output)];
|
|
714
714
|
_f = {};
|
|
715
|
-
return [4
|
|
715
|
+
return [4, parseBody(output.body, context)];
|
|
716
716
|
case 1:
|
|
717
717
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
718
718
|
errorCode = "UnknownError";
|
|
719
719
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
720
|
_b = errorCode;
|
|
721
721
|
switch (_b) {
|
|
722
|
-
case "InternalServerException": return [3
|
|
723
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
724
|
-
case "InvalidRequestException": return [3
|
|
725
|
-
case "com.amazonaws.finspace#InvalidRequestException": return [3
|
|
726
|
-
case "ResourceNotFoundException": return [3
|
|
727
|
-
case "com.amazonaws.finspace#ResourceNotFoundException": return [3
|
|
722
|
+
case "InternalServerException": return [3, 2];
|
|
723
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 2];
|
|
724
|
+
case "InvalidRequestException": return [3, 4];
|
|
725
|
+
case "com.amazonaws.finspace#InvalidRequestException": return [3, 4];
|
|
726
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
727
|
+
case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
|
|
728
728
|
}
|
|
729
|
-
return [3
|
|
729
|
+
return [3, 8];
|
|
730
730
|
case 2:
|
|
731
731
|
_c = [{}];
|
|
732
|
-
return [4
|
|
732
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
733
733
|
case 3:
|
|
734
734
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
735
|
-
return [3
|
|
735
|
+
return [3, 9];
|
|
736
736
|
case 4:
|
|
737
737
|
_d = [{}];
|
|
738
|
-
return [4
|
|
738
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
739
739
|
case 5:
|
|
740
740
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
741
|
-
return [3
|
|
741
|
+
return [3, 9];
|
|
742
742
|
case 6:
|
|
743
743
|
_e = [{}];
|
|
744
|
-
return [4
|
|
744
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
745
745
|
case 7:
|
|
746
746
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
747
|
-
return [3
|
|
747
|
+
return [3, 9];
|
|
748
748
|
case 8:
|
|
749
749
|
parsedBody = parsedOutput.body;
|
|
750
750
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -754,7 +754,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
754
754
|
message = response.message || response.Message || errorCode;
|
|
755
755
|
response.message = message;
|
|
756
756
|
delete response.Message;
|
|
757
|
-
return [2
|
|
757
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
760
|
}); };
|
|
@@ -764,15 +764,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
764
764
|
switch (_a.label) {
|
|
765
765
|
case 0:
|
|
766
766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return [2
|
|
767
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
768
768
|
}
|
|
769
769
|
contents = {
|
|
770
770
|
$metadata: deserializeMetadata(output),
|
|
771
771
|
};
|
|
772
|
-
return [4
|
|
772
|
+
return [4, collectBody(output.body, context)];
|
|
773
773
|
case 1:
|
|
774
774
|
_a.sent();
|
|
775
|
-
return [2
|
|
775
|
+
return [2, Promise.resolve(contents)];
|
|
776
776
|
}
|
|
777
777
|
});
|
|
778
778
|
}); };
|
|
@@ -784,39 +784,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
784
784
|
case 0:
|
|
785
785
|
_a = [__assign({}, output)];
|
|
786
786
|
_f = {};
|
|
787
|
-
return [4
|
|
787
|
+
return [4, parseBody(output.body, context)];
|
|
788
788
|
case 1:
|
|
789
789
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
790
790
|
errorCode = "UnknownError";
|
|
791
791
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
792
|
_b = errorCode;
|
|
793
793
|
switch (_b) {
|
|
794
|
-
case "InternalServerException": return [3
|
|
795
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
796
|
-
case "InvalidRequestException": return [3
|
|
797
|
-
case "com.amazonaws.finspace#InvalidRequestException": return [3
|
|
798
|
-
case "ResourceNotFoundException": return [3
|
|
799
|
-
case "com.amazonaws.finspace#ResourceNotFoundException": return [3
|
|
794
|
+
case "InternalServerException": return [3, 2];
|
|
795
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 2];
|
|
796
|
+
case "InvalidRequestException": return [3, 4];
|
|
797
|
+
case "com.amazonaws.finspace#InvalidRequestException": return [3, 4];
|
|
798
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
799
|
+
case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
|
|
800
800
|
}
|
|
801
|
-
return [3
|
|
801
|
+
return [3, 8];
|
|
802
802
|
case 2:
|
|
803
803
|
_c = [{}];
|
|
804
|
-
return [4
|
|
804
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
805
805
|
case 3:
|
|
806
806
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
807
|
-
return [3
|
|
807
|
+
return [3, 9];
|
|
808
808
|
case 4:
|
|
809
809
|
_d = [{}];
|
|
810
|
-
return [4
|
|
810
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
811
811
|
case 5:
|
|
812
812
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
813
|
-
return [3
|
|
813
|
+
return [3, 9];
|
|
814
814
|
case 6:
|
|
815
815
|
_e = [{}];
|
|
816
|
-
return [4
|
|
816
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
817
817
|
case 7:
|
|
818
818
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
819
|
-
return [3
|
|
819
|
+
return [3, 9];
|
|
820
820
|
case 8:
|
|
821
821
|
parsedBody = parsedOutput.body;
|
|
822
822
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -826,7 +826,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
826
826
|
message = response.message || response.Message || errorCode;
|
|
827
827
|
response.message = message;
|
|
828
828
|
delete response.Message;
|
|
829
|
-
return [2
|
|
829
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
}); };
|
|
@@ -836,7 +836,7 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
|
|
|
836
836
|
switch (_c.label) {
|
|
837
837
|
case 0:
|
|
838
838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
839
|
-
return [2
|
|
839
|
+
return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
|
|
840
840
|
}
|
|
841
841
|
contents = {
|
|
842
842
|
$metadata: deserializeMetadata(output),
|
|
@@ -844,13 +844,13 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
|
|
|
844
844
|
};
|
|
845
845
|
_a = __expectNonNull;
|
|
846
846
|
_b = __expectObject;
|
|
847
|
-
return [4
|
|
847
|
+
return [4, parseBody(output.body, context)];
|
|
848
848
|
case 1:
|
|
849
849
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
850
850
|
if (data.environment !== undefined && data.environment !== null) {
|
|
851
851
|
contents.environment = deserializeAws_restJson1Environment(data.environment, context);
|
|
852
852
|
}
|
|
853
|
-
return [2
|
|
853
|
+
return [2, Promise.resolve(contents)];
|
|
854
854
|
}
|
|
855
855
|
});
|
|
856
856
|
}); };
|
|
@@ -862,55 +862,55 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
|
|
|
862
862
|
case 0:
|
|
863
863
|
_a = [__assign({}, output)];
|
|
864
864
|
_h = {};
|
|
865
|
-
return [4
|
|
865
|
+
return [4, parseBody(output.body, context)];
|
|
866
866
|
case 1:
|
|
867
867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
868
868
|
errorCode = "UnknownError";
|
|
869
869
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
870
|
_b = errorCode;
|
|
871
871
|
switch (_b) {
|
|
872
|
-
case "AccessDeniedException": return [3
|
|
873
|
-
case "com.amazonaws.finspace#AccessDeniedException": return [3
|
|
874
|
-
case "InternalServerException": return [3
|
|
875
|
-
case "com.amazonaws.finspace#InternalServerException": return [3
|
|
876
|
-
case "ResourceNotFoundException": return [3
|
|
877
|
-
case "com.amazonaws.finspace#ResourceNotFoundException": return [3
|
|
878
|
-
case "ThrottlingException": return [3
|
|
879
|
-
case "com.amazonaws.finspace#ThrottlingException": return [3
|
|
880
|
-
case "ValidationException": return [3
|
|
881
|
-
case "com.amazonaws.finspace#ValidationException": return [3
|
|
872
|
+
case "AccessDeniedException": return [3, 2];
|
|
873
|
+
case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
|
|
874
|
+
case "InternalServerException": return [3, 4];
|
|
875
|
+
case "com.amazonaws.finspace#InternalServerException": return [3, 4];
|
|
876
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
877
|
+
case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
|
|
878
|
+
case "ThrottlingException": return [3, 8];
|
|
879
|
+
case "com.amazonaws.finspace#ThrottlingException": return [3, 8];
|
|
880
|
+
case "ValidationException": return [3, 10];
|
|
881
|
+
case "com.amazonaws.finspace#ValidationException": return [3, 10];
|
|
882
882
|
}
|
|
883
|
-
return [3
|
|
883
|
+
return [3, 12];
|
|
884
884
|
case 2:
|
|
885
885
|
_c = [{}];
|
|
886
|
-
return [4
|
|
886
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
887
887
|
case 3:
|
|
888
888
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
889
|
-
return [3
|
|
889
|
+
return [3, 13];
|
|
890
890
|
case 4:
|
|
891
891
|
_d = [{}];
|
|
892
|
-
return [4
|
|
892
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
893
893
|
case 5:
|
|
894
894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
895
|
-
return [3
|
|
895
|
+
return [3, 13];
|
|
896
896
|
case 6:
|
|
897
897
|
_e = [{}];
|
|
898
|
-
return [4
|
|
898
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
899
899
|
case 7:
|
|
900
900
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
901
|
-
return [3
|
|
901
|
+
return [3, 13];
|
|
902
902
|
case 8:
|
|
903
903
|
_f = [{}];
|
|
904
|
-
return [4
|
|
904
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
905
905
|
case 9:
|
|
906
906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
907
|
-
return [3
|
|
907
|
+
return [3, 13];
|
|
908
908
|
case 10:
|
|
909
909
|
_g = [{}];
|
|
910
|
-
return [4
|
|
910
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
911
911
|
case 11:
|
|
912
912
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
913
|
-
return [3
|
|
913
|
+
return [3, 13];
|
|
914
914
|
case 12:
|
|
915
915
|
parsedBody = parsedOutput.body;
|
|
916
916
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -920,7 +920,7 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
|
|
|
920
920
|
message = response.message || response.Message || errorCode;
|
|
921
921
|
response.message = message;
|
|
922
922
|
delete response.Message;
|
|
923
|
-
return [2
|
|
923
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
924
924
|
}
|
|
925
925
|
});
|
|
926
926
|
}); };
|
|
@@ -933,7 +933,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
933
933
|
$metadata: deserializeMetadata(parsedOutput),
|
|
934
934
|
};
|
|
935
935
|
data = parsedOutput.body;
|
|
936
|
-
return [2
|
|
936
|
+
return [2, contents];
|
|
937
937
|
});
|
|
938
938
|
}); };
|
|
939
939
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -949,7 +949,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
949
949
|
if (data.message !== undefined && data.message !== null) {
|
|
950
950
|
contents.message = __expectString(data.message);
|
|
951
951
|
}
|
|
952
|
-
return [2
|
|
952
|
+
return [2, contents];
|
|
953
953
|
});
|
|
954
954
|
}); };
|
|
955
955
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -965,7 +965,7 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
965
965
|
if (data.message !== undefined && data.message !== null) {
|
|
966
966
|
contents.message = __expectString(data.message);
|
|
967
967
|
}
|
|
968
|
-
return [2
|
|
968
|
+
return [2, contents];
|
|
969
969
|
});
|
|
970
970
|
}); };
|
|
971
971
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -981,7 +981,7 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
981
981
|
if (data.message !== undefined && data.message !== null) {
|
|
982
982
|
contents.message = __expectString(data.message);
|
|
983
983
|
}
|
|
984
|
-
return [2
|
|
984
|
+
return [2, contents];
|
|
985
985
|
});
|
|
986
986
|
}); };
|
|
987
987
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -997,7 +997,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
997
997
|
if (data.message !== undefined && data.message !== null) {
|
|
998
998
|
contents.message = __expectString(data.message);
|
|
999
999
|
}
|
|
1000
|
-
return [2
|
|
1000
|
+
return [2, contents];
|
|
1001
1001
|
});
|
|
1002
1002
|
}); };
|
|
1003
1003
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1013,7 +1013,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1013
1013
|
if (data.message !== undefined && data.message !== null) {
|
|
1014
1014
|
contents.message = __expectString(data.message);
|
|
1015
1015
|
}
|
|
1016
|
-
return [2
|
|
1016
|
+
return [2, contents];
|
|
1017
1017
|
});
|
|
1018
1018
|
}); };
|
|
1019
1019
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1025,7 +1025,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
1025
1025
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1026
1026
|
};
|
|
1027
1027
|
data = parsedOutput.body;
|
|
1028
|
-
return [2
|
|
1028
|
+
return [2, contents];
|
|
1029
1029
|
});
|
|
1030
1030
|
}); };
|
|
1031
1031
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1041,7 +1041,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1041
1041
|
if (data.message !== undefined && data.message !== null) {
|
|
1042
1042
|
contents.message = __expectString(data.message);
|
|
1043
1043
|
}
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, contents];
|
|
1045
1045
|
});
|
|
1046
1046
|
}); };
|
|
1047
1047
|
var serializeAws_restJson1AttributeMap = function (input, context) {
|
|
@@ -1141,7 +1141,6 @@ var deserializeMetadata = function (output) {
|
|
|
1141
1141
|
cfId: output.headers["x-amz-cf-id"],
|
|
1142
1142
|
});
|
|
1143
1143
|
};
|
|
1144
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1145
1144
|
var collectBody = function (streamBody, context) {
|
|
1146
1145
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1147
1146
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1149,7 +1148,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1149
1148
|
}
|
|
1150
1149
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1151
1150
|
};
|
|
1152
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1153
1151
|
var collectBodyString = function (streamBody, context) {
|
|
1154
1152
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1155
1153
|
};
|
|
@@ -1168,9 +1166,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1168
1166
|
return {};
|
|
1169
1167
|
});
|
|
1170
1168
|
};
|
|
1171
|
-
/**
|
|
1172
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1173
|
-
*/
|
|
1174
1169
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1175
1170
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1176
1171
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -1195,4 +1190,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1195
1190
|
}
|
|
1196
1191
|
return "";
|
|
1197
1192
|
};
|
|
1198
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|