@aws-sdk/client-amplifybackend 3.29.0 → 3.33.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 +32 -0
- package/dist/cjs/AmplifyBackendClient.js +13 -13
- package/dist/cjs/AmplifyBackendClient.js.map +1 -1
- package/dist/cjs/commands/CloneBackendCommand.js +3 -3
- package/dist/cjs/commands/CloneBackendCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBackendAPICommand.js +3 -3
- package/dist/cjs/commands/CreateBackendAPICommand.js.map +1 -1
- package/dist/cjs/commands/CreateBackendAuthCommand.js +3 -3
- package/dist/cjs/commands/CreateBackendAuthCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBackendCommand.js +3 -3
- package/dist/cjs/commands/CreateBackendCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBackendConfigCommand.js +3 -3
- package/dist/cjs/commands/CreateBackendConfigCommand.js.map +1 -1
- package/dist/cjs/commands/CreateTokenCommand.js +3 -3
- package/dist/cjs/commands/CreateTokenCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBackendAPICommand.js +3 -3
- package/dist/cjs/commands/DeleteBackendAPICommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBackendAuthCommand.js +3 -3
- package/dist/cjs/commands/DeleteBackendAuthCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBackendCommand.js +3 -3
- package/dist/cjs/commands/DeleteBackendCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTokenCommand.js +3 -3
- package/dist/cjs/commands/DeleteTokenCommand.js.map +1 -1
- package/dist/cjs/commands/GenerateBackendAPIModelsCommand.js +3 -3
- package/dist/cjs/commands/GenerateBackendAPIModelsCommand.js.map +1 -1
- package/dist/cjs/commands/GetBackendAPICommand.js +3 -3
- package/dist/cjs/commands/GetBackendAPICommand.js.map +1 -1
- package/dist/cjs/commands/GetBackendAPIModelsCommand.js +3 -3
- package/dist/cjs/commands/GetBackendAPIModelsCommand.js.map +1 -1
- package/dist/cjs/commands/GetBackendAuthCommand.js +3 -3
- package/dist/cjs/commands/GetBackendAuthCommand.js.map +1 -1
- package/dist/cjs/commands/GetBackendCommand.js +3 -3
- package/dist/cjs/commands/GetBackendCommand.js.map +1 -1
- package/dist/cjs/commands/GetBackendJobCommand.js +3 -3
- package/dist/cjs/commands/GetBackendJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetTokenCommand.js +3 -3
- package/dist/cjs/commands/GetTokenCommand.js.map +1 -1
- package/dist/cjs/commands/ImportBackendAuthCommand.js +3 -3
- package/dist/cjs/commands/ImportBackendAuthCommand.js.map +1 -1
- package/dist/cjs/commands/ListBackendJobsCommand.js +3 -3
- package/dist/cjs/commands/ListBackendJobsCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveAllBackendsCommand.js +3 -3
- package/dist/cjs/commands/RemoveAllBackendsCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveBackendConfigCommand.js +3 -3
- package/dist/cjs/commands/RemoveBackendConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBackendAPICommand.js +3 -3
- package/dist/cjs/commands/UpdateBackendAPICommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBackendAuthCommand.js +3 -3
- package/dist/cjs/commands/UpdateBackendAuthCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBackendConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateBackendConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBackendJobCommand.js +3 -3
- package/dist/cjs/commands/UpdateBackendJobCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +28 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +247 -247
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/package.json +31 -31
- package/tsconfig.json +1 -2
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
|
|
|
15
15
|
if (labelValue.length <= 0) {
|
|
16
16
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
17
17
|
}
|
|
18
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
18
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -25,7 +25,7 @@ const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
|
|
|
25
25
|
if (labelValue.length <= 0) {
|
|
26
26
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
27
27
|
}
|
|
28
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
28
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
31
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -86,7 +86,7 @@ const serializeAws_restJson1CreateBackendAPICommand = async (input, context) =>
|
|
|
86
86
|
if (labelValue.length <= 0) {
|
|
87
87
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
88
88
|
}
|
|
89
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
89
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
92
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -123,7 +123,7 @@ const serializeAws_restJson1CreateBackendAuthCommand = async (input, context) =>
|
|
|
123
123
|
if (labelValue.length <= 0) {
|
|
124
124
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
125
125
|
}
|
|
126
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
126
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
129
129
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -160,7 +160,7 @@ const serializeAws_restJson1CreateBackendConfigCommand = async (input, context)
|
|
|
160
160
|
if (labelValue.length <= 0) {
|
|
161
161
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
162
162
|
}
|
|
163
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
163
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
166
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -190,7 +190,7 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
190
190
|
if (labelValue.length <= 0) {
|
|
191
191
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
192
192
|
}
|
|
193
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
193
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
194
194
|
}
|
|
195
195
|
else {
|
|
196
196
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -217,7 +217,7 @@ const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
|
|
|
217
217
|
if (labelValue.length <= 0) {
|
|
218
218
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
219
219
|
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
220
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
221
221
|
}
|
|
222
222
|
else {
|
|
223
223
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -227,7 +227,7 @@ const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
|
|
|
227
227
|
if (labelValue.length <= 0) {
|
|
228
228
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
229
229
|
}
|
|
230
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
230
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
231
231
|
}
|
|
232
232
|
else {
|
|
233
233
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -256,7 +256,7 @@ const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) =>
|
|
|
256
256
|
if (labelValue.length <= 0) {
|
|
257
257
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
258
258
|
}
|
|
259
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
259
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
260
260
|
}
|
|
261
261
|
else {
|
|
262
262
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -266,7 +266,7 @@ const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) =>
|
|
|
266
266
|
if (labelValue.length <= 0) {
|
|
267
267
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
268
268
|
}
|
|
269
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
269
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
272
272
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -302,7 +302,7 @@ const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) =>
|
|
|
302
302
|
if (labelValue.length <= 0) {
|
|
303
303
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
304
304
|
}
|
|
305
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
305
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
306
306
|
}
|
|
307
307
|
else {
|
|
308
308
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -312,7 +312,7 @@ const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) =>
|
|
|
312
312
|
if (labelValue.length <= 0) {
|
|
313
313
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
314
314
|
}
|
|
315
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
315
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
316
316
|
}
|
|
317
317
|
else {
|
|
318
318
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -342,7 +342,7 @@ const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
|
|
|
342
342
|
if (labelValue.length <= 0) {
|
|
343
343
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
344
344
|
}
|
|
345
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
345
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
346
346
|
}
|
|
347
347
|
else {
|
|
348
348
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -352,7 +352,7 @@ const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
|
|
|
352
352
|
if (labelValue.length <= 0) {
|
|
353
353
|
throw new Error("Empty value provided for input HTTP label: SessionId.");
|
|
354
354
|
}
|
|
355
|
-
resolvedPath = resolvedPath.replace("{SessionId}",
|
|
355
|
+
resolvedPath = resolvedPath.replace("{SessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
356
356
|
}
|
|
357
357
|
else {
|
|
358
358
|
throw new Error("No value provided for input HTTP label: SessionId.");
|
|
@@ -381,7 +381,7 @@ const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, cont
|
|
|
381
381
|
if (labelValue.length <= 0) {
|
|
382
382
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
383
383
|
}
|
|
384
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
384
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
385
385
|
}
|
|
386
386
|
else {
|
|
387
387
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -391,7 +391,7 @@ const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, cont
|
|
|
391
391
|
if (labelValue.length <= 0) {
|
|
392
392
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
393
393
|
}
|
|
394
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
394
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
395
395
|
}
|
|
396
396
|
else {
|
|
397
397
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -422,7 +422,7 @@ const serializeAws_restJson1GetBackendCommand = async (input, context) => {
|
|
|
422
422
|
if (labelValue.length <= 0) {
|
|
423
423
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
424
424
|
}
|
|
425
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
425
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
428
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -455,7 +455,7 @@ const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
|
|
|
455
455
|
if (labelValue.length <= 0) {
|
|
456
456
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
457
457
|
}
|
|
458
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
458
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
459
459
|
}
|
|
460
460
|
else {
|
|
461
461
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -465,7 +465,7 @@ const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
|
|
|
465
465
|
if (labelValue.length <= 0) {
|
|
466
466
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
467
467
|
}
|
|
468
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
468
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
469
469
|
}
|
|
470
470
|
else {
|
|
471
471
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -501,7 +501,7 @@ const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context)
|
|
|
501
501
|
if (labelValue.length <= 0) {
|
|
502
502
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
503
503
|
}
|
|
504
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
504
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
505
505
|
}
|
|
506
506
|
else {
|
|
507
507
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -511,7 +511,7 @@ const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context)
|
|
|
511
511
|
if (labelValue.length <= 0) {
|
|
512
512
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
513
513
|
}
|
|
514
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
514
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
515
515
|
}
|
|
516
516
|
else {
|
|
517
517
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -543,7 +543,7 @@ const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
|
|
|
543
543
|
if (labelValue.length <= 0) {
|
|
544
544
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
545
545
|
}
|
|
546
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
546
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
547
547
|
}
|
|
548
548
|
else {
|
|
549
549
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -553,7 +553,7 @@ const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
|
|
|
553
553
|
if (labelValue.length <= 0) {
|
|
554
554
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
555
555
|
}
|
|
556
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
556
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
557
557
|
}
|
|
558
558
|
else {
|
|
559
559
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -583,7 +583,7 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
|
|
|
583
583
|
if (labelValue.length <= 0) {
|
|
584
584
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
585
585
|
}
|
|
586
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
586
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
587
587
|
}
|
|
588
588
|
else {
|
|
589
589
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -593,7 +593,7 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
|
|
|
593
593
|
if (labelValue.length <= 0) {
|
|
594
594
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
595
595
|
}
|
|
596
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
596
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
599
599
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -603,7 +603,7 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
|
|
|
603
603
|
if (labelValue.length <= 0) {
|
|
604
604
|
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
605
605
|
}
|
|
606
|
-
resolvedPath = resolvedPath.replace("{JobId}",
|
|
606
|
+
resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
607
607
|
}
|
|
608
608
|
else {
|
|
609
609
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
@@ -629,7 +629,7 @@ const serializeAws_restJson1GetTokenCommand = async (input, context) => {
|
|
|
629
629
|
if (labelValue.length <= 0) {
|
|
630
630
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
631
631
|
}
|
|
632
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
632
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
633
633
|
}
|
|
634
634
|
else {
|
|
635
635
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -639,7 +639,7 @@ const serializeAws_restJson1GetTokenCommand = async (input, context) => {
|
|
|
639
639
|
if (labelValue.length <= 0) {
|
|
640
640
|
throw new Error("Empty value provided for input HTTP label: SessionId.");
|
|
641
641
|
}
|
|
642
|
-
resolvedPath = resolvedPath.replace("{SessionId}",
|
|
642
|
+
resolvedPath = resolvedPath.replace("{SessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
643
643
|
}
|
|
644
644
|
else {
|
|
645
645
|
throw new Error("No value provided for input HTTP label: SessionId.");
|
|
@@ -668,7 +668,7 @@ const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) =>
|
|
|
668
668
|
if (labelValue.length <= 0) {
|
|
669
669
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
670
670
|
}
|
|
671
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
671
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
672
672
|
}
|
|
673
673
|
else {
|
|
674
674
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -678,7 +678,7 @@ const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) =>
|
|
|
678
678
|
if (labelValue.length <= 0) {
|
|
679
679
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
680
680
|
}
|
|
681
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
681
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
682
682
|
}
|
|
683
683
|
else {
|
|
684
684
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -715,7 +715,7 @@ const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
|
|
|
715
715
|
if (labelValue.length <= 0) {
|
|
716
716
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
717
717
|
}
|
|
718
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
718
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
719
719
|
}
|
|
720
720
|
else {
|
|
721
721
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -725,7 +725,7 @@ const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
|
|
|
725
725
|
if (labelValue.length <= 0) {
|
|
726
726
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
727
727
|
}
|
|
728
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
728
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
729
729
|
}
|
|
730
730
|
else {
|
|
731
731
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -760,7 +760,7 @@ const serializeAws_restJson1RemoveAllBackendsCommand = async (input, context) =>
|
|
|
760
760
|
if (labelValue.length <= 0) {
|
|
761
761
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
762
762
|
}
|
|
763
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
763
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
764
764
|
}
|
|
765
765
|
else {
|
|
766
766
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -790,7 +790,7 @@ const serializeAws_restJson1RemoveBackendConfigCommand = async (input, context)
|
|
|
790
790
|
if (labelValue.length <= 0) {
|
|
791
791
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
792
792
|
}
|
|
793
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
793
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
794
794
|
}
|
|
795
795
|
else {
|
|
796
796
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -819,7 +819,7 @@ const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) =>
|
|
|
819
819
|
if (labelValue.length <= 0) {
|
|
820
820
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
821
821
|
}
|
|
822
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
822
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
823
823
|
}
|
|
824
824
|
else {
|
|
825
825
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -829,7 +829,7 @@ const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) =>
|
|
|
829
829
|
if (labelValue.length <= 0) {
|
|
830
830
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
831
831
|
}
|
|
832
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
832
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
833
833
|
}
|
|
834
834
|
else {
|
|
835
835
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -865,7 +865,7 @@ const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) =>
|
|
|
865
865
|
if (labelValue.length <= 0) {
|
|
866
866
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
867
867
|
}
|
|
868
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
868
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
869
869
|
}
|
|
870
870
|
else {
|
|
871
871
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -875,7 +875,7 @@ const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) =>
|
|
|
875
875
|
if (labelValue.length <= 0) {
|
|
876
876
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
877
877
|
}
|
|
878
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
878
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
879
879
|
}
|
|
880
880
|
else {
|
|
881
881
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -910,7 +910,7 @@ const serializeAws_restJson1UpdateBackendConfigCommand = async (input, context)
|
|
|
910
910
|
if (labelValue.length <= 0) {
|
|
911
911
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
912
912
|
}
|
|
913
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
913
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
914
914
|
}
|
|
915
915
|
else {
|
|
916
916
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -945,7 +945,7 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
|
|
|
945
945
|
if (labelValue.length <= 0) {
|
|
946
946
|
throw new Error("Empty value provided for input HTTP label: AppId.");
|
|
947
947
|
}
|
|
948
|
-
resolvedPath = resolvedPath.replace("{AppId}",
|
|
948
|
+
resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
949
949
|
}
|
|
950
950
|
else {
|
|
951
951
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
@@ -955,7 +955,7 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
|
|
|
955
955
|
if (labelValue.length <= 0) {
|
|
956
956
|
throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
|
|
957
957
|
}
|
|
958
|
-
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}",
|
|
958
|
+
resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
959
959
|
}
|
|
960
960
|
else {
|
|
961
961
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
@@ -965,7 +965,7 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
|
|
|
965
965
|
if (labelValue.length <= 0) {
|
|
966
966
|
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
967
967
|
}
|
|
968
|
-
resolvedPath = resolvedPath.replace("{JobId}",
|
|
968
|
+
resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
969
969
|
}
|
|
970
970
|
else {
|
|
971
971
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
@@ -999,24 +999,24 @@ const deserializeAws_restJson1CloneBackendCommand = async (output, context) => {
|
|
|
999
999
|
Operation: undefined,
|
|
1000
1000
|
Status: undefined,
|
|
1001
1001
|
};
|
|
1002
|
-
const data =
|
|
1002
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1003
1003
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1004
|
-
contents.AppId =
|
|
1004
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1005
1005
|
}
|
|
1006
1006
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1007
|
-
contents.BackendEnvironmentName =
|
|
1007
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1008
1008
|
}
|
|
1009
1009
|
if (data.error !== undefined && data.error !== null) {
|
|
1010
|
-
contents.Error =
|
|
1010
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1011
1011
|
}
|
|
1012
1012
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1013
|
-
contents.JobId =
|
|
1013
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1014
1014
|
}
|
|
1015
1015
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1016
|
-
contents.Operation =
|
|
1016
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1017
1017
|
}
|
|
1018
1018
|
if (data.status !== undefined && data.status !== null) {
|
|
1019
|
-
contents.Status =
|
|
1019
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1020
1020
|
}
|
|
1021
1021
|
return Promise.resolve(contents);
|
|
1022
1022
|
};
|
|
@@ -1091,24 +1091,24 @@ const deserializeAws_restJson1CreateBackendCommand = async (output, context) =>
|
|
|
1091
1091
|
Operation: undefined,
|
|
1092
1092
|
Status: undefined,
|
|
1093
1093
|
};
|
|
1094
|
-
const data =
|
|
1094
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1095
1095
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1096
|
-
contents.AppId =
|
|
1096
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1097
1097
|
}
|
|
1098
1098
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1099
|
-
contents.BackendEnvironmentName =
|
|
1099
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1100
1100
|
}
|
|
1101
1101
|
if (data.error !== undefined && data.error !== null) {
|
|
1102
|
-
contents.Error =
|
|
1102
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1103
1103
|
}
|
|
1104
1104
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1105
|
-
contents.JobId =
|
|
1105
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1108
|
-
contents.Operation =
|
|
1108
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1109
1109
|
}
|
|
1110
1110
|
if (data.status !== undefined && data.status !== null) {
|
|
1111
|
-
contents.Status =
|
|
1111
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1112
1112
|
}
|
|
1113
1113
|
return Promise.resolve(contents);
|
|
1114
1114
|
};
|
|
@@ -1183,24 +1183,24 @@ const deserializeAws_restJson1CreateBackendAPICommand = async (output, context)
|
|
|
1183
1183
|
Operation: undefined,
|
|
1184
1184
|
Status: undefined,
|
|
1185
1185
|
};
|
|
1186
|
-
const data =
|
|
1186
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1187
1187
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1188
|
-
contents.AppId =
|
|
1188
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1189
1189
|
}
|
|
1190
1190
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1191
|
-
contents.BackendEnvironmentName =
|
|
1191
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1192
1192
|
}
|
|
1193
1193
|
if (data.error !== undefined && data.error !== null) {
|
|
1194
|
-
contents.Error =
|
|
1194
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1195
1195
|
}
|
|
1196
1196
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1197
|
-
contents.JobId =
|
|
1197
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1198
1198
|
}
|
|
1199
1199
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1200
|
-
contents.Operation =
|
|
1200
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1201
1201
|
}
|
|
1202
1202
|
if (data.status !== undefined && data.status !== null) {
|
|
1203
|
-
contents.Status =
|
|
1203
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1204
1204
|
}
|
|
1205
1205
|
return Promise.resolve(contents);
|
|
1206
1206
|
};
|
|
@@ -1275,24 +1275,24 @@ const deserializeAws_restJson1CreateBackendAuthCommand = async (output, context)
|
|
|
1275
1275
|
Operation: undefined,
|
|
1276
1276
|
Status: undefined,
|
|
1277
1277
|
};
|
|
1278
|
-
const data =
|
|
1278
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1279
1279
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1280
|
-
contents.AppId =
|
|
1280
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1281
1281
|
}
|
|
1282
1282
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1283
|
-
contents.BackendEnvironmentName =
|
|
1283
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1284
1284
|
}
|
|
1285
1285
|
if (data.error !== undefined && data.error !== null) {
|
|
1286
|
-
contents.Error =
|
|
1286
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1287
1287
|
}
|
|
1288
1288
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1289
|
-
contents.JobId =
|
|
1289
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1290
1290
|
}
|
|
1291
1291
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1292
|
-
contents.Operation =
|
|
1292
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1293
1293
|
}
|
|
1294
1294
|
if (data.status !== undefined && data.status !== null) {
|
|
1295
|
-
contents.Status =
|
|
1295
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1296
1296
|
}
|
|
1297
1297
|
return Promise.resolve(contents);
|
|
1298
1298
|
};
|
|
@@ -1365,18 +1365,18 @@ const deserializeAws_restJson1CreateBackendConfigCommand = async (output, contex
|
|
|
1365
1365
|
JobId: undefined,
|
|
1366
1366
|
Status: undefined,
|
|
1367
1367
|
};
|
|
1368
|
-
const data =
|
|
1368
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1369
1369
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1370
|
-
contents.AppId =
|
|
1370
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1371
1371
|
}
|
|
1372
1372
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1373
|
-
contents.BackendEnvironmentName =
|
|
1373
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1374
1374
|
}
|
|
1375
1375
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1376
|
-
contents.JobId =
|
|
1376
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1377
1377
|
}
|
|
1378
1378
|
if (data.status !== undefined && data.status !== null) {
|
|
1379
|
-
contents.Status =
|
|
1379
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1380
1380
|
}
|
|
1381
1381
|
return Promise.resolve(contents);
|
|
1382
1382
|
};
|
|
@@ -1449,18 +1449,18 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
|
|
|
1449
1449
|
SessionId: undefined,
|
|
1450
1450
|
Ttl: undefined,
|
|
1451
1451
|
};
|
|
1452
|
-
const data =
|
|
1452
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1453
1453
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1454
|
-
contents.AppId =
|
|
1454
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1455
1455
|
}
|
|
1456
1456
|
if (data.challengeCode !== undefined && data.challengeCode !== null) {
|
|
1457
|
-
contents.ChallengeCode =
|
|
1457
|
+
contents.ChallengeCode = smithy_client_1.expectString(data.challengeCode);
|
|
1458
1458
|
}
|
|
1459
1459
|
if (data.sessionId !== undefined && data.sessionId !== null) {
|
|
1460
|
-
contents.SessionId =
|
|
1460
|
+
contents.SessionId = smithy_client_1.expectString(data.sessionId);
|
|
1461
1461
|
}
|
|
1462
1462
|
if (data.ttl !== undefined && data.ttl !== null) {
|
|
1463
|
-
contents.Ttl =
|
|
1463
|
+
contents.Ttl = smithy_client_1.expectString(data.ttl);
|
|
1464
1464
|
}
|
|
1465
1465
|
return Promise.resolve(contents);
|
|
1466
1466
|
};
|
|
@@ -1535,24 +1535,24 @@ const deserializeAws_restJson1DeleteBackendCommand = async (output, context) =>
|
|
|
1535
1535
|
Operation: undefined,
|
|
1536
1536
|
Status: undefined,
|
|
1537
1537
|
};
|
|
1538
|
-
const data =
|
|
1538
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1539
1539
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1540
|
-
contents.AppId =
|
|
1540
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1541
1541
|
}
|
|
1542
1542
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1543
|
-
contents.BackendEnvironmentName =
|
|
1543
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1544
1544
|
}
|
|
1545
1545
|
if (data.error !== undefined && data.error !== null) {
|
|
1546
|
-
contents.Error =
|
|
1546
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1547
1547
|
}
|
|
1548
1548
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1549
|
-
contents.JobId =
|
|
1549
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1550
1550
|
}
|
|
1551
1551
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1552
|
-
contents.Operation =
|
|
1552
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1553
1553
|
}
|
|
1554
1554
|
if (data.status !== undefined && data.status !== null) {
|
|
1555
|
-
contents.Status =
|
|
1555
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1556
1556
|
}
|
|
1557
1557
|
return Promise.resolve(contents);
|
|
1558
1558
|
};
|
|
@@ -1627,24 +1627,24 @@ const deserializeAws_restJson1DeleteBackendAPICommand = async (output, context)
|
|
|
1627
1627
|
Operation: undefined,
|
|
1628
1628
|
Status: undefined,
|
|
1629
1629
|
};
|
|
1630
|
-
const data =
|
|
1630
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1631
1631
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1632
|
-
contents.AppId =
|
|
1632
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1633
1633
|
}
|
|
1634
1634
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1635
|
-
contents.BackendEnvironmentName =
|
|
1635
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1636
1636
|
}
|
|
1637
1637
|
if (data.error !== undefined && data.error !== null) {
|
|
1638
|
-
contents.Error =
|
|
1638
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1639
1639
|
}
|
|
1640
1640
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1641
|
-
contents.JobId =
|
|
1641
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1642
1642
|
}
|
|
1643
1643
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1644
|
-
contents.Operation =
|
|
1644
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1645
1645
|
}
|
|
1646
1646
|
if (data.status !== undefined && data.status !== null) {
|
|
1647
|
-
contents.Status =
|
|
1647
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1648
1648
|
}
|
|
1649
1649
|
return Promise.resolve(contents);
|
|
1650
1650
|
};
|
|
@@ -1719,24 +1719,24 @@ const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, context)
|
|
|
1719
1719
|
Operation: undefined,
|
|
1720
1720
|
Status: undefined,
|
|
1721
1721
|
};
|
|
1722
|
-
const data =
|
|
1722
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1723
1723
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1724
|
-
contents.AppId =
|
|
1724
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1725
1725
|
}
|
|
1726
1726
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1727
|
-
contents.BackendEnvironmentName =
|
|
1727
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1728
1728
|
}
|
|
1729
1729
|
if (data.error !== undefined && data.error !== null) {
|
|
1730
|
-
contents.Error =
|
|
1730
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1731
1731
|
}
|
|
1732
1732
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1733
|
-
contents.JobId =
|
|
1733
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1734
1734
|
}
|
|
1735
1735
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1736
|
-
contents.Operation =
|
|
1736
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1737
1737
|
}
|
|
1738
1738
|
if (data.status !== undefined && data.status !== null) {
|
|
1739
|
-
contents.Status =
|
|
1739
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1740
1740
|
}
|
|
1741
1741
|
return Promise.resolve(contents);
|
|
1742
1742
|
};
|
|
@@ -1806,9 +1806,9 @@ const deserializeAws_restJson1DeleteTokenCommand = async (output, context) => {
|
|
|
1806
1806
|
$metadata: deserializeMetadata(output),
|
|
1807
1807
|
IsSuccess: undefined,
|
|
1808
1808
|
};
|
|
1809
|
-
const data =
|
|
1809
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1810
1810
|
if (data.isSuccess !== undefined && data.isSuccess !== null) {
|
|
1811
|
-
contents.IsSuccess =
|
|
1811
|
+
contents.IsSuccess = smithy_client_1.expectBoolean(data.isSuccess);
|
|
1812
1812
|
}
|
|
1813
1813
|
return Promise.resolve(contents);
|
|
1814
1814
|
};
|
|
@@ -1883,24 +1883,24 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (output, c
|
|
|
1883
1883
|
Operation: undefined,
|
|
1884
1884
|
Status: undefined,
|
|
1885
1885
|
};
|
|
1886
|
-
const data =
|
|
1886
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1887
1887
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1888
|
-
contents.AppId =
|
|
1888
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1889
1889
|
}
|
|
1890
1890
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1891
|
-
contents.BackendEnvironmentName =
|
|
1891
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1892
1892
|
}
|
|
1893
1893
|
if (data.error !== undefined && data.error !== null) {
|
|
1894
|
-
contents.Error =
|
|
1894
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1895
1895
|
}
|
|
1896
1896
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1897
|
-
contents.JobId =
|
|
1897
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
1898
1898
|
}
|
|
1899
1899
|
if (data.operation !== undefined && data.operation !== null) {
|
|
1900
|
-
contents.Operation =
|
|
1900
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
1901
1901
|
}
|
|
1902
1902
|
if (data.status !== undefined && data.status !== null) {
|
|
1903
|
-
contents.Status =
|
|
1903
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
1904
1904
|
}
|
|
1905
1905
|
return Promise.resolve(contents);
|
|
1906
1906
|
};
|
|
@@ -1975,24 +1975,24 @@ const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
|
|
|
1975
1975
|
BackendEnvironmentName: undefined,
|
|
1976
1976
|
Error: undefined,
|
|
1977
1977
|
};
|
|
1978
|
-
const data =
|
|
1978
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1979
1979
|
if (data.amplifyMetaConfig !== undefined && data.amplifyMetaConfig !== null) {
|
|
1980
|
-
contents.AmplifyMetaConfig =
|
|
1980
|
+
contents.AmplifyMetaConfig = smithy_client_1.expectString(data.amplifyMetaConfig);
|
|
1981
1981
|
}
|
|
1982
1982
|
if (data.appId !== undefined && data.appId !== null) {
|
|
1983
|
-
contents.AppId =
|
|
1983
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
1984
1984
|
}
|
|
1985
1985
|
if (data.appName !== undefined && data.appName !== null) {
|
|
1986
|
-
contents.AppName =
|
|
1986
|
+
contents.AppName = smithy_client_1.expectString(data.appName);
|
|
1987
1987
|
}
|
|
1988
1988
|
if (data.backendEnvironmentList !== undefined && data.backendEnvironmentList !== null) {
|
|
1989
1989
|
contents.BackendEnvironmentList = deserializeAws_restJson1ListOf__string(data.backendEnvironmentList, context);
|
|
1990
1990
|
}
|
|
1991
1991
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
1992
|
-
contents.BackendEnvironmentName =
|
|
1992
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
1993
1993
|
}
|
|
1994
1994
|
if (data.error !== undefined && data.error !== null) {
|
|
1995
|
-
contents.Error =
|
|
1995
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
1996
1996
|
}
|
|
1997
1997
|
return Promise.resolve(contents);
|
|
1998
1998
|
};
|
|
@@ -2066,21 +2066,21 @@ const deserializeAws_restJson1GetBackendAPICommand = async (output, context) =>
|
|
|
2066
2066
|
ResourceConfig: undefined,
|
|
2067
2067
|
ResourceName: undefined,
|
|
2068
2068
|
};
|
|
2069
|
-
const data =
|
|
2069
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2070
2070
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2071
|
-
contents.AppId =
|
|
2071
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2072
2072
|
}
|
|
2073
2073
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
2074
|
-
contents.BackendEnvironmentName =
|
|
2074
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
2075
2075
|
}
|
|
2076
2076
|
if (data.error !== undefined && data.error !== null) {
|
|
2077
|
-
contents.Error =
|
|
2077
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2078
2078
|
}
|
|
2079
2079
|
if (data.resourceConfig !== undefined && data.resourceConfig !== null) {
|
|
2080
2080
|
contents.ResourceConfig = deserializeAws_restJson1BackendAPIResourceConfig(data.resourceConfig, context);
|
|
2081
2081
|
}
|
|
2082
2082
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
2083
|
-
contents.ResourceName =
|
|
2083
|
+
contents.ResourceName = smithy_client_1.expectString(data.resourceName);
|
|
2084
2084
|
}
|
|
2085
2085
|
return Promise.resolve(contents);
|
|
2086
2086
|
};
|
|
@@ -2151,12 +2151,12 @@ const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output, contex
|
|
|
2151
2151
|
Models: undefined,
|
|
2152
2152
|
Status: undefined,
|
|
2153
2153
|
};
|
|
2154
|
-
const data =
|
|
2154
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2155
2155
|
if (data.models !== undefined && data.models !== null) {
|
|
2156
|
-
contents.Models =
|
|
2156
|
+
contents.Models = smithy_client_1.expectString(data.models);
|
|
2157
2157
|
}
|
|
2158
2158
|
if (data.status !== undefined && data.status !== null) {
|
|
2159
|
-
contents.Status =
|
|
2159
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
2160
2160
|
}
|
|
2161
2161
|
return Promise.resolve(contents);
|
|
2162
2162
|
};
|
|
@@ -2230,21 +2230,21 @@ const deserializeAws_restJson1GetBackendAuthCommand = async (output, context) =>
|
|
|
2230
2230
|
ResourceConfig: undefined,
|
|
2231
2231
|
ResourceName: undefined,
|
|
2232
2232
|
};
|
|
2233
|
-
const data =
|
|
2233
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2234
2234
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2235
|
-
contents.AppId =
|
|
2235
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2236
2236
|
}
|
|
2237
2237
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
2238
|
-
contents.BackendEnvironmentName =
|
|
2238
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
2239
2239
|
}
|
|
2240
2240
|
if (data.error !== undefined && data.error !== null) {
|
|
2241
|
-
contents.Error =
|
|
2241
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2242
2242
|
}
|
|
2243
2243
|
if (data.resourceConfig !== undefined && data.resourceConfig !== null) {
|
|
2244
2244
|
contents.ResourceConfig = deserializeAws_restJson1CreateBackendAuthResourceConfig(data.resourceConfig, context);
|
|
2245
2245
|
}
|
|
2246
2246
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
2247
|
-
contents.ResourceName =
|
|
2247
|
+
contents.ResourceName = smithy_client_1.expectString(data.resourceName);
|
|
2248
2248
|
}
|
|
2249
2249
|
return Promise.resolve(contents);
|
|
2250
2250
|
};
|
|
@@ -2321,30 +2321,30 @@ const deserializeAws_restJson1GetBackendJobCommand = async (output, context) =>
|
|
|
2321
2321
|
Status: undefined,
|
|
2322
2322
|
UpdateTime: undefined,
|
|
2323
2323
|
};
|
|
2324
|
-
const data =
|
|
2324
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2325
2325
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2326
|
-
contents.AppId =
|
|
2326
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2327
2327
|
}
|
|
2328
2328
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
2329
|
-
contents.BackendEnvironmentName =
|
|
2329
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
2330
2330
|
}
|
|
2331
2331
|
if (data.createTime !== undefined && data.createTime !== null) {
|
|
2332
|
-
contents.CreateTime =
|
|
2332
|
+
contents.CreateTime = smithy_client_1.expectString(data.createTime);
|
|
2333
2333
|
}
|
|
2334
2334
|
if (data.error !== undefined && data.error !== null) {
|
|
2335
|
-
contents.Error =
|
|
2335
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2336
2336
|
}
|
|
2337
2337
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2338
|
-
contents.JobId =
|
|
2338
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
2339
2339
|
}
|
|
2340
2340
|
if (data.operation !== undefined && data.operation !== null) {
|
|
2341
|
-
contents.Operation =
|
|
2341
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
2342
2342
|
}
|
|
2343
2343
|
if (data.status !== undefined && data.status !== null) {
|
|
2344
|
-
contents.Status =
|
|
2344
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
2345
2345
|
}
|
|
2346
2346
|
if (data.updateTime !== undefined && data.updateTime !== null) {
|
|
2347
|
-
contents.UpdateTime =
|
|
2347
|
+
contents.UpdateTime = smithy_client_1.expectString(data.updateTime);
|
|
2348
2348
|
}
|
|
2349
2349
|
return Promise.resolve(contents);
|
|
2350
2350
|
};
|
|
@@ -2417,18 +2417,18 @@ const deserializeAws_restJson1GetTokenCommand = async (output, context) => {
|
|
|
2417
2417
|
SessionId: undefined,
|
|
2418
2418
|
Ttl: undefined,
|
|
2419
2419
|
};
|
|
2420
|
-
const data =
|
|
2420
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2421
2421
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2422
|
-
contents.AppId =
|
|
2422
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2423
2423
|
}
|
|
2424
2424
|
if (data.challengeCode !== undefined && data.challengeCode !== null) {
|
|
2425
|
-
contents.ChallengeCode =
|
|
2425
|
+
contents.ChallengeCode = smithy_client_1.expectString(data.challengeCode);
|
|
2426
2426
|
}
|
|
2427
2427
|
if (data.sessionId !== undefined && data.sessionId !== null) {
|
|
2428
|
-
contents.SessionId =
|
|
2428
|
+
contents.SessionId = smithy_client_1.expectString(data.sessionId);
|
|
2429
2429
|
}
|
|
2430
2430
|
if (data.ttl !== undefined && data.ttl !== null) {
|
|
2431
|
-
contents.Ttl =
|
|
2431
|
+
contents.Ttl = smithy_client_1.expectString(data.ttl);
|
|
2432
2432
|
}
|
|
2433
2433
|
return Promise.resolve(contents);
|
|
2434
2434
|
};
|
|
@@ -2503,24 +2503,24 @@ const deserializeAws_restJson1ImportBackendAuthCommand = async (output, context)
|
|
|
2503
2503
|
Operation: undefined,
|
|
2504
2504
|
Status: undefined,
|
|
2505
2505
|
};
|
|
2506
|
-
const data =
|
|
2506
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2507
2507
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2508
|
-
contents.AppId =
|
|
2508
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2509
2509
|
}
|
|
2510
2510
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
2511
|
-
contents.BackendEnvironmentName =
|
|
2511
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
2512
2512
|
}
|
|
2513
2513
|
if (data.error !== undefined && data.error !== null) {
|
|
2514
|
-
contents.Error =
|
|
2514
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2515
2515
|
}
|
|
2516
2516
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2517
|
-
contents.JobId =
|
|
2517
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
2518
2518
|
}
|
|
2519
2519
|
if (data.operation !== undefined && data.operation !== null) {
|
|
2520
|
-
contents.Operation =
|
|
2520
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
2521
2521
|
}
|
|
2522
2522
|
if (data.status !== undefined && data.status !== null) {
|
|
2523
|
-
contents.Status =
|
|
2523
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
2524
2524
|
}
|
|
2525
2525
|
return Promise.resolve(contents);
|
|
2526
2526
|
};
|
|
@@ -2591,12 +2591,12 @@ const deserializeAws_restJson1ListBackendJobsCommand = async (output, context) =
|
|
|
2591
2591
|
Jobs: undefined,
|
|
2592
2592
|
NextToken: undefined,
|
|
2593
2593
|
};
|
|
2594
|
-
const data =
|
|
2594
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2595
2595
|
if (data.jobs !== undefined && data.jobs !== null) {
|
|
2596
2596
|
contents.Jobs = deserializeAws_restJson1ListOfBackendJobRespObj(data.jobs, context);
|
|
2597
2597
|
}
|
|
2598
2598
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2599
|
-
contents.NextToken =
|
|
2599
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2600
2600
|
}
|
|
2601
2601
|
return Promise.resolve(contents);
|
|
2602
2602
|
};
|
|
@@ -2670,21 +2670,21 @@ const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, context)
|
|
|
2670
2670
|
Operation: undefined,
|
|
2671
2671
|
Status: undefined,
|
|
2672
2672
|
};
|
|
2673
|
-
const data =
|
|
2673
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2674
2674
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2675
|
-
contents.AppId =
|
|
2675
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2676
2676
|
}
|
|
2677
2677
|
if (data.error !== undefined && data.error !== null) {
|
|
2678
|
-
contents.Error =
|
|
2678
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2679
2679
|
}
|
|
2680
2680
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2681
|
-
contents.JobId =
|
|
2681
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
2682
2682
|
}
|
|
2683
2683
|
if (data.operation !== undefined && data.operation !== null) {
|
|
2684
|
-
contents.Operation =
|
|
2684
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
2685
2685
|
}
|
|
2686
2686
|
if (data.status !== undefined && data.status !== null) {
|
|
2687
|
-
contents.Status =
|
|
2687
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
2688
2688
|
}
|
|
2689
2689
|
return Promise.resolve(contents);
|
|
2690
2690
|
};
|
|
@@ -2754,9 +2754,9 @@ const deserializeAws_restJson1RemoveBackendConfigCommand = async (output, contex
|
|
|
2754
2754
|
$metadata: deserializeMetadata(output),
|
|
2755
2755
|
Error: undefined,
|
|
2756
2756
|
};
|
|
2757
|
-
const data =
|
|
2757
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2758
2758
|
if (data.error !== undefined && data.error !== null) {
|
|
2759
|
-
contents.Error =
|
|
2759
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2760
2760
|
}
|
|
2761
2761
|
return Promise.resolve(contents);
|
|
2762
2762
|
};
|
|
@@ -2831,24 +2831,24 @@ const deserializeAws_restJson1UpdateBackendAPICommand = async (output, context)
|
|
|
2831
2831
|
Operation: undefined,
|
|
2832
2832
|
Status: undefined,
|
|
2833
2833
|
};
|
|
2834
|
-
const data =
|
|
2834
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2835
2835
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2836
|
-
contents.AppId =
|
|
2836
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2837
2837
|
}
|
|
2838
2838
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
2839
|
-
contents.BackendEnvironmentName =
|
|
2839
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
2840
2840
|
}
|
|
2841
2841
|
if (data.error !== undefined && data.error !== null) {
|
|
2842
|
-
contents.Error =
|
|
2842
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2843
2843
|
}
|
|
2844
2844
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2845
|
-
contents.JobId =
|
|
2845
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
2846
2846
|
}
|
|
2847
2847
|
if (data.operation !== undefined && data.operation !== null) {
|
|
2848
|
-
contents.Operation =
|
|
2848
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
2849
2849
|
}
|
|
2850
2850
|
if (data.status !== undefined && data.status !== null) {
|
|
2851
|
-
contents.Status =
|
|
2851
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
2852
2852
|
}
|
|
2853
2853
|
return Promise.resolve(contents);
|
|
2854
2854
|
};
|
|
@@ -2923,24 +2923,24 @@ const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, context)
|
|
|
2923
2923
|
Operation: undefined,
|
|
2924
2924
|
Status: undefined,
|
|
2925
2925
|
};
|
|
2926
|
-
const data =
|
|
2926
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2927
2927
|
if (data.appId !== undefined && data.appId !== null) {
|
|
2928
|
-
contents.AppId =
|
|
2928
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
2929
2929
|
}
|
|
2930
2930
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
2931
|
-
contents.BackendEnvironmentName =
|
|
2931
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
2932
2932
|
}
|
|
2933
2933
|
if (data.error !== undefined && data.error !== null) {
|
|
2934
|
-
contents.Error =
|
|
2934
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2937
|
-
contents.JobId =
|
|
2937
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
2938
2938
|
}
|
|
2939
2939
|
if (data.operation !== undefined && data.operation !== null) {
|
|
2940
|
-
contents.Operation =
|
|
2940
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
2941
2941
|
}
|
|
2942
2942
|
if (data.status !== undefined && data.status !== null) {
|
|
2943
|
-
contents.Status =
|
|
2943
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
2944
2944
|
}
|
|
2945
2945
|
return Promise.resolve(contents);
|
|
2946
2946
|
};
|
|
@@ -3013,15 +3013,15 @@ const deserializeAws_restJson1UpdateBackendConfigCommand = async (output, contex
|
|
|
3013
3013
|
Error: undefined,
|
|
3014
3014
|
LoginAuthConfig: undefined,
|
|
3015
3015
|
};
|
|
3016
|
-
const data =
|
|
3016
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3017
3017
|
if (data.appId !== undefined && data.appId !== null) {
|
|
3018
|
-
contents.AppId =
|
|
3018
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
3019
3019
|
}
|
|
3020
3020
|
if (data.backendManagerAppId !== undefined && data.backendManagerAppId !== null) {
|
|
3021
|
-
contents.BackendManagerAppId =
|
|
3021
|
+
contents.BackendManagerAppId = smithy_client_1.expectString(data.backendManagerAppId);
|
|
3022
3022
|
}
|
|
3023
3023
|
if (data.error !== undefined && data.error !== null) {
|
|
3024
|
-
contents.Error =
|
|
3024
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
3025
3025
|
}
|
|
3026
3026
|
if (data.loginAuthConfig !== undefined && data.loginAuthConfig !== null) {
|
|
3027
3027
|
contents.LoginAuthConfig = deserializeAws_restJson1LoginAuthConfigReqObj(data.loginAuthConfig, context);
|
|
@@ -3101,30 +3101,30 @@ const deserializeAws_restJson1UpdateBackendJobCommand = async (output, context)
|
|
|
3101
3101
|
Status: undefined,
|
|
3102
3102
|
UpdateTime: undefined,
|
|
3103
3103
|
};
|
|
3104
|
-
const data =
|
|
3104
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3105
3105
|
if (data.appId !== undefined && data.appId !== null) {
|
|
3106
|
-
contents.AppId =
|
|
3106
|
+
contents.AppId = smithy_client_1.expectString(data.appId);
|
|
3107
3107
|
}
|
|
3108
3108
|
if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
|
|
3109
|
-
contents.BackendEnvironmentName =
|
|
3109
|
+
contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
|
|
3110
3110
|
}
|
|
3111
3111
|
if (data.createTime !== undefined && data.createTime !== null) {
|
|
3112
|
-
contents.CreateTime =
|
|
3112
|
+
contents.CreateTime = smithy_client_1.expectString(data.createTime);
|
|
3113
3113
|
}
|
|
3114
3114
|
if (data.error !== undefined && data.error !== null) {
|
|
3115
|
-
contents.Error =
|
|
3115
|
+
contents.Error = smithy_client_1.expectString(data.error);
|
|
3116
3116
|
}
|
|
3117
3117
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
3118
|
-
contents.JobId =
|
|
3118
|
+
contents.JobId = smithy_client_1.expectString(data.jobId);
|
|
3119
3119
|
}
|
|
3120
3120
|
if (data.operation !== undefined && data.operation !== null) {
|
|
3121
|
-
contents.Operation =
|
|
3121
|
+
contents.Operation = smithy_client_1.expectString(data.operation);
|
|
3122
3122
|
}
|
|
3123
3123
|
if (data.status !== undefined && data.status !== null) {
|
|
3124
|
-
contents.Status =
|
|
3124
|
+
contents.Status = smithy_client_1.expectString(data.status);
|
|
3125
3125
|
}
|
|
3126
3126
|
if (data.updateTime !== undefined && data.updateTime !== null) {
|
|
3127
|
-
contents.UpdateTime =
|
|
3127
|
+
contents.UpdateTime = smithy_client_1.expectString(data.updateTime);
|
|
3128
3128
|
}
|
|
3129
3129
|
return Promise.resolve(contents);
|
|
3130
3130
|
};
|
|
@@ -3195,7 +3195,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3195
3195
|
};
|
|
3196
3196
|
const data = parsedOutput.body;
|
|
3197
3197
|
if (data.message !== undefined && data.message !== null) {
|
|
3198
|
-
contents.Message =
|
|
3198
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3199
3199
|
}
|
|
3200
3200
|
return contents;
|
|
3201
3201
|
};
|
|
@@ -3208,7 +3208,7 @@ const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOut
|
|
|
3208
3208
|
};
|
|
3209
3209
|
const data = parsedOutput.body;
|
|
3210
3210
|
if (data.message !== undefined && data.message !== null) {
|
|
3211
|
-
contents.Message =
|
|
3211
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3212
3212
|
}
|
|
3213
3213
|
return contents;
|
|
3214
3214
|
};
|
|
@@ -3222,10 +3222,10 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
3222
3222
|
};
|
|
3223
3223
|
const data = parsedOutput.body;
|
|
3224
3224
|
if (data.message !== undefined && data.message !== null) {
|
|
3225
|
-
contents.Message =
|
|
3225
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3226
3226
|
}
|
|
3227
3227
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3228
|
-
contents.ResourceType =
|
|
3228
|
+
contents.ResourceType = smithy_client_1.expectString(data.resourceType);
|
|
3229
3229
|
}
|
|
3230
3230
|
return contents;
|
|
3231
3231
|
};
|
|
@@ -3239,10 +3239,10 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
3239
3239
|
};
|
|
3240
3240
|
const data = parsedOutput.body;
|
|
3241
3241
|
if (data.limitType !== undefined && data.limitType !== null) {
|
|
3242
|
-
contents.LimitType =
|
|
3242
|
+
contents.LimitType = smithy_client_1.expectString(data.limitType);
|
|
3243
3243
|
}
|
|
3244
3244
|
if (data.message !== undefined && data.message !== null) {
|
|
3245
|
-
contents.Message =
|
|
3245
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3246
3246
|
}
|
|
3247
3247
|
return contents;
|
|
3248
3248
|
};
|
|
@@ -3252,7 +3252,7 @@ const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) =>
|
|
|
3252
3252
|
input.CognitoUserPoolId !== null && { cognitoUserPoolId: input.CognitoUserPoolId }),
|
|
3253
3253
|
...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
|
|
3254
3254
|
...(input.ExpirationTime !== undefined &&
|
|
3255
|
-
input.ExpirationTime !== null && { expirationTime:
|
|
3255
|
+
input.ExpirationTime !== null && { expirationTime: smithy_client_1.serializeFloat(input.ExpirationTime) }),
|
|
3256
3256
|
...(input.OpenIDAuthTTL !== undefined && input.OpenIDAuthTTL !== null && { openIDAuthTTL: input.OpenIDAuthTTL }),
|
|
3257
3257
|
...(input.OpenIDClientId !== undefined &&
|
|
3258
3258
|
input.OpenIDClientId !== null && { openIDClientId: input.OpenIDClientId }),
|
|
@@ -3369,7 +3369,7 @@ const serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (input, cont
|
|
|
3369
3369
|
additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
|
|
3370
3370
|
}),
|
|
3371
3371
|
...(input.MinimumLength !== undefined &&
|
|
3372
|
-
input.MinimumLength !== null && { minimumLength:
|
|
3372
|
+
input.MinimumLength !== null && { minimumLength: smithy_client_1.serializeFloat(input.MinimumLength) }),
|
|
3373
3373
|
};
|
|
3374
3374
|
};
|
|
3375
3375
|
const serializeAws_restJson1CreateBackendAuthResourceConfig = (input, context) => {
|
|
@@ -3576,7 +3576,7 @@ const serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = (input, cont
|
|
|
3576
3576
|
additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
|
|
3577
3577
|
}),
|
|
3578
3578
|
...(input.MinimumLength !== undefined &&
|
|
3579
|
-
input.MinimumLength !== null && { minimumLength:
|
|
3579
|
+
input.MinimumLength !== null && { minimumLength: smithy_client_1.serializeFloat(input.MinimumLength) }),
|
|
3580
3580
|
};
|
|
3581
3581
|
};
|
|
3582
3582
|
const serializeAws_restJson1UpdateBackendAuthResourceConfig = (input, context) => {
|
|
@@ -3611,19 +3611,19 @@ const serializeAws_restJson1UpdateBackendAuthUserPoolConfig = (input, context) =
|
|
|
3611
3611
|
};
|
|
3612
3612
|
const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (output, context) => {
|
|
3613
3613
|
return {
|
|
3614
|
-
CognitoUserPoolId:
|
|
3615
|
-
Description:
|
|
3616
|
-
ExpirationTime:
|
|
3617
|
-
OpenIDAuthTTL:
|
|
3618
|
-
OpenIDClientId:
|
|
3619
|
-
OpenIDIatTTL:
|
|
3620
|
-
OpenIDIssueURL:
|
|
3621
|
-
OpenIDProviderName:
|
|
3614
|
+
CognitoUserPoolId: smithy_client_1.expectString(output.cognitoUserPoolId),
|
|
3615
|
+
Description: smithy_client_1.expectString(output.description),
|
|
3616
|
+
ExpirationTime: smithy_client_1.limitedParseDouble(output.expirationTime),
|
|
3617
|
+
OpenIDAuthTTL: smithy_client_1.expectString(output.openIDAuthTTL),
|
|
3618
|
+
OpenIDClientId: smithy_client_1.expectString(output.openIDClientId),
|
|
3619
|
+
OpenIDIatTTL: smithy_client_1.expectString(output.openIDIatTTL),
|
|
3620
|
+
OpenIDIssueURL: smithy_client_1.expectString(output.openIDIssueURL),
|
|
3621
|
+
OpenIDProviderName: smithy_client_1.expectString(output.openIDProviderName),
|
|
3622
3622
|
};
|
|
3623
3623
|
};
|
|
3624
3624
|
const deserializeAws_restJson1BackendAPIAuthType = (output, context) => {
|
|
3625
3625
|
return {
|
|
3626
|
-
Mode:
|
|
3626
|
+
Mode: smithy_client_1.expectString(output.mode),
|
|
3627
3627
|
Settings: output.settings !== undefined && output.settings !== null
|
|
3628
3628
|
? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
|
|
3629
3629
|
: undefined,
|
|
@@ -3631,7 +3631,7 @@ const deserializeAws_restJson1BackendAPIAuthType = (output, context) => {
|
|
|
3631
3631
|
};
|
|
3632
3632
|
const deserializeAws_restJson1BackendAPIConflictResolution = (output, context) => {
|
|
3633
3633
|
return {
|
|
3634
|
-
ResolutionStrategy:
|
|
3634
|
+
ResolutionStrategy: smithy_client_1.expectString(output.resolutionStrategy),
|
|
3635
3635
|
};
|
|
3636
3636
|
};
|
|
3637
3637
|
const deserializeAws_restJson1BackendAPIResourceConfig = (output, context) => {
|
|
@@ -3639,46 +3639,46 @@ const deserializeAws_restJson1BackendAPIResourceConfig = (output, context) => {
|
|
|
3639
3639
|
AdditionalAuthTypes: output.additionalAuthTypes !== undefined && output.additionalAuthTypes !== null
|
|
3640
3640
|
? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
|
|
3641
3641
|
: undefined,
|
|
3642
|
-
ApiName:
|
|
3642
|
+
ApiName: smithy_client_1.expectString(output.apiName),
|
|
3643
3643
|
ConflictResolution: output.conflictResolution !== undefined && output.conflictResolution !== null
|
|
3644
3644
|
? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
|
|
3645
3645
|
: undefined,
|
|
3646
3646
|
DefaultAuthType: output.defaultAuthType !== undefined && output.defaultAuthType !== null
|
|
3647
3647
|
? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
|
|
3648
3648
|
: undefined,
|
|
3649
|
-
Service:
|
|
3650
|
-
TransformSchema:
|
|
3649
|
+
Service: smithy_client_1.expectString(output.service),
|
|
3650
|
+
TransformSchema: smithy_client_1.expectString(output.transformSchema),
|
|
3651
3651
|
};
|
|
3652
3652
|
};
|
|
3653
3653
|
const deserializeAws_restJson1BackendAuthAppleProviderConfig = (output, context) => {
|
|
3654
3654
|
return {
|
|
3655
|
-
ClientId:
|
|
3656
|
-
KeyId:
|
|
3657
|
-
PrivateKey:
|
|
3658
|
-
TeamId:
|
|
3655
|
+
ClientId: smithy_client_1.expectString(output.client_id),
|
|
3656
|
+
KeyId: smithy_client_1.expectString(output.key_id),
|
|
3657
|
+
PrivateKey: smithy_client_1.expectString(output.private_key),
|
|
3658
|
+
TeamId: smithy_client_1.expectString(output.team_id),
|
|
3659
3659
|
};
|
|
3660
3660
|
};
|
|
3661
3661
|
const deserializeAws_restJson1BackendAuthSocialProviderConfig = (output, context) => {
|
|
3662
3662
|
return {
|
|
3663
|
-
ClientId:
|
|
3664
|
-
ClientSecret:
|
|
3663
|
+
ClientId: smithy_client_1.expectString(output.client_id),
|
|
3664
|
+
ClientSecret: smithy_client_1.expectString(output.client_secret),
|
|
3665
3665
|
};
|
|
3666
3666
|
};
|
|
3667
3667
|
const deserializeAws_restJson1BackendJobRespObj = (output, context) => {
|
|
3668
3668
|
return {
|
|
3669
|
-
AppId:
|
|
3670
|
-
BackendEnvironmentName:
|
|
3671
|
-
CreateTime:
|
|
3672
|
-
Error:
|
|
3673
|
-
JobId:
|
|
3674
|
-
Operation:
|
|
3675
|
-
Status:
|
|
3676
|
-
UpdateTime:
|
|
3669
|
+
AppId: smithy_client_1.expectString(output.appId),
|
|
3670
|
+
BackendEnvironmentName: smithy_client_1.expectString(output.backendEnvironmentName),
|
|
3671
|
+
CreateTime: smithy_client_1.expectString(output.createTime),
|
|
3672
|
+
Error: smithy_client_1.expectString(output.error),
|
|
3673
|
+
JobId: smithy_client_1.expectString(output.jobId),
|
|
3674
|
+
Operation: smithy_client_1.expectString(output.operation),
|
|
3675
|
+
Status: smithy_client_1.expectString(output.status),
|
|
3676
|
+
UpdateTime: smithy_client_1.expectString(output.updateTime),
|
|
3677
3677
|
};
|
|
3678
3678
|
};
|
|
3679
3679
|
const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (output, context) => {
|
|
3680
3680
|
return {
|
|
3681
|
-
DeliveryMethod:
|
|
3681
|
+
DeliveryMethod: smithy_client_1.expectString(output.deliveryMethod),
|
|
3682
3682
|
EmailSettings: output.emailSettings !== undefined && output.emailSettings !== null
|
|
3683
3683
|
? deserializeAws_restJson1EmailSettings(output.emailSettings, context)
|
|
3684
3684
|
: undefined,
|
|
@@ -3689,13 +3689,13 @@ const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (output, c
|
|
|
3689
3689
|
};
|
|
3690
3690
|
const deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (output, context) => {
|
|
3691
3691
|
return {
|
|
3692
|
-
IdentityPoolName:
|
|
3693
|
-
UnauthenticatedLogin:
|
|
3692
|
+
IdentityPoolName: smithy_client_1.expectString(output.identityPoolName),
|
|
3693
|
+
UnauthenticatedLogin: smithy_client_1.expectBoolean(output.unauthenticatedLogin),
|
|
3694
3694
|
};
|
|
3695
3695
|
};
|
|
3696
3696
|
const deserializeAws_restJson1CreateBackendAuthMFAConfig = (output, context) => {
|
|
3697
3697
|
return {
|
|
3698
|
-
MFAMode:
|
|
3698
|
+
MFAMode: smithy_client_1.expectString(output.MFAMode),
|
|
3699
3699
|
Settings: output.settings !== undefined && output.settings !== null
|
|
3700
3700
|
? deserializeAws_restJson1Settings(output.settings, context)
|
|
3701
3701
|
: undefined,
|
|
@@ -3703,8 +3703,8 @@ const deserializeAws_restJson1CreateBackendAuthMFAConfig = (output, context) =>
|
|
|
3703
3703
|
};
|
|
3704
3704
|
const deserializeAws_restJson1CreateBackendAuthOAuthConfig = (output, context) => {
|
|
3705
3705
|
return {
|
|
3706
|
-
DomainPrefix:
|
|
3707
|
-
OAuthGrantType:
|
|
3706
|
+
DomainPrefix: smithy_client_1.expectString(output.domainPrefix),
|
|
3707
|
+
OAuthGrantType: smithy_client_1.expectString(output.oAuthGrantType),
|
|
3708
3708
|
OAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
|
|
3709
3709
|
? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
|
|
3710
3710
|
: undefined,
|
|
@@ -3724,16 +3724,16 @@ const deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (output, c
|
|
|
3724
3724
|
AdditionalConstraints: output.additionalConstraints !== undefined && output.additionalConstraints !== null
|
|
3725
3725
|
? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
|
|
3726
3726
|
: undefined,
|
|
3727
|
-
MinimumLength:
|
|
3727
|
+
MinimumLength: smithy_client_1.limitedParseDouble(output.minimumLength),
|
|
3728
3728
|
};
|
|
3729
3729
|
};
|
|
3730
3730
|
const deserializeAws_restJson1CreateBackendAuthResourceConfig = (output, context) => {
|
|
3731
3731
|
return {
|
|
3732
|
-
AuthResources:
|
|
3732
|
+
AuthResources: smithy_client_1.expectString(output.authResources),
|
|
3733
3733
|
IdentityPoolConfigs: output.identityPoolConfigs !== undefined && output.identityPoolConfigs !== null
|
|
3734
3734
|
? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
|
|
3735
3735
|
: undefined,
|
|
3736
|
-
Service:
|
|
3736
|
+
Service: smithy_client_1.expectString(output.service),
|
|
3737
3737
|
UserPoolConfigs: output.userPoolConfigs !== undefined && output.userPoolConfigs !== null
|
|
3738
3738
|
? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
|
|
3739
3739
|
: undefined,
|
|
@@ -3756,14 +3756,14 @@ const deserializeAws_restJson1CreateBackendAuthUserPoolConfig = (output, context
|
|
|
3756
3756
|
RequiredSignUpAttributes: output.requiredSignUpAttributes !== undefined && output.requiredSignUpAttributes !== null
|
|
3757
3757
|
? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
|
|
3758
3758
|
: undefined,
|
|
3759
|
-
SignInMethod:
|
|
3760
|
-
UserPoolName:
|
|
3759
|
+
SignInMethod: smithy_client_1.expectString(output.signInMethod),
|
|
3760
|
+
UserPoolName: smithy_client_1.expectString(output.userPoolName),
|
|
3761
3761
|
};
|
|
3762
3762
|
};
|
|
3763
3763
|
const deserializeAws_restJson1EmailSettings = (output, context) => {
|
|
3764
3764
|
return {
|
|
3765
|
-
EmailMessage:
|
|
3766
|
-
EmailSubject:
|
|
3765
|
+
EmailMessage: smithy_client_1.expectString(output.emailMessage),
|
|
3766
|
+
EmailSubject: smithy_client_1.expectString(output.emailSubject),
|
|
3767
3767
|
};
|
|
3768
3768
|
};
|
|
3769
3769
|
const deserializeAws_restJson1ListOf__string = (output, context) => {
|
|
@@ -3773,7 +3773,7 @@ const deserializeAws_restJson1ListOf__string = (output, context) => {
|
|
|
3773
3773
|
if (entry === null) {
|
|
3774
3774
|
return null;
|
|
3775
3775
|
}
|
|
3776
|
-
return
|
|
3776
|
+
return smithy_client_1.expectString(entry);
|
|
3777
3777
|
});
|
|
3778
3778
|
};
|
|
3779
3779
|
const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, context) => {
|
|
@@ -3783,7 +3783,7 @@ const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, cont
|
|
|
3783
3783
|
if (entry === null) {
|
|
3784
3784
|
return null;
|
|
3785
3785
|
}
|
|
3786
|
-
return
|
|
3786
|
+
return smithy_client_1.expectString(entry);
|
|
3787
3787
|
});
|
|
3788
3788
|
};
|
|
3789
3789
|
const deserializeAws_restJson1ListOfBackendAPIAuthType = (output, context) => {
|
|
@@ -3813,7 +3813,7 @@ const deserializeAws_restJson1ListOfMfaTypesElement = (output, context) => {
|
|
|
3813
3813
|
if (entry === null) {
|
|
3814
3814
|
return null;
|
|
3815
3815
|
}
|
|
3816
|
-
return
|
|
3816
|
+
return smithy_client_1.expectString(entry);
|
|
3817
3817
|
});
|
|
3818
3818
|
};
|
|
3819
3819
|
const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
|
|
@@ -3823,7 +3823,7 @@ const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
|
|
|
3823
3823
|
if (entry === null) {
|
|
3824
3824
|
return null;
|
|
3825
3825
|
}
|
|
3826
|
-
return
|
|
3826
|
+
return smithy_client_1.expectString(entry);
|
|
3827
3827
|
});
|
|
3828
3828
|
};
|
|
3829
3829
|
const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, context) => {
|
|
@@ -3833,15 +3833,15 @@ const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, c
|
|
|
3833
3833
|
if (entry === null) {
|
|
3834
3834
|
return null;
|
|
3835
3835
|
}
|
|
3836
|
-
return
|
|
3836
|
+
return smithy_client_1.expectString(entry);
|
|
3837
3837
|
});
|
|
3838
3838
|
};
|
|
3839
3839
|
const deserializeAws_restJson1LoginAuthConfigReqObj = (output, context) => {
|
|
3840
3840
|
return {
|
|
3841
|
-
AwsCognitoIdentityPoolId:
|
|
3842
|
-
AwsCognitoRegion:
|
|
3843
|
-
AwsUserPoolsId:
|
|
3844
|
-
AwsUserPoolsWebClientId:
|
|
3841
|
+
AwsCognitoIdentityPoolId: smithy_client_1.expectString(output.aws_cognito_identity_pool_id),
|
|
3842
|
+
AwsCognitoRegion: smithy_client_1.expectString(output.aws_cognito_region),
|
|
3843
|
+
AwsUserPoolsId: smithy_client_1.expectString(output.aws_user_pools_id),
|
|
3844
|
+
AwsUserPoolsWebClientId: smithy_client_1.expectString(output.aws_user_pools_web_client_id),
|
|
3845
3845
|
};
|
|
3846
3846
|
};
|
|
3847
3847
|
const deserializeAws_restJson1Settings = (output, context) => {
|
|
@@ -3849,12 +3849,12 @@ const deserializeAws_restJson1Settings = (output, context) => {
|
|
|
3849
3849
|
MfaTypes: output.mfaTypes !== undefined && output.mfaTypes !== null
|
|
3850
3850
|
? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context)
|
|
3851
3851
|
: undefined,
|
|
3852
|
-
SmsMessage:
|
|
3852
|
+
SmsMessage: smithy_client_1.expectString(output.smsMessage),
|
|
3853
3853
|
};
|
|
3854
3854
|
};
|
|
3855
3855
|
const deserializeAws_restJson1SmsSettings = (output, context) => {
|
|
3856
3856
|
return {
|
|
3857
|
-
SmsMessage:
|
|
3857
|
+
SmsMessage: smithy_client_1.expectString(output.smsMessage),
|
|
3858
3858
|
};
|
|
3859
3859
|
};
|
|
3860
3860
|
const deserializeAws_restJson1SocialProviderSettings = (output, context) => {
|