@aws-sdk/client-chime-sdk-identity 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +294 -598
- package/dist-es/protocols/Aws_restJson1.js +384 -601
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ChimeSDKIdentityServiceException as __BaseException } from "../models/ChimeSDKIdentityServiceException";
|
|
6
6
|
import { BadRequestException, ConflictException, ForbiddenException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1CreateAppInstanceCommand = function (input, con
|
|
|
30
30
|
});
|
|
31
31
|
}); };
|
|
32
32
|
export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
33
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -40,16 +40,7 @@ export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input
|
|
|
40
40
|
"content-type": "application/json",
|
|
41
41
|
};
|
|
42
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}/admins";
|
|
43
|
-
|
|
44
|
-
labelValue = input.AppInstanceArn;
|
|
45
|
-
if (labelValue.length <= 0) {
|
|
46
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
47
|
-
}
|
|
48
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
52
|
-
}
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
53
44
|
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn != null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
54
45
|
return [2, new __HttpRequest({
|
|
55
46
|
protocol: protocol,
|
|
@@ -89,7 +80,7 @@ export var serializeAws_restJson1CreateAppInstanceUserCommand = function (input,
|
|
|
89
80
|
});
|
|
90
81
|
}); };
|
|
91
82
|
export var serializeAws_restJson1DeleteAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
83
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
93
84
|
return __generator(this, function (_c) {
|
|
94
85
|
switch (_c.label) {
|
|
95
86
|
case 0: return [4, context.endpoint()];
|
|
@@ -97,16 +88,7 @@ export var serializeAws_restJson1DeleteAppInstanceCommand = function (input, con
|
|
|
97
88
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
98
89
|
headers = {};
|
|
99
90
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}";
|
|
100
|
-
|
|
101
|
-
labelValue = input.AppInstanceArn;
|
|
102
|
-
if (labelValue.length <= 0) {
|
|
103
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
104
|
-
}
|
|
105
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
109
|
-
}
|
|
91
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
110
92
|
return [2, new __HttpRequest({
|
|
111
93
|
protocol: protocol,
|
|
112
94
|
hostname: hostname,
|
|
@@ -120,7 +102,7 @@ export var serializeAws_restJson1DeleteAppInstanceCommand = function (input, con
|
|
|
120
102
|
});
|
|
121
103
|
}); };
|
|
122
104
|
export var serializeAws_restJson1DeleteAppInstanceAdminCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
123
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
105
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
124
106
|
return __generator(this, function (_c) {
|
|
125
107
|
switch (_c.label) {
|
|
126
108
|
case 0: return [4, context.endpoint()];
|
|
@@ -129,26 +111,8 @@ export var serializeAws_restJson1DeleteAppInstanceAdminCommand = function (input
|
|
|
129
111
|
headers = {};
|
|
130
112
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
131
113
|
"/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}";
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (labelValue.length <= 0) {
|
|
135
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceAdminArn.");
|
|
136
|
-
}
|
|
137
|
-
resolvedPath = resolvedPath.replace("{AppInstanceAdminArn}", __extendedEncodeURIComponent(labelValue));
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
throw new Error("No value provided for input HTTP label: AppInstanceAdminArn.");
|
|
141
|
-
}
|
|
142
|
-
if (input.AppInstanceArn !== undefined) {
|
|
143
|
-
labelValue = input.AppInstanceArn;
|
|
144
|
-
if (labelValue.length <= 0) {
|
|
145
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
146
|
-
}
|
|
147
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
151
|
-
}
|
|
114
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceAdminArn", function () { return input.AppInstanceAdminArn; }, "{AppInstanceAdminArn}", false);
|
|
115
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
152
116
|
return [2, new __HttpRequest({
|
|
153
117
|
protocol: protocol,
|
|
154
118
|
hostname: hostname,
|
|
@@ -162,7 +126,7 @@ export var serializeAws_restJson1DeleteAppInstanceAdminCommand = function (input
|
|
|
162
126
|
});
|
|
163
127
|
}); };
|
|
164
128
|
export var serializeAws_restJson1DeleteAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
165
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
129
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
166
130
|
return __generator(this, function (_c) {
|
|
167
131
|
switch (_c.label) {
|
|
168
132
|
case 0: return [4, context.endpoint()];
|
|
@@ -170,16 +134,7 @@ export var serializeAws_restJson1DeleteAppInstanceUserCommand = function (input,
|
|
|
170
134
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
171
135
|
headers = {};
|
|
172
136
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users/{AppInstanceUserArn}";
|
|
173
|
-
|
|
174
|
-
labelValue = input.AppInstanceUserArn;
|
|
175
|
-
if (labelValue.length <= 0) {
|
|
176
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
177
|
-
}
|
|
178
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
182
|
-
}
|
|
137
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
183
138
|
return [2, new __HttpRequest({
|
|
184
139
|
protocol: protocol,
|
|
185
140
|
hostname: hostname,
|
|
@@ -193,7 +148,7 @@ export var serializeAws_restJson1DeleteAppInstanceUserCommand = function (input,
|
|
|
193
148
|
});
|
|
194
149
|
}); };
|
|
195
150
|
export var serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
196
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
151
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
197
152
|
return __generator(this, function (_c) {
|
|
198
153
|
switch (_c.label) {
|
|
199
154
|
case 0: return [4, context.endpoint()];
|
|
@@ -202,26 +157,8 @@ export var serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = func
|
|
|
202
157
|
headers = {};
|
|
203
158
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
204
159
|
"/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}";
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
if (labelValue.length <= 0) {
|
|
208
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
209
|
-
}
|
|
210
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
214
|
-
}
|
|
215
|
-
if (input.EndpointId !== undefined) {
|
|
216
|
-
labelValue = input.EndpointId;
|
|
217
|
-
if (labelValue.length <= 0) {
|
|
218
|
-
throw new Error("Empty value provided for input HTTP label: EndpointId.");
|
|
219
|
-
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{EndpointId}", __extendedEncodeURIComponent(labelValue));
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
throw new Error("No value provided for input HTTP label: EndpointId.");
|
|
224
|
-
}
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
161
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", function () { return input.EndpointId; }, "{EndpointId}", false);
|
|
225
162
|
return [2, new __HttpRequest({
|
|
226
163
|
protocol: protocol,
|
|
227
164
|
hostname: hostname,
|
|
@@ -235,7 +172,7 @@ export var serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = func
|
|
|
235
172
|
});
|
|
236
173
|
}); };
|
|
237
174
|
export var serializeAws_restJson1DescribeAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
175
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
239
176
|
return __generator(this, function (_c) {
|
|
240
177
|
switch (_c.label) {
|
|
241
178
|
case 0: return [4, context.endpoint()];
|
|
@@ -243,16 +180,7 @@ export var serializeAws_restJson1DescribeAppInstanceCommand = function (input, c
|
|
|
243
180
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
244
181
|
headers = {};
|
|
245
182
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}";
|
|
246
|
-
|
|
247
|
-
labelValue = input.AppInstanceArn;
|
|
248
|
-
if (labelValue.length <= 0) {
|
|
249
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
250
|
-
}
|
|
251
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
255
|
-
}
|
|
183
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
256
184
|
return [2, new __HttpRequest({
|
|
257
185
|
protocol: protocol,
|
|
258
186
|
hostname: hostname,
|
|
@@ -266,7 +194,7 @@ export var serializeAws_restJson1DescribeAppInstanceCommand = function (input, c
|
|
|
266
194
|
});
|
|
267
195
|
}); };
|
|
268
196
|
export var serializeAws_restJson1DescribeAppInstanceAdminCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
197
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
270
198
|
return __generator(this, function (_c) {
|
|
271
199
|
switch (_c.label) {
|
|
272
200
|
case 0: return [4, context.endpoint()];
|
|
@@ -275,26 +203,8 @@ export var serializeAws_restJson1DescribeAppInstanceAdminCommand = function (inp
|
|
|
275
203
|
headers = {};
|
|
276
204
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
277
205
|
"/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}";
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
if (labelValue.length <= 0) {
|
|
281
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceAdminArn.");
|
|
282
|
-
}
|
|
283
|
-
resolvedPath = resolvedPath.replace("{AppInstanceAdminArn}", __extendedEncodeURIComponent(labelValue));
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
throw new Error("No value provided for input HTTP label: AppInstanceAdminArn.");
|
|
287
|
-
}
|
|
288
|
-
if (input.AppInstanceArn !== undefined) {
|
|
289
|
-
labelValue = input.AppInstanceArn;
|
|
290
|
-
if (labelValue.length <= 0) {
|
|
291
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
292
|
-
}
|
|
293
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
297
|
-
}
|
|
206
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceAdminArn", function () { return input.AppInstanceAdminArn; }, "{AppInstanceAdminArn}", false);
|
|
207
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
298
208
|
return [2, new __HttpRequest({
|
|
299
209
|
protocol: protocol,
|
|
300
210
|
hostname: hostname,
|
|
@@ -308,7 +218,7 @@ export var serializeAws_restJson1DescribeAppInstanceAdminCommand = function (inp
|
|
|
308
218
|
});
|
|
309
219
|
}); };
|
|
310
220
|
export var serializeAws_restJson1DescribeAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
311
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
221
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
312
222
|
return __generator(this, function (_c) {
|
|
313
223
|
switch (_c.label) {
|
|
314
224
|
case 0: return [4, context.endpoint()];
|
|
@@ -316,16 +226,7 @@ export var serializeAws_restJson1DescribeAppInstanceUserCommand = function (inpu
|
|
|
316
226
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
317
227
|
headers = {};
|
|
318
228
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users/{AppInstanceUserArn}";
|
|
319
|
-
|
|
320
|
-
labelValue = input.AppInstanceUserArn;
|
|
321
|
-
if (labelValue.length <= 0) {
|
|
322
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
323
|
-
}
|
|
324
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
328
|
-
}
|
|
229
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
329
230
|
return [2, new __HttpRequest({
|
|
330
231
|
protocol: protocol,
|
|
331
232
|
hostname: hostname,
|
|
@@ -339,7 +240,7 @@ export var serializeAws_restJson1DescribeAppInstanceUserCommand = function (inpu
|
|
|
339
240
|
});
|
|
340
241
|
}); };
|
|
341
242
|
export var serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
342
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
243
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
343
244
|
return __generator(this, function (_c) {
|
|
344
245
|
switch (_c.label) {
|
|
345
246
|
case 0: return [4, context.endpoint()];
|
|
@@ -348,26 +249,8 @@ export var serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = functi
|
|
|
348
249
|
headers = {};
|
|
349
250
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
350
251
|
"/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}";
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
if (labelValue.length <= 0) {
|
|
354
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
355
|
-
}
|
|
356
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
360
|
-
}
|
|
361
|
-
if (input.EndpointId !== undefined) {
|
|
362
|
-
labelValue = input.EndpointId;
|
|
363
|
-
if (labelValue.length <= 0) {
|
|
364
|
-
throw new Error("Empty value provided for input HTTP label: EndpointId.");
|
|
365
|
-
}
|
|
366
|
-
resolvedPath = resolvedPath.replace("{EndpointId}", __extendedEncodeURIComponent(labelValue));
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
throw new Error("No value provided for input HTTP label: EndpointId.");
|
|
370
|
-
}
|
|
252
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
253
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", function () { return input.EndpointId; }, "{EndpointId}", false);
|
|
371
254
|
return [2, new __HttpRequest({
|
|
372
255
|
protocol: protocol,
|
|
373
256
|
hostname: hostname,
|
|
@@ -381,7 +264,7 @@ export var serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = functi
|
|
|
381
264
|
});
|
|
382
265
|
}); };
|
|
383
266
|
export var serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
384
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
267
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
385
268
|
return __generator(this, function (_c) {
|
|
386
269
|
switch (_c.label) {
|
|
387
270
|
case 0: return [4, context.endpoint()];
|
|
@@ -390,16 +273,7 @@ export var serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = functi
|
|
|
390
273
|
headers = {};
|
|
391
274
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
392
275
|
"/app-instances/{AppInstanceArn}/retention-settings";
|
|
393
|
-
|
|
394
|
-
labelValue = input.AppInstanceArn;
|
|
395
|
-
if (labelValue.length <= 0) {
|
|
396
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
397
|
-
}
|
|
398
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
399
|
-
}
|
|
400
|
-
else {
|
|
401
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
402
|
-
}
|
|
276
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
403
277
|
return [2, new __HttpRequest({
|
|
404
278
|
protocol: protocol,
|
|
405
279
|
hostname: hostname,
|
|
@@ -413,7 +287,7 @@ export var serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = functi
|
|
|
413
287
|
});
|
|
414
288
|
}); };
|
|
415
289
|
export var serializeAws_restJson1ListAppInstanceAdminsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
416
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
290
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
417
291
|
return __generator(this, function (_c) {
|
|
418
292
|
switch (_c.label) {
|
|
419
293
|
case 0: return [4, context.endpoint()];
|
|
@@ -421,17 +295,11 @@ export var serializeAws_restJson1ListAppInstanceAdminsCommand = function (input,
|
|
|
421
295
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
422
296
|
headers = {};
|
|
423
297
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}/admins";
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
430
|
-
}
|
|
431
|
-
else {
|
|
432
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
433
|
-
}
|
|
434
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
299
|
+
query = map({
|
|
300
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
301
|
+
"next-token": [, input.NextToken],
|
|
302
|
+
});
|
|
435
303
|
return [2, new __HttpRequest({
|
|
436
304
|
protocol: protocol,
|
|
437
305
|
hostname: hostname,
|
|
@@ -454,7 +322,10 @@ export var serializeAws_restJson1ListAppInstancesCommand = function (input, cont
|
|
|
454
322
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
455
323
|
headers = {};
|
|
456
324
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
457
|
-
query =
|
|
325
|
+
query = map({
|
|
326
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
327
|
+
"next-token": [, input.NextToken],
|
|
328
|
+
});
|
|
458
329
|
return [2, new __HttpRequest({
|
|
459
330
|
protocol: protocol,
|
|
460
331
|
hostname: hostname,
|
|
@@ -469,7 +340,7 @@ export var serializeAws_restJson1ListAppInstancesCommand = function (input, cont
|
|
|
469
340
|
});
|
|
470
341
|
}); };
|
|
471
342
|
export var serializeAws_restJson1ListAppInstanceUserEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
472
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
343
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
473
344
|
return __generator(this, function (_c) {
|
|
474
345
|
switch (_c.label) {
|
|
475
346
|
case 0: return [4, context.endpoint()];
|
|
@@ -478,17 +349,11 @@ export var serializeAws_restJson1ListAppInstanceUserEndpointsCommand = function
|
|
|
478
349
|
headers = {};
|
|
479
350
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
480
351
|
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
487
|
-
}
|
|
488
|
-
else {
|
|
489
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
490
|
-
}
|
|
491
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
352
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
353
|
+
query = map({
|
|
354
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
355
|
+
"next-token": [, input.NextToken],
|
|
356
|
+
});
|
|
492
357
|
return [2, new __HttpRequest({
|
|
493
358
|
protocol: protocol,
|
|
494
359
|
hostname: hostname,
|
|
@@ -511,7 +376,11 @@ export var serializeAws_restJson1ListAppInstanceUsersCommand = function (input,
|
|
|
511
376
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
512
377
|
headers = {};
|
|
513
378
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users";
|
|
514
|
-
query =
|
|
379
|
+
query = map({
|
|
380
|
+
"app-instance-arn": [, input.AppInstanceArn],
|
|
381
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
382
|
+
"next-token": [, input.NextToken],
|
|
383
|
+
});
|
|
515
384
|
return [2, new __HttpRequest({
|
|
516
385
|
protocol: protocol,
|
|
517
386
|
hostname: hostname,
|
|
@@ -534,7 +403,9 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
534
403
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
535
404
|
headers = {};
|
|
536
405
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
537
|
-
query =
|
|
406
|
+
query = map({
|
|
407
|
+
arn: [, input.ResourceARN],
|
|
408
|
+
});
|
|
538
409
|
return [2, new __HttpRequest({
|
|
539
410
|
protocol: protocol,
|
|
540
411
|
hostname: hostname,
|
|
@@ -549,7 +420,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
549
420
|
});
|
|
550
421
|
}); };
|
|
551
422
|
export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
423
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
553
424
|
return __generator(this, function (_c) {
|
|
554
425
|
switch (_c.label) {
|
|
555
426
|
case 0: return [4, context.endpoint()];
|
|
@@ -560,16 +431,7 @@ export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = functi
|
|
|
560
431
|
};
|
|
561
432
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
562
433
|
"/app-instances/{AppInstanceArn}/retention-settings";
|
|
563
|
-
|
|
564
|
-
labelValue = input.AppInstanceArn;
|
|
565
|
-
if (labelValue.length <= 0) {
|
|
566
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
567
|
-
}
|
|
568
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
572
|
-
}
|
|
434
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
573
435
|
body = JSON.stringify(__assign({}, (input.AppInstanceRetentionSettings != null && {
|
|
574
436
|
AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
575
437
|
})));
|
|
@@ -586,7 +448,7 @@ export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = functi
|
|
|
586
448
|
});
|
|
587
449
|
}); };
|
|
588
450
|
export var serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
589
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
451
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
590
452
|
var _c;
|
|
591
453
|
return __generator(this, function (_d) {
|
|
592
454
|
switch (_d.label) {
|
|
@@ -598,16 +460,7 @@ export var serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = functi
|
|
|
598
460
|
};
|
|
599
461
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
600
462
|
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
601
|
-
|
|
602
|
-
labelValue = input.AppInstanceUserArn;
|
|
603
|
-
if (labelValue.length <= 0) {
|
|
604
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
605
|
-
}
|
|
606
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
607
|
-
}
|
|
608
|
-
else {
|
|
609
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
610
|
-
}
|
|
463
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
611
464
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowMessages != null && { AllowMessages: input.AllowMessages })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.EndpointAttributes != null && {
|
|
612
465
|
EndpointAttributes: serializeAws_restJson1EndpointAttributes(input.EndpointAttributes, context),
|
|
613
466
|
})), (input.Name != null && { Name: input.Name })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Type != null && { Type: input.Type })));
|
|
@@ -634,9 +487,9 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
634
487
|
"content-type": "application/json",
|
|
635
488
|
};
|
|
636
489
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
637
|
-
query = {
|
|
638
|
-
operation: "tag-resource",
|
|
639
|
-
};
|
|
490
|
+
query = map({
|
|
491
|
+
operation: [, "tag-resource"],
|
|
492
|
+
});
|
|
640
493
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
641
494
|
return [2, new __HttpRequest({
|
|
642
495
|
protocol: protocol,
|
|
@@ -662,9 +515,9 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
662
515
|
"content-type": "application/json",
|
|
663
516
|
};
|
|
664
517
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
665
|
-
query = {
|
|
666
|
-
operation: "untag-resource",
|
|
667
|
-
};
|
|
518
|
+
query = map({
|
|
519
|
+
operation: [, "untag-resource"],
|
|
520
|
+
});
|
|
668
521
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
669
522
|
return [2, new __HttpRequest({
|
|
670
523
|
protocol: protocol,
|
|
@@ -680,7 +533,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
680
533
|
});
|
|
681
534
|
}); };
|
|
682
535
|
export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
683
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
536
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
684
537
|
return __generator(this, function (_c) {
|
|
685
538
|
switch (_c.label) {
|
|
686
539
|
case 0: return [4, context.endpoint()];
|
|
@@ -690,16 +543,7 @@ export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, con
|
|
|
690
543
|
"content-type": "application/json",
|
|
691
544
|
};
|
|
692
545
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}";
|
|
693
|
-
|
|
694
|
-
labelValue = input.AppInstanceArn;
|
|
695
|
-
if (labelValue.length <= 0) {
|
|
696
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceArn.");
|
|
697
|
-
}
|
|
698
|
-
resolvedPath = resolvedPath.replace("{AppInstanceArn}", __extendedEncodeURIComponent(labelValue));
|
|
699
|
-
}
|
|
700
|
-
else {
|
|
701
|
-
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
702
|
-
}
|
|
546
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
703
547
|
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
704
548
|
return [2, new __HttpRequest({
|
|
705
549
|
protocol: protocol,
|
|
@@ -714,7 +558,7 @@ export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, con
|
|
|
714
558
|
});
|
|
715
559
|
}); };
|
|
716
560
|
export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
717
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
561
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
718
562
|
return __generator(this, function (_c) {
|
|
719
563
|
switch (_c.label) {
|
|
720
564
|
case 0: return [4, context.endpoint()];
|
|
@@ -724,16 +568,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input,
|
|
|
724
568
|
"content-type": "application/json",
|
|
725
569
|
};
|
|
726
570
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users/{AppInstanceUserArn}";
|
|
727
|
-
|
|
728
|
-
labelValue = input.AppInstanceUserArn;
|
|
729
|
-
if (labelValue.length <= 0) {
|
|
730
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
731
|
-
}
|
|
732
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
733
|
-
}
|
|
734
|
-
else {
|
|
735
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
736
|
-
}
|
|
571
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
737
572
|
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
738
573
|
return [2, new __HttpRequest({
|
|
739
574
|
protocol: protocol,
|
|
@@ -748,7 +583,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input,
|
|
|
748
583
|
});
|
|
749
584
|
}); };
|
|
750
585
|
export var serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
751
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
586
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
752
587
|
return __generator(this, function (_c) {
|
|
753
588
|
switch (_c.label) {
|
|
754
589
|
case 0: return [4, context.endpoint()];
|
|
@@ -759,26 +594,8 @@ export var serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = function
|
|
|
759
594
|
};
|
|
760
595
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
761
596
|
"/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}";
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
if (labelValue.length <= 0) {
|
|
765
|
-
throw new Error("Empty value provided for input HTTP label: AppInstanceUserArn.");
|
|
766
|
-
}
|
|
767
|
-
resolvedPath = resolvedPath.replace("{AppInstanceUserArn}", __extendedEncodeURIComponent(labelValue));
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
771
|
-
}
|
|
772
|
-
if (input.EndpointId !== undefined) {
|
|
773
|
-
labelValue = input.EndpointId;
|
|
774
|
-
if (labelValue.length <= 0) {
|
|
775
|
-
throw new Error("Empty value provided for input HTTP label: EndpointId.");
|
|
776
|
-
}
|
|
777
|
-
resolvedPath = resolvedPath.replace("{EndpointId}", __extendedEncodeURIComponent(labelValue));
|
|
778
|
-
}
|
|
779
|
-
else {
|
|
780
|
-
throw new Error("No value provided for input HTTP label: EndpointId.");
|
|
781
|
-
}
|
|
597
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
598
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", function () { return input.EndpointId; }, "{EndpointId}", false);
|
|
782
599
|
body = JSON.stringify(__assign(__assign({}, (input.AllowMessages != null && { AllowMessages: input.AllowMessages })), (input.Name != null && { Name: input.Name })));
|
|
783
600
|
return [2, new __HttpRequest({
|
|
784
601
|
protocol: protocol,
|
|
@@ -800,24 +617,23 @@ export var deserializeAws_restJson1CreateAppInstanceCommand = function (output,
|
|
|
800
617
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
801
618
|
return [2, deserializeAws_restJson1CreateAppInstanceCommandError(output, context)];
|
|
802
619
|
}
|
|
803
|
-
contents = {
|
|
620
|
+
contents = map({
|
|
804
621
|
$metadata: deserializeMetadata(output),
|
|
805
|
-
|
|
806
|
-
};
|
|
622
|
+
});
|
|
807
623
|
_a = __expectNonNull;
|
|
808
624
|
_b = __expectObject;
|
|
809
625
|
return [4, parseBody(output.body, context)];
|
|
810
626
|
case 1:
|
|
811
627
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
812
|
-
if (data.AppInstanceArn
|
|
628
|
+
if (data.AppInstanceArn != null) {
|
|
813
629
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
814
630
|
}
|
|
815
|
-
return [2,
|
|
631
|
+
return [2, contents];
|
|
816
632
|
}
|
|
817
633
|
});
|
|
818
634
|
}); };
|
|
819
635
|
var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
820
|
-
var parsedOutput, _a,
|
|
636
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
821
637
|
var _c;
|
|
822
638
|
return __generator(this, function (_d) {
|
|
823
639
|
switch (_d.label) {
|
|
@@ -866,14 +682,14 @@ var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, co
|
|
|
866
682
|
case 17: throw _d.sent();
|
|
867
683
|
case 18:
|
|
868
684
|
parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
$metadata: $metadata,
|
|
685
|
+
throwDefaultError({
|
|
686
|
+
output: output,
|
|
687
|
+
parsedBody: parsedBody,
|
|
688
|
+
exceptionCtor: __BaseException,
|
|
689
|
+
errorCode: errorCode,
|
|
875
690
|
});
|
|
876
|
-
|
|
691
|
+
_d.label = 19;
|
|
692
|
+
case 19: return [2];
|
|
877
693
|
}
|
|
878
694
|
});
|
|
879
695
|
}); };
|
|
@@ -885,28 +701,26 @@ export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (out
|
|
|
885
701
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
886
702
|
return [2, deserializeAws_restJson1CreateAppInstanceAdminCommandError(output, context)];
|
|
887
703
|
}
|
|
888
|
-
contents = {
|
|
704
|
+
contents = map({
|
|
889
705
|
$metadata: deserializeMetadata(output),
|
|
890
|
-
|
|
891
|
-
AppInstanceArn: undefined,
|
|
892
|
-
};
|
|
706
|
+
});
|
|
893
707
|
_a = __expectNonNull;
|
|
894
708
|
_b = __expectObject;
|
|
895
709
|
return [4, parseBody(output.body, context)];
|
|
896
710
|
case 1:
|
|
897
711
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
898
|
-
if (data.AppInstanceAdmin
|
|
712
|
+
if (data.AppInstanceAdmin != null) {
|
|
899
713
|
contents.AppInstanceAdmin = deserializeAws_restJson1Identity(data.AppInstanceAdmin, context);
|
|
900
714
|
}
|
|
901
|
-
if (data.AppInstanceArn
|
|
715
|
+
if (data.AppInstanceArn != null) {
|
|
902
716
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
903
717
|
}
|
|
904
|
-
return [2,
|
|
718
|
+
return [2, contents];
|
|
905
719
|
}
|
|
906
720
|
});
|
|
907
721
|
}); };
|
|
908
722
|
var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
909
|
-
var parsedOutput, _a,
|
|
723
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
910
724
|
var _c;
|
|
911
725
|
return __generator(this, function (_d) {
|
|
912
726
|
switch (_d.label) {
|
|
@@ -955,14 +769,14 @@ var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (outpu
|
|
|
955
769
|
case 17: throw _d.sent();
|
|
956
770
|
case 18:
|
|
957
771
|
parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
$metadata: $metadata,
|
|
772
|
+
throwDefaultError({
|
|
773
|
+
output: output,
|
|
774
|
+
parsedBody: parsedBody,
|
|
775
|
+
exceptionCtor: __BaseException,
|
|
776
|
+
errorCode: errorCode,
|
|
964
777
|
});
|
|
965
|
-
|
|
778
|
+
_d.label = 19;
|
|
779
|
+
case 19: return [2];
|
|
966
780
|
}
|
|
967
781
|
});
|
|
968
782
|
}); };
|
|
@@ -974,24 +788,23 @@ export var deserializeAws_restJson1CreateAppInstanceUserCommand = function (outp
|
|
|
974
788
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
975
789
|
return [2, deserializeAws_restJson1CreateAppInstanceUserCommandError(output, context)];
|
|
976
790
|
}
|
|
977
|
-
contents = {
|
|
791
|
+
contents = map({
|
|
978
792
|
$metadata: deserializeMetadata(output),
|
|
979
|
-
|
|
980
|
-
};
|
|
793
|
+
});
|
|
981
794
|
_a = __expectNonNull;
|
|
982
795
|
_b = __expectObject;
|
|
983
796
|
return [4, parseBody(output.body, context)];
|
|
984
797
|
case 1:
|
|
985
798
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
986
|
-
if (data.AppInstanceUserArn
|
|
799
|
+
if (data.AppInstanceUserArn != null) {
|
|
987
800
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
988
801
|
}
|
|
989
|
-
return [2,
|
|
802
|
+
return [2, contents];
|
|
990
803
|
}
|
|
991
804
|
});
|
|
992
805
|
}); };
|
|
993
806
|
var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
994
|
-
var parsedOutput, _a,
|
|
807
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
995
808
|
var _c;
|
|
996
809
|
return __generator(this, function (_d) {
|
|
997
810
|
switch (_d.label) {
|
|
@@ -1040,14 +853,14 @@ var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output
|
|
|
1040
853
|
case 17: throw _d.sent();
|
|
1041
854
|
case 18:
|
|
1042
855
|
parsedBody = parsedOutput.body;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
$metadata: $metadata,
|
|
856
|
+
throwDefaultError({
|
|
857
|
+
output: output,
|
|
858
|
+
parsedBody: parsedBody,
|
|
859
|
+
exceptionCtor: __BaseException,
|
|
860
|
+
errorCode: errorCode,
|
|
1049
861
|
});
|
|
1050
|
-
|
|
862
|
+
_d.label = 19;
|
|
863
|
+
case 19: return [2];
|
|
1051
864
|
}
|
|
1052
865
|
});
|
|
1053
866
|
}); };
|
|
@@ -1059,18 +872,18 @@ export var deserializeAws_restJson1DeleteAppInstanceCommand = function (output,
|
|
|
1059
872
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1060
873
|
return [2, deserializeAws_restJson1DeleteAppInstanceCommandError(output, context)];
|
|
1061
874
|
}
|
|
1062
|
-
contents = {
|
|
875
|
+
contents = map({
|
|
1063
876
|
$metadata: deserializeMetadata(output),
|
|
1064
|
-
};
|
|
877
|
+
});
|
|
1065
878
|
return [4, collectBody(output.body, context)];
|
|
1066
879
|
case 1:
|
|
1067
880
|
_a.sent();
|
|
1068
|
-
return [2,
|
|
881
|
+
return [2, contents];
|
|
1069
882
|
}
|
|
1070
883
|
});
|
|
1071
884
|
}); };
|
|
1072
885
|
var deserializeAws_restJson1DeleteAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1073
|
-
var parsedOutput, _a,
|
|
886
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1074
887
|
var _c;
|
|
1075
888
|
return __generator(this, function (_d) {
|
|
1076
889
|
switch (_d.label) {
|
|
@@ -1115,14 +928,14 @@ var deserializeAws_restJson1DeleteAppInstanceCommandError = function (output, co
|
|
|
1115
928
|
case 15: throw _d.sent();
|
|
1116
929
|
case 16:
|
|
1117
930
|
parsedBody = parsedOutput.body;
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
$metadata: $metadata,
|
|
931
|
+
throwDefaultError({
|
|
932
|
+
output: output,
|
|
933
|
+
parsedBody: parsedBody,
|
|
934
|
+
exceptionCtor: __BaseException,
|
|
935
|
+
errorCode: errorCode,
|
|
1124
936
|
});
|
|
1125
|
-
|
|
937
|
+
_d.label = 17;
|
|
938
|
+
case 17: return [2];
|
|
1126
939
|
}
|
|
1127
940
|
});
|
|
1128
941
|
}); };
|
|
@@ -1134,18 +947,18 @@ export var deserializeAws_restJson1DeleteAppInstanceAdminCommand = function (out
|
|
|
1134
947
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1135
948
|
return [2, deserializeAws_restJson1DeleteAppInstanceAdminCommandError(output, context)];
|
|
1136
949
|
}
|
|
1137
|
-
contents = {
|
|
950
|
+
contents = map({
|
|
1138
951
|
$metadata: deserializeMetadata(output),
|
|
1139
|
-
};
|
|
952
|
+
});
|
|
1140
953
|
return [4, collectBody(output.body, context)];
|
|
1141
954
|
case 1:
|
|
1142
955
|
_a.sent();
|
|
1143
|
-
return [2,
|
|
956
|
+
return [2, contents];
|
|
1144
957
|
}
|
|
1145
958
|
});
|
|
1146
959
|
}); };
|
|
1147
960
|
var deserializeAws_restJson1DeleteAppInstanceAdminCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1148
|
-
var parsedOutput, _a,
|
|
961
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1149
962
|
var _c;
|
|
1150
963
|
return __generator(this, function (_d) {
|
|
1151
964
|
switch (_d.label) {
|
|
@@ -1194,14 +1007,14 @@ var deserializeAws_restJson1DeleteAppInstanceAdminCommandError = function (outpu
|
|
|
1194
1007
|
case 17: throw _d.sent();
|
|
1195
1008
|
case 18:
|
|
1196
1009
|
parsedBody = parsedOutput.body;
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
$metadata: $metadata,
|
|
1010
|
+
throwDefaultError({
|
|
1011
|
+
output: output,
|
|
1012
|
+
parsedBody: parsedBody,
|
|
1013
|
+
exceptionCtor: __BaseException,
|
|
1014
|
+
errorCode: errorCode,
|
|
1203
1015
|
});
|
|
1204
|
-
|
|
1016
|
+
_d.label = 19;
|
|
1017
|
+
case 19: return [2];
|
|
1205
1018
|
}
|
|
1206
1019
|
});
|
|
1207
1020
|
}); };
|
|
@@ -1213,18 +1026,18 @@ export var deserializeAws_restJson1DeleteAppInstanceUserCommand = function (outp
|
|
|
1213
1026
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1214
1027
|
return [2, deserializeAws_restJson1DeleteAppInstanceUserCommandError(output, context)];
|
|
1215
1028
|
}
|
|
1216
|
-
contents = {
|
|
1029
|
+
contents = map({
|
|
1217
1030
|
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1031
|
+
});
|
|
1219
1032
|
return [4, collectBody(output.body, context)];
|
|
1220
1033
|
case 1:
|
|
1221
1034
|
_a.sent();
|
|
1222
|
-
return [2,
|
|
1035
|
+
return [2, contents];
|
|
1223
1036
|
}
|
|
1224
1037
|
});
|
|
1225
1038
|
}); };
|
|
1226
1039
|
var deserializeAws_restJson1DeleteAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1227
|
-
var parsedOutput, _a,
|
|
1040
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1228
1041
|
var _c;
|
|
1229
1042
|
return __generator(this, function (_d) {
|
|
1230
1043
|
switch (_d.label) {
|
|
@@ -1273,14 +1086,14 @@ var deserializeAws_restJson1DeleteAppInstanceUserCommandError = function (output
|
|
|
1273
1086
|
case 17: throw _d.sent();
|
|
1274
1087
|
case 18:
|
|
1275
1088
|
parsedBody = parsedOutput.body;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
$metadata: $metadata,
|
|
1089
|
+
throwDefaultError({
|
|
1090
|
+
output: output,
|
|
1091
|
+
parsedBody: parsedBody,
|
|
1092
|
+
exceptionCtor: __BaseException,
|
|
1093
|
+
errorCode: errorCode,
|
|
1282
1094
|
});
|
|
1283
|
-
|
|
1095
|
+
_d.label = 19;
|
|
1096
|
+
case 19: return [2];
|
|
1284
1097
|
}
|
|
1285
1098
|
});
|
|
1286
1099
|
}); };
|
|
@@ -1292,18 +1105,18 @@ export var deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = fu
|
|
|
1292
1105
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1293
1106
|
return [2, deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError(output, context)];
|
|
1294
1107
|
}
|
|
1295
|
-
contents = {
|
|
1108
|
+
contents = map({
|
|
1296
1109
|
$metadata: deserializeMetadata(output),
|
|
1297
|
-
};
|
|
1110
|
+
});
|
|
1298
1111
|
return [4, collectBody(output.body, context)];
|
|
1299
1112
|
case 1:
|
|
1300
1113
|
_a.sent();
|
|
1301
|
-
return [2,
|
|
1114
|
+
return [2, contents];
|
|
1302
1115
|
}
|
|
1303
1116
|
});
|
|
1304
1117
|
}); };
|
|
1305
1118
|
var deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1306
|
-
var parsedOutput, _a,
|
|
1119
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1307
1120
|
var _c;
|
|
1308
1121
|
return __generator(this, function (_d) {
|
|
1309
1122
|
switch (_d.label) {
|
|
@@ -1344,14 +1157,14 @@ var deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = func
|
|
|
1344
1157
|
case 13: throw _d.sent();
|
|
1345
1158
|
case 14:
|
|
1346
1159
|
parsedBody = parsedOutput.body;
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
$metadata: $metadata,
|
|
1160
|
+
throwDefaultError({
|
|
1161
|
+
output: output,
|
|
1162
|
+
parsedBody: parsedBody,
|
|
1163
|
+
exceptionCtor: __BaseException,
|
|
1164
|
+
errorCode: errorCode,
|
|
1353
1165
|
});
|
|
1354
|
-
|
|
1166
|
+
_d.label = 15;
|
|
1167
|
+
case 15: return [2];
|
|
1355
1168
|
}
|
|
1356
1169
|
});
|
|
1357
1170
|
}); };
|
|
@@ -1363,24 +1176,23 @@ export var deserializeAws_restJson1DescribeAppInstanceCommand = function (output
|
|
|
1363
1176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
1177
|
return [2, deserializeAws_restJson1DescribeAppInstanceCommandError(output, context)];
|
|
1365
1178
|
}
|
|
1366
|
-
contents = {
|
|
1179
|
+
contents = map({
|
|
1367
1180
|
$metadata: deserializeMetadata(output),
|
|
1368
|
-
|
|
1369
|
-
};
|
|
1181
|
+
});
|
|
1370
1182
|
_a = __expectNonNull;
|
|
1371
1183
|
_b = __expectObject;
|
|
1372
1184
|
return [4, parseBody(output.body, context)];
|
|
1373
1185
|
case 1:
|
|
1374
1186
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1375
|
-
if (data.AppInstance
|
|
1187
|
+
if (data.AppInstance != null) {
|
|
1376
1188
|
contents.AppInstance = deserializeAws_restJson1AppInstance(data.AppInstance, context);
|
|
1377
1189
|
}
|
|
1378
|
-
return [2,
|
|
1190
|
+
return [2, contents];
|
|
1379
1191
|
}
|
|
1380
1192
|
});
|
|
1381
1193
|
}); };
|
|
1382
1194
|
var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1383
|
-
var parsedOutput, _a,
|
|
1195
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1384
1196
|
var _c;
|
|
1385
1197
|
return __generator(this, function (_d) {
|
|
1386
1198
|
switch (_d.label) {
|
|
@@ -1421,14 +1233,14 @@ var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output,
|
|
|
1421
1233
|
case 13: throw _d.sent();
|
|
1422
1234
|
case 14:
|
|
1423
1235
|
parsedBody = parsedOutput.body;
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
$metadata: $metadata,
|
|
1236
|
+
throwDefaultError({
|
|
1237
|
+
output: output,
|
|
1238
|
+
parsedBody: parsedBody,
|
|
1239
|
+
exceptionCtor: __BaseException,
|
|
1240
|
+
errorCode: errorCode,
|
|
1430
1241
|
});
|
|
1431
|
-
|
|
1242
|
+
_d.label = 15;
|
|
1243
|
+
case 15: return [2];
|
|
1432
1244
|
}
|
|
1433
1245
|
});
|
|
1434
1246
|
}); };
|
|
@@ -1440,24 +1252,23 @@ export var deserializeAws_restJson1DescribeAppInstanceAdminCommand = function (o
|
|
|
1440
1252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
1253
|
return [2, deserializeAws_restJson1DescribeAppInstanceAdminCommandError(output, context)];
|
|
1442
1254
|
}
|
|
1443
|
-
contents = {
|
|
1255
|
+
contents = map({
|
|
1444
1256
|
$metadata: deserializeMetadata(output),
|
|
1445
|
-
|
|
1446
|
-
};
|
|
1257
|
+
});
|
|
1447
1258
|
_a = __expectNonNull;
|
|
1448
1259
|
_b = __expectObject;
|
|
1449
1260
|
return [4, parseBody(output.body, context)];
|
|
1450
1261
|
case 1:
|
|
1451
1262
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1452
|
-
if (data.AppInstanceAdmin
|
|
1263
|
+
if (data.AppInstanceAdmin != null) {
|
|
1453
1264
|
contents.AppInstanceAdmin = deserializeAws_restJson1AppInstanceAdmin(data.AppInstanceAdmin, context);
|
|
1454
1265
|
}
|
|
1455
|
-
return [2,
|
|
1266
|
+
return [2, contents];
|
|
1456
1267
|
}
|
|
1457
1268
|
});
|
|
1458
1269
|
}); };
|
|
1459
1270
|
var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1460
|
-
var parsedOutput, _a,
|
|
1271
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1461
1272
|
var _c;
|
|
1462
1273
|
return __generator(this, function (_d) {
|
|
1463
1274
|
switch (_d.label) {
|
|
@@ -1498,14 +1309,14 @@ var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (out
|
|
|
1498
1309
|
case 13: throw _d.sent();
|
|
1499
1310
|
case 14:
|
|
1500
1311
|
parsedBody = parsedOutput.body;
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
$metadata: $metadata,
|
|
1312
|
+
throwDefaultError({
|
|
1313
|
+
output: output,
|
|
1314
|
+
parsedBody: parsedBody,
|
|
1315
|
+
exceptionCtor: __BaseException,
|
|
1316
|
+
errorCode: errorCode,
|
|
1507
1317
|
});
|
|
1508
|
-
|
|
1318
|
+
_d.label = 15;
|
|
1319
|
+
case 15: return [2];
|
|
1509
1320
|
}
|
|
1510
1321
|
});
|
|
1511
1322
|
}); };
|
|
@@ -1517,24 +1328,23 @@ export var deserializeAws_restJson1DescribeAppInstanceUserCommand = function (ou
|
|
|
1517
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1518
1329
|
return [2, deserializeAws_restJson1DescribeAppInstanceUserCommandError(output, context)];
|
|
1519
1330
|
}
|
|
1520
|
-
contents = {
|
|
1331
|
+
contents = map({
|
|
1521
1332
|
$metadata: deserializeMetadata(output),
|
|
1522
|
-
|
|
1523
|
-
};
|
|
1333
|
+
});
|
|
1524
1334
|
_a = __expectNonNull;
|
|
1525
1335
|
_b = __expectObject;
|
|
1526
1336
|
return [4, parseBody(output.body, context)];
|
|
1527
1337
|
case 1:
|
|
1528
1338
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1529
|
-
if (data.AppInstanceUser
|
|
1339
|
+
if (data.AppInstanceUser != null) {
|
|
1530
1340
|
contents.AppInstanceUser = deserializeAws_restJson1AppInstanceUser(data.AppInstanceUser, context);
|
|
1531
1341
|
}
|
|
1532
|
-
return [2,
|
|
1342
|
+
return [2, contents];
|
|
1533
1343
|
}
|
|
1534
1344
|
});
|
|
1535
1345
|
}); };
|
|
1536
1346
|
var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1537
|
-
var parsedOutput, _a,
|
|
1347
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1538
1348
|
var _c;
|
|
1539
1349
|
return __generator(this, function (_d) {
|
|
1540
1350
|
switch (_d.label) {
|
|
@@ -1575,14 +1385,14 @@ var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (outp
|
|
|
1575
1385
|
case 13: throw _d.sent();
|
|
1576
1386
|
case 14:
|
|
1577
1387
|
parsedBody = parsedOutput.body;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
$metadata: $metadata,
|
|
1388
|
+
throwDefaultError({
|
|
1389
|
+
output: output,
|
|
1390
|
+
parsedBody: parsedBody,
|
|
1391
|
+
exceptionCtor: __BaseException,
|
|
1392
|
+
errorCode: errorCode,
|
|
1584
1393
|
});
|
|
1585
|
-
|
|
1394
|
+
_d.label = 15;
|
|
1395
|
+
case 15: return [2];
|
|
1586
1396
|
}
|
|
1587
1397
|
});
|
|
1588
1398
|
}); };
|
|
@@ -1594,24 +1404,23 @@ export var deserializeAws_restJson1DescribeAppInstanceUserEndpointCommand = func
|
|
|
1594
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
1405
|
return [2, deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError(output, context)];
|
|
1596
1406
|
}
|
|
1597
|
-
contents = {
|
|
1407
|
+
contents = map({
|
|
1598
1408
|
$metadata: deserializeMetadata(output),
|
|
1599
|
-
|
|
1600
|
-
};
|
|
1409
|
+
});
|
|
1601
1410
|
_a = __expectNonNull;
|
|
1602
1411
|
_b = __expectObject;
|
|
1603
1412
|
return [4, parseBody(output.body, context)];
|
|
1604
1413
|
case 1:
|
|
1605
1414
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1606
|
-
if (data.AppInstanceUserEndpoint
|
|
1415
|
+
if (data.AppInstanceUserEndpoint != null) {
|
|
1607
1416
|
contents.AppInstanceUserEndpoint = deserializeAws_restJson1AppInstanceUserEndpoint(data.AppInstanceUserEndpoint, context);
|
|
1608
1417
|
}
|
|
1609
|
-
return [2,
|
|
1418
|
+
return [2, contents];
|
|
1610
1419
|
}
|
|
1611
1420
|
});
|
|
1612
1421
|
}); };
|
|
1613
1422
|
var deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1614
|
-
var parsedOutput, _a,
|
|
1423
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1615
1424
|
var _c;
|
|
1616
1425
|
return __generator(this, function (_d) {
|
|
1617
1426
|
switch (_d.label) {
|
|
@@ -1652,14 +1461,14 @@ var deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = functi
|
|
|
1652
1461
|
case 13: throw _d.sent();
|
|
1653
1462
|
case 14:
|
|
1654
1463
|
parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
$metadata: $metadata,
|
|
1464
|
+
throwDefaultError({
|
|
1465
|
+
output: output,
|
|
1466
|
+
parsedBody: parsedBody,
|
|
1467
|
+
exceptionCtor: __BaseException,
|
|
1468
|
+
errorCode: errorCode,
|
|
1661
1469
|
});
|
|
1662
|
-
|
|
1470
|
+
_d.label = 15;
|
|
1471
|
+
case 15: return [2];
|
|
1663
1472
|
}
|
|
1664
1473
|
});
|
|
1665
1474
|
}); };
|
|
@@ -1671,28 +1480,26 @@ export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = func
|
|
|
1671
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
1481
|
return [2, deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError(output, context)];
|
|
1673
1482
|
}
|
|
1674
|
-
contents = {
|
|
1483
|
+
contents = map({
|
|
1675
1484
|
$metadata: deserializeMetadata(output),
|
|
1676
|
-
|
|
1677
|
-
InitiateDeletionTimestamp: undefined,
|
|
1678
|
-
};
|
|
1485
|
+
});
|
|
1679
1486
|
_a = __expectNonNull;
|
|
1680
1487
|
_b = __expectObject;
|
|
1681
1488
|
return [4, parseBody(output.body, context)];
|
|
1682
1489
|
case 1:
|
|
1683
1490
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1684
|
-
if (data.AppInstanceRetentionSettings
|
|
1491
|
+
if (data.AppInstanceRetentionSettings != null) {
|
|
1685
1492
|
contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1686
1493
|
}
|
|
1687
|
-
if (data.InitiateDeletionTimestamp
|
|
1494
|
+
if (data.InitiateDeletionTimestamp != null) {
|
|
1688
1495
|
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1689
1496
|
}
|
|
1690
|
-
return [2,
|
|
1497
|
+
return [2, contents];
|
|
1691
1498
|
}
|
|
1692
1499
|
});
|
|
1693
1500
|
}); };
|
|
1694
1501
|
var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1695
|
-
var parsedOutput, _a,
|
|
1502
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1696
1503
|
var _c;
|
|
1697
1504
|
return __generator(this, function (_d) {
|
|
1698
1505
|
switch (_d.label) {
|
|
@@ -1733,14 +1540,14 @@ var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = functi
|
|
|
1733
1540
|
case 13: throw _d.sent();
|
|
1734
1541
|
case 14:
|
|
1735
1542
|
parsedBody = parsedOutput.body;
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
$metadata: $metadata,
|
|
1543
|
+
throwDefaultError({
|
|
1544
|
+
output: output,
|
|
1545
|
+
parsedBody: parsedBody,
|
|
1546
|
+
exceptionCtor: __BaseException,
|
|
1547
|
+
errorCode: errorCode,
|
|
1742
1548
|
});
|
|
1743
|
-
|
|
1549
|
+
_d.label = 15;
|
|
1550
|
+
case 15: return [2];
|
|
1744
1551
|
}
|
|
1745
1552
|
});
|
|
1746
1553
|
}); };
|
|
@@ -1752,32 +1559,29 @@ export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (outp
|
|
|
1752
1559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
1560
|
return [2, deserializeAws_restJson1ListAppInstanceAdminsCommandError(output, context)];
|
|
1754
1561
|
}
|
|
1755
|
-
contents = {
|
|
1562
|
+
contents = map({
|
|
1756
1563
|
$metadata: deserializeMetadata(output),
|
|
1757
|
-
|
|
1758
|
-
AppInstanceArn: undefined,
|
|
1759
|
-
NextToken: undefined,
|
|
1760
|
-
};
|
|
1564
|
+
});
|
|
1761
1565
|
_a = __expectNonNull;
|
|
1762
1566
|
_b = __expectObject;
|
|
1763
1567
|
return [4, parseBody(output.body, context)];
|
|
1764
1568
|
case 1:
|
|
1765
1569
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1766
|
-
if (data.AppInstanceAdmins
|
|
1570
|
+
if (data.AppInstanceAdmins != null) {
|
|
1767
1571
|
contents.AppInstanceAdmins = deserializeAws_restJson1AppInstanceAdminList(data.AppInstanceAdmins, context);
|
|
1768
1572
|
}
|
|
1769
|
-
if (data.AppInstanceArn
|
|
1573
|
+
if (data.AppInstanceArn != null) {
|
|
1770
1574
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
1771
1575
|
}
|
|
1772
|
-
if (data.NextToken
|
|
1576
|
+
if (data.NextToken != null) {
|
|
1773
1577
|
contents.NextToken = __expectString(data.NextToken);
|
|
1774
1578
|
}
|
|
1775
|
-
return [2,
|
|
1579
|
+
return [2, contents];
|
|
1776
1580
|
}
|
|
1777
1581
|
});
|
|
1778
1582
|
}); };
|
|
1779
1583
|
var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1780
|
-
var parsedOutput, _a,
|
|
1584
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1781
1585
|
var _c;
|
|
1782
1586
|
return __generator(this, function (_d) {
|
|
1783
1587
|
switch (_d.label) {
|
|
@@ -1822,14 +1626,14 @@ var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output
|
|
|
1822
1626
|
case 15: throw _d.sent();
|
|
1823
1627
|
case 16:
|
|
1824
1628
|
parsedBody = parsedOutput.body;
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
$metadata: $metadata,
|
|
1629
|
+
throwDefaultError({
|
|
1630
|
+
output: output,
|
|
1631
|
+
parsedBody: parsedBody,
|
|
1632
|
+
exceptionCtor: __BaseException,
|
|
1633
|
+
errorCode: errorCode,
|
|
1831
1634
|
});
|
|
1832
|
-
|
|
1635
|
+
_d.label = 17;
|
|
1636
|
+
case 17: return [2];
|
|
1833
1637
|
}
|
|
1834
1638
|
});
|
|
1835
1639
|
}); };
|
|
@@ -1841,28 +1645,26 @@ export var deserializeAws_restJson1ListAppInstancesCommand = function (output, c
|
|
|
1841
1645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1842
1646
|
return [2, deserializeAws_restJson1ListAppInstancesCommandError(output, context)];
|
|
1843
1647
|
}
|
|
1844
|
-
contents = {
|
|
1648
|
+
contents = map({
|
|
1845
1649
|
$metadata: deserializeMetadata(output),
|
|
1846
|
-
|
|
1847
|
-
NextToken: undefined,
|
|
1848
|
-
};
|
|
1650
|
+
});
|
|
1849
1651
|
_a = __expectNonNull;
|
|
1850
1652
|
_b = __expectObject;
|
|
1851
1653
|
return [4, parseBody(output.body, context)];
|
|
1852
1654
|
case 1:
|
|
1853
1655
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1854
|
-
if (data.AppInstances
|
|
1656
|
+
if (data.AppInstances != null) {
|
|
1855
1657
|
contents.AppInstances = deserializeAws_restJson1AppInstanceList(data.AppInstances, context);
|
|
1856
1658
|
}
|
|
1857
|
-
if (data.NextToken
|
|
1659
|
+
if (data.NextToken != null) {
|
|
1858
1660
|
contents.NextToken = __expectString(data.NextToken);
|
|
1859
1661
|
}
|
|
1860
|
-
return [2,
|
|
1662
|
+
return [2, contents];
|
|
1861
1663
|
}
|
|
1862
1664
|
});
|
|
1863
1665
|
}); };
|
|
1864
1666
|
var deserializeAws_restJson1ListAppInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1865
|
-
var parsedOutput, _a,
|
|
1667
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1866
1668
|
var _c;
|
|
1867
1669
|
return __generator(this, function (_d) {
|
|
1868
1670
|
switch (_d.label) {
|
|
@@ -1903,14 +1705,14 @@ var deserializeAws_restJson1ListAppInstancesCommandError = function (output, con
|
|
|
1903
1705
|
case 13: throw _d.sent();
|
|
1904
1706
|
case 14:
|
|
1905
1707
|
parsedBody = parsedOutput.body;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
$metadata: $metadata,
|
|
1708
|
+
throwDefaultError({
|
|
1709
|
+
output: output,
|
|
1710
|
+
parsedBody: parsedBody,
|
|
1711
|
+
exceptionCtor: __BaseException,
|
|
1712
|
+
errorCode: errorCode,
|
|
1912
1713
|
});
|
|
1913
|
-
|
|
1714
|
+
_d.label = 15;
|
|
1715
|
+
case 15: return [2];
|
|
1914
1716
|
}
|
|
1915
1717
|
});
|
|
1916
1718
|
}); };
|
|
@@ -1922,28 +1724,26 @@ export var deserializeAws_restJson1ListAppInstanceUserEndpointsCommand = functio
|
|
|
1922
1724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1923
1725
|
return [2, deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError(output, context)];
|
|
1924
1726
|
}
|
|
1925
|
-
contents = {
|
|
1727
|
+
contents = map({
|
|
1926
1728
|
$metadata: deserializeMetadata(output),
|
|
1927
|
-
|
|
1928
|
-
NextToken: undefined,
|
|
1929
|
-
};
|
|
1729
|
+
});
|
|
1930
1730
|
_a = __expectNonNull;
|
|
1931
1731
|
_b = __expectObject;
|
|
1932
1732
|
return [4, parseBody(output.body, context)];
|
|
1933
1733
|
case 1:
|
|
1934
1734
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1935
|
-
if (data.AppInstanceUserEndpoints
|
|
1735
|
+
if (data.AppInstanceUserEndpoints != null) {
|
|
1936
1736
|
contents.AppInstanceUserEndpoints = deserializeAws_restJson1AppInstanceUserEndpointSummaryList(data.AppInstanceUserEndpoints, context);
|
|
1937
1737
|
}
|
|
1938
|
-
if (data.NextToken
|
|
1738
|
+
if (data.NextToken != null) {
|
|
1939
1739
|
contents.NextToken = __expectString(data.NextToken);
|
|
1940
1740
|
}
|
|
1941
|
-
return [2,
|
|
1741
|
+
return [2, contents];
|
|
1942
1742
|
}
|
|
1943
1743
|
});
|
|
1944
1744
|
}); };
|
|
1945
1745
|
var deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1946
|
-
var parsedOutput, _a,
|
|
1746
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1947
1747
|
var _c;
|
|
1948
1748
|
return __generator(this, function (_d) {
|
|
1949
1749
|
switch (_d.label) {
|
|
@@ -1984,14 +1784,14 @@ var deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = function
|
|
|
1984
1784
|
case 13: throw _d.sent();
|
|
1985
1785
|
case 14:
|
|
1986
1786
|
parsedBody = parsedOutput.body;
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
$metadata: $metadata,
|
|
1787
|
+
throwDefaultError({
|
|
1788
|
+
output: output,
|
|
1789
|
+
parsedBody: parsedBody,
|
|
1790
|
+
exceptionCtor: __BaseException,
|
|
1791
|
+
errorCode: errorCode,
|
|
1993
1792
|
});
|
|
1994
|
-
|
|
1793
|
+
_d.label = 15;
|
|
1794
|
+
case 15: return [2];
|
|
1995
1795
|
}
|
|
1996
1796
|
});
|
|
1997
1797
|
}); };
|
|
@@ -2003,32 +1803,29 @@ export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (outpu
|
|
|
2003
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2004
1804
|
return [2, deserializeAws_restJson1ListAppInstanceUsersCommandError(output, context)];
|
|
2005
1805
|
}
|
|
2006
|
-
contents = {
|
|
1806
|
+
contents = map({
|
|
2007
1807
|
$metadata: deserializeMetadata(output),
|
|
2008
|
-
|
|
2009
|
-
AppInstanceUsers: undefined,
|
|
2010
|
-
NextToken: undefined,
|
|
2011
|
-
};
|
|
1808
|
+
});
|
|
2012
1809
|
_a = __expectNonNull;
|
|
2013
1810
|
_b = __expectObject;
|
|
2014
1811
|
return [4, parseBody(output.body, context)];
|
|
2015
1812
|
case 1:
|
|
2016
1813
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2017
|
-
if (data.AppInstanceArn
|
|
1814
|
+
if (data.AppInstanceArn != null) {
|
|
2018
1815
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
2019
1816
|
}
|
|
2020
|
-
if (data.AppInstanceUsers
|
|
1817
|
+
if (data.AppInstanceUsers != null) {
|
|
2021
1818
|
contents.AppInstanceUsers = deserializeAws_restJson1AppInstanceUserList(data.AppInstanceUsers, context);
|
|
2022
1819
|
}
|
|
2023
|
-
if (data.NextToken
|
|
1820
|
+
if (data.NextToken != null) {
|
|
2024
1821
|
contents.NextToken = __expectString(data.NextToken);
|
|
2025
1822
|
}
|
|
2026
|
-
return [2,
|
|
1823
|
+
return [2, contents];
|
|
2027
1824
|
}
|
|
2028
1825
|
});
|
|
2029
1826
|
}); };
|
|
2030
1827
|
var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2031
|
-
var parsedOutput, _a,
|
|
1828
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2032
1829
|
var _c;
|
|
2033
1830
|
return __generator(this, function (_d) {
|
|
2034
1831
|
switch (_d.label) {
|
|
@@ -2069,14 +1866,14 @@ var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output,
|
|
|
2069
1866
|
case 13: throw _d.sent();
|
|
2070
1867
|
case 14:
|
|
2071
1868
|
parsedBody = parsedOutput.body;
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
$metadata: $metadata,
|
|
1869
|
+
throwDefaultError({
|
|
1870
|
+
output: output,
|
|
1871
|
+
parsedBody: parsedBody,
|
|
1872
|
+
exceptionCtor: __BaseException,
|
|
1873
|
+
errorCode: errorCode,
|
|
2078
1874
|
});
|
|
2079
|
-
|
|
1875
|
+
_d.label = 15;
|
|
1876
|
+
case 15: return [2];
|
|
2080
1877
|
}
|
|
2081
1878
|
});
|
|
2082
1879
|
}); };
|
|
@@ -2088,24 +1885,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2088
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2089
1886
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2090
1887
|
}
|
|
2091
|
-
contents = {
|
|
1888
|
+
contents = map({
|
|
2092
1889
|
$metadata: deserializeMetadata(output),
|
|
2093
|
-
|
|
2094
|
-
};
|
|
1890
|
+
});
|
|
2095
1891
|
_a = __expectNonNull;
|
|
2096
1892
|
_b = __expectObject;
|
|
2097
1893
|
return [4, parseBody(output.body, context)];
|
|
2098
1894
|
case 1:
|
|
2099
1895
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2100
|
-
if (data.Tags
|
|
1896
|
+
if (data.Tags != null) {
|
|
2101
1897
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
2102
1898
|
}
|
|
2103
|
-
return [2,
|
|
1899
|
+
return [2, contents];
|
|
2104
1900
|
}
|
|
2105
1901
|
});
|
|
2106
1902
|
}); };
|
|
2107
1903
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2108
|
-
var parsedOutput, _a,
|
|
1904
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2109
1905
|
var _c;
|
|
2110
1906
|
return __generator(this, function (_d) {
|
|
2111
1907
|
switch (_d.label) {
|
|
@@ -2146,14 +1942,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2146
1942
|
case 13: throw _d.sent();
|
|
2147
1943
|
case 14:
|
|
2148
1944
|
parsedBody = parsedOutput.body;
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
$metadata: $metadata,
|
|
1945
|
+
throwDefaultError({
|
|
1946
|
+
output: output,
|
|
1947
|
+
parsedBody: parsedBody,
|
|
1948
|
+
exceptionCtor: __BaseException,
|
|
1949
|
+
errorCode: errorCode,
|
|
2155
1950
|
});
|
|
2156
|
-
|
|
1951
|
+
_d.label = 15;
|
|
1952
|
+
case 15: return [2];
|
|
2157
1953
|
}
|
|
2158
1954
|
});
|
|
2159
1955
|
}); };
|
|
@@ -2165,28 +1961,26 @@ export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = func
|
|
|
2165
1961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2166
1962
|
return [2, deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError(output, context)];
|
|
2167
1963
|
}
|
|
2168
|
-
contents = {
|
|
1964
|
+
contents = map({
|
|
2169
1965
|
$metadata: deserializeMetadata(output),
|
|
2170
|
-
|
|
2171
|
-
InitiateDeletionTimestamp: undefined,
|
|
2172
|
-
};
|
|
1966
|
+
});
|
|
2173
1967
|
_a = __expectNonNull;
|
|
2174
1968
|
_b = __expectObject;
|
|
2175
1969
|
return [4, parseBody(output.body, context)];
|
|
2176
1970
|
case 1:
|
|
2177
1971
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2178
|
-
if (data.AppInstanceRetentionSettings
|
|
1972
|
+
if (data.AppInstanceRetentionSettings != null) {
|
|
2179
1973
|
contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
2180
1974
|
}
|
|
2181
|
-
if (data.InitiateDeletionTimestamp
|
|
1975
|
+
if (data.InitiateDeletionTimestamp != null) {
|
|
2182
1976
|
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
2183
1977
|
}
|
|
2184
|
-
return [2,
|
|
1978
|
+
return [2, contents];
|
|
2185
1979
|
}
|
|
2186
1980
|
});
|
|
2187
1981
|
}); };
|
|
2188
1982
|
var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2189
|
-
var parsedOutput, _a,
|
|
1983
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2190
1984
|
var _c;
|
|
2191
1985
|
return __generator(this, function (_d) {
|
|
2192
1986
|
switch (_d.label) {
|
|
@@ -2227,14 +2021,14 @@ var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = functi
|
|
|
2227
2021
|
case 13: throw _d.sent();
|
|
2228
2022
|
case 14:
|
|
2229
2023
|
parsedBody = parsedOutput.body;
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
$metadata: $metadata,
|
|
2024
|
+
throwDefaultError({
|
|
2025
|
+
output: output,
|
|
2026
|
+
parsedBody: parsedBody,
|
|
2027
|
+
exceptionCtor: __BaseException,
|
|
2028
|
+
errorCode: errorCode,
|
|
2236
2029
|
});
|
|
2237
|
-
|
|
2030
|
+
_d.label = 15;
|
|
2031
|
+
case 15: return [2];
|
|
2238
2032
|
}
|
|
2239
2033
|
});
|
|
2240
2034
|
}); };
|
|
@@ -2246,28 +2040,26 @@ export var deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = func
|
|
|
2246
2040
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2247
2041
|
return [2, deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError(output, context)];
|
|
2248
2042
|
}
|
|
2249
|
-
contents = {
|
|
2043
|
+
contents = map({
|
|
2250
2044
|
$metadata: deserializeMetadata(output),
|
|
2251
|
-
|
|
2252
|
-
EndpointId: undefined,
|
|
2253
|
-
};
|
|
2045
|
+
});
|
|
2254
2046
|
_a = __expectNonNull;
|
|
2255
2047
|
_b = __expectObject;
|
|
2256
2048
|
return [4, parseBody(output.body, context)];
|
|
2257
2049
|
case 1:
|
|
2258
2050
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2259
|
-
if (data.AppInstanceUserArn
|
|
2051
|
+
if (data.AppInstanceUserArn != null) {
|
|
2260
2052
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2261
2053
|
}
|
|
2262
|
-
if (data.EndpointId
|
|
2054
|
+
if (data.EndpointId != null) {
|
|
2263
2055
|
contents.EndpointId = __expectString(data.EndpointId);
|
|
2264
2056
|
}
|
|
2265
|
-
return [2,
|
|
2057
|
+
return [2, contents];
|
|
2266
2058
|
}
|
|
2267
2059
|
});
|
|
2268
2060
|
}); };
|
|
2269
2061
|
var deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2270
|
-
var parsedOutput, _a,
|
|
2062
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2271
2063
|
var _c;
|
|
2272
2064
|
return __generator(this, function (_d) {
|
|
2273
2065
|
switch (_d.label) {
|
|
@@ -2316,14 +2108,14 @@ var deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = functi
|
|
|
2316
2108
|
case 17: throw _d.sent();
|
|
2317
2109
|
case 18:
|
|
2318
2110
|
parsedBody = parsedOutput.body;
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
$metadata: $metadata,
|
|
2111
|
+
throwDefaultError({
|
|
2112
|
+
output: output,
|
|
2113
|
+
parsedBody: parsedBody,
|
|
2114
|
+
exceptionCtor: __BaseException,
|
|
2115
|
+
errorCode: errorCode,
|
|
2325
2116
|
});
|
|
2326
|
-
|
|
2117
|
+
_d.label = 19;
|
|
2118
|
+
case 19: return [2];
|
|
2327
2119
|
}
|
|
2328
2120
|
});
|
|
2329
2121
|
}); };
|
|
@@ -2335,18 +2127,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2335
2127
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2336
2128
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2337
2129
|
}
|
|
2338
|
-
contents = {
|
|
2130
|
+
contents = map({
|
|
2339
2131
|
$metadata: deserializeMetadata(output),
|
|
2340
|
-
};
|
|
2132
|
+
});
|
|
2341
2133
|
return [4, collectBody(output.body, context)];
|
|
2342
2134
|
case 1:
|
|
2343
2135
|
_a.sent();
|
|
2344
|
-
return [2,
|
|
2136
|
+
return [2, contents];
|
|
2345
2137
|
}
|
|
2346
2138
|
});
|
|
2347
2139
|
}); };
|
|
2348
2140
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2349
|
-
var parsedOutput, _a,
|
|
2141
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2350
2142
|
var _c;
|
|
2351
2143
|
return __generator(this, function (_d) {
|
|
2352
2144
|
switch (_d.label) {
|
|
@@ -2391,14 +2183,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2391
2183
|
case 15: throw _d.sent();
|
|
2392
2184
|
case 16:
|
|
2393
2185
|
parsedBody = parsedOutput.body;
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
$metadata: $metadata,
|
|
2186
|
+
throwDefaultError({
|
|
2187
|
+
output: output,
|
|
2188
|
+
parsedBody: parsedBody,
|
|
2189
|
+
exceptionCtor: __BaseException,
|
|
2190
|
+
errorCode: errorCode,
|
|
2400
2191
|
});
|
|
2401
|
-
|
|
2192
|
+
_d.label = 17;
|
|
2193
|
+
case 17: return [2];
|
|
2402
2194
|
}
|
|
2403
2195
|
});
|
|
2404
2196
|
}); };
|
|
@@ -2410,18 +2202,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2410
2202
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2411
2203
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2412
2204
|
}
|
|
2413
|
-
contents = {
|
|
2205
|
+
contents = map({
|
|
2414
2206
|
$metadata: deserializeMetadata(output),
|
|
2415
|
-
};
|
|
2207
|
+
});
|
|
2416
2208
|
return [4, collectBody(output.body, context)];
|
|
2417
2209
|
case 1:
|
|
2418
2210
|
_a.sent();
|
|
2419
|
-
return [2,
|
|
2211
|
+
return [2, contents];
|
|
2420
2212
|
}
|
|
2421
2213
|
});
|
|
2422
2214
|
}); };
|
|
2423
2215
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2424
|
-
var parsedOutput, _a,
|
|
2216
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2425
2217
|
var _c;
|
|
2426
2218
|
return __generator(this, function (_d) {
|
|
2427
2219
|
switch (_d.label) {
|
|
@@ -2462,14 +2254,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2462
2254
|
case 13: throw _d.sent();
|
|
2463
2255
|
case 14:
|
|
2464
2256
|
parsedBody = parsedOutput.body;
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
$metadata: $metadata,
|
|
2257
|
+
throwDefaultError({
|
|
2258
|
+
output: output,
|
|
2259
|
+
parsedBody: parsedBody,
|
|
2260
|
+
exceptionCtor: __BaseException,
|
|
2261
|
+
errorCode: errorCode,
|
|
2471
2262
|
});
|
|
2472
|
-
|
|
2263
|
+
_d.label = 15;
|
|
2264
|
+
case 15: return [2];
|
|
2473
2265
|
}
|
|
2474
2266
|
});
|
|
2475
2267
|
}); };
|
|
@@ -2481,24 +2273,23 @@ export var deserializeAws_restJson1UpdateAppInstanceCommand = function (output,
|
|
|
2481
2273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2482
2274
|
return [2, deserializeAws_restJson1UpdateAppInstanceCommandError(output, context)];
|
|
2483
2275
|
}
|
|
2484
|
-
contents = {
|
|
2276
|
+
contents = map({
|
|
2485
2277
|
$metadata: deserializeMetadata(output),
|
|
2486
|
-
|
|
2487
|
-
};
|
|
2278
|
+
});
|
|
2488
2279
|
_a = __expectNonNull;
|
|
2489
2280
|
_b = __expectObject;
|
|
2490
2281
|
return [4, parseBody(output.body, context)];
|
|
2491
2282
|
case 1:
|
|
2492
2283
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2493
|
-
if (data.AppInstanceArn
|
|
2284
|
+
if (data.AppInstanceArn != null) {
|
|
2494
2285
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
2495
2286
|
}
|
|
2496
|
-
return [2,
|
|
2287
|
+
return [2, contents];
|
|
2497
2288
|
}
|
|
2498
2289
|
});
|
|
2499
2290
|
}); };
|
|
2500
2291
|
var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2501
|
-
var parsedOutput, _a,
|
|
2292
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2502
2293
|
var _c;
|
|
2503
2294
|
return __generator(this, function (_d) {
|
|
2504
2295
|
switch (_d.label) {
|
|
@@ -2543,14 +2334,14 @@ var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, co
|
|
|
2543
2334
|
case 15: throw _d.sent();
|
|
2544
2335
|
case 16:
|
|
2545
2336
|
parsedBody = parsedOutput.body;
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
$metadata: $metadata,
|
|
2337
|
+
throwDefaultError({
|
|
2338
|
+
output: output,
|
|
2339
|
+
parsedBody: parsedBody,
|
|
2340
|
+
exceptionCtor: __BaseException,
|
|
2341
|
+
errorCode: errorCode,
|
|
2552
2342
|
});
|
|
2553
|
-
|
|
2343
|
+
_d.label = 17;
|
|
2344
|
+
case 17: return [2];
|
|
2554
2345
|
}
|
|
2555
2346
|
});
|
|
2556
2347
|
}); };
|
|
@@ -2562,24 +2353,23 @@ export var deserializeAws_restJson1UpdateAppInstanceUserCommand = function (outp
|
|
|
2562
2353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2563
2354
|
return [2, deserializeAws_restJson1UpdateAppInstanceUserCommandError(output, context)];
|
|
2564
2355
|
}
|
|
2565
|
-
contents = {
|
|
2356
|
+
contents = map({
|
|
2566
2357
|
$metadata: deserializeMetadata(output),
|
|
2567
|
-
|
|
2568
|
-
};
|
|
2358
|
+
});
|
|
2569
2359
|
_a = __expectNonNull;
|
|
2570
2360
|
_b = __expectObject;
|
|
2571
2361
|
return [4, parseBody(output.body, context)];
|
|
2572
2362
|
case 1:
|
|
2573
2363
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2574
|
-
if (data.AppInstanceUserArn
|
|
2364
|
+
if (data.AppInstanceUserArn != null) {
|
|
2575
2365
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2576
2366
|
}
|
|
2577
|
-
return [2,
|
|
2367
|
+
return [2, contents];
|
|
2578
2368
|
}
|
|
2579
2369
|
});
|
|
2580
2370
|
}); };
|
|
2581
2371
|
var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2582
|
-
var parsedOutput, _a,
|
|
2372
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2583
2373
|
var _c;
|
|
2584
2374
|
return __generator(this, function (_d) {
|
|
2585
2375
|
switch (_d.label) {
|
|
@@ -2628,14 +2418,14 @@ var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output
|
|
|
2628
2418
|
case 17: throw _d.sent();
|
|
2629
2419
|
case 18:
|
|
2630
2420
|
parsedBody = parsedOutput.body;
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
$metadata: $metadata,
|
|
2421
|
+
throwDefaultError({
|
|
2422
|
+
output: output,
|
|
2423
|
+
parsedBody: parsedBody,
|
|
2424
|
+
exceptionCtor: __BaseException,
|
|
2425
|
+
errorCode: errorCode,
|
|
2637
2426
|
});
|
|
2638
|
-
|
|
2427
|
+
_d.label = 19;
|
|
2428
|
+
case 19: return [2];
|
|
2639
2429
|
}
|
|
2640
2430
|
});
|
|
2641
2431
|
}); };
|
|
@@ -2647,28 +2437,26 @@ export var deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = functi
|
|
|
2647
2437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2648
2438
|
return [2, deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError(output, context)];
|
|
2649
2439
|
}
|
|
2650
|
-
contents = {
|
|
2440
|
+
contents = map({
|
|
2651
2441
|
$metadata: deserializeMetadata(output),
|
|
2652
|
-
|
|
2653
|
-
EndpointId: undefined,
|
|
2654
|
-
};
|
|
2442
|
+
});
|
|
2655
2443
|
_a = __expectNonNull;
|
|
2656
2444
|
_b = __expectObject;
|
|
2657
2445
|
return [4, parseBody(output.body, context)];
|
|
2658
2446
|
case 1:
|
|
2659
2447
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2660
|
-
if (data.AppInstanceUserArn
|
|
2448
|
+
if (data.AppInstanceUserArn != null) {
|
|
2661
2449
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2662
2450
|
}
|
|
2663
|
-
if (data.EndpointId
|
|
2451
|
+
if (data.EndpointId != null) {
|
|
2664
2452
|
contents.EndpointId = __expectString(data.EndpointId);
|
|
2665
2453
|
}
|
|
2666
|
-
return [2,
|
|
2454
|
+
return [2, contents];
|
|
2667
2455
|
}
|
|
2668
2456
|
});
|
|
2669
2457
|
}); };
|
|
2670
2458
|
var deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2671
|
-
var parsedOutput, _a,
|
|
2459
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2672
2460
|
var _c;
|
|
2673
2461
|
return __generator(this, function (_d) {
|
|
2674
2462
|
switch (_d.label) {
|
|
@@ -2713,26 +2501,27 @@ var deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = function
|
|
|
2713
2501
|
case 15: throw _d.sent();
|
|
2714
2502
|
case 16:
|
|
2715
2503
|
parsedBody = parsedOutput.body;
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
$metadata: $metadata,
|
|
2504
|
+
throwDefaultError({
|
|
2505
|
+
output: output,
|
|
2506
|
+
parsedBody: parsedBody,
|
|
2507
|
+
exceptionCtor: __BaseException,
|
|
2508
|
+
errorCode: errorCode,
|
|
2722
2509
|
});
|
|
2723
|
-
|
|
2510
|
+
_d.label = 17;
|
|
2511
|
+
case 17: return [2];
|
|
2724
2512
|
}
|
|
2725
2513
|
});
|
|
2726
2514
|
}); };
|
|
2515
|
+
var map = __map;
|
|
2727
2516
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2728
2517
|
var contents, data, exception;
|
|
2729
2518
|
return __generator(this, function (_a) {
|
|
2730
|
-
contents = {};
|
|
2519
|
+
contents = map({});
|
|
2731
2520
|
data = parsedOutput.body;
|
|
2732
|
-
if (data.Code
|
|
2521
|
+
if (data.Code != null) {
|
|
2733
2522
|
contents.Code = __expectString(data.Code);
|
|
2734
2523
|
}
|
|
2735
|
-
if (data.Message
|
|
2524
|
+
if (data.Message != null) {
|
|
2736
2525
|
contents.Message = __expectString(data.Message);
|
|
2737
2526
|
}
|
|
2738
2527
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2742,12 +2531,12 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
2742
2531
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2743
2532
|
var contents, data, exception;
|
|
2744
2533
|
return __generator(this, function (_a) {
|
|
2745
|
-
contents = {};
|
|
2534
|
+
contents = map({});
|
|
2746
2535
|
data = parsedOutput.body;
|
|
2747
|
-
if (data.Code
|
|
2536
|
+
if (data.Code != null) {
|
|
2748
2537
|
contents.Code = __expectString(data.Code);
|
|
2749
2538
|
}
|
|
2750
|
-
if (data.Message
|
|
2539
|
+
if (data.Message != null) {
|
|
2751
2540
|
contents.Message = __expectString(data.Message);
|
|
2752
2541
|
}
|
|
2753
2542
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2757,12 +2546,12 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2757
2546
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2758
2547
|
var contents, data, exception;
|
|
2759
2548
|
return __generator(this, function (_a) {
|
|
2760
|
-
contents = {};
|
|
2549
|
+
contents = map({});
|
|
2761
2550
|
data = parsedOutput.body;
|
|
2762
|
-
if (data.Code
|
|
2551
|
+
if (data.Code != null) {
|
|
2763
2552
|
contents.Code = __expectString(data.Code);
|
|
2764
2553
|
}
|
|
2765
|
-
if (data.Message
|
|
2554
|
+
if (data.Message != null) {
|
|
2766
2555
|
contents.Message = __expectString(data.Message);
|
|
2767
2556
|
}
|
|
2768
2557
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2772,12 +2561,12 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
2772
2561
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2773
2562
|
var contents, data, exception;
|
|
2774
2563
|
return __generator(this, function (_a) {
|
|
2775
|
-
contents = {};
|
|
2564
|
+
contents = map({});
|
|
2776
2565
|
data = parsedOutput.body;
|
|
2777
|
-
if (data.Code
|
|
2566
|
+
if (data.Code != null) {
|
|
2778
2567
|
contents.Code = __expectString(data.Code);
|
|
2779
2568
|
}
|
|
2780
|
-
if (data.Message
|
|
2569
|
+
if (data.Message != null) {
|
|
2781
2570
|
contents.Message = __expectString(data.Message);
|
|
2782
2571
|
}
|
|
2783
2572
|
exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2787,12 +2576,12 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
2787
2576
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2788
2577
|
var contents, data, exception;
|
|
2789
2578
|
return __generator(this, function (_a) {
|
|
2790
|
-
contents = {};
|
|
2579
|
+
contents = map({});
|
|
2791
2580
|
data = parsedOutput.body;
|
|
2792
|
-
if (data.Code
|
|
2581
|
+
if (data.Code != null) {
|
|
2793
2582
|
contents.Code = __expectString(data.Code);
|
|
2794
2583
|
}
|
|
2795
|
-
if (data.Message
|
|
2584
|
+
if (data.Message != null) {
|
|
2796
2585
|
contents.Message = __expectString(data.Message);
|
|
2797
2586
|
}
|
|
2798
2587
|
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2802,12 +2591,12 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
2802
2591
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2803
2592
|
var contents, data, exception;
|
|
2804
2593
|
return __generator(this, function (_a) {
|
|
2805
|
-
contents = {};
|
|
2594
|
+
contents = map({});
|
|
2806
2595
|
data = parsedOutput.body;
|
|
2807
|
-
if (data.Code
|
|
2596
|
+
if (data.Code != null) {
|
|
2808
2597
|
contents.Code = __expectString(data.Code);
|
|
2809
2598
|
}
|
|
2810
|
-
if (data.Message
|
|
2599
|
+
if (data.Message != null) {
|
|
2811
2600
|
contents.Message = __expectString(data.Message);
|
|
2812
2601
|
}
|
|
2813
2602
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2817,12 +2606,12 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
2817
2606
|
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2818
2607
|
var contents, data, exception;
|
|
2819
2608
|
return __generator(this, function (_a) {
|
|
2820
|
-
contents = {};
|
|
2609
|
+
contents = map({});
|
|
2821
2610
|
data = parsedOutput.body;
|
|
2822
|
-
if (data.Code
|
|
2611
|
+
if (data.Code != null) {
|
|
2823
2612
|
contents.Code = __expectString(data.Code);
|
|
2824
2613
|
}
|
|
2825
|
-
if (data.Message
|
|
2614
|
+
if (data.Message != null) {
|
|
2826
2615
|
contents.Message = __expectString(data.Message);
|
|
2827
2616
|
}
|
|
2828
2617
|
exception = new ThrottledClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2832,12 +2621,12 @@ var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedO
|
|
|
2832
2621
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2833
2622
|
var contents, data, exception;
|
|
2834
2623
|
return __generator(this, function (_a) {
|
|
2835
|
-
contents = {};
|
|
2624
|
+
contents = map({});
|
|
2836
2625
|
data = parsedOutput.body;
|
|
2837
|
-
if (data.Code
|
|
2626
|
+
if (data.Code != null) {
|
|
2838
2627
|
contents.Code = __expectString(data.Code);
|
|
2839
2628
|
}
|
|
2840
|
-
if (data.Message
|
|
2629
|
+
if (data.Message != null) {
|
|
2841
2630
|
contents.Message = __expectString(data.Message);
|
|
2842
2631
|
}
|
|
2843
2632
|
exception = new UnauthorizedClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2862,9 +2651,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
2862
2651
|
return input
|
|
2863
2652
|
.filter(function (e) { return e != null; })
|
|
2864
2653
|
.map(function (entry) {
|
|
2865
|
-
if (entry === null) {
|
|
2866
|
-
return null;
|
|
2867
|
-
}
|
|
2868
2654
|
return entry;
|
|
2869
2655
|
});
|
|
2870
2656
|
};
|
|
@@ -2872,9 +2658,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
2872
2658
|
return input
|
|
2873
2659
|
.filter(function (e) { return e != null; })
|
|
2874
2660
|
.map(function (entry) {
|
|
2875
|
-
if (entry === null) {
|
|
2876
|
-
return null;
|
|
2877
|
-
}
|
|
2878
2661
|
return serializeAws_restJson1Tag(entry, context);
|
|
2879
2662
|
});
|
|
2880
2663
|
};
|