@aws-sdk/client-license-manager-user-subscriptions 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +167 -348
- package/dist-es/protocols/Aws_restJson1.js +151 -332
- package/package.json +6 -6
|
@@ -12,12 +12,12 @@ const se_AssociateUserCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/AssociateUser";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
Domain: [],
|
|
17
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
InstanceId: [],
|
|
19
|
+
Username: [],
|
|
20
|
+
}));
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
23
23
|
hostname,
|
|
@@ -37,10 +37,10 @@ const se_DeregisterIdentityProviderCommand = async (input, context) => {
|
|
|
37
37
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
38
38
|
"/identity-provider/DeregisterIdentityProvider";
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
+
Product: [],
|
|
43
|
+
}));
|
|
44
44
|
return new protocol_http_1.HttpRequest({
|
|
45
45
|
protocol,
|
|
46
46
|
hostname,
|
|
@@ -59,12 +59,12 @@ const se_DisassociateUserCommand = async (input, context) => {
|
|
|
59
59
|
};
|
|
60
60
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/DisassociateUser";
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify({
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
});
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
63
|
+
Domain: [],
|
|
64
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
+
InstanceId: [],
|
|
66
|
+
Username: [],
|
|
67
|
+
}));
|
|
68
68
|
return new protocol_http_1.HttpRequest({
|
|
69
69
|
protocol,
|
|
70
70
|
hostname,
|
|
@@ -83,10 +83,10 @@ const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
|
83
83
|
};
|
|
84
84
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identity-provider/ListIdentityProviders";
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify({
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
});
|
|
86
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
87
|
+
MaxResults: [],
|
|
88
|
+
NextToken: [],
|
|
89
|
+
}));
|
|
90
90
|
return new protocol_http_1.HttpRequest({
|
|
91
91
|
protocol,
|
|
92
92
|
hostname,
|
|
@@ -105,11 +105,11 @@ const se_ListInstancesCommand = async (input, context) => {
|
|
|
105
105
|
};
|
|
106
106
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/ListInstances";
|
|
107
107
|
let body;
|
|
108
|
-
body = JSON.stringify({
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
});
|
|
108
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
109
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
110
|
+
MaxResults: [],
|
|
111
|
+
NextToken: [],
|
|
112
|
+
}));
|
|
113
113
|
return new protocol_http_1.HttpRequest({
|
|
114
114
|
protocol,
|
|
115
115
|
hostname,
|
|
@@ -128,13 +128,13 @@ const se_ListProductSubscriptionsCommand = async (input, context) => {
|
|
|
128
128
|
};
|
|
129
129
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListProductSubscriptions";
|
|
130
130
|
let body;
|
|
131
|
-
body = JSON.stringify({
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
});
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
132
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
133
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
+
MaxResults: [],
|
|
135
|
+
NextToken: [],
|
|
136
|
+
Product: [],
|
|
137
|
+
}));
|
|
138
138
|
return new protocol_http_1.HttpRequest({
|
|
139
139
|
protocol,
|
|
140
140
|
hostname,
|
|
@@ -153,13 +153,13 @@ const se_ListUserAssociationsCommand = async (input, context) => {
|
|
|
153
153
|
};
|
|
154
154
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListUserAssociations";
|
|
155
155
|
let body;
|
|
156
|
-
body = JSON.stringify({
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
});
|
|
156
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
157
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
158
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
159
|
+
InstanceId: [],
|
|
160
|
+
MaxResults: [],
|
|
161
|
+
NextToken: [],
|
|
162
|
+
}));
|
|
163
163
|
return new protocol_http_1.HttpRequest({
|
|
164
164
|
protocol,
|
|
165
165
|
hostname,
|
|
@@ -179,11 +179,11 @@ const se_RegisterIdentityProviderCommand = async (input, context) => {
|
|
|
179
179
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
180
180
|
"/identity-provider/RegisterIdentityProvider";
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
});
|
|
182
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
183
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
184
|
+
Product: [],
|
|
185
|
+
Settings: (_) => (0, smithy_client_1._json)(_),
|
|
186
|
+
}));
|
|
187
187
|
return new protocol_http_1.HttpRequest({
|
|
188
188
|
protocol,
|
|
189
189
|
hostname,
|
|
@@ -202,12 +202,12 @@ const se_StartProductSubscriptionCommand = async (input, context) => {
|
|
|
202
202
|
};
|
|
203
203
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StartProductSubscription";
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify({
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
});
|
|
205
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
206
|
+
Domain: [],
|
|
207
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
208
|
+
Product: [],
|
|
209
|
+
Username: [],
|
|
210
|
+
}));
|
|
211
211
|
return new protocol_http_1.HttpRequest({
|
|
212
212
|
protocol,
|
|
213
213
|
hostname,
|
|
@@ -226,12 +226,12 @@ const se_StopProductSubscriptionCommand = async (input, context) => {
|
|
|
226
226
|
};
|
|
227
227
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StopProductSubscription";
|
|
228
228
|
let body;
|
|
229
|
-
body = JSON.stringify({
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
});
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
230
|
+
Domain: [],
|
|
231
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
232
|
+
Product: [],
|
|
233
|
+
Username: [],
|
|
234
|
+
}));
|
|
235
235
|
return new protocol_http_1.HttpRequest({
|
|
236
236
|
protocol,
|
|
237
237
|
hostname,
|
|
@@ -251,11 +251,11 @@ const se_UpdateIdentityProviderSettingsCommand = async (input, context) => {
|
|
|
251
251
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
252
252
|
"/identity-provider/UpdateIdentityProviderSettings";
|
|
253
253
|
let body;
|
|
254
|
-
body = JSON.stringify({
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
});
|
|
254
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
255
|
+
IdentityProvider: (_) => (0, smithy_client_1._json)(_),
|
|
256
|
+
Product: [],
|
|
257
|
+
UpdateSettings: (_) => (0, smithy_client_1._json)(_),
|
|
258
|
+
}));
|
|
259
259
|
return new protocol_http_1.HttpRequest({
|
|
260
260
|
protocol,
|
|
261
261
|
hostname,
|
|
@@ -271,13 +271,14 @@ const de_AssociateUserCommand = async (output, context) => {
|
|
|
271
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
272
272
|
return de_AssociateUserCommandError(output, context);
|
|
273
273
|
}
|
|
274
|
-
const contents = map({
|
|
274
|
+
const contents = (0, smithy_client_1.map)({
|
|
275
275
|
$metadata: deserializeMetadata(output),
|
|
276
276
|
});
|
|
277
277
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
278
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
279
|
+
InstanceUserSummary: smithy_client_1._json,
|
|
280
|
+
});
|
|
281
|
+
Object.assign(contents, doc);
|
|
281
282
|
return contents;
|
|
282
283
|
};
|
|
283
284
|
exports.de_AssociateUserCommand = de_AssociateUserCommand;
|
|
@@ -311,10 +312,9 @@ const de_AssociateUserCommandError = async (output, context) => {
|
|
|
311
312
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
312
313
|
default:
|
|
313
314
|
const parsedBody = parsedOutput.body;
|
|
314
|
-
|
|
315
|
+
return throwDefaultError({
|
|
315
316
|
output,
|
|
316
317
|
parsedBody,
|
|
317
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
318
318
|
errorCode,
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -323,13 +323,14 @@ const de_DeregisterIdentityProviderCommand = async (output, context) => {
|
|
|
323
323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
324
|
return de_DeregisterIdentityProviderCommandError(output, context);
|
|
325
325
|
}
|
|
326
|
-
const contents = map({
|
|
326
|
+
const contents = (0, smithy_client_1.map)({
|
|
327
327
|
$metadata: deserializeMetadata(output),
|
|
328
328
|
});
|
|
329
329
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
330
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
331
|
+
IdentityProviderSummary: smithy_client_1._json,
|
|
332
|
+
});
|
|
333
|
+
Object.assign(contents, doc);
|
|
333
334
|
return contents;
|
|
334
335
|
};
|
|
335
336
|
exports.de_DeregisterIdentityProviderCommand = de_DeregisterIdentityProviderCommand;
|
|
@@ -363,10 +364,9 @@ const de_DeregisterIdentityProviderCommandError = async (output, context) => {
|
|
|
363
364
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
364
365
|
default:
|
|
365
366
|
const parsedBody = parsedOutput.body;
|
|
366
|
-
|
|
367
|
+
return throwDefaultError({
|
|
367
368
|
output,
|
|
368
369
|
parsedBody,
|
|
369
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
370
370
|
errorCode,
|
|
371
371
|
});
|
|
372
372
|
}
|
|
@@ -375,13 +375,14 @@ const de_DisassociateUserCommand = async (output, context) => {
|
|
|
375
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
376
376
|
return de_DisassociateUserCommandError(output, context);
|
|
377
377
|
}
|
|
378
|
-
const contents = map({
|
|
378
|
+
const contents = (0, smithy_client_1.map)({
|
|
379
379
|
$metadata: deserializeMetadata(output),
|
|
380
380
|
});
|
|
381
381
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
382
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
383
|
+
InstanceUserSummary: smithy_client_1._json,
|
|
384
|
+
});
|
|
385
|
+
Object.assign(contents, doc);
|
|
385
386
|
return contents;
|
|
386
387
|
};
|
|
387
388
|
exports.de_DisassociateUserCommand = de_DisassociateUserCommand;
|
|
@@ -415,10 +416,9 @@ const de_DisassociateUserCommandError = async (output, context) => {
|
|
|
415
416
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
416
417
|
default:
|
|
417
418
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
|
|
419
|
+
return throwDefaultError({
|
|
419
420
|
output,
|
|
420
421
|
parsedBody,
|
|
421
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
422
422
|
errorCode,
|
|
423
423
|
});
|
|
424
424
|
}
|
|
@@ -427,16 +427,15 @@ const de_ListIdentityProvidersCommand = async (output, context) => {
|
|
|
427
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
428
|
return de_ListIdentityProvidersCommandError(output, context);
|
|
429
429
|
}
|
|
430
|
-
const contents = map({
|
|
430
|
+
const contents = (0, smithy_client_1.map)({
|
|
431
431
|
$metadata: deserializeMetadata(output),
|
|
432
432
|
});
|
|
433
433
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
434
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
435
|
+
IdentityProviderSummaries: smithy_client_1._json,
|
|
436
|
+
NextToken: smithy_client_1.expectString,
|
|
437
|
+
});
|
|
438
|
+
Object.assign(contents, doc);
|
|
440
439
|
return contents;
|
|
441
440
|
};
|
|
442
441
|
exports.de_ListIdentityProvidersCommand = de_ListIdentityProvidersCommand;
|
|
@@ -470,10 +469,9 @@ const de_ListIdentityProvidersCommandError = async (output, context) => {
|
|
|
470
469
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
470
|
default:
|
|
472
471
|
const parsedBody = parsedOutput.body;
|
|
473
|
-
|
|
472
|
+
return throwDefaultError({
|
|
474
473
|
output,
|
|
475
474
|
parsedBody,
|
|
476
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
477
475
|
errorCode,
|
|
478
476
|
});
|
|
479
477
|
}
|
|
@@ -482,16 +480,15 @@ const de_ListInstancesCommand = async (output, context) => {
|
|
|
482
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
483
481
|
return de_ListInstancesCommandError(output, context);
|
|
484
482
|
}
|
|
485
|
-
const contents = map({
|
|
483
|
+
const contents = (0, smithy_client_1.map)({
|
|
486
484
|
$metadata: deserializeMetadata(output),
|
|
487
485
|
});
|
|
488
486
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}
|
|
487
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
488
|
+
InstanceSummaries: smithy_client_1._json,
|
|
489
|
+
NextToken: smithy_client_1.expectString,
|
|
490
|
+
});
|
|
491
|
+
Object.assign(contents, doc);
|
|
495
492
|
return contents;
|
|
496
493
|
};
|
|
497
494
|
exports.de_ListInstancesCommand = de_ListInstancesCommand;
|
|
@@ -525,10 +522,9 @@ const de_ListInstancesCommandError = async (output, context) => {
|
|
|
525
522
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
526
523
|
default:
|
|
527
524
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
|
|
525
|
+
return throwDefaultError({
|
|
529
526
|
output,
|
|
530
527
|
parsedBody,
|
|
531
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
532
528
|
errorCode,
|
|
533
529
|
});
|
|
534
530
|
}
|
|
@@ -537,16 +533,15 @@ const de_ListProductSubscriptionsCommand = async (output, context) => {
|
|
|
537
533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
538
534
|
return de_ListProductSubscriptionsCommandError(output, context);
|
|
539
535
|
}
|
|
540
|
-
const contents = map({
|
|
536
|
+
const contents = (0, smithy_client_1.map)({
|
|
541
537
|
$metadata: deserializeMetadata(output),
|
|
542
538
|
});
|
|
543
539
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
540
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
541
|
+
NextToken: smithy_client_1.expectString,
|
|
542
|
+
ProductUserSummaries: smithy_client_1._json,
|
|
543
|
+
});
|
|
544
|
+
Object.assign(contents, doc);
|
|
550
545
|
return contents;
|
|
551
546
|
};
|
|
552
547
|
exports.de_ListProductSubscriptionsCommand = de_ListProductSubscriptionsCommand;
|
|
@@ -580,10 +575,9 @@ const de_ListProductSubscriptionsCommandError = async (output, context) => {
|
|
|
580
575
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
581
576
|
default:
|
|
582
577
|
const parsedBody = parsedOutput.body;
|
|
583
|
-
|
|
578
|
+
return throwDefaultError({
|
|
584
579
|
output,
|
|
585
580
|
parsedBody,
|
|
586
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
587
581
|
errorCode,
|
|
588
582
|
});
|
|
589
583
|
}
|
|
@@ -592,16 +586,15 @@ const de_ListUserAssociationsCommand = async (output, context) => {
|
|
|
592
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
587
|
return de_ListUserAssociationsCommandError(output, context);
|
|
594
588
|
}
|
|
595
|
-
const contents = map({
|
|
589
|
+
const contents = (0, smithy_client_1.map)({
|
|
596
590
|
$metadata: deserializeMetadata(output),
|
|
597
591
|
});
|
|
598
592
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
593
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
594
|
+
InstanceUserSummaries: smithy_client_1._json,
|
|
595
|
+
NextToken: smithy_client_1.expectString,
|
|
596
|
+
});
|
|
597
|
+
Object.assign(contents, doc);
|
|
605
598
|
return contents;
|
|
606
599
|
};
|
|
607
600
|
exports.de_ListUserAssociationsCommand = de_ListUserAssociationsCommand;
|
|
@@ -635,10 +628,9 @@ const de_ListUserAssociationsCommandError = async (output, context) => {
|
|
|
635
628
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
636
629
|
default:
|
|
637
630
|
const parsedBody = parsedOutput.body;
|
|
638
|
-
|
|
631
|
+
return throwDefaultError({
|
|
639
632
|
output,
|
|
640
633
|
parsedBody,
|
|
641
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
642
634
|
errorCode,
|
|
643
635
|
});
|
|
644
636
|
}
|
|
@@ -647,13 +639,14 @@ const de_RegisterIdentityProviderCommand = async (output, context) => {
|
|
|
647
639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
640
|
return de_RegisterIdentityProviderCommandError(output, context);
|
|
649
641
|
}
|
|
650
|
-
const contents = map({
|
|
642
|
+
const contents = (0, smithy_client_1.map)({
|
|
651
643
|
$metadata: deserializeMetadata(output),
|
|
652
644
|
});
|
|
653
645
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}
|
|
646
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
647
|
+
IdentityProviderSummary: smithy_client_1._json,
|
|
648
|
+
});
|
|
649
|
+
Object.assign(contents, doc);
|
|
657
650
|
return contents;
|
|
658
651
|
};
|
|
659
652
|
exports.de_RegisterIdentityProviderCommand = de_RegisterIdentityProviderCommand;
|
|
@@ -687,10 +680,9 @@ const de_RegisterIdentityProviderCommandError = async (output, context) => {
|
|
|
687
680
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
688
681
|
default:
|
|
689
682
|
const parsedBody = parsedOutput.body;
|
|
690
|
-
|
|
683
|
+
return throwDefaultError({
|
|
691
684
|
output,
|
|
692
685
|
parsedBody,
|
|
693
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
694
686
|
errorCode,
|
|
695
687
|
});
|
|
696
688
|
}
|
|
@@ -699,13 +691,14 @@ const de_StartProductSubscriptionCommand = async (output, context) => {
|
|
|
699
691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
692
|
return de_StartProductSubscriptionCommandError(output, context);
|
|
701
693
|
}
|
|
702
|
-
const contents = map({
|
|
694
|
+
const contents = (0, smithy_client_1.map)({
|
|
703
695
|
$metadata: deserializeMetadata(output),
|
|
704
696
|
});
|
|
705
697
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
698
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
699
|
+
ProductUserSummary: smithy_client_1._json,
|
|
700
|
+
});
|
|
701
|
+
Object.assign(contents, doc);
|
|
709
702
|
return contents;
|
|
710
703
|
};
|
|
711
704
|
exports.de_StartProductSubscriptionCommand = de_StartProductSubscriptionCommand;
|
|
@@ -739,10 +732,9 @@ const de_StartProductSubscriptionCommandError = async (output, context) => {
|
|
|
739
732
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
733
|
default:
|
|
741
734
|
const parsedBody = parsedOutput.body;
|
|
742
|
-
|
|
735
|
+
return throwDefaultError({
|
|
743
736
|
output,
|
|
744
737
|
parsedBody,
|
|
745
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
746
738
|
errorCode,
|
|
747
739
|
});
|
|
748
740
|
}
|
|
@@ -751,13 +743,14 @@ const de_StopProductSubscriptionCommand = async (output, context) => {
|
|
|
751
743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
744
|
return de_StopProductSubscriptionCommandError(output, context);
|
|
753
745
|
}
|
|
754
|
-
const contents = map({
|
|
746
|
+
const contents = (0, smithy_client_1.map)({
|
|
755
747
|
$metadata: deserializeMetadata(output),
|
|
756
748
|
});
|
|
757
749
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
750
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
751
|
+
ProductUserSummary: smithy_client_1._json,
|
|
752
|
+
});
|
|
753
|
+
Object.assign(contents, doc);
|
|
761
754
|
return contents;
|
|
762
755
|
};
|
|
763
756
|
exports.de_StopProductSubscriptionCommand = de_StopProductSubscriptionCommand;
|
|
@@ -791,10 +784,9 @@ const de_StopProductSubscriptionCommandError = async (output, context) => {
|
|
|
791
784
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
785
|
default:
|
|
793
786
|
const parsedBody = parsedOutput.body;
|
|
794
|
-
|
|
787
|
+
return throwDefaultError({
|
|
795
788
|
output,
|
|
796
789
|
parsedBody,
|
|
797
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
798
790
|
errorCode,
|
|
799
791
|
});
|
|
800
792
|
}
|
|
@@ -803,13 +795,14 @@ const de_UpdateIdentityProviderSettingsCommand = async (output, context) => {
|
|
|
803
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
796
|
return de_UpdateIdentityProviderSettingsCommandError(output, context);
|
|
805
797
|
}
|
|
806
|
-
const contents = map({
|
|
798
|
+
const contents = (0, smithy_client_1.map)({
|
|
807
799
|
$metadata: deserializeMetadata(output),
|
|
808
800
|
});
|
|
809
801
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
}
|
|
802
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
803
|
+
IdentityProviderSummary: smithy_client_1._json,
|
|
804
|
+
});
|
|
805
|
+
Object.assign(contents, doc);
|
|
813
806
|
return contents;
|
|
814
807
|
};
|
|
815
808
|
exports.de_UpdateIdentityProviderSettingsCommand = de_UpdateIdentityProviderSettingsCommand;
|
|
@@ -834,21 +827,21 @@ const de_UpdateIdentityProviderSettingsCommandError = async (output, context) =>
|
|
|
834
827
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
828
|
default:
|
|
836
829
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
|
|
830
|
+
return throwDefaultError({
|
|
838
831
|
output,
|
|
839
832
|
parsedBody,
|
|
840
|
-
exceptionCtor: LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException,
|
|
841
833
|
errorCode,
|
|
842
834
|
});
|
|
843
835
|
}
|
|
844
836
|
};
|
|
845
|
-
const
|
|
837
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(LicenseManagerUserSubscriptionsServiceException_1.LicenseManagerUserSubscriptionsServiceException);
|
|
846
838
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
847
|
-
const contents = map({});
|
|
839
|
+
const contents = (0, smithy_client_1.map)({});
|
|
848
840
|
const data = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}
|
|
841
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
842
|
+
message: smithy_client_1.expectString,
|
|
843
|
+
});
|
|
844
|
+
Object.assign(contents, doc);
|
|
852
845
|
const exception = new models_0_1.AccessDeniedException({
|
|
853
846
|
$metadata: deserializeMetadata(parsedOutput),
|
|
854
847
|
...contents,
|
|
@@ -856,11 +849,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
856
849
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
857
850
|
};
|
|
858
851
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
859
|
-
const contents = map({});
|
|
852
|
+
const contents = (0, smithy_client_1.map)({});
|
|
860
853
|
const data = parsedOutput.body;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
854
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
855
|
+
message: smithy_client_1.expectString,
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
864
858
|
const exception = new models_0_1.ConflictException({
|
|
865
859
|
$metadata: deserializeMetadata(parsedOutput),
|
|
866
860
|
...contents,
|
|
@@ -868,11 +862,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
868
862
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
869
863
|
};
|
|
870
864
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
871
|
-
const contents = map({});
|
|
865
|
+
const contents = (0, smithy_client_1.map)({});
|
|
872
866
|
const data = parsedOutput.body;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}
|
|
867
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
868
|
+
message: smithy_client_1.expectString,
|
|
869
|
+
});
|
|
870
|
+
Object.assign(contents, doc);
|
|
876
871
|
const exception = new models_0_1.InternalServerException({
|
|
877
872
|
$metadata: deserializeMetadata(parsedOutput),
|
|
878
873
|
...contents,
|
|
@@ -880,11 +875,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
880
875
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
881
876
|
};
|
|
882
877
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
883
|
-
const contents = map({});
|
|
878
|
+
const contents = (0, smithy_client_1.map)({});
|
|
884
879
|
const data = parsedOutput.body;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
880
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
881
|
+
message: smithy_client_1.expectString,
|
|
882
|
+
});
|
|
883
|
+
Object.assign(contents, doc);
|
|
888
884
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
889
885
|
$metadata: deserializeMetadata(parsedOutput),
|
|
890
886
|
...contents,
|
|
@@ -892,11 +888,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
892
888
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
893
889
|
};
|
|
894
890
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
895
|
-
const contents = map({});
|
|
891
|
+
const contents = (0, smithy_client_1.map)({});
|
|
896
892
|
const data = parsedOutput.body;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
}
|
|
893
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
894
|
+
message: smithy_client_1.expectString,
|
|
895
|
+
});
|
|
896
|
+
Object.assign(contents, doc);
|
|
900
897
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
901
898
|
$metadata: deserializeMetadata(parsedOutput),
|
|
902
899
|
...contents,
|
|
@@ -904,11 +901,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
904
901
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
905
902
|
};
|
|
906
903
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
907
|
-
const contents = map({});
|
|
904
|
+
const contents = (0, smithy_client_1.map)({});
|
|
908
905
|
const data = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}
|
|
906
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
907
|
+
message: smithy_client_1.expectString,
|
|
908
|
+
});
|
|
909
|
+
Object.assign(contents, doc);
|
|
912
910
|
const exception = new models_0_1.ThrottlingException({
|
|
913
911
|
$metadata: deserializeMetadata(parsedOutput),
|
|
914
912
|
...contents,
|
|
@@ -916,197 +914,18 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
916
914
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
917
915
|
};
|
|
918
916
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
919
|
-
const contents = map({});
|
|
917
|
+
const contents = (0, smithy_client_1.map)({});
|
|
920
918
|
const data = parsedOutput.body;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}
|
|
919
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
920
|
+
message: smithy_client_1.expectString,
|
|
921
|
+
});
|
|
922
|
+
Object.assign(contents, doc);
|
|
924
923
|
const exception = new models_0_1.ValidationException({
|
|
925
924
|
$metadata: deserializeMetadata(parsedOutput),
|
|
926
925
|
...contents,
|
|
927
926
|
});
|
|
928
927
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
929
928
|
};
|
|
930
|
-
const se_ActiveDirectoryIdentityProvider = (input, context) => {
|
|
931
|
-
return {
|
|
932
|
-
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
const se_Filter = (input, context) => {
|
|
936
|
-
return {
|
|
937
|
-
...(input.Attribute != null && { Attribute: input.Attribute }),
|
|
938
|
-
...(input.Operation != null && { Operation: input.Operation }),
|
|
939
|
-
...(input.Value != null && { Value: input.Value }),
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
const se_FilterList = (input, context) => {
|
|
943
|
-
return input
|
|
944
|
-
.filter((e) => e != null)
|
|
945
|
-
.map((entry) => {
|
|
946
|
-
return se_Filter(entry, context);
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
const se_IdentityProvider = (input, context) => {
|
|
950
|
-
return models_0_1.IdentityProvider.visit(input, {
|
|
951
|
-
ActiveDirectoryIdentityProvider: (value) => ({
|
|
952
|
-
ActiveDirectoryIdentityProvider: se_ActiveDirectoryIdentityProvider(value, context),
|
|
953
|
-
}),
|
|
954
|
-
_: (name, value) => ({ name: value }),
|
|
955
|
-
});
|
|
956
|
-
};
|
|
957
|
-
const se_Settings = (input, context) => {
|
|
958
|
-
return {
|
|
959
|
-
...(input.SecurityGroupId != null && { SecurityGroupId: input.SecurityGroupId }),
|
|
960
|
-
...(input.Subnets != null && { Subnets: se_Subnets(input.Subnets, context) }),
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
const se_Subnets = (input, context) => {
|
|
964
|
-
return input
|
|
965
|
-
.filter((e) => e != null)
|
|
966
|
-
.map((entry) => {
|
|
967
|
-
return entry;
|
|
968
|
-
});
|
|
969
|
-
};
|
|
970
|
-
const se_UpdateSettings = (input, context) => {
|
|
971
|
-
return {
|
|
972
|
-
...(input.AddSubnets != null && { AddSubnets: se_Subnets(input.AddSubnets, context) }),
|
|
973
|
-
...(input.RemoveSubnets != null && { RemoveSubnets: se_Subnets(input.RemoveSubnets, context) }),
|
|
974
|
-
...(input.SecurityGroupId != null && { SecurityGroupId: input.SecurityGroupId }),
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
const de_ActiveDirectoryIdentityProvider = (output, context) => {
|
|
978
|
-
return {
|
|
979
|
-
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
const de_IdentityProvider = (output, context) => {
|
|
983
|
-
if (output.ActiveDirectoryIdentityProvider != null) {
|
|
984
|
-
return {
|
|
985
|
-
ActiveDirectoryIdentityProvider: de_ActiveDirectoryIdentityProvider(output.ActiveDirectoryIdentityProvider, context),
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
return { $unknown: Object.entries(output)[0] };
|
|
989
|
-
};
|
|
990
|
-
const de_IdentityProviderSummary = (output, context) => {
|
|
991
|
-
return {
|
|
992
|
-
FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage),
|
|
993
|
-
IdentityProvider: output.IdentityProvider != null
|
|
994
|
-
? de_IdentityProvider((0, smithy_client_1.expectUnion)(output.IdentityProvider), context)
|
|
995
|
-
: undefined,
|
|
996
|
-
Product: (0, smithy_client_1.expectString)(output.Product),
|
|
997
|
-
Settings: output.Settings != null ? de_Settings(output.Settings, context) : undefined,
|
|
998
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
999
|
-
};
|
|
1000
|
-
};
|
|
1001
|
-
const de_IdentityProviderSummaryList = (output, context) => {
|
|
1002
|
-
const retVal = (output || [])
|
|
1003
|
-
.filter((e) => e != null)
|
|
1004
|
-
.map((entry) => {
|
|
1005
|
-
if (entry === null) {
|
|
1006
|
-
return null;
|
|
1007
|
-
}
|
|
1008
|
-
return de_IdentityProviderSummary(entry, context);
|
|
1009
|
-
});
|
|
1010
|
-
return retVal;
|
|
1011
|
-
};
|
|
1012
|
-
const de_InstanceSummary = (output, context) => {
|
|
1013
|
-
return {
|
|
1014
|
-
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
1015
|
-
LastStatusCheckDate: (0, smithy_client_1.expectString)(output.LastStatusCheckDate),
|
|
1016
|
-
Products: output.Products != null ? de_StringList(output.Products, context) : undefined,
|
|
1017
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1018
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
const de_InstanceSummaryList = (output, context) => {
|
|
1022
|
-
const retVal = (output || [])
|
|
1023
|
-
.filter((e) => e != null)
|
|
1024
|
-
.map((entry) => {
|
|
1025
|
-
if (entry === null) {
|
|
1026
|
-
return null;
|
|
1027
|
-
}
|
|
1028
|
-
return de_InstanceSummary(entry, context);
|
|
1029
|
-
});
|
|
1030
|
-
return retVal;
|
|
1031
|
-
};
|
|
1032
|
-
const de_InstanceUserSummary = (output, context) => {
|
|
1033
|
-
return {
|
|
1034
|
-
AssociationDate: (0, smithy_client_1.expectString)(output.AssociationDate),
|
|
1035
|
-
DisassociationDate: (0, smithy_client_1.expectString)(output.DisassociationDate),
|
|
1036
|
-
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
1037
|
-
IdentityProvider: output.IdentityProvider != null
|
|
1038
|
-
? de_IdentityProvider((0, smithy_client_1.expectUnion)(output.IdentityProvider), context)
|
|
1039
|
-
: undefined,
|
|
1040
|
-
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
1041
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1042
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1043
|
-
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
const de_InstanceUserSummaryList = (output, context) => {
|
|
1047
|
-
const retVal = (output || [])
|
|
1048
|
-
.filter((e) => e != null)
|
|
1049
|
-
.map((entry) => {
|
|
1050
|
-
if (entry === null) {
|
|
1051
|
-
return null;
|
|
1052
|
-
}
|
|
1053
|
-
return de_InstanceUserSummary(entry, context);
|
|
1054
|
-
});
|
|
1055
|
-
return retVal;
|
|
1056
|
-
};
|
|
1057
|
-
const de_ProductUserSummary = (output, context) => {
|
|
1058
|
-
return {
|
|
1059
|
-
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
1060
|
-
IdentityProvider: output.IdentityProvider != null
|
|
1061
|
-
? de_IdentityProvider((0, smithy_client_1.expectUnion)(output.IdentityProvider), context)
|
|
1062
|
-
: undefined,
|
|
1063
|
-
Product: (0, smithy_client_1.expectString)(output.Product),
|
|
1064
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1065
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1066
|
-
SubscriptionEndDate: (0, smithy_client_1.expectString)(output.SubscriptionEndDate),
|
|
1067
|
-
SubscriptionStartDate: (0, smithy_client_1.expectString)(output.SubscriptionStartDate),
|
|
1068
|
-
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
1069
|
-
};
|
|
1070
|
-
};
|
|
1071
|
-
const de_ProductUserSummaryList = (output, context) => {
|
|
1072
|
-
const retVal = (output || [])
|
|
1073
|
-
.filter((e) => e != null)
|
|
1074
|
-
.map((entry) => {
|
|
1075
|
-
if (entry === null) {
|
|
1076
|
-
return null;
|
|
1077
|
-
}
|
|
1078
|
-
return de_ProductUserSummary(entry, context);
|
|
1079
|
-
});
|
|
1080
|
-
return retVal;
|
|
1081
|
-
};
|
|
1082
|
-
const de_Settings = (output, context) => {
|
|
1083
|
-
return {
|
|
1084
|
-
SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
|
|
1085
|
-
Subnets: output.Subnets != null ? de_Subnets(output.Subnets, context) : undefined,
|
|
1086
|
-
};
|
|
1087
|
-
};
|
|
1088
|
-
const de_StringList = (output, context) => {
|
|
1089
|
-
const retVal = (output || [])
|
|
1090
|
-
.filter((e) => e != null)
|
|
1091
|
-
.map((entry) => {
|
|
1092
|
-
if (entry === null) {
|
|
1093
|
-
return null;
|
|
1094
|
-
}
|
|
1095
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1096
|
-
});
|
|
1097
|
-
return retVal;
|
|
1098
|
-
};
|
|
1099
|
-
const de_Subnets = (output, context) => {
|
|
1100
|
-
const retVal = (output || [])
|
|
1101
|
-
.filter((e) => e != null)
|
|
1102
|
-
.map((entry) => {
|
|
1103
|
-
if (entry === null) {
|
|
1104
|
-
return null;
|
|
1105
|
-
}
|
|
1106
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1107
|
-
});
|
|
1108
|
-
return retVal;
|
|
1109
|
-
};
|
|
1110
929
|
const deserializeMetadata = (output) => ({
|
|
1111
930
|
httpStatusCode: output.statusCode,
|
|
1112
931
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|