@aws-sdk/client-lambda 3.31.0 → 3.32.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 +8 -0
- package/dist/cjs/LambdaClient.js +13 -13
- package/dist/cjs/LambdaClient.js.map +1 -1
- package/dist/cjs/commands/AddLayerVersionPermissionCommand.js +3 -3
- package/dist/cjs/commands/AddLayerVersionPermissionCommand.js.map +1 -1
- package/dist/cjs/commands/AddPermissionCommand.js +3 -3
- package/dist/cjs/commands/AddPermissionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAliasCommand.js +3 -3
- package/dist/cjs/commands/CreateAliasCommand.js.map +1 -1
- package/dist/cjs/commands/CreateCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/CreateCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/CreateEventSourceMappingCommand.js +3 -3
- package/dist/cjs/commands/CreateEventSourceMappingCommand.js.map +1 -1
- package/dist/cjs/commands/CreateFunctionCommand.js +3 -3
- package/dist/cjs/commands/CreateFunctionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAliasCommand.js +3 -3
- package/dist/cjs/commands/DeleteAliasCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/DeleteCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteEventSourceMappingCommand.js +3 -3
- package/dist/cjs/commands/DeleteEventSourceMappingCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/DeleteFunctionCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFunctionCommand.js +3 -3
- package/dist/cjs/commands/DeleteFunctionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFunctionConcurrencyCommand.js +3 -3
- package/dist/cjs/commands/DeleteFunctionConcurrencyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -3
- package/dist/cjs/commands/DeleteFunctionEventInvokeConfigCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLayerVersionCommand.js +3 -3
- package/dist/cjs/commands/DeleteLayerVersionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist/cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccountSettingsCommand.js +3 -3
- package/dist/cjs/commands/GetAccountSettingsCommand.js.map +1 -1
- package/dist/cjs/commands/GetAliasCommand.js +3 -3
- package/dist/cjs/commands/GetAliasCommand.js.map +1 -1
- package/dist/cjs/commands/GetCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/GetCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/GetEventSourceMappingCommand.js +3 -3
- package/dist/cjs/commands/GetEventSourceMappingCommand.js.map +1 -1
- package/dist/cjs/commands/GetFunctionCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/GetFunctionCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/GetFunctionCommand.js +3 -3
- package/dist/cjs/commands/GetFunctionCommand.js.map +1 -1
- package/dist/cjs/commands/GetFunctionConcurrencyCommand.js +3 -3
- package/dist/cjs/commands/GetFunctionConcurrencyCommand.js.map +1 -1
- package/dist/cjs/commands/GetFunctionConfigurationCommand.js +3 -3
- package/dist/cjs/commands/GetFunctionConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/GetFunctionEventInvokeConfigCommand.js +3 -3
- package/dist/cjs/commands/GetFunctionEventInvokeConfigCommand.js.map +1 -1
- package/dist/cjs/commands/GetLayerVersionByArnCommand.js +3 -3
- package/dist/cjs/commands/GetLayerVersionByArnCommand.js.map +1 -1
- package/dist/cjs/commands/GetLayerVersionCommand.js +3 -3
- package/dist/cjs/commands/GetLayerVersionCommand.js.map +1 -1
- package/dist/cjs/commands/GetLayerVersionPolicyCommand.js +3 -3
- package/dist/cjs/commands/GetLayerVersionPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetPolicyCommand.js +3 -3
- package/dist/cjs/commands/GetPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist/cjs/commands/GetProvisionedConcurrencyConfigCommand.js.map +1 -1
- package/dist/cjs/commands/InvokeAsyncCommand.js +3 -3
- package/dist/cjs/commands/InvokeAsyncCommand.js.map +1 -1
- package/dist/cjs/commands/InvokeCommand.js +3 -3
- package/dist/cjs/commands/InvokeCommand.js.map +1 -1
- package/dist/cjs/commands/ListAliasesCommand.js +3 -3
- package/dist/cjs/commands/ListAliasesCommand.js.map +1 -1
- package/dist/cjs/commands/ListCodeSigningConfigsCommand.js +3 -3
- package/dist/cjs/commands/ListCodeSigningConfigsCommand.js.map +1 -1
- package/dist/cjs/commands/ListEventSourceMappingsCommand.js +3 -3
- package/dist/cjs/commands/ListEventSourceMappingsCommand.js.map +1 -1
- package/dist/cjs/commands/ListFunctionEventInvokeConfigsCommand.js +3 -3
- package/dist/cjs/commands/ListFunctionEventInvokeConfigsCommand.js.map +1 -1
- package/dist/cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/ListFunctionsByCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/ListFunctionsCommand.js +3 -3
- package/dist/cjs/commands/ListFunctionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListLayerVersionsCommand.js +3 -3
- package/dist/cjs/commands/ListLayerVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListLayersCommand.js +3 -3
- package/dist/cjs/commands/ListLayersCommand.js.map +1 -1
- package/dist/cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -3
- package/dist/cjs/commands/ListProvisionedConcurrencyConfigsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsCommand.js +3 -3
- package/dist/cjs/commands/ListTagsCommand.js.map +1 -1
- package/dist/cjs/commands/ListVersionsByFunctionCommand.js +3 -3
- package/dist/cjs/commands/ListVersionsByFunctionCommand.js.map +1 -1
- package/dist/cjs/commands/PublishLayerVersionCommand.js +3 -3
- package/dist/cjs/commands/PublishLayerVersionCommand.js.map +1 -1
- package/dist/cjs/commands/PublishVersionCommand.js +3 -3
- package/dist/cjs/commands/PublishVersionCommand.js.map +1 -1
- package/dist/cjs/commands/PutFunctionCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/PutFunctionCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/PutFunctionConcurrencyCommand.js +3 -3
- package/dist/cjs/commands/PutFunctionConcurrencyCommand.js.map +1 -1
- package/dist/cjs/commands/PutFunctionEventInvokeConfigCommand.js +3 -3
- package/dist/cjs/commands/PutFunctionEventInvokeConfigCommand.js.map +1 -1
- package/dist/cjs/commands/PutProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist/cjs/commands/PutProvisionedConcurrencyConfigCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveLayerVersionPermissionCommand.js +3 -3
- package/dist/cjs/commands/RemoveLayerVersionPermissionCommand.js.map +1 -1
- package/dist/cjs/commands/RemovePermissionCommand.js +3 -3
- package/dist/cjs/commands/RemovePermissionCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAliasCommand.js +3 -3
- package/dist/cjs/commands/UpdateAliasCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateCodeSigningConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateCodeSigningConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateEventSourceMappingCommand.js +3 -3
- package/dist/cjs/commands/UpdateEventSourceMappingCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFunctionCodeCommand.js +3 -3
- package/dist/cjs/commands/UpdateFunctionCodeCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFunctionConfigurationCommand.js +3 -3
- package/dist/cjs/commands/UpdateFunctionConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateFunctionEventInvokeConfigCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +75 -75
- 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 +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +554 -554
- 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/cjs/waiters/waitForFunctionActive.js +3 -3
- package/dist/cjs/waiters/waitForFunctionActive.js.map +1 -1
- package/dist/cjs/waiters/waitForFunctionExists.js +3 -3
- package/dist/cjs/waiters/waitForFunctionExists.js.map +1 -1
- package/dist/cjs/waiters/waitForFunctionUpdated.js +3 -3
- package/dist/cjs/waiters/waitForFunctionUpdated.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/pagination/ListAliasesPaginator.js +4 -4
- package/dist/es/pagination/ListAliasesPaginator.js.map +1 -1
- package/dist/es/pagination/ListCodeSigningConfigsPaginator.js +4 -4
- package/dist/es/pagination/ListCodeSigningConfigsPaginator.js.map +1 -1
- package/dist/es/pagination/ListEventSourceMappingsPaginator.js +4 -4
- package/dist/es/pagination/ListEventSourceMappingsPaginator.js.map +1 -1
- package/dist/es/pagination/ListFunctionEventInvokeConfigsPaginator.js +4 -4
- package/dist/es/pagination/ListFunctionEventInvokeConfigsPaginator.js.map +1 -1
- package/dist/es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +4 -4
- package/dist/es/pagination/ListFunctionsByCodeSigningConfigPaginator.js.map +1 -1
- package/dist/es/pagination/ListFunctionsPaginator.js +4 -4
- package/dist/es/pagination/ListFunctionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListLayerVersionsPaginator.js +4 -4
- package/dist/es/pagination/ListLayerVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListLayersPaginator.js +4 -4
- package/dist/es/pagination/ListLayersPaginator.js.map +1 -1
- package/dist/es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +4 -4
- package/dist/es/pagination/ListProvisionedConcurrencyConfigsPaginator.js.map +1 -1
- package/dist/es/pagination/ListVersionsByFunctionPaginator.js +4 -4
- package/dist/es/pagination/ListVersionsByFunctionPaginator.js.map +1 -1
- package/package.json +32 -32
- package/tsconfig.json +1 -2
|
@@ -17,7 +17,7 @@ const serializeAws_restJson1AddLayerVersionPermissionCommand = async (input, con
|
|
|
17
17
|
if (labelValue.length <= 0) {
|
|
18
18
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
19
19
|
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
20
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
23
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -27,7 +27,7 @@ const serializeAws_restJson1AddLayerVersionPermissionCommand = async (input, con
|
|
|
27
27
|
if (labelValue.length <= 0) {
|
|
28
28
|
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
29
29
|
}
|
|
30
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}",
|
|
30
|
+
resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
33
|
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
@@ -67,7 +67,7 @@ const serializeAws_restJson1AddPermissionCommand = async (input, context) => {
|
|
|
67
67
|
if (labelValue.length <= 0) {
|
|
68
68
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
69
69
|
}
|
|
70
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
70
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
73
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -110,7 +110,7 @@ const serializeAws_restJson1CreateAliasCommand = async (input, context) => {
|
|
|
110
110
|
if (labelValue.length <= 0) {
|
|
111
111
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
112
112
|
}
|
|
113
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
113
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -296,7 +296,7 @@ const serializeAws_restJson1DeleteAliasCommand = async (input, context) => {
|
|
|
296
296
|
if (labelValue.length <= 0) {
|
|
297
297
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
298
298
|
}
|
|
299
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
299
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
302
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -306,7 +306,7 @@ const serializeAws_restJson1DeleteAliasCommand = async (input, context) => {
|
|
|
306
306
|
if (labelValue.length <= 0) {
|
|
307
307
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
308
308
|
}
|
|
309
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
309
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
310
310
|
}
|
|
311
311
|
else {
|
|
312
312
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -333,7 +333,7 @@ const serializeAws_restJson1DeleteCodeSigningConfigCommand = async (input, conte
|
|
|
333
333
|
if (labelValue.length <= 0) {
|
|
334
334
|
throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
|
|
335
335
|
}
|
|
336
|
-
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}",
|
|
336
|
+
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
339
339
|
throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
|
|
@@ -359,7 +359,7 @@ const serializeAws_restJson1DeleteEventSourceMappingCommand = async (input, cont
|
|
|
359
359
|
if (labelValue.length <= 0) {
|
|
360
360
|
throw new Error("Empty value provided for input HTTP label: UUID.");
|
|
361
361
|
}
|
|
362
|
-
resolvedPath = resolvedPath.replace("{UUID}",
|
|
362
|
+
resolvedPath = resolvedPath.replace("{UUID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
363
363
|
}
|
|
364
364
|
else {
|
|
365
365
|
throw new Error("No value provided for input HTTP label: UUID.");
|
|
@@ -385,7 +385,7 @@ const serializeAws_restJson1DeleteFunctionCommand = async (input, context) => {
|
|
|
385
385
|
if (labelValue.length <= 0) {
|
|
386
386
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
387
387
|
}
|
|
388
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
388
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
389
389
|
}
|
|
390
390
|
else {
|
|
391
391
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -416,7 +416,7 @@ const serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = async (inpu
|
|
|
416
416
|
if (labelValue.length <= 0) {
|
|
417
417
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
418
418
|
}
|
|
419
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
419
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
422
422
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -443,7 +443,7 @@ const serializeAws_restJson1DeleteFunctionConcurrencyCommand = async (input, con
|
|
|
443
443
|
if (labelValue.length <= 0) {
|
|
444
444
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
445
445
|
}
|
|
446
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
446
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
447
447
|
}
|
|
448
448
|
else {
|
|
449
449
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -470,7 +470,7 @@ const serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = async (inpu
|
|
|
470
470
|
if (labelValue.length <= 0) {
|
|
471
471
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
472
472
|
}
|
|
473
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
473
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
474
474
|
}
|
|
475
475
|
else {
|
|
476
476
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -501,7 +501,7 @@ const serializeAws_restJson1DeleteLayerVersionCommand = async (input, context) =
|
|
|
501
501
|
if (labelValue.length <= 0) {
|
|
502
502
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
503
503
|
}
|
|
504
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
504
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
505
505
|
}
|
|
506
506
|
else {
|
|
507
507
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -511,7 +511,7 @@ const serializeAws_restJson1DeleteLayerVersionCommand = async (input, context) =
|
|
|
511
511
|
if (labelValue.length <= 0) {
|
|
512
512
|
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
513
513
|
}
|
|
514
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}",
|
|
514
|
+
resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
515
515
|
}
|
|
516
516
|
else {
|
|
517
517
|
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
@@ -538,7 +538,7 @@ const serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = async (i
|
|
|
538
538
|
if (labelValue.length <= 0) {
|
|
539
539
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
540
540
|
}
|
|
541
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
541
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
542
542
|
}
|
|
543
543
|
else {
|
|
544
544
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -588,7 +588,7 @@ const serializeAws_restJson1GetAliasCommand = async (input, context) => {
|
|
|
588
588
|
if (labelValue.length <= 0) {
|
|
589
589
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
590
590
|
}
|
|
591
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
591
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
592
592
|
}
|
|
593
593
|
else {
|
|
594
594
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -598,7 +598,7 @@ const serializeAws_restJson1GetAliasCommand = async (input, context) => {
|
|
|
598
598
|
if (labelValue.length <= 0) {
|
|
599
599
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
600
600
|
}
|
|
601
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
601
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
602
602
|
}
|
|
603
603
|
else {
|
|
604
604
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -625,7 +625,7 @@ const serializeAws_restJson1GetCodeSigningConfigCommand = async (input, context)
|
|
|
625
625
|
if (labelValue.length <= 0) {
|
|
626
626
|
throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
|
|
627
627
|
}
|
|
628
|
-
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}",
|
|
628
|
+
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
629
629
|
}
|
|
630
630
|
else {
|
|
631
631
|
throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
|
|
@@ -651,7 +651,7 @@ const serializeAws_restJson1GetEventSourceMappingCommand = async (input, context
|
|
|
651
651
|
if (labelValue.length <= 0) {
|
|
652
652
|
throw new Error("Empty value provided for input HTTP label: UUID.");
|
|
653
653
|
}
|
|
654
|
-
resolvedPath = resolvedPath.replace("{UUID}",
|
|
654
|
+
resolvedPath = resolvedPath.replace("{UUID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
655
655
|
}
|
|
656
656
|
else {
|
|
657
657
|
throw new Error("No value provided for input HTTP label: UUID.");
|
|
@@ -677,7 +677,7 @@ const serializeAws_restJson1GetFunctionCommand = async (input, context) => {
|
|
|
677
677
|
if (labelValue.length <= 0) {
|
|
678
678
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
679
679
|
}
|
|
680
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
680
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
681
681
|
}
|
|
682
682
|
else {
|
|
683
683
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -708,7 +708,7 @@ const serializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (input,
|
|
|
708
708
|
if (labelValue.length <= 0) {
|
|
709
709
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
710
710
|
}
|
|
711
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
711
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
712
712
|
}
|
|
713
713
|
else {
|
|
714
714
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -735,7 +735,7 @@ const serializeAws_restJson1GetFunctionConcurrencyCommand = async (input, contex
|
|
|
735
735
|
if (labelValue.length <= 0) {
|
|
736
736
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
737
737
|
}
|
|
738
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
738
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
739
739
|
}
|
|
740
740
|
else {
|
|
741
741
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -762,7 +762,7 @@ const serializeAws_restJson1GetFunctionConfigurationCommand = async (input, cont
|
|
|
762
762
|
if (labelValue.length <= 0) {
|
|
763
763
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
764
764
|
}
|
|
765
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
765
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
766
766
|
}
|
|
767
767
|
else {
|
|
768
768
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -793,7 +793,7 @@ const serializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (input,
|
|
|
793
793
|
if (labelValue.length <= 0) {
|
|
794
794
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
795
795
|
}
|
|
796
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
796
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
797
797
|
}
|
|
798
798
|
else {
|
|
799
799
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -824,7 +824,7 @@ const serializeAws_restJson1GetLayerVersionCommand = async (input, context) => {
|
|
|
824
824
|
if (labelValue.length <= 0) {
|
|
825
825
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
826
826
|
}
|
|
827
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
827
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
828
828
|
}
|
|
829
829
|
else {
|
|
830
830
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -834,7 +834,7 @@ const serializeAws_restJson1GetLayerVersionCommand = async (input, context) => {
|
|
|
834
834
|
if (labelValue.length <= 0) {
|
|
835
835
|
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
836
836
|
}
|
|
837
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}",
|
|
837
|
+
resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
838
838
|
}
|
|
839
839
|
else {
|
|
840
840
|
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
@@ -882,7 +882,7 @@ const serializeAws_restJson1GetLayerVersionPolicyCommand = async (input, context
|
|
|
882
882
|
if (labelValue.length <= 0) {
|
|
883
883
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
884
884
|
}
|
|
885
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
885
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
886
886
|
}
|
|
887
887
|
else {
|
|
888
888
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -892,7 +892,7 @@ const serializeAws_restJson1GetLayerVersionPolicyCommand = async (input, context
|
|
|
892
892
|
if (labelValue.length <= 0) {
|
|
893
893
|
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
894
894
|
}
|
|
895
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}",
|
|
895
|
+
resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
896
896
|
}
|
|
897
897
|
else {
|
|
898
898
|
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
@@ -919,7 +919,7 @@ const serializeAws_restJson1GetPolicyCommand = async (input, context) => {
|
|
|
919
919
|
if (labelValue.length <= 0) {
|
|
920
920
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
921
921
|
}
|
|
922
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
922
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
923
923
|
}
|
|
924
924
|
else {
|
|
925
925
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -950,7 +950,7 @@ const serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
950
950
|
if (labelValue.length <= 0) {
|
|
951
951
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
952
952
|
}
|
|
953
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
953
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
954
954
|
}
|
|
955
955
|
else {
|
|
956
956
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -986,7 +986,7 @@ const serializeAws_restJson1InvokeCommand = async (input, context) => {
|
|
|
986
986
|
if (labelValue.length <= 0) {
|
|
987
987
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
988
988
|
}
|
|
989
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
989
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
990
990
|
}
|
|
991
991
|
else {
|
|
992
992
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1022,7 +1022,7 @@ const serializeAws_restJson1InvokeAsyncCommand = async (input, context) => {
|
|
|
1022
1022
|
if (labelValue.length <= 0) {
|
|
1023
1023
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1024
1024
|
}
|
|
1025
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1025
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1026
1026
|
}
|
|
1027
1027
|
else {
|
|
1028
1028
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1052,7 +1052,7 @@ const serializeAws_restJson1ListAliasesCommand = async (input, context) => {
|
|
|
1052
1052
|
if (labelValue.length <= 0) {
|
|
1053
1053
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1054
1054
|
}
|
|
1055
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1055
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1056
1056
|
}
|
|
1057
1057
|
else {
|
|
1058
1058
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1129,7 +1129,7 @@ const serializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (input
|
|
|
1129
1129
|
if (labelValue.length <= 0) {
|
|
1130
1130
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1131
1131
|
}
|
|
1132
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1132
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1133
1133
|
}
|
|
1134
1134
|
else {
|
|
1135
1135
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1184,7 +1184,7 @@ const serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (inp
|
|
|
1184
1184
|
if (labelValue.length <= 0) {
|
|
1185
1185
|
throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
|
|
1186
1186
|
}
|
|
1187
|
-
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}",
|
|
1187
|
+
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1188
1188
|
}
|
|
1189
1189
|
else {
|
|
1190
1190
|
throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
|
|
@@ -1237,7 +1237,7 @@ const serializeAws_restJson1ListLayerVersionsCommand = async (input, context) =>
|
|
|
1237
1237
|
if (labelValue.length <= 0) {
|
|
1238
1238
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
1239
1239
|
}
|
|
1240
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
1240
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1241
1241
|
}
|
|
1242
1242
|
else {
|
|
1243
1243
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -1270,7 +1270,7 @@ const serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (in
|
|
|
1270
1270
|
if (labelValue.length <= 0) {
|
|
1271
1271
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1272
1272
|
}
|
|
1273
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1273
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1274
1274
|
}
|
|
1275
1275
|
else {
|
|
1276
1276
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1302,7 +1302,7 @@ const serializeAws_restJson1ListTagsCommand = async (input, context) => {
|
|
|
1302
1302
|
if (labelValue.length <= 0) {
|
|
1303
1303
|
throw new Error("Empty value provided for input HTTP label: Resource.");
|
|
1304
1304
|
}
|
|
1305
|
-
resolvedPath = resolvedPath.replace("{Resource}",
|
|
1305
|
+
resolvedPath = resolvedPath.replace("{Resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1306
1306
|
}
|
|
1307
1307
|
else {
|
|
1308
1308
|
throw new Error("No value provided for input HTTP label: Resource.");
|
|
@@ -1329,7 +1329,7 @@ const serializeAws_restJson1ListVersionsByFunctionCommand = async (input, contex
|
|
|
1329
1329
|
if (labelValue.length <= 0) {
|
|
1330
1330
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1331
1331
|
}
|
|
1332
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1332
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1333
1333
|
}
|
|
1334
1334
|
else {
|
|
1335
1335
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1362,7 +1362,7 @@ const serializeAws_restJson1PublishLayerVersionCommand = async (input, context)
|
|
|
1362
1362
|
if (labelValue.length <= 0) {
|
|
1363
1363
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
1364
1364
|
}
|
|
1365
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
1365
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1366
1366
|
}
|
|
1367
1367
|
else {
|
|
1368
1368
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -1401,7 +1401,7 @@ const serializeAws_restJson1PublishVersionCommand = async (input, context) => {
|
|
|
1401
1401
|
if (labelValue.length <= 0) {
|
|
1402
1402
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1403
1403
|
}
|
|
1404
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1404
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1405
1405
|
}
|
|
1406
1406
|
else {
|
|
1407
1407
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1435,7 +1435,7 @@ const serializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (input,
|
|
|
1435
1435
|
if (labelValue.length <= 0) {
|
|
1436
1436
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1437
1437
|
}
|
|
1438
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1438
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1439
1439
|
}
|
|
1440
1440
|
else {
|
|
1441
1441
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1468,7 +1468,7 @@ const serializeAws_restJson1PutFunctionConcurrencyCommand = async (input, contex
|
|
|
1468
1468
|
if (labelValue.length <= 0) {
|
|
1469
1469
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1470
1470
|
}
|
|
1471
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1471
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1472
1472
|
}
|
|
1473
1473
|
else {
|
|
1474
1474
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1503,7 +1503,7 @@ const serializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (input,
|
|
|
1503
1503
|
if (labelValue.length <= 0) {
|
|
1504
1504
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1505
1505
|
}
|
|
1506
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1506
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1507
1507
|
}
|
|
1508
1508
|
else {
|
|
1509
1509
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1546,7 +1546,7 @@ const serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
1546
1546
|
if (labelValue.length <= 0) {
|
|
1547
1547
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1548
1548
|
}
|
|
1549
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1549
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1550
1550
|
}
|
|
1551
1551
|
else {
|
|
1552
1552
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1583,7 +1583,7 @@ const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input,
|
|
|
1583
1583
|
if (labelValue.length <= 0) {
|
|
1584
1584
|
throw new Error("Empty value provided for input HTTP label: LayerName.");
|
|
1585
1585
|
}
|
|
1586
|
-
resolvedPath = resolvedPath.replace("{LayerName}",
|
|
1586
|
+
resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1587
1587
|
}
|
|
1588
1588
|
else {
|
|
1589
1589
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
@@ -1593,7 +1593,7 @@ const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input,
|
|
|
1593
1593
|
if (labelValue.length <= 0) {
|
|
1594
1594
|
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
1595
1595
|
}
|
|
1596
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}",
|
|
1596
|
+
resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1597
1597
|
}
|
|
1598
1598
|
else {
|
|
1599
1599
|
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
@@ -1603,7 +1603,7 @@ const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input,
|
|
|
1603
1603
|
if (labelValue.length <= 0) {
|
|
1604
1604
|
throw new Error("Empty value provided for input HTTP label: StatementId.");
|
|
1605
1605
|
}
|
|
1606
|
-
resolvedPath = resolvedPath.replace("{StatementId}",
|
|
1606
|
+
resolvedPath = resolvedPath.replace("{StatementId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1607
1607
|
}
|
|
1608
1608
|
else {
|
|
1609
1609
|
throw new Error("No value provided for input HTTP label: StatementId.");
|
|
@@ -1634,7 +1634,7 @@ const serializeAws_restJson1RemovePermissionCommand = async (input, context) =>
|
|
|
1634
1634
|
if (labelValue.length <= 0) {
|
|
1635
1635
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1636
1636
|
}
|
|
1637
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1637
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1638
1638
|
}
|
|
1639
1639
|
else {
|
|
1640
1640
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1644,7 +1644,7 @@ const serializeAws_restJson1RemovePermissionCommand = async (input, context) =>
|
|
|
1644
1644
|
if (labelValue.length <= 0) {
|
|
1645
1645
|
throw new Error("Empty value provided for input HTTP label: StatementId.");
|
|
1646
1646
|
}
|
|
1647
|
-
resolvedPath = resolvedPath.replace("{StatementId}",
|
|
1647
|
+
resolvedPath = resolvedPath.replace("{StatementId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1648
1648
|
}
|
|
1649
1649
|
else {
|
|
1650
1650
|
throw new Error("No value provided for input HTTP label: StatementId.");
|
|
@@ -1677,7 +1677,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1677
1677
|
if (labelValue.length <= 0) {
|
|
1678
1678
|
throw new Error("Empty value provided for input HTTP label: Resource.");
|
|
1679
1679
|
}
|
|
1680
|
-
resolvedPath = resolvedPath.replace("{Resource}",
|
|
1680
|
+
resolvedPath = resolvedPath.replace("{Resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1681
1681
|
}
|
|
1682
1682
|
else {
|
|
1683
1683
|
throw new Error("No value provided for input HTTP label: Resource.");
|
|
@@ -1706,7 +1706,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1706
1706
|
if (labelValue.length <= 0) {
|
|
1707
1707
|
throw new Error("Empty value provided for input HTTP label: Resource.");
|
|
1708
1708
|
}
|
|
1709
|
-
resolvedPath = resolvedPath.replace("{Resource}",
|
|
1709
|
+
resolvedPath = resolvedPath.replace("{Resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1710
1710
|
}
|
|
1711
1711
|
else {
|
|
1712
1712
|
throw new Error("No value provided for input HTTP label: Resource.");
|
|
@@ -1739,7 +1739,7 @@ const serializeAws_restJson1UpdateAliasCommand = async (input, context) => {
|
|
|
1739
1739
|
if (labelValue.length <= 0) {
|
|
1740
1740
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1741
1741
|
}
|
|
1742
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1742
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1743
1743
|
}
|
|
1744
1744
|
else {
|
|
1745
1745
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1749,7 +1749,7 @@ const serializeAws_restJson1UpdateAliasCommand = async (input, context) => {
|
|
|
1749
1749
|
if (labelValue.length <= 0) {
|
|
1750
1750
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
1751
1751
|
}
|
|
1752
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
1752
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1753
1753
|
}
|
|
1754
1754
|
else {
|
|
1755
1755
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -1788,7 +1788,7 @@ const serializeAws_restJson1UpdateCodeSigningConfigCommand = async (input, conte
|
|
|
1788
1788
|
if (labelValue.length <= 0) {
|
|
1789
1789
|
throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
|
|
1790
1790
|
}
|
|
1791
|
-
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}",
|
|
1791
|
+
resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1792
1792
|
}
|
|
1793
1793
|
else {
|
|
1794
1794
|
throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
|
|
@@ -1827,7 +1827,7 @@ const serializeAws_restJson1UpdateEventSourceMappingCommand = async (input, cont
|
|
|
1827
1827
|
if (labelValue.length <= 0) {
|
|
1828
1828
|
throw new Error("Empty value provided for input HTTP label: UUID.");
|
|
1829
1829
|
}
|
|
1830
|
-
resolvedPath = resolvedPath.replace("{UUID}",
|
|
1830
|
+
resolvedPath = resolvedPath.replace("{UUID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1831
1831
|
}
|
|
1832
1832
|
else {
|
|
1833
1833
|
throw new Error("No value provided for input HTTP label: UUID.");
|
|
@@ -1886,7 +1886,7 @@ const serializeAws_restJson1UpdateFunctionCodeCommand = async (input, context) =
|
|
|
1886
1886
|
if (labelValue.length <= 0) {
|
|
1887
1887
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1888
1888
|
}
|
|
1889
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1889
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1890
1890
|
}
|
|
1891
1891
|
else {
|
|
1892
1892
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1926,7 +1926,7 @@ const serializeAws_restJson1UpdateFunctionConfigurationCommand = async (input, c
|
|
|
1926
1926
|
if (labelValue.length <= 0) {
|
|
1927
1927
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1928
1928
|
}
|
|
1929
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1929
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1930
1930
|
}
|
|
1931
1931
|
else {
|
|
1932
1932
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -1985,7 +1985,7 @@ const serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (inpu
|
|
|
1985
1985
|
if (labelValue.length <= 0) {
|
|
1986
1986
|
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1987
1987
|
}
|
|
1988
|
-
resolvedPath = resolvedPath.replace("{FunctionName}",
|
|
1988
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1989
1989
|
}
|
|
1990
1990
|
else {
|
|
1991
1991
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
@@ -2025,12 +2025,12 @@ const deserializeAws_restJson1AddLayerVersionPermissionCommand = async (output,
|
|
|
2025
2025
|
RevisionId: undefined,
|
|
2026
2026
|
Statement: undefined,
|
|
2027
2027
|
};
|
|
2028
|
-
const data =
|
|
2028
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2029
2029
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
2030
|
-
contents.RevisionId =
|
|
2030
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
2031
2031
|
}
|
|
2032
2032
|
if (data.Statement !== undefined && data.Statement !== null) {
|
|
2033
|
-
contents.Statement =
|
|
2033
|
+
contents.Statement = smithy_client_1.expectString(data.Statement);
|
|
2034
2034
|
}
|
|
2035
2035
|
return Promise.resolve(contents);
|
|
2036
2036
|
};
|
|
@@ -2124,9 +2124,9 @@ const deserializeAws_restJson1AddPermissionCommand = async (output, context) =>
|
|
|
2124
2124
|
$metadata: deserializeMetadata(output),
|
|
2125
2125
|
Statement: undefined,
|
|
2126
2126
|
};
|
|
2127
|
-
const data =
|
|
2127
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2128
2128
|
if (data.Statement !== undefined && data.Statement !== null) {
|
|
2129
|
-
contents.Statement =
|
|
2129
|
+
contents.Statement = smithy_client_1.expectString(data.Statement);
|
|
2130
2130
|
}
|
|
2131
2131
|
return Promise.resolve(contents);
|
|
2132
2132
|
};
|
|
@@ -2225,21 +2225,21 @@ const deserializeAws_restJson1CreateAliasCommand = async (output, context) => {
|
|
|
2225
2225
|
RevisionId: undefined,
|
|
2226
2226
|
RoutingConfig: undefined,
|
|
2227
2227
|
};
|
|
2228
|
-
const data =
|
|
2228
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2229
2229
|
if (data.AliasArn !== undefined && data.AliasArn !== null) {
|
|
2230
|
-
contents.AliasArn =
|
|
2230
|
+
contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
|
|
2231
2231
|
}
|
|
2232
2232
|
if (data.Description !== undefined && data.Description !== null) {
|
|
2233
|
-
contents.Description =
|
|
2233
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
2234
2234
|
}
|
|
2235
2235
|
if (data.FunctionVersion !== undefined && data.FunctionVersion !== null) {
|
|
2236
|
-
contents.FunctionVersion =
|
|
2236
|
+
contents.FunctionVersion = smithy_client_1.expectString(data.FunctionVersion);
|
|
2237
2237
|
}
|
|
2238
2238
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2239
|
-
contents.Name =
|
|
2239
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
2240
2240
|
}
|
|
2241
2241
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
2242
|
-
contents.RevisionId =
|
|
2242
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
2243
2243
|
}
|
|
2244
2244
|
if (data.RoutingConfig !== undefined && data.RoutingConfig !== null) {
|
|
2245
2245
|
contents.RoutingConfig = deserializeAws_restJson1AliasRoutingConfiguration(data.RoutingConfig, context);
|
|
@@ -2320,7 +2320,7 @@ const deserializeAws_restJson1CreateCodeSigningConfigCommand = async (output, co
|
|
|
2320
2320
|
$metadata: deserializeMetadata(output),
|
|
2321
2321
|
CodeSigningConfig: undefined,
|
|
2322
2322
|
};
|
|
2323
|
-
const data =
|
|
2323
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2324
2324
|
if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
|
|
2325
2325
|
contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
|
|
2326
2326
|
}
|
|
@@ -2397,42 +2397,42 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
|
|
|
2397
2397
|
TumblingWindowInSeconds: undefined,
|
|
2398
2398
|
UUID: undefined,
|
|
2399
2399
|
};
|
|
2400
|
-
const data =
|
|
2400
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2401
2401
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
2402
|
-
contents.BatchSize =
|
|
2402
|
+
contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
|
|
2403
2403
|
}
|
|
2404
2404
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
2405
|
-
contents.BisectBatchOnFunctionError =
|
|
2405
|
+
contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
|
|
2406
2406
|
}
|
|
2407
2407
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
2408
2408
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
2409
2409
|
}
|
|
2410
2410
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
2411
|
-
contents.EventSourceArn =
|
|
2411
|
+
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
2412
2412
|
}
|
|
2413
2413
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
2414
|
-
contents.FunctionArn =
|
|
2414
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
2415
2415
|
}
|
|
2416
2416
|
if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
|
|
2417
2417
|
contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
|
|
2418
2418
|
}
|
|
2419
2419
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
2420
|
-
contents.LastModified =
|
|
2420
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
2421
2421
|
}
|
|
2422
2422
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
2423
|
-
contents.LastProcessingResult =
|
|
2423
|
+
contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
|
|
2424
2424
|
}
|
|
2425
2425
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
2426
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
2426
|
+
contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
2427
2427
|
}
|
|
2428
2428
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
2429
|
-
contents.MaximumRecordAgeInSeconds =
|
|
2429
|
+
contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
|
|
2430
2430
|
}
|
|
2431
2431
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
2432
|
-
contents.MaximumRetryAttempts =
|
|
2432
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
2433
2433
|
}
|
|
2434
2434
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
2435
|
-
contents.ParallelizationFactor =
|
|
2435
|
+
contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
|
|
2436
2436
|
}
|
|
2437
2437
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
2438
2438
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -2444,25 +2444,25 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
|
|
|
2444
2444
|
contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
|
|
2445
2445
|
}
|
|
2446
2446
|
if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
|
|
2447
|
-
contents.StartingPosition =
|
|
2447
|
+
contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
|
|
2448
2448
|
}
|
|
2449
2449
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
2450
|
-
contents.StartingPositionTimestamp =
|
|
2450
|
+
contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
|
|
2451
2451
|
}
|
|
2452
2452
|
if (data.State !== undefined && data.State !== null) {
|
|
2453
|
-
contents.State =
|
|
2453
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
2454
2454
|
}
|
|
2455
2455
|
if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
|
|
2456
|
-
contents.StateTransitionReason =
|
|
2456
|
+
contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
|
|
2457
2457
|
}
|
|
2458
2458
|
if (data.Topics !== undefined && data.Topics !== null) {
|
|
2459
2459
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
2460
2460
|
}
|
|
2461
2461
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
2462
|
-
contents.TumblingWindowInSeconds =
|
|
2462
|
+
contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
|
|
2463
2463
|
}
|
|
2464
2464
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
2465
|
-
contents.UUID =
|
|
2465
|
+
contents.UUID = smithy_client_1.expectString(data.UUID);
|
|
2466
2466
|
}
|
|
2467
2467
|
return Promise.resolve(contents);
|
|
2468
2468
|
};
|
|
@@ -2570,18 +2570,18 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
|
|
|
2570
2570
|
Version: undefined,
|
|
2571
2571
|
VpcConfig: undefined,
|
|
2572
2572
|
};
|
|
2573
|
-
const data =
|
|
2573
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2574
2574
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
2575
|
-
contents.CodeSha256 =
|
|
2575
|
+
contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
|
|
2576
2576
|
}
|
|
2577
2577
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
2578
|
-
contents.CodeSize =
|
|
2578
|
+
contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
|
|
2579
2579
|
}
|
|
2580
2580
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
2581
2581
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
2582
2582
|
}
|
|
2583
2583
|
if (data.Description !== undefined && data.Description !== null) {
|
|
2584
|
-
contents.Description =
|
|
2584
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
2585
2585
|
}
|
|
2586
2586
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
2587
2587
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
@@ -2590,76 +2590,76 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
|
|
|
2590
2590
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
2591
2591
|
}
|
|
2592
2592
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
2593
|
-
contents.FunctionArn =
|
|
2593
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
2594
2594
|
}
|
|
2595
2595
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
2596
|
-
contents.FunctionName =
|
|
2596
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
2597
2597
|
}
|
|
2598
2598
|
if (data.Handler !== undefined && data.Handler !== null) {
|
|
2599
|
-
contents.Handler =
|
|
2599
|
+
contents.Handler = smithy_client_1.expectString(data.Handler);
|
|
2600
2600
|
}
|
|
2601
2601
|
if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
|
|
2602
2602
|
contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
|
|
2603
2603
|
}
|
|
2604
2604
|
if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
|
|
2605
|
-
contents.KMSKeyArn =
|
|
2605
|
+
contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
|
|
2606
2606
|
}
|
|
2607
2607
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
2608
|
-
contents.LastModified =
|
|
2608
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
2609
2609
|
}
|
|
2610
2610
|
if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
|
|
2611
|
-
contents.LastUpdateStatus =
|
|
2611
|
+
contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
|
|
2612
2612
|
}
|
|
2613
2613
|
if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
|
|
2614
|
-
contents.LastUpdateStatusReason =
|
|
2614
|
+
contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
|
|
2615
2615
|
}
|
|
2616
2616
|
if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
|
|
2617
|
-
contents.LastUpdateStatusReasonCode =
|
|
2617
|
+
contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
|
|
2618
2618
|
}
|
|
2619
2619
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
2620
2620
|
contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
|
|
2621
2621
|
}
|
|
2622
2622
|
if (data.MasterArn !== undefined && data.MasterArn !== null) {
|
|
2623
|
-
contents.MasterArn =
|
|
2623
|
+
contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
|
|
2624
2624
|
}
|
|
2625
2625
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
2626
|
-
contents.MemorySize =
|
|
2626
|
+
contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
|
|
2627
2627
|
}
|
|
2628
2628
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
2629
|
-
contents.PackageType =
|
|
2629
|
+
contents.PackageType = smithy_client_1.expectString(data.PackageType);
|
|
2630
2630
|
}
|
|
2631
2631
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
2632
|
-
contents.RevisionId =
|
|
2632
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
2633
2633
|
}
|
|
2634
2634
|
if (data.Role !== undefined && data.Role !== null) {
|
|
2635
|
-
contents.Role =
|
|
2635
|
+
contents.Role = smithy_client_1.expectString(data.Role);
|
|
2636
2636
|
}
|
|
2637
2637
|
if (data.Runtime !== undefined && data.Runtime !== null) {
|
|
2638
|
-
contents.Runtime =
|
|
2638
|
+
contents.Runtime = smithy_client_1.expectString(data.Runtime);
|
|
2639
2639
|
}
|
|
2640
2640
|
if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
|
|
2641
|
-
contents.SigningJobArn =
|
|
2641
|
+
contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
|
|
2642
2642
|
}
|
|
2643
2643
|
if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
|
|
2644
|
-
contents.SigningProfileVersionArn =
|
|
2644
|
+
contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
|
|
2645
2645
|
}
|
|
2646
2646
|
if (data.State !== undefined && data.State !== null) {
|
|
2647
|
-
contents.State =
|
|
2647
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
2648
2648
|
}
|
|
2649
2649
|
if (data.StateReason !== undefined && data.StateReason !== null) {
|
|
2650
|
-
contents.StateReason =
|
|
2650
|
+
contents.StateReason = smithy_client_1.expectString(data.StateReason);
|
|
2651
2651
|
}
|
|
2652
2652
|
if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
|
|
2653
|
-
contents.StateReasonCode =
|
|
2653
|
+
contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
|
|
2654
2654
|
}
|
|
2655
2655
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
2656
|
-
contents.Timeout =
|
|
2656
|
+
contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
|
|
2657
2657
|
}
|
|
2658
2658
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
2659
2659
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
2660
2660
|
}
|
|
2661
2661
|
if (data.Version !== undefined && data.Version !== null) {
|
|
2662
|
-
contents.Version =
|
|
2662
|
+
contents.Version = smithy_client_1.expectString(data.Version);
|
|
2663
2663
|
}
|
|
2664
2664
|
if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
|
|
2665
2665
|
contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
|
|
@@ -2929,42 +2929,42 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
|
|
|
2929
2929
|
TumblingWindowInSeconds: undefined,
|
|
2930
2930
|
UUID: undefined,
|
|
2931
2931
|
};
|
|
2932
|
-
const data =
|
|
2932
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2933
2933
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
2934
|
-
contents.BatchSize =
|
|
2934
|
+
contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
2937
|
-
contents.BisectBatchOnFunctionError =
|
|
2937
|
+
contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
|
|
2938
2938
|
}
|
|
2939
2939
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
2940
2940
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
2941
2941
|
}
|
|
2942
2942
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
2943
|
-
contents.EventSourceArn =
|
|
2943
|
+
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
2944
2944
|
}
|
|
2945
2945
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
2946
|
-
contents.FunctionArn =
|
|
2946
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
2947
2947
|
}
|
|
2948
2948
|
if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
|
|
2949
2949
|
contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
|
|
2950
2950
|
}
|
|
2951
2951
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
2952
|
-
contents.LastModified =
|
|
2952
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
2953
2953
|
}
|
|
2954
2954
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
2955
|
-
contents.LastProcessingResult =
|
|
2955
|
+
contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
|
|
2956
2956
|
}
|
|
2957
2957
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
2958
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
2958
|
+
contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
2959
2959
|
}
|
|
2960
2960
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
2961
|
-
contents.MaximumRecordAgeInSeconds =
|
|
2961
|
+
contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
|
|
2962
2962
|
}
|
|
2963
2963
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
2964
|
-
contents.MaximumRetryAttempts =
|
|
2964
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
2965
2965
|
}
|
|
2966
2966
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
2967
|
-
contents.ParallelizationFactor =
|
|
2967
|
+
contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
|
|
2968
2968
|
}
|
|
2969
2969
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
2970
2970
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -2976,25 +2976,25 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
|
|
|
2976
2976
|
contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
|
|
2977
2977
|
}
|
|
2978
2978
|
if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
|
|
2979
|
-
contents.StartingPosition =
|
|
2979
|
+
contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
|
|
2980
2980
|
}
|
|
2981
2981
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
2982
|
-
contents.StartingPositionTimestamp =
|
|
2982
|
+
contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
|
|
2983
2983
|
}
|
|
2984
2984
|
if (data.State !== undefined && data.State !== null) {
|
|
2985
|
-
contents.State =
|
|
2985
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
2986
2986
|
}
|
|
2987
2987
|
if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
|
|
2988
|
-
contents.StateTransitionReason =
|
|
2988
|
+
contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
|
|
2989
2989
|
}
|
|
2990
2990
|
if (data.Topics !== undefined && data.Topics !== null) {
|
|
2991
2991
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
2992
2992
|
}
|
|
2993
2993
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
2994
|
-
contents.TumblingWindowInSeconds =
|
|
2994
|
+
contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
|
|
2995
2995
|
}
|
|
2996
2996
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
2997
|
-
contents.UUID =
|
|
2997
|
+
contents.UUID = smithy_client_1.expectString(data.UUID);
|
|
2998
2998
|
}
|
|
2999
2999
|
return Promise.resolve(contents);
|
|
3000
3000
|
};
|
|
@@ -3513,7 +3513,7 @@ const deserializeAws_restJson1GetAccountSettingsCommand = async (output, context
|
|
|
3513
3513
|
AccountLimit: undefined,
|
|
3514
3514
|
AccountUsage: undefined,
|
|
3515
3515
|
};
|
|
3516
|
-
const data =
|
|
3516
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3517
3517
|
if (data.AccountLimit !== undefined && data.AccountLimit !== null) {
|
|
3518
3518
|
contents.AccountLimit = deserializeAws_restJson1AccountLimit(data.AccountLimit, context);
|
|
3519
3519
|
}
|
|
@@ -3577,21 +3577,21 @@ const deserializeAws_restJson1GetAliasCommand = async (output, context) => {
|
|
|
3577
3577
|
RevisionId: undefined,
|
|
3578
3578
|
RoutingConfig: undefined,
|
|
3579
3579
|
};
|
|
3580
|
-
const data =
|
|
3580
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3581
3581
|
if (data.AliasArn !== undefined && data.AliasArn !== null) {
|
|
3582
|
-
contents.AliasArn =
|
|
3582
|
+
contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
|
|
3583
3583
|
}
|
|
3584
3584
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3585
|
-
contents.Description =
|
|
3585
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
3586
3586
|
}
|
|
3587
3587
|
if (data.FunctionVersion !== undefined && data.FunctionVersion !== null) {
|
|
3588
|
-
contents.FunctionVersion =
|
|
3588
|
+
contents.FunctionVersion = smithy_client_1.expectString(data.FunctionVersion);
|
|
3589
3589
|
}
|
|
3590
3590
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3591
|
-
contents.Name =
|
|
3591
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
3592
3592
|
}
|
|
3593
3593
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
3594
|
-
contents.RevisionId =
|
|
3594
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
3595
3595
|
}
|
|
3596
3596
|
if (data.RoutingConfig !== undefined && data.RoutingConfig !== null) {
|
|
3597
3597
|
contents.RoutingConfig = deserializeAws_restJson1AliasRoutingConfiguration(data.RoutingConfig, context);
|
|
@@ -3664,7 +3664,7 @@ const deserializeAws_restJson1GetCodeSigningConfigCommand = async (output, conte
|
|
|
3664
3664
|
$metadata: deserializeMetadata(output),
|
|
3665
3665
|
CodeSigningConfig: undefined,
|
|
3666
3666
|
};
|
|
3667
|
-
const data =
|
|
3667
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3668
3668
|
if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
|
|
3669
3669
|
contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
|
|
3670
3670
|
}
|
|
@@ -3749,42 +3749,42 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
|
|
|
3749
3749
|
TumblingWindowInSeconds: undefined,
|
|
3750
3750
|
UUID: undefined,
|
|
3751
3751
|
};
|
|
3752
|
-
const data =
|
|
3752
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3753
3753
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
3754
|
-
contents.BatchSize =
|
|
3754
|
+
contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
|
|
3755
3755
|
}
|
|
3756
3756
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
3757
|
-
contents.BisectBatchOnFunctionError =
|
|
3757
|
+
contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
|
|
3758
3758
|
}
|
|
3759
3759
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
3760
3760
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
3761
3761
|
}
|
|
3762
3762
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
3763
|
-
contents.EventSourceArn =
|
|
3763
|
+
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
3764
3764
|
}
|
|
3765
3765
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
3766
|
-
contents.FunctionArn =
|
|
3766
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
3767
3767
|
}
|
|
3768
3768
|
if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
|
|
3769
3769
|
contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
|
|
3770
3770
|
}
|
|
3771
3771
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
3772
|
-
contents.LastModified =
|
|
3772
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
3773
3773
|
}
|
|
3774
3774
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
3775
|
-
contents.LastProcessingResult =
|
|
3775
|
+
contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
|
|
3776
3776
|
}
|
|
3777
3777
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
3778
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
3778
|
+
contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
3779
3779
|
}
|
|
3780
3780
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
3781
|
-
contents.MaximumRecordAgeInSeconds =
|
|
3781
|
+
contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
|
|
3782
3782
|
}
|
|
3783
3783
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
3784
|
-
contents.MaximumRetryAttempts =
|
|
3784
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
3785
3785
|
}
|
|
3786
3786
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
3787
|
-
contents.ParallelizationFactor =
|
|
3787
|
+
contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
|
|
3788
3788
|
}
|
|
3789
3789
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
3790
3790
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -3796,25 +3796,25 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
|
|
|
3796
3796
|
contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
|
|
3797
3797
|
}
|
|
3798
3798
|
if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
|
|
3799
|
-
contents.StartingPosition =
|
|
3799
|
+
contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
|
|
3800
3800
|
}
|
|
3801
3801
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
3802
|
-
contents.StartingPositionTimestamp =
|
|
3802
|
+
contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
|
|
3803
3803
|
}
|
|
3804
3804
|
if (data.State !== undefined && data.State !== null) {
|
|
3805
|
-
contents.State =
|
|
3805
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
3806
3806
|
}
|
|
3807
3807
|
if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
|
|
3808
|
-
contents.StateTransitionReason =
|
|
3808
|
+
contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
|
|
3809
3809
|
}
|
|
3810
3810
|
if (data.Topics !== undefined && data.Topics !== null) {
|
|
3811
3811
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
3812
3812
|
}
|
|
3813
3813
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
3814
|
-
contents.TumblingWindowInSeconds =
|
|
3814
|
+
contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
|
|
3815
3815
|
}
|
|
3816
3816
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
3817
|
-
contents.UUID =
|
|
3817
|
+
contents.UUID = smithy_client_1.expectString(data.UUID);
|
|
3818
3818
|
}
|
|
3819
3819
|
return Promise.resolve(contents);
|
|
3820
3820
|
};
|
|
@@ -3887,7 +3887,7 @@ const deserializeAws_restJson1GetFunctionCommand = async (output, context) => {
|
|
|
3887
3887
|
Configuration: undefined,
|
|
3888
3888
|
Tags: undefined,
|
|
3889
3889
|
};
|
|
3890
|
-
const data =
|
|
3890
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3891
3891
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3892
3892
|
contents.Code = deserializeAws_restJson1FunctionCodeLocation(data.Code, context);
|
|
3893
3893
|
}
|
|
@@ -3969,12 +3969,12 @@ const deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (outpu
|
|
|
3969
3969
|
CodeSigningConfigArn: undefined,
|
|
3970
3970
|
FunctionName: undefined,
|
|
3971
3971
|
};
|
|
3972
|
-
const data =
|
|
3972
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3973
3973
|
if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
|
|
3974
|
-
contents.CodeSigningConfigArn =
|
|
3974
|
+
contents.CodeSigningConfigArn = smithy_client_1.expectString(data.CodeSigningConfigArn);
|
|
3975
3975
|
}
|
|
3976
3976
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
3977
|
-
contents.FunctionName =
|
|
3977
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
3978
3978
|
}
|
|
3979
3979
|
return Promise.resolve(contents);
|
|
3980
3980
|
};
|
|
@@ -4044,9 +4044,9 @@ const deserializeAws_restJson1GetFunctionConcurrencyCommand = async (output, con
|
|
|
4044
4044
|
$metadata: deserializeMetadata(output),
|
|
4045
4045
|
ReservedConcurrentExecutions: undefined,
|
|
4046
4046
|
};
|
|
4047
|
-
const data =
|
|
4047
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4048
4048
|
if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
|
|
4049
|
-
contents.ReservedConcurrentExecutions =
|
|
4049
|
+
contents.ReservedConcurrentExecutions = smithy_client_1.expectInt32(data.ReservedConcurrentExecutions);
|
|
4050
4050
|
}
|
|
4051
4051
|
return Promise.resolve(contents);
|
|
4052
4052
|
};
|
|
@@ -4146,18 +4146,18 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
|
|
|
4146
4146
|
Version: undefined,
|
|
4147
4147
|
VpcConfig: undefined,
|
|
4148
4148
|
};
|
|
4149
|
-
const data =
|
|
4149
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4150
4150
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
4151
|
-
contents.CodeSha256 =
|
|
4151
|
+
contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
|
|
4152
4152
|
}
|
|
4153
4153
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
4154
|
-
contents.CodeSize =
|
|
4154
|
+
contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
|
|
4155
4155
|
}
|
|
4156
4156
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
4157
4157
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
4158
4158
|
}
|
|
4159
4159
|
if (data.Description !== undefined && data.Description !== null) {
|
|
4160
|
-
contents.Description =
|
|
4160
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
4161
4161
|
}
|
|
4162
4162
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
4163
4163
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
@@ -4166,76 +4166,76 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
|
|
|
4166
4166
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
4167
4167
|
}
|
|
4168
4168
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
4169
|
-
contents.FunctionArn =
|
|
4169
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
4170
4170
|
}
|
|
4171
4171
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
4172
|
-
contents.FunctionName =
|
|
4172
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
4173
4173
|
}
|
|
4174
4174
|
if (data.Handler !== undefined && data.Handler !== null) {
|
|
4175
|
-
contents.Handler =
|
|
4175
|
+
contents.Handler = smithy_client_1.expectString(data.Handler);
|
|
4176
4176
|
}
|
|
4177
4177
|
if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
|
|
4178
4178
|
contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
|
|
4179
4179
|
}
|
|
4180
4180
|
if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
|
|
4181
|
-
contents.KMSKeyArn =
|
|
4181
|
+
contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
|
|
4182
4182
|
}
|
|
4183
4183
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4184
|
-
contents.LastModified =
|
|
4184
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
4185
4185
|
}
|
|
4186
4186
|
if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
|
|
4187
|
-
contents.LastUpdateStatus =
|
|
4187
|
+
contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
|
|
4188
4188
|
}
|
|
4189
4189
|
if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
|
|
4190
|
-
contents.LastUpdateStatusReason =
|
|
4190
|
+
contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
|
|
4191
4191
|
}
|
|
4192
4192
|
if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
|
|
4193
|
-
contents.LastUpdateStatusReasonCode =
|
|
4193
|
+
contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
|
|
4194
4194
|
}
|
|
4195
4195
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
4196
4196
|
contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
|
|
4197
4197
|
}
|
|
4198
4198
|
if (data.MasterArn !== undefined && data.MasterArn !== null) {
|
|
4199
|
-
contents.MasterArn =
|
|
4199
|
+
contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
|
|
4200
4200
|
}
|
|
4201
4201
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
4202
|
-
contents.MemorySize =
|
|
4202
|
+
contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
|
|
4203
4203
|
}
|
|
4204
4204
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
4205
|
-
contents.PackageType =
|
|
4205
|
+
contents.PackageType = smithy_client_1.expectString(data.PackageType);
|
|
4206
4206
|
}
|
|
4207
4207
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
4208
|
-
contents.RevisionId =
|
|
4208
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
4209
4209
|
}
|
|
4210
4210
|
if (data.Role !== undefined && data.Role !== null) {
|
|
4211
|
-
contents.Role =
|
|
4211
|
+
contents.Role = smithy_client_1.expectString(data.Role);
|
|
4212
4212
|
}
|
|
4213
4213
|
if (data.Runtime !== undefined && data.Runtime !== null) {
|
|
4214
|
-
contents.Runtime =
|
|
4214
|
+
contents.Runtime = smithy_client_1.expectString(data.Runtime);
|
|
4215
4215
|
}
|
|
4216
4216
|
if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
|
|
4217
|
-
contents.SigningJobArn =
|
|
4217
|
+
contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
|
|
4218
4218
|
}
|
|
4219
4219
|
if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
|
|
4220
|
-
contents.SigningProfileVersionArn =
|
|
4220
|
+
contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
|
|
4221
4221
|
}
|
|
4222
4222
|
if (data.State !== undefined && data.State !== null) {
|
|
4223
|
-
contents.State =
|
|
4223
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
4224
4224
|
}
|
|
4225
4225
|
if (data.StateReason !== undefined && data.StateReason !== null) {
|
|
4226
|
-
contents.StateReason =
|
|
4226
|
+
contents.StateReason = smithy_client_1.expectString(data.StateReason);
|
|
4227
4227
|
}
|
|
4228
4228
|
if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
|
|
4229
|
-
contents.StateReasonCode =
|
|
4229
|
+
contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
|
|
4230
4230
|
}
|
|
4231
4231
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
4232
|
-
contents.Timeout =
|
|
4232
|
+
contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
|
|
4233
4233
|
}
|
|
4234
4234
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
4235
4235
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
4236
4236
|
}
|
|
4237
4237
|
if (data.Version !== undefined && data.Version !== null) {
|
|
4238
|
-
contents.Version =
|
|
4238
|
+
contents.Version = smithy_client_1.expectString(data.Version);
|
|
4239
4239
|
}
|
|
4240
4240
|
if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
|
|
4241
4241
|
contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
|
|
@@ -4312,21 +4312,21 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (outpu
|
|
|
4312
4312
|
MaximumEventAgeInSeconds: undefined,
|
|
4313
4313
|
MaximumRetryAttempts: undefined,
|
|
4314
4314
|
};
|
|
4315
|
-
const data =
|
|
4315
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4316
4316
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
4317
4317
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
4318
4318
|
}
|
|
4319
4319
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
4320
|
-
contents.FunctionArn =
|
|
4320
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
4321
4321
|
}
|
|
4322
4322
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4323
|
-
contents.LastModified =
|
|
4323
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
4324
4324
|
}
|
|
4325
4325
|
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
4326
|
-
contents.MaximumEventAgeInSeconds =
|
|
4326
|
+
contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
|
|
4327
4327
|
}
|
|
4328
4328
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
4329
|
-
contents.MaximumRetryAttempts =
|
|
4329
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
4330
4330
|
}
|
|
4331
4331
|
return Promise.resolve(contents);
|
|
4332
4332
|
};
|
|
@@ -4403,7 +4403,7 @@ const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) =
|
|
|
4403
4403
|
LicenseInfo: undefined,
|
|
4404
4404
|
Version: undefined,
|
|
4405
4405
|
};
|
|
4406
|
-
const data =
|
|
4406
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4407
4407
|
if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
|
|
4408
4408
|
contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
|
|
4409
4409
|
}
|
|
@@ -4411,22 +4411,22 @@ const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) =
|
|
|
4411
4411
|
contents.Content = deserializeAws_restJson1LayerVersionContentOutput(data.Content, context);
|
|
4412
4412
|
}
|
|
4413
4413
|
if (data.CreatedDate !== undefined && data.CreatedDate !== null) {
|
|
4414
|
-
contents.CreatedDate =
|
|
4414
|
+
contents.CreatedDate = smithy_client_1.expectString(data.CreatedDate);
|
|
4415
4415
|
}
|
|
4416
4416
|
if (data.Description !== undefined && data.Description !== null) {
|
|
4417
|
-
contents.Description =
|
|
4417
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
4418
4418
|
}
|
|
4419
4419
|
if (data.LayerArn !== undefined && data.LayerArn !== null) {
|
|
4420
|
-
contents.LayerArn =
|
|
4420
|
+
contents.LayerArn = smithy_client_1.expectString(data.LayerArn);
|
|
4421
4421
|
}
|
|
4422
4422
|
if (data.LayerVersionArn !== undefined && data.LayerVersionArn !== null) {
|
|
4423
|
-
contents.LayerVersionArn =
|
|
4423
|
+
contents.LayerVersionArn = smithy_client_1.expectString(data.LayerVersionArn);
|
|
4424
4424
|
}
|
|
4425
4425
|
if (data.LicenseInfo !== undefined && data.LicenseInfo !== null) {
|
|
4426
|
-
contents.LicenseInfo =
|
|
4426
|
+
contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
|
|
4427
4427
|
}
|
|
4428
4428
|
if (data.Version !== undefined && data.Version !== null) {
|
|
4429
|
-
contents.Version =
|
|
4429
|
+
contents.Version = smithy_client_1.expectLong(data.Version);
|
|
4430
4430
|
}
|
|
4431
4431
|
return Promise.resolve(contents);
|
|
4432
4432
|
};
|
|
@@ -4503,7 +4503,7 @@ const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, conte
|
|
|
4503
4503
|
LicenseInfo: undefined,
|
|
4504
4504
|
Version: undefined,
|
|
4505
4505
|
};
|
|
4506
|
-
const data =
|
|
4506
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4507
4507
|
if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
|
|
4508
4508
|
contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
|
|
4509
4509
|
}
|
|
@@ -4511,22 +4511,22 @@ const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, conte
|
|
|
4511
4511
|
contents.Content = deserializeAws_restJson1LayerVersionContentOutput(data.Content, context);
|
|
4512
4512
|
}
|
|
4513
4513
|
if (data.CreatedDate !== undefined && data.CreatedDate !== null) {
|
|
4514
|
-
contents.CreatedDate =
|
|
4514
|
+
contents.CreatedDate = smithy_client_1.expectString(data.CreatedDate);
|
|
4515
4515
|
}
|
|
4516
4516
|
if (data.Description !== undefined && data.Description !== null) {
|
|
4517
|
-
contents.Description =
|
|
4517
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
4518
4518
|
}
|
|
4519
4519
|
if (data.LayerArn !== undefined && data.LayerArn !== null) {
|
|
4520
|
-
contents.LayerArn =
|
|
4520
|
+
contents.LayerArn = smithy_client_1.expectString(data.LayerArn);
|
|
4521
4521
|
}
|
|
4522
4522
|
if (data.LayerVersionArn !== undefined && data.LayerVersionArn !== null) {
|
|
4523
|
-
contents.LayerVersionArn =
|
|
4523
|
+
contents.LayerVersionArn = smithy_client_1.expectString(data.LayerVersionArn);
|
|
4524
4524
|
}
|
|
4525
4525
|
if (data.LicenseInfo !== undefined && data.LicenseInfo !== null) {
|
|
4526
|
-
contents.LicenseInfo =
|
|
4526
|
+
contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
|
|
4527
4527
|
}
|
|
4528
4528
|
if (data.Version !== undefined && data.Version !== null) {
|
|
4529
|
-
contents.Version =
|
|
4529
|
+
contents.Version = smithy_client_1.expectLong(data.Version);
|
|
4530
4530
|
}
|
|
4531
4531
|
return Promise.resolve(contents);
|
|
4532
4532
|
};
|
|
@@ -4597,12 +4597,12 @@ const deserializeAws_restJson1GetLayerVersionPolicyCommand = async (output, cont
|
|
|
4597
4597
|
Policy: undefined,
|
|
4598
4598
|
RevisionId: undefined,
|
|
4599
4599
|
};
|
|
4600
|
-
const data =
|
|
4600
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4601
4601
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
4602
|
-
contents.Policy =
|
|
4602
|
+
contents.Policy = smithy_client_1.expectString(data.Policy);
|
|
4603
4603
|
}
|
|
4604
4604
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
4605
|
-
contents.RevisionId =
|
|
4605
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
4606
4606
|
}
|
|
4607
4607
|
return Promise.resolve(contents);
|
|
4608
4608
|
};
|
|
@@ -4673,12 +4673,12 @@ const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
|
|
|
4673
4673
|
Policy: undefined,
|
|
4674
4674
|
RevisionId: undefined,
|
|
4675
4675
|
};
|
|
4676
|
-
const data =
|
|
4676
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4677
4677
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
4678
|
-
contents.Policy =
|
|
4678
|
+
contents.Policy = smithy_client_1.expectString(data.Policy);
|
|
4679
4679
|
}
|
|
4680
4680
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
4681
|
-
contents.RevisionId =
|
|
4681
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
4682
4682
|
}
|
|
4683
4683
|
return Promise.resolve(contents);
|
|
4684
4684
|
};
|
|
@@ -4753,27 +4753,27 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (ou
|
|
|
4753
4753
|
Status: undefined,
|
|
4754
4754
|
StatusReason: undefined,
|
|
4755
4755
|
};
|
|
4756
|
-
const data =
|
|
4756
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4757
4757
|
if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
|
|
4758
4758
|
data.AllocatedProvisionedConcurrentExecutions !== null) {
|
|
4759
|
-
contents.AllocatedProvisionedConcurrentExecutions =
|
|
4759
|
+
contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AllocatedProvisionedConcurrentExecutions);
|
|
4760
4760
|
}
|
|
4761
4761
|
if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
|
|
4762
4762
|
data.AvailableProvisionedConcurrentExecutions !== null) {
|
|
4763
|
-
contents.AvailableProvisionedConcurrentExecutions =
|
|
4763
|
+
contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AvailableProvisionedConcurrentExecutions);
|
|
4764
4764
|
}
|
|
4765
4765
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4766
|
-
contents.LastModified =
|
|
4766
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
4767
4767
|
}
|
|
4768
4768
|
if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
|
|
4769
4769
|
data.RequestedProvisionedConcurrentExecutions !== null) {
|
|
4770
|
-
contents.RequestedProvisionedConcurrentExecutions =
|
|
4770
|
+
contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.RequestedProvisionedConcurrentExecutions);
|
|
4771
4771
|
}
|
|
4772
4772
|
if (data.Status !== undefined && data.Status !== null) {
|
|
4773
|
-
contents.Status =
|
|
4773
|
+
contents.Status = smithy_client_1.expectString(data.Status);
|
|
4774
4774
|
}
|
|
4775
4775
|
if (data.StatusReason !== undefined && data.StatusReason !== null) {
|
|
4776
|
-
contents.StatusReason =
|
|
4776
|
+
contents.StatusReason = smithy_client_1.expectString(data.StatusReason);
|
|
4777
4777
|
}
|
|
4778
4778
|
return Promise.resolve(contents);
|
|
4779
4779
|
};
|
|
@@ -5194,12 +5194,12 @@ const deserializeAws_restJson1ListAliasesCommand = async (output, context) => {
|
|
|
5194
5194
|
Aliases: undefined,
|
|
5195
5195
|
NextMarker: undefined,
|
|
5196
5196
|
};
|
|
5197
|
-
const data =
|
|
5197
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5198
5198
|
if (data.Aliases !== undefined && data.Aliases !== null) {
|
|
5199
5199
|
contents.Aliases = deserializeAws_restJson1AliasList(data.Aliases, context);
|
|
5200
5200
|
}
|
|
5201
5201
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5202
|
-
contents.NextMarker =
|
|
5202
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5203
5203
|
}
|
|
5204
5204
|
return Promise.resolve(contents);
|
|
5205
5205
|
};
|
|
@@ -5270,12 +5270,12 @@ const deserializeAws_restJson1ListCodeSigningConfigsCommand = async (output, con
|
|
|
5270
5270
|
CodeSigningConfigs: undefined,
|
|
5271
5271
|
NextMarker: undefined,
|
|
5272
5272
|
};
|
|
5273
|
-
const data =
|
|
5273
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5274
5274
|
if (data.CodeSigningConfigs !== undefined && data.CodeSigningConfigs !== null) {
|
|
5275
5275
|
contents.CodeSigningConfigs = deserializeAws_restJson1CodeSigningConfigList(data.CodeSigningConfigs, context);
|
|
5276
5276
|
}
|
|
5277
5277
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5278
|
-
contents.NextMarker =
|
|
5278
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5279
5279
|
}
|
|
5280
5280
|
return Promise.resolve(contents);
|
|
5281
5281
|
};
|
|
@@ -5330,12 +5330,12 @@ const deserializeAws_restJson1ListEventSourceMappingsCommand = async (output, co
|
|
|
5330
5330
|
EventSourceMappings: undefined,
|
|
5331
5331
|
NextMarker: undefined,
|
|
5332
5332
|
};
|
|
5333
|
-
const data =
|
|
5333
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5334
5334
|
if (data.EventSourceMappings !== undefined && data.EventSourceMappings !== null) {
|
|
5335
5335
|
contents.EventSourceMappings = deserializeAws_restJson1EventSourceMappingsList(data.EventSourceMappings, context);
|
|
5336
5336
|
}
|
|
5337
5337
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5338
|
-
contents.NextMarker =
|
|
5338
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5339
5339
|
}
|
|
5340
5340
|
return Promise.resolve(contents);
|
|
5341
5341
|
};
|
|
@@ -5406,12 +5406,12 @@ const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (out
|
|
|
5406
5406
|
FunctionEventInvokeConfigs: undefined,
|
|
5407
5407
|
NextMarker: undefined,
|
|
5408
5408
|
};
|
|
5409
|
-
const data =
|
|
5409
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5410
5410
|
if (data.FunctionEventInvokeConfigs !== undefined && data.FunctionEventInvokeConfigs !== null) {
|
|
5411
5411
|
contents.FunctionEventInvokeConfigs = deserializeAws_restJson1FunctionEventInvokeConfigList(data.FunctionEventInvokeConfigs, context);
|
|
5412
5412
|
}
|
|
5413
5413
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5414
|
-
contents.NextMarker =
|
|
5414
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5415
5415
|
}
|
|
5416
5416
|
return Promise.resolve(contents);
|
|
5417
5417
|
};
|
|
@@ -5482,12 +5482,12 @@ const deserializeAws_restJson1ListFunctionsCommand = async (output, context) =>
|
|
|
5482
5482
|
Functions: undefined,
|
|
5483
5483
|
NextMarker: undefined,
|
|
5484
5484
|
};
|
|
5485
|
-
const data =
|
|
5485
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5486
5486
|
if (data.Functions !== undefined && data.Functions !== null) {
|
|
5487
5487
|
contents.Functions = deserializeAws_restJson1FunctionList(data.Functions, context);
|
|
5488
5488
|
}
|
|
5489
5489
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5490
|
-
contents.NextMarker =
|
|
5490
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5491
5491
|
}
|
|
5492
5492
|
return Promise.resolve(contents);
|
|
5493
5493
|
};
|
|
@@ -5550,12 +5550,12 @@ const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (o
|
|
|
5550
5550
|
FunctionArns: undefined,
|
|
5551
5551
|
NextMarker: undefined,
|
|
5552
5552
|
};
|
|
5553
|
-
const data =
|
|
5553
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5554
5554
|
if (data.FunctionArns !== undefined && data.FunctionArns !== null) {
|
|
5555
5555
|
contents.FunctionArns = deserializeAws_restJson1FunctionArnList(data.FunctionArns, context);
|
|
5556
5556
|
}
|
|
5557
5557
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5558
|
-
contents.NextMarker =
|
|
5558
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5559
5559
|
}
|
|
5560
5560
|
return Promise.resolve(contents);
|
|
5561
5561
|
};
|
|
@@ -5618,12 +5618,12 @@ const deserializeAws_restJson1ListLayersCommand = async (output, context) => {
|
|
|
5618
5618
|
Layers: undefined,
|
|
5619
5619
|
NextMarker: undefined,
|
|
5620
5620
|
};
|
|
5621
|
-
const data =
|
|
5621
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5622
5622
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
5623
5623
|
contents.Layers = deserializeAws_restJson1LayersList(data.Layers, context);
|
|
5624
5624
|
}
|
|
5625
5625
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5626
|
-
contents.NextMarker =
|
|
5626
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5627
5627
|
}
|
|
5628
5628
|
return Promise.resolve(contents);
|
|
5629
5629
|
};
|
|
@@ -5686,12 +5686,12 @@ const deserializeAws_restJson1ListLayerVersionsCommand = async (output, context)
|
|
|
5686
5686
|
LayerVersions: undefined,
|
|
5687
5687
|
NextMarker: undefined,
|
|
5688
5688
|
};
|
|
5689
|
-
const data =
|
|
5689
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5690
5690
|
if (data.LayerVersions !== undefined && data.LayerVersions !== null) {
|
|
5691
5691
|
contents.LayerVersions = deserializeAws_restJson1LayerVersionsList(data.LayerVersions, context);
|
|
5692
5692
|
}
|
|
5693
5693
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5694
|
-
contents.NextMarker =
|
|
5694
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5695
5695
|
}
|
|
5696
5696
|
return Promise.resolve(contents);
|
|
5697
5697
|
};
|
|
@@ -5762,9 +5762,9 @@ const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (
|
|
|
5762
5762
|
NextMarker: undefined,
|
|
5763
5763
|
ProvisionedConcurrencyConfigs: undefined,
|
|
5764
5764
|
};
|
|
5765
|
-
const data =
|
|
5765
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5766
5766
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5767
|
-
contents.NextMarker =
|
|
5767
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5768
5768
|
}
|
|
5769
5769
|
if (data.ProvisionedConcurrencyConfigs !== undefined && data.ProvisionedConcurrencyConfigs !== null) {
|
|
5770
5770
|
contents.ProvisionedConcurrencyConfigs = deserializeAws_restJson1ProvisionedConcurrencyConfigList(data.ProvisionedConcurrencyConfigs, context);
|
|
@@ -5837,7 +5837,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
|
|
|
5837
5837
|
$metadata: deserializeMetadata(output),
|
|
5838
5838
|
Tags: undefined,
|
|
5839
5839
|
};
|
|
5840
|
-
const data =
|
|
5840
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5841
5841
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
5842
5842
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
5843
5843
|
}
|
|
@@ -5910,9 +5910,9 @@ const deserializeAws_restJson1ListVersionsByFunctionCommand = async (output, con
|
|
|
5910
5910
|
NextMarker: undefined,
|
|
5911
5911
|
Versions: undefined,
|
|
5912
5912
|
};
|
|
5913
|
-
const data =
|
|
5913
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5914
5914
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5915
|
-
contents.NextMarker =
|
|
5915
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
5916
5916
|
}
|
|
5917
5917
|
if (data.Versions !== undefined && data.Versions !== null) {
|
|
5918
5918
|
contents.Versions = deserializeAws_restJson1FunctionList(data.Versions, context);
|
|
@@ -5992,7 +5992,7 @@ const deserializeAws_restJson1PublishLayerVersionCommand = async (output, contex
|
|
|
5992
5992
|
LicenseInfo: undefined,
|
|
5993
5993
|
Version: undefined,
|
|
5994
5994
|
};
|
|
5995
|
-
const data =
|
|
5995
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5996
5996
|
if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
|
|
5997
5997
|
contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
|
|
5998
5998
|
}
|
|
@@ -6000,22 +6000,22 @@ const deserializeAws_restJson1PublishLayerVersionCommand = async (output, contex
|
|
|
6000
6000
|
contents.Content = deserializeAws_restJson1LayerVersionContentOutput(data.Content, context);
|
|
6001
6001
|
}
|
|
6002
6002
|
if (data.CreatedDate !== undefined && data.CreatedDate !== null) {
|
|
6003
|
-
contents.CreatedDate =
|
|
6003
|
+
contents.CreatedDate = smithy_client_1.expectString(data.CreatedDate);
|
|
6004
6004
|
}
|
|
6005
6005
|
if (data.Description !== undefined && data.Description !== null) {
|
|
6006
|
-
contents.Description =
|
|
6006
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
6007
6007
|
}
|
|
6008
6008
|
if (data.LayerArn !== undefined && data.LayerArn !== null) {
|
|
6009
|
-
contents.LayerArn =
|
|
6009
|
+
contents.LayerArn = smithy_client_1.expectString(data.LayerArn);
|
|
6010
6010
|
}
|
|
6011
6011
|
if (data.LayerVersionArn !== undefined && data.LayerVersionArn !== null) {
|
|
6012
|
-
contents.LayerVersionArn =
|
|
6012
|
+
contents.LayerVersionArn = smithy_client_1.expectString(data.LayerVersionArn);
|
|
6013
6013
|
}
|
|
6014
6014
|
if (data.LicenseInfo !== undefined && data.LicenseInfo !== null) {
|
|
6015
|
-
contents.LicenseInfo =
|
|
6015
|
+
contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
|
|
6016
6016
|
}
|
|
6017
6017
|
if (data.Version !== undefined && data.Version !== null) {
|
|
6018
|
-
contents.Version =
|
|
6018
|
+
contents.Version = smithy_client_1.expectLong(data.Version);
|
|
6019
6019
|
}
|
|
6020
6020
|
return Promise.resolve(contents);
|
|
6021
6021
|
};
|
|
@@ -6123,18 +6123,18 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
|
|
|
6123
6123
|
Version: undefined,
|
|
6124
6124
|
VpcConfig: undefined,
|
|
6125
6125
|
};
|
|
6126
|
-
const data =
|
|
6126
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6127
6127
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
6128
|
-
contents.CodeSha256 =
|
|
6128
|
+
contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
|
|
6129
6129
|
}
|
|
6130
6130
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
6131
|
-
contents.CodeSize =
|
|
6131
|
+
contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
|
|
6132
6132
|
}
|
|
6133
6133
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
6134
6134
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
6135
6135
|
}
|
|
6136
6136
|
if (data.Description !== undefined && data.Description !== null) {
|
|
6137
|
-
contents.Description =
|
|
6137
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
6138
6138
|
}
|
|
6139
6139
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
6140
6140
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
@@ -6143,76 +6143,76 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
|
|
|
6143
6143
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
6144
6144
|
}
|
|
6145
6145
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
6146
|
-
contents.FunctionArn =
|
|
6146
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
6147
6147
|
}
|
|
6148
6148
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
6149
|
-
contents.FunctionName =
|
|
6149
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
6150
6150
|
}
|
|
6151
6151
|
if (data.Handler !== undefined && data.Handler !== null) {
|
|
6152
|
-
contents.Handler =
|
|
6152
|
+
contents.Handler = smithy_client_1.expectString(data.Handler);
|
|
6153
6153
|
}
|
|
6154
6154
|
if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
|
|
6155
6155
|
contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
|
|
6156
6156
|
}
|
|
6157
6157
|
if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
|
|
6158
|
-
contents.KMSKeyArn =
|
|
6158
|
+
contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
|
|
6159
6159
|
}
|
|
6160
6160
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
6161
|
-
contents.LastModified =
|
|
6161
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
6162
6162
|
}
|
|
6163
6163
|
if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
|
|
6164
|
-
contents.LastUpdateStatus =
|
|
6164
|
+
contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
|
|
6165
6165
|
}
|
|
6166
6166
|
if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
|
|
6167
|
-
contents.LastUpdateStatusReason =
|
|
6167
|
+
contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
|
|
6168
6168
|
}
|
|
6169
6169
|
if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
|
|
6170
|
-
contents.LastUpdateStatusReasonCode =
|
|
6170
|
+
contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
|
|
6171
6171
|
}
|
|
6172
6172
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
6173
6173
|
contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
|
|
6174
6174
|
}
|
|
6175
6175
|
if (data.MasterArn !== undefined && data.MasterArn !== null) {
|
|
6176
|
-
contents.MasterArn =
|
|
6176
|
+
contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
|
|
6177
6177
|
}
|
|
6178
6178
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
6179
|
-
contents.MemorySize =
|
|
6179
|
+
contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
|
|
6180
6180
|
}
|
|
6181
6181
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
6182
|
-
contents.PackageType =
|
|
6182
|
+
contents.PackageType = smithy_client_1.expectString(data.PackageType);
|
|
6183
6183
|
}
|
|
6184
6184
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
6185
|
-
contents.RevisionId =
|
|
6185
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
6186
6186
|
}
|
|
6187
6187
|
if (data.Role !== undefined && data.Role !== null) {
|
|
6188
|
-
contents.Role =
|
|
6188
|
+
contents.Role = smithy_client_1.expectString(data.Role);
|
|
6189
6189
|
}
|
|
6190
6190
|
if (data.Runtime !== undefined && data.Runtime !== null) {
|
|
6191
|
-
contents.Runtime =
|
|
6191
|
+
contents.Runtime = smithy_client_1.expectString(data.Runtime);
|
|
6192
6192
|
}
|
|
6193
6193
|
if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
|
|
6194
|
-
contents.SigningJobArn =
|
|
6194
|
+
contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
|
|
6195
6195
|
}
|
|
6196
6196
|
if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
|
|
6197
|
-
contents.SigningProfileVersionArn =
|
|
6197
|
+
contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
|
|
6198
6198
|
}
|
|
6199
6199
|
if (data.State !== undefined && data.State !== null) {
|
|
6200
|
-
contents.State =
|
|
6200
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
6201
6201
|
}
|
|
6202
6202
|
if (data.StateReason !== undefined && data.StateReason !== null) {
|
|
6203
|
-
contents.StateReason =
|
|
6203
|
+
contents.StateReason = smithy_client_1.expectString(data.StateReason);
|
|
6204
6204
|
}
|
|
6205
6205
|
if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
|
|
6206
|
-
contents.StateReasonCode =
|
|
6206
|
+
contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
|
|
6207
6207
|
}
|
|
6208
6208
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
6209
|
-
contents.Timeout =
|
|
6209
|
+
contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
|
|
6210
6210
|
}
|
|
6211
6211
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
6212
6212
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
6213
6213
|
}
|
|
6214
6214
|
if (data.Version !== undefined && data.Version !== null) {
|
|
6215
|
-
contents.Version =
|
|
6215
|
+
contents.Version = smithy_client_1.expectString(data.Version);
|
|
6216
6216
|
}
|
|
6217
6217
|
if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
|
|
6218
6218
|
contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
|
|
@@ -6310,12 +6310,12 @@ const deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (outpu
|
|
|
6310
6310
|
CodeSigningConfigArn: undefined,
|
|
6311
6311
|
FunctionName: undefined,
|
|
6312
6312
|
};
|
|
6313
|
-
const data =
|
|
6313
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6314
6314
|
if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
|
|
6315
|
-
contents.CodeSigningConfigArn =
|
|
6315
|
+
contents.CodeSigningConfigArn = smithy_client_1.expectString(data.CodeSigningConfigArn);
|
|
6316
6316
|
}
|
|
6317
6317
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
6318
|
-
contents.FunctionName =
|
|
6318
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
6319
6319
|
}
|
|
6320
6320
|
return Promise.resolve(contents);
|
|
6321
6321
|
};
|
|
@@ -6401,9 +6401,9 @@ const deserializeAws_restJson1PutFunctionConcurrencyCommand = async (output, con
|
|
|
6401
6401
|
$metadata: deserializeMetadata(output),
|
|
6402
6402
|
ReservedConcurrentExecutions: undefined,
|
|
6403
6403
|
};
|
|
6404
|
-
const data =
|
|
6404
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6405
6405
|
if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
|
|
6406
|
-
contents.ReservedConcurrentExecutions =
|
|
6406
|
+
contents.ReservedConcurrentExecutions = smithy_client_1.expectInt32(data.ReservedConcurrentExecutions);
|
|
6407
6407
|
}
|
|
6408
6408
|
return Promise.resolve(contents);
|
|
6409
6409
|
};
|
|
@@ -6485,21 +6485,21 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (outpu
|
|
|
6485
6485
|
MaximumEventAgeInSeconds: undefined,
|
|
6486
6486
|
MaximumRetryAttempts: undefined,
|
|
6487
6487
|
};
|
|
6488
|
-
const data =
|
|
6488
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6489
6489
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
6490
6490
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
6491
6491
|
}
|
|
6492
6492
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
6493
|
-
contents.FunctionArn =
|
|
6493
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
6494
6494
|
}
|
|
6495
6495
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
6496
|
-
contents.LastModified =
|
|
6496
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
6497
6497
|
}
|
|
6498
6498
|
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
6499
|
-
contents.MaximumEventAgeInSeconds =
|
|
6499
|
+
contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
|
|
6500
6500
|
}
|
|
6501
6501
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
6502
|
-
contents.MaximumRetryAttempts =
|
|
6502
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
6503
6503
|
}
|
|
6504
6504
|
return Promise.resolve(contents);
|
|
6505
6505
|
};
|
|
@@ -6582,27 +6582,27 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (ou
|
|
|
6582
6582
|
Status: undefined,
|
|
6583
6583
|
StatusReason: undefined,
|
|
6584
6584
|
};
|
|
6585
|
-
const data =
|
|
6585
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6586
6586
|
if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
|
|
6587
6587
|
data.AllocatedProvisionedConcurrentExecutions !== null) {
|
|
6588
|
-
contents.AllocatedProvisionedConcurrentExecutions =
|
|
6588
|
+
contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AllocatedProvisionedConcurrentExecutions);
|
|
6589
6589
|
}
|
|
6590
6590
|
if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
|
|
6591
6591
|
data.AvailableProvisionedConcurrentExecutions !== null) {
|
|
6592
|
-
contents.AvailableProvisionedConcurrentExecutions =
|
|
6592
|
+
contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AvailableProvisionedConcurrentExecutions);
|
|
6593
6593
|
}
|
|
6594
6594
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
6595
|
-
contents.LastModified =
|
|
6595
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
6596
6596
|
}
|
|
6597
6597
|
if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
|
|
6598
6598
|
data.RequestedProvisionedConcurrentExecutions !== null) {
|
|
6599
|
-
contents.RequestedProvisionedConcurrentExecutions =
|
|
6599
|
+
contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.RequestedProvisionedConcurrentExecutions);
|
|
6600
6600
|
}
|
|
6601
6601
|
if (data.Status !== undefined && data.Status !== null) {
|
|
6602
|
-
contents.Status =
|
|
6602
|
+
contents.Status = smithy_client_1.expectString(data.Status);
|
|
6603
6603
|
}
|
|
6604
6604
|
if (data.StatusReason !== undefined && data.StatusReason !== null) {
|
|
6605
|
-
contents.StatusReason =
|
|
6605
|
+
contents.StatusReason = smithy_client_1.expectString(data.StatusReason);
|
|
6606
6606
|
}
|
|
6607
6607
|
return Promise.resolve(contents);
|
|
6608
6608
|
};
|
|
@@ -6989,21 +6989,21 @@ const deserializeAws_restJson1UpdateAliasCommand = async (output, context) => {
|
|
|
6989
6989
|
RevisionId: undefined,
|
|
6990
6990
|
RoutingConfig: undefined,
|
|
6991
6991
|
};
|
|
6992
|
-
const data =
|
|
6992
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6993
6993
|
if (data.AliasArn !== undefined && data.AliasArn !== null) {
|
|
6994
|
-
contents.AliasArn =
|
|
6994
|
+
contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
|
|
6995
6995
|
}
|
|
6996
6996
|
if (data.Description !== undefined && data.Description !== null) {
|
|
6997
|
-
contents.Description =
|
|
6997
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
6998
6998
|
}
|
|
6999
6999
|
if (data.FunctionVersion !== undefined && data.FunctionVersion !== null) {
|
|
7000
|
-
contents.FunctionVersion =
|
|
7000
|
+
contents.FunctionVersion = smithy_client_1.expectString(data.FunctionVersion);
|
|
7001
7001
|
}
|
|
7002
7002
|
if (data.Name !== undefined && data.Name !== null) {
|
|
7003
|
-
contents.Name =
|
|
7003
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
7004
7004
|
}
|
|
7005
7005
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
7006
|
-
contents.RevisionId =
|
|
7006
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
7007
7007
|
}
|
|
7008
7008
|
if (data.RoutingConfig !== undefined && data.RoutingConfig !== null) {
|
|
7009
7009
|
contents.RoutingConfig = deserializeAws_restJson1AliasRoutingConfiguration(data.RoutingConfig, context);
|
|
@@ -7092,7 +7092,7 @@ const deserializeAws_restJson1UpdateCodeSigningConfigCommand = async (output, co
|
|
|
7092
7092
|
$metadata: deserializeMetadata(output),
|
|
7093
7093
|
CodeSigningConfig: undefined,
|
|
7094
7094
|
};
|
|
7095
|
-
const data =
|
|
7095
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7096
7096
|
if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
|
|
7097
7097
|
contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
|
|
7098
7098
|
}
|
|
@@ -7177,42 +7177,42 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
|
|
|
7177
7177
|
TumblingWindowInSeconds: undefined,
|
|
7178
7178
|
UUID: undefined,
|
|
7179
7179
|
};
|
|
7180
|
-
const data =
|
|
7180
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7181
7181
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
7182
|
-
contents.BatchSize =
|
|
7182
|
+
contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
|
|
7183
7183
|
}
|
|
7184
7184
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
7185
|
-
contents.BisectBatchOnFunctionError =
|
|
7185
|
+
contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
|
|
7186
7186
|
}
|
|
7187
7187
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
7188
7188
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
7189
7189
|
}
|
|
7190
7190
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
7191
|
-
contents.EventSourceArn =
|
|
7191
|
+
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
7192
7192
|
}
|
|
7193
7193
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
7194
|
-
contents.FunctionArn =
|
|
7194
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
7195
7195
|
}
|
|
7196
7196
|
if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
|
|
7197
7197
|
contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
|
|
7198
7198
|
}
|
|
7199
7199
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
7200
|
-
contents.LastModified =
|
|
7200
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
7201
7201
|
}
|
|
7202
7202
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
7203
|
-
contents.LastProcessingResult =
|
|
7203
|
+
contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
|
|
7204
7204
|
}
|
|
7205
7205
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
7206
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
7206
|
+
contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
7207
7207
|
}
|
|
7208
7208
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
7209
|
-
contents.MaximumRecordAgeInSeconds =
|
|
7209
|
+
contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
|
|
7210
7210
|
}
|
|
7211
7211
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
7212
|
-
contents.MaximumRetryAttempts =
|
|
7212
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
7213
7213
|
}
|
|
7214
7214
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
7215
|
-
contents.ParallelizationFactor =
|
|
7215
|
+
contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
|
|
7216
7216
|
}
|
|
7217
7217
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
7218
7218
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -7224,25 +7224,25 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
|
|
|
7224
7224
|
contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
|
|
7225
7225
|
}
|
|
7226
7226
|
if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
|
|
7227
|
-
contents.StartingPosition =
|
|
7227
|
+
contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
|
|
7228
7228
|
}
|
|
7229
7229
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
7230
|
-
contents.StartingPositionTimestamp =
|
|
7230
|
+
contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
|
|
7231
7231
|
}
|
|
7232
7232
|
if (data.State !== undefined && data.State !== null) {
|
|
7233
|
-
contents.State =
|
|
7233
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
7234
7234
|
}
|
|
7235
7235
|
if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
|
|
7236
|
-
contents.StateTransitionReason =
|
|
7236
|
+
contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
|
|
7237
7237
|
}
|
|
7238
7238
|
if (data.Topics !== undefined && data.Topics !== null) {
|
|
7239
7239
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
7240
7240
|
}
|
|
7241
7241
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
7242
|
-
contents.TumblingWindowInSeconds =
|
|
7242
|
+
contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
|
|
7243
7243
|
}
|
|
7244
7244
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
7245
|
-
contents.UUID =
|
|
7245
|
+
contents.UUID = smithy_client_1.expectString(data.UUID);
|
|
7246
7246
|
}
|
|
7247
7247
|
return Promise.resolve(contents);
|
|
7248
7248
|
};
|
|
@@ -7358,18 +7358,18 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
|
|
|
7358
7358
|
Version: undefined,
|
|
7359
7359
|
VpcConfig: undefined,
|
|
7360
7360
|
};
|
|
7361
|
-
const data =
|
|
7361
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7362
7362
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
7363
|
-
contents.CodeSha256 =
|
|
7363
|
+
contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
|
|
7364
7364
|
}
|
|
7365
7365
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
7366
|
-
contents.CodeSize =
|
|
7366
|
+
contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
|
|
7367
7367
|
}
|
|
7368
7368
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
7369
7369
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
7370
7370
|
}
|
|
7371
7371
|
if (data.Description !== undefined && data.Description !== null) {
|
|
7372
|
-
contents.Description =
|
|
7372
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
7373
7373
|
}
|
|
7374
7374
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
7375
7375
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
@@ -7378,76 +7378,76 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
|
|
|
7378
7378
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
7379
7379
|
}
|
|
7380
7380
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
7381
|
-
contents.FunctionArn =
|
|
7381
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
7382
7382
|
}
|
|
7383
7383
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
7384
|
-
contents.FunctionName =
|
|
7384
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
7385
7385
|
}
|
|
7386
7386
|
if (data.Handler !== undefined && data.Handler !== null) {
|
|
7387
|
-
contents.Handler =
|
|
7387
|
+
contents.Handler = smithy_client_1.expectString(data.Handler);
|
|
7388
7388
|
}
|
|
7389
7389
|
if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
|
|
7390
7390
|
contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
|
|
7391
7391
|
}
|
|
7392
7392
|
if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
|
|
7393
|
-
contents.KMSKeyArn =
|
|
7393
|
+
contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
|
|
7394
7394
|
}
|
|
7395
7395
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
7396
|
-
contents.LastModified =
|
|
7396
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
7397
7397
|
}
|
|
7398
7398
|
if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
|
|
7399
|
-
contents.LastUpdateStatus =
|
|
7399
|
+
contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
|
|
7400
7400
|
}
|
|
7401
7401
|
if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
|
|
7402
|
-
contents.LastUpdateStatusReason =
|
|
7402
|
+
contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
|
|
7403
7403
|
}
|
|
7404
7404
|
if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
|
|
7405
|
-
contents.LastUpdateStatusReasonCode =
|
|
7405
|
+
contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
|
|
7406
7406
|
}
|
|
7407
7407
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
7408
7408
|
contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
|
|
7409
7409
|
}
|
|
7410
7410
|
if (data.MasterArn !== undefined && data.MasterArn !== null) {
|
|
7411
|
-
contents.MasterArn =
|
|
7411
|
+
contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
|
|
7412
7412
|
}
|
|
7413
7413
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
7414
|
-
contents.MemorySize =
|
|
7414
|
+
contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
|
|
7415
7415
|
}
|
|
7416
7416
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
7417
|
-
contents.PackageType =
|
|
7417
|
+
contents.PackageType = smithy_client_1.expectString(data.PackageType);
|
|
7418
7418
|
}
|
|
7419
7419
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
7420
|
-
contents.RevisionId =
|
|
7420
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
7421
7421
|
}
|
|
7422
7422
|
if (data.Role !== undefined && data.Role !== null) {
|
|
7423
|
-
contents.Role =
|
|
7423
|
+
contents.Role = smithy_client_1.expectString(data.Role);
|
|
7424
7424
|
}
|
|
7425
7425
|
if (data.Runtime !== undefined && data.Runtime !== null) {
|
|
7426
|
-
contents.Runtime =
|
|
7426
|
+
contents.Runtime = smithy_client_1.expectString(data.Runtime);
|
|
7427
7427
|
}
|
|
7428
7428
|
if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
|
|
7429
|
-
contents.SigningJobArn =
|
|
7429
|
+
contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
|
|
7430
7430
|
}
|
|
7431
7431
|
if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
|
|
7432
|
-
contents.SigningProfileVersionArn =
|
|
7432
|
+
contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
|
|
7433
7433
|
}
|
|
7434
7434
|
if (data.State !== undefined && data.State !== null) {
|
|
7435
|
-
contents.State =
|
|
7435
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
7436
7436
|
}
|
|
7437
7437
|
if (data.StateReason !== undefined && data.StateReason !== null) {
|
|
7438
|
-
contents.StateReason =
|
|
7438
|
+
contents.StateReason = smithy_client_1.expectString(data.StateReason);
|
|
7439
7439
|
}
|
|
7440
7440
|
if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
|
|
7441
|
-
contents.StateReasonCode =
|
|
7441
|
+
contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
|
|
7442
7442
|
}
|
|
7443
7443
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
7444
|
-
contents.Timeout =
|
|
7444
|
+
contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
|
|
7445
7445
|
}
|
|
7446
7446
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
7447
7447
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
7448
7448
|
}
|
|
7449
7449
|
if (data.Version !== undefined && data.Version !== null) {
|
|
7450
|
-
contents.Version =
|
|
7450
|
+
contents.Version = smithy_client_1.expectString(data.Version);
|
|
7451
7451
|
}
|
|
7452
7452
|
if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
|
|
7453
7453
|
contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
|
|
@@ -7598,18 +7598,18 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
|
|
|
7598
7598
|
Version: undefined,
|
|
7599
7599
|
VpcConfig: undefined,
|
|
7600
7600
|
};
|
|
7601
|
-
const data =
|
|
7601
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7602
7602
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
7603
|
-
contents.CodeSha256 =
|
|
7603
|
+
contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
|
|
7604
7604
|
}
|
|
7605
7605
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
7606
|
-
contents.CodeSize =
|
|
7606
|
+
contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
|
|
7607
7607
|
}
|
|
7608
7608
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
7609
7609
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
7610
7610
|
}
|
|
7611
7611
|
if (data.Description !== undefined && data.Description !== null) {
|
|
7612
|
-
contents.Description =
|
|
7612
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
7613
7613
|
}
|
|
7614
7614
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
7615
7615
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
@@ -7618,76 +7618,76 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
|
|
|
7618
7618
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
7619
7619
|
}
|
|
7620
7620
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
7621
|
-
contents.FunctionArn =
|
|
7621
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
7622
7622
|
}
|
|
7623
7623
|
if (data.FunctionName !== undefined && data.FunctionName !== null) {
|
|
7624
|
-
contents.FunctionName =
|
|
7624
|
+
contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
|
|
7625
7625
|
}
|
|
7626
7626
|
if (data.Handler !== undefined && data.Handler !== null) {
|
|
7627
|
-
contents.Handler =
|
|
7627
|
+
contents.Handler = smithy_client_1.expectString(data.Handler);
|
|
7628
7628
|
}
|
|
7629
7629
|
if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
|
|
7630
7630
|
contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
|
|
7631
7631
|
}
|
|
7632
7632
|
if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
|
|
7633
|
-
contents.KMSKeyArn =
|
|
7633
|
+
contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
|
|
7634
7634
|
}
|
|
7635
7635
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
7636
|
-
contents.LastModified =
|
|
7636
|
+
contents.LastModified = smithy_client_1.expectString(data.LastModified);
|
|
7637
7637
|
}
|
|
7638
7638
|
if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
|
|
7639
|
-
contents.LastUpdateStatus =
|
|
7639
|
+
contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
|
|
7640
7640
|
}
|
|
7641
7641
|
if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
|
|
7642
|
-
contents.LastUpdateStatusReason =
|
|
7642
|
+
contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
|
|
7643
7643
|
}
|
|
7644
7644
|
if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
|
|
7645
|
-
contents.LastUpdateStatusReasonCode =
|
|
7645
|
+
contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
|
|
7646
7646
|
}
|
|
7647
7647
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
7648
7648
|
contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
|
|
7649
7649
|
}
|
|
7650
7650
|
if (data.MasterArn !== undefined && data.MasterArn !== null) {
|
|
7651
|
-
contents.MasterArn =
|
|
7651
|
+
contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
|
|
7652
7652
|
}
|
|
7653
7653
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
7654
|
-
contents.MemorySize =
|
|
7654
|
+
contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
|
|
7655
7655
|
}
|
|
7656
7656
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
7657
|
-
contents.PackageType =
|
|
7657
|
+
contents.PackageType = smithy_client_1.expectString(data.PackageType);
|
|
7658
7658
|
}
|
|
7659
7659
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
7660
|
-
contents.RevisionId =
|
|
7660
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
7661
7661
|
}
|
|
7662
7662
|
if (data.Role !== undefined && data.Role !== null) {
|
|
7663
|
-
contents.Role =
|
|
7663
|
+
contents.Role = smithy_client_1.expectString(data.Role);
|
|
7664
7664
|
}
|
|
7665
7665
|
if (data.Runtime !== undefined && data.Runtime !== null) {
|
|
7666
|
-
contents.Runtime =
|
|
7666
|
+
contents.Runtime = smithy_client_1.expectString(data.Runtime);
|
|
7667
7667
|
}
|
|
7668
7668
|
if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
|
|
7669
|
-
contents.SigningJobArn =
|
|
7669
|
+
contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
|
|
7670
7670
|
}
|
|
7671
7671
|
if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
|
|
7672
|
-
contents.SigningProfileVersionArn =
|
|
7672
|
+
contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
|
|
7673
7673
|
}
|
|
7674
7674
|
if (data.State !== undefined && data.State !== null) {
|
|
7675
|
-
contents.State =
|
|
7675
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
7676
7676
|
}
|
|
7677
7677
|
if (data.StateReason !== undefined && data.StateReason !== null) {
|
|
7678
|
-
contents.StateReason =
|
|
7678
|
+
contents.StateReason = smithy_client_1.expectString(data.StateReason);
|
|
7679
7679
|
}
|
|
7680
7680
|
if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
|
|
7681
|
-
contents.StateReasonCode =
|
|
7681
|
+
contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
|
|
7682
7682
|
}
|
|
7683
7683
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
7684
|
-
contents.Timeout =
|
|
7684
|
+
contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
|
|
7685
7685
|
}
|
|
7686
7686
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
7687
7687
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
7688
7688
|
}
|
|
7689
7689
|
if (data.Version !== undefined && data.Version !== null) {
|
|
7690
|
-
contents.Version =
|
|
7690
|
+
contents.Version = smithy_client_1.expectString(data.Version);
|
|
7691
7691
|
}
|
|
7692
7692
|
if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
|
|
7693
7693
|
contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
|
|
@@ -7804,21 +7804,21 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (ou
|
|
|
7804
7804
|
MaximumEventAgeInSeconds: undefined,
|
|
7805
7805
|
MaximumRetryAttempts: undefined,
|
|
7806
7806
|
};
|
|
7807
|
-
const data =
|
|
7807
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7808
7808
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
7809
7809
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
7810
7810
|
}
|
|
7811
7811
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
7812
|
-
contents.FunctionArn =
|
|
7812
|
+
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
7813
7813
|
}
|
|
7814
7814
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
7815
|
-
contents.LastModified =
|
|
7815
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
|
|
7816
7816
|
}
|
|
7817
7817
|
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
7818
|
-
contents.MaximumEventAgeInSeconds =
|
|
7818
|
+
contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
|
|
7819
7819
|
}
|
|
7820
7820
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
7821
|
-
contents.MaximumRetryAttempts =
|
|
7821
|
+
contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
|
|
7822
7822
|
}
|
|
7823
7823
|
return Promise.resolve(contents);
|
|
7824
7824
|
};
|
|
@@ -7898,10 +7898,10 @@ const deserializeAws_restJson1CodeSigningConfigNotFoundExceptionResponse = async
|
|
|
7898
7898
|
};
|
|
7899
7899
|
const data = parsedOutput.body;
|
|
7900
7900
|
if (data.Message !== undefined && data.Message !== null) {
|
|
7901
|
-
contents.Message =
|
|
7901
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
7902
7902
|
}
|
|
7903
7903
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7904
|
-
contents.Type =
|
|
7904
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7905
7905
|
}
|
|
7906
7906
|
return contents;
|
|
7907
7907
|
};
|
|
@@ -7915,10 +7915,10 @@ const deserializeAws_restJson1CodeStorageExceededExceptionResponse = async (pars
|
|
|
7915
7915
|
};
|
|
7916
7916
|
const data = parsedOutput.body;
|
|
7917
7917
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7918
|
-
contents.Type =
|
|
7918
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7919
7919
|
}
|
|
7920
7920
|
if (data.message !== undefined && data.message !== null) {
|
|
7921
|
-
contents.message =
|
|
7921
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7922
7922
|
}
|
|
7923
7923
|
return contents;
|
|
7924
7924
|
};
|
|
@@ -7932,10 +7932,10 @@ const deserializeAws_restJson1CodeVerificationFailedExceptionResponse = async (p
|
|
|
7932
7932
|
};
|
|
7933
7933
|
const data = parsedOutput.body;
|
|
7934
7934
|
if (data.Message !== undefined && data.Message !== null) {
|
|
7935
|
-
contents.Message =
|
|
7935
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
7936
7936
|
}
|
|
7937
7937
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7938
|
-
contents.Type =
|
|
7938
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7939
7939
|
}
|
|
7940
7940
|
return contents;
|
|
7941
7941
|
};
|
|
@@ -7949,10 +7949,10 @@ const deserializeAws_restJson1EC2AccessDeniedExceptionResponse = async (parsedOu
|
|
|
7949
7949
|
};
|
|
7950
7950
|
const data = parsedOutput.body;
|
|
7951
7951
|
if (data.Message !== undefined && data.Message !== null) {
|
|
7952
|
-
contents.Message =
|
|
7952
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
7953
7953
|
}
|
|
7954
7954
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7955
|
-
contents.Type =
|
|
7955
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7956
7956
|
}
|
|
7957
7957
|
return contents;
|
|
7958
7958
|
};
|
|
@@ -7966,10 +7966,10 @@ const deserializeAws_restJson1EC2ThrottledExceptionResponse = async (parsedOutpu
|
|
|
7966
7966
|
};
|
|
7967
7967
|
const data = parsedOutput.body;
|
|
7968
7968
|
if (data.Message !== undefined && data.Message !== null) {
|
|
7969
|
-
contents.Message =
|
|
7969
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
7970
7970
|
}
|
|
7971
7971
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7972
|
-
contents.Type =
|
|
7972
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7973
7973
|
}
|
|
7974
7974
|
return contents;
|
|
7975
7975
|
};
|
|
@@ -7984,13 +7984,13 @@ const deserializeAws_restJson1EC2UnexpectedExceptionResponse = async (parsedOutp
|
|
|
7984
7984
|
};
|
|
7985
7985
|
const data = parsedOutput.body;
|
|
7986
7986
|
if (data.EC2ErrorCode !== undefined && data.EC2ErrorCode !== null) {
|
|
7987
|
-
contents.EC2ErrorCode =
|
|
7987
|
+
contents.EC2ErrorCode = smithy_client_1.expectString(data.EC2ErrorCode);
|
|
7988
7988
|
}
|
|
7989
7989
|
if (data.Message !== undefined && data.Message !== null) {
|
|
7990
|
-
contents.Message =
|
|
7990
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
7991
7991
|
}
|
|
7992
7992
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7993
|
-
contents.Type =
|
|
7993
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7994
7994
|
}
|
|
7995
7995
|
return contents;
|
|
7996
7996
|
};
|
|
@@ -8004,10 +8004,10 @@ const deserializeAws_restJson1EFSIOExceptionResponse = async (parsedOutput, cont
|
|
|
8004
8004
|
};
|
|
8005
8005
|
const data = parsedOutput.body;
|
|
8006
8006
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8007
|
-
contents.Message =
|
|
8007
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8008
8008
|
}
|
|
8009
8009
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8010
|
-
contents.Type =
|
|
8010
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8011
8011
|
}
|
|
8012
8012
|
return contents;
|
|
8013
8013
|
};
|
|
@@ -8021,10 +8021,10 @@ const deserializeAws_restJson1EFSMountConnectivityExceptionResponse = async (par
|
|
|
8021
8021
|
};
|
|
8022
8022
|
const data = parsedOutput.body;
|
|
8023
8023
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8024
|
-
contents.Message =
|
|
8024
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8025
8025
|
}
|
|
8026
8026
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8027
|
-
contents.Type =
|
|
8027
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8028
8028
|
}
|
|
8029
8029
|
return contents;
|
|
8030
8030
|
};
|
|
@@ -8038,10 +8038,10 @@ const deserializeAws_restJson1EFSMountFailureExceptionResponse = async (parsedOu
|
|
|
8038
8038
|
};
|
|
8039
8039
|
const data = parsedOutput.body;
|
|
8040
8040
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8041
|
-
contents.Message =
|
|
8041
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8042
8042
|
}
|
|
8043
8043
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8044
|
-
contents.Type =
|
|
8044
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8045
8045
|
}
|
|
8046
8046
|
return contents;
|
|
8047
8047
|
};
|
|
@@ -8055,10 +8055,10 @@ const deserializeAws_restJson1EFSMountTimeoutExceptionResponse = async (parsedOu
|
|
|
8055
8055
|
};
|
|
8056
8056
|
const data = parsedOutput.body;
|
|
8057
8057
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8058
|
-
contents.Message =
|
|
8058
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8059
8059
|
}
|
|
8060
8060
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8061
|
-
contents.Type =
|
|
8061
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8062
8062
|
}
|
|
8063
8063
|
return contents;
|
|
8064
8064
|
};
|
|
@@ -8072,10 +8072,10 @@ const deserializeAws_restJson1ENILimitReachedExceptionResponse = async (parsedOu
|
|
|
8072
8072
|
};
|
|
8073
8073
|
const data = parsedOutput.body;
|
|
8074
8074
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8075
|
-
contents.Message =
|
|
8075
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8076
8076
|
}
|
|
8077
8077
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8078
|
-
contents.Type =
|
|
8078
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8079
8079
|
}
|
|
8080
8080
|
return contents;
|
|
8081
8081
|
};
|
|
@@ -8089,10 +8089,10 @@ const deserializeAws_restJson1InvalidCodeSignatureExceptionResponse = async (par
|
|
|
8089
8089
|
};
|
|
8090
8090
|
const data = parsedOutput.body;
|
|
8091
8091
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8092
|
-
contents.Message =
|
|
8092
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8093
8093
|
}
|
|
8094
8094
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8095
|
-
contents.Type =
|
|
8095
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8096
8096
|
}
|
|
8097
8097
|
return contents;
|
|
8098
8098
|
};
|
|
@@ -8106,10 +8106,10 @@ const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (pa
|
|
|
8106
8106
|
};
|
|
8107
8107
|
const data = parsedOutput.body;
|
|
8108
8108
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8109
|
-
contents.Type =
|
|
8109
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8110
8110
|
}
|
|
8111
8111
|
if (data.message !== undefined && data.message !== null) {
|
|
8112
|
-
contents.message =
|
|
8112
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8113
8113
|
}
|
|
8114
8114
|
return contents;
|
|
8115
8115
|
};
|
|
@@ -8123,10 +8123,10 @@ const deserializeAws_restJson1InvalidRequestContentExceptionResponse = async (pa
|
|
|
8123
8123
|
};
|
|
8124
8124
|
const data = parsedOutput.body;
|
|
8125
8125
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8126
|
-
contents.Type =
|
|
8126
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8127
8127
|
}
|
|
8128
8128
|
if (data.message !== undefined && data.message !== null) {
|
|
8129
|
-
contents.message =
|
|
8129
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8130
8130
|
}
|
|
8131
8131
|
return contents;
|
|
8132
8132
|
};
|
|
@@ -8140,10 +8140,10 @@ const deserializeAws_restJson1InvalidRuntimeExceptionResponse = async (parsedOut
|
|
|
8140
8140
|
};
|
|
8141
8141
|
const data = parsedOutput.body;
|
|
8142
8142
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8143
|
-
contents.Message =
|
|
8143
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8144
8144
|
}
|
|
8145
8145
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8146
|
-
contents.Type =
|
|
8146
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8147
8147
|
}
|
|
8148
8148
|
return contents;
|
|
8149
8149
|
};
|
|
@@ -8157,10 +8157,10 @@ const deserializeAws_restJson1InvalidSecurityGroupIDExceptionResponse = async (p
|
|
|
8157
8157
|
};
|
|
8158
8158
|
const data = parsedOutput.body;
|
|
8159
8159
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8160
|
-
contents.Message =
|
|
8160
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8161
8161
|
}
|
|
8162
8162
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8163
|
-
contents.Type =
|
|
8163
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8164
8164
|
}
|
|
8165
8165
|
return contents;
|
|
8166
8166
|
};
|
|
@@ -8174,10 +8174,10 @@ const deserializeAws_restJson1InvalidSubnetIDExceptionResponse = async (parsedOu
|
|
|
8174
8174
|
};
|
|
8175
8175
|
const data = parsedOutput.body;
|
|
8176
8176
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8177
|
-
contents.Message =
|
|
8177
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8178
8178
|
}
|
|
8179
8179
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8180
|
-
contents.Type =
|
|
8180
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8181
8181
|
}
|
|
8182
8182
|
return contents;
|
|
8183
8183
|
};
|
|
@@ -8191,10 +8191,10 @@ const deserializeAws_restJson1InvalidZipFileExceptionResponse = async (parsedOut
|
|
|
8191
8191
|
};
|
|
8192
8192
|
const data = parsedOutput.body;
|
|
8193
8193
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8194
|
-
contents.Message =
|
|
8194
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8195
8195
|
}
|
|
8196
8196
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8197
|
-
contents.Type =
|
|
8197
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8198
8198
|
}
|
|
8199
8199
|
return contents;
|
|
8200
8200
|
};
|
|
@@ -8208,10 +8208,10 @@ const deserializeAws_restJson1KMSAccessDeniedExceptionResponse = async (parsedOu
|
|
|
8208
8208
|
};
|
|
8209
8209
|
const data = parsedOutput.body;
|
|
8210
8210
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8211
|
-
contents.Message =
|
|
8211
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8212
8212
|
}
|
|
8213
8213
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8214
|
-
contents.Type =
|
|
8214
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8215
8215
|
}
|
|
8216
8216
|
return contents;
|
|
8217
8217
|
};
|
|
@@ -8225,10 +8225,10 @@ const deserializeAws_restJson1KMSDisabledExceptionResponse = async (parsedOutput
|
|
|
8225
8225
|
};
|
|
8226
8226
|
const data = parsedOutput.body;
|
|
8227
8227
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8228
|
-
contents.Message =
|
|
8228
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8229
8229
|
}
|
|
8230
8230
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8231
|
-
contents.Type =
|
|
8231
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8232
8232
|
}
|
|
8233
8233
|
return contents;
|
|
8234
8234
|
};
|
|
@@ -8242,10 +8242,10 @@ const deserializeAws_restJson1KMSInvalidStateExceptionResponse = async (parsedOu
|
|
|
8242
8242
|
};
|
|
8243
8243
|
const data = parsedOutput.body;
|
|
8244
8244
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8245
|
-
contents.Message =
|
|
8245
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8246
8246
|
}
|
|
8247
8247
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8248
|
-
contents.Type =
|
|
8248
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8249
8249
|
}
|
|
8250
8250
|
return contents;
|
|
8251
8251
|
};
|
|
@@ -8259,10 +8259,10 @@ const deserializeAws_restJson1KMSNotFoundExceptionResponse = async (parsedOutput
|
|
|
8259
8259
|
};
|
|
8260
8260
|
const data = parsedOutput.body;
|
|
8261
8261
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8262
|
-
contents.Message =
|
|
8262
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8263
8263
|
}
|
|
8264
8264
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8265
|
-
contents.Type =
|
|
8265
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8266
8266
|
}
|
|
8267
8267
|
return contents;
|
|
8268
8268
|
};
|
|
@@ -8276,10 +8276,10 @@ const deserializeAws_restJson1PolicyLengthExceededExceptionResponse = async (par
|
|
|
8276
8276
|
};
|
|
8277
8277
|
const data = parsedOutput.body;
|
|
8278
8278
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8279
|
-
contents.Type =
|
|
8279
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8280
8280
|
}
|
|
8281
8281
|
if (data.message !== undefined && data.message !== null) {
|
|
8282
|
-
contents.message =
|
|
8282
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8283
8283
|
}
|
|
8284
8284
|
return contents;
|
|
8285
8285
|
};
|
|
@@ -8293,10 +8293,10 @@ const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parse
|
|
|
8293
8293
|
};
|
|
8294
8294
|
const data = parsedOutput.body;
|
|
8295
8295
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8296
|
-
contents.Type =
|
|
8296
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8297
8297
|
}
|
|
8298
8298
|
if (data.message !== undefined && data.message !== null) {
|
|
8299
|
-
contents.message =
|
|
8299
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8300
8300
|
}
|
|
8301
8301
|
return contents;
|
|
8302
8302
|
};
|
|
@@ -8310,10 +8310,10 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigNotFoundExceptionRespo
|
|
|
8310
8310
|
};
|
|
8311
8311
|
const data = parsedOutput.body;
|
|
8312
8312
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8313
|
-
contents.Type =
|
|
8313
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8314
8314
|
}
|
|
8315
8315
|
if (data.message !== undefined && data.message !== null) {
|
|
8316
|
-
contents.message =
|
|
8316
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8317
8317
|
}
|
|
8318
8318
|
return contents;
|
|
8319
8319
|
};
|
|
@@ -8327,10 +8327,10 @@ const deserializeAws_restJson1RequestTooLargeExceptionResponse = async (parsedOu
|
|
|
8327
8327
|
};
|
|
8328
8328
|
const data = parsedOutput.body;
|
|
8329
8329
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8330
|
-
contents.Type =
|
|
8330
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8331
8331
|
}
|
|
8332
8332
|
if (data.message !== undefined && data.message !== null) {
|
|
8333
|
-
contents.message =
|
|
8333
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8334
8334
|
}
|
|
8335
8335
|
return contents;
|
|
8336
8336
|
};
|
|
@@ -8344,10 +8344,10 @@ const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedO
|
|
|
8344
8344
|
};
|
|
8345
8345
|
const data = parsedOutput.body;
|
|
8346
8346
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8347
|
-
contents.Type =
|
|
8347
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8348
8348
|
}
|
|
8349
8349
|
if (data.message !== undefined && data.message !== null) {
|
|
8350
|
-
contents.message =
|
|
8350
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8351
8351
|
}
|
|
8352
8352
|
return contents;
|
|
8353
8353
|
};
|
|
@@ -8361,10 +8361,10 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
8361
8361
|
};
|
|
8362
8362
|
const data = parsedOutput.body;
|
|
8363
8363
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8364
|
-
contents.Message =
|
|
8364
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8365
8365
|
}
|
|
8366
8366
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8367
|
-
contents.Type =
|
|
8367
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8368
8368
|
}
|
|
8369
8369
|
return contents;
|
|
8370
8370
|
};
|
|
@@ -8378,10 +8378,10 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
8378
8378
|
};
|
|
8379
8379
|
const data = parsedOutput.body;
|
|
8380
8380
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8381
|
-
contents.Message =
|
|
8381
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8382
8382
|
}
|
|
8383
8383
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8384
|
-
contents.Type =
|
|
8384
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8385
8385
|
}
|
|
8386
8386
|
return contents;
|
|
8387
8387
|
};
|
|
@@ -8395,10 +8395,10 @@ const deserializeAws_restJson1ResourceNotReadyExceptionResponse = async (parsedO
|
|
|
8395
8395
|
};
|
|
8396
8396
|
const data = parsedOutput.body;
|
|
8397
8397
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8398
|
-
contents.Type =
|
|
8398
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8399
8399
|
}
|
|
8400
8400
|
if (data.message !== undefined && data.message !== null) {
|
|
8401
|
-
contents.message =
|
|
8401
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8402
8402
|
}
|
|
8403
8403
|
return contents;
|
|
8404
8404
|
};
|
|
@@ -8412,10 +8412,10 @@ const deserializeAws_restJson1ServiceExceptionResponse = async (parsedOutput, co
|
|
|
8412
8412
|
};
|
|
8413
8413
|
const data = parsedOutput.body;
|
|
8414
8414
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8415
|
-
contents.Message =
|
|
8415
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8416
8416
|
}
|
|
8417
8417
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8418
|
-
contents.Type =
|
|
8418
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8419
8419
|
}
|
|
8420
8420
|
return contents;
|
|
8421
8421
|
};
|
|
@@ -8429,10 +8429,10 @@ const deserializeAws_restJson1SubnetIPAddressLimitReachedExceptionResponse = asy
|
|
|
8429
8429
|
};
|
|
8430
8430
|
const data = parsedOutput.body;
|
|
8431
8431
|
if (data.Message !== undefined && data.Message !== null) {
|
|
8432
|
-
contents.Message =
|
|
8432
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
8433
8433
|
}
|
|
8434
8434
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8435
|
-
contents.Type =
|
|
8435
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8436
8436
|
}
|
|
8437
8437
|
return contents;
|
|
8438
8438
|
};
|
|
@@ -8451,13 +8451,13 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
8451
8451
|
}
|
|
8452
8452
|
const data = parsedOutput.body;
|
|
8453
8453
|
if (data.Reason !== undefined && data.Reason !== null) {
|
|
8454
|
-
contents.Reason =
|
|
8454
|
+
contents.Reason = smithy_client_1.expectString(data.Reason);
|
|
8455
8455
|
}
|
|
8456
8456
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8457
|
-
contents.Type =
|
|
8457
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8458
8458
|
}
|
|
8459
8459
|
if (data.message !== undefined && data.message !== null) {
|
|
8460
|
-
contents.message =
|
|
8460
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8461
8461
|
}
|
|
8462
8462
|
return contents;
|
|
8463
8463
|
};
|
|
@@ -8471,10 +8471,10 @@ const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async (par
|
|
|
8471
8471
|
};
|
|
8472
8472
|
const data = parsedOutput.body;
|
|
8473
8473
|
if (data.Type !== undefined && data.Type !== null) {
|
|
8474
|
-
contents.Type =
|
|
8474
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
8475
8475
|
}
|
|
8476
8476
|
if (data.message !== undefined && data.message !== null) {
|
|
8477
|
-
contents.message =
|
|
8477
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8478
8478
|
}
|
|
8479
8479
|
return contents;
|
|
8480
8480
|
};
|
|
@@ -8485,7 +8485,7 @@ const serializeAws_restJson1AdditionalVersionWeights = (input, context) => {
|
|
|
8485
8485
|
}
|
|
8486
8486
|
return {
|
|
8487
8487
|
...acc,
|
|
8488
|
-
[key]:
|
|
8488
|
+
[key]: smithy_client_1.serializeFloat(value),
|
|
8489
8489
|
};
|
|
8490
8490
|
}, {});
|
|
8491
8491
|
};
|
|
@@ -8760,17 +8760,17 @@ const serializeAws_restJson1VpcConfig = (input, context) => {
|
|
|
8760
8760
|
};
|
|
8761
8761
|
const deserializeAws_restJson1AccountLimit = (output, context) => {
|
|
8762
8762
|
return {
|
|
8763
|
-
CodeSizeUnzipped:
|
|
8764
|
-
CodeSizeZipped:
|
|
8765
|
-
ConcurrentExecutions:
|
|
8766
|
-
TotalCodeSize:
|
|
8767
|
-
UnreservedConcurrentExecutions:
|
|
8763
|
+
CodeSizeUnzipped: smithy_client_1.expectLong(output.CodeSizeUnzipped),
|
|
8764
|
+
CodeSizeZipped: smithy_client_1.expectLong(output.CodeSizeZipped),
|
|
8765
|
+
ConcurrentExecutions: smithy_client_1.expectInt32(output.ConcurrentExecutions),
|
|
8766
|
+
TotalCodeSize: smithy_client_1.expectLong(output.TotalCodeSize),
|
|
8767
|
+
UnreservedConcurrentExecutions: smithy_client_1.expectInt32(output.UnreservedConcurrentExecutions),
|
|
8768
8768
|
};
|
|
8769
8769
|
};
|
|
8770
8770
|
const deserializeAws_restJson1AccountUsage = (output, context) => {
|
|
8771
8771
|
return {
|
|
8772
|
-
FunctionCount:
|
|
8773
|
-
TotalCodeSize:
|
|
8772
|
+
FunctionCount: smithy_client_1.expectLong(output.FunctionCount),
|
|
8773
|
+
TotalCodeSize: smithy_client_1.expectLong(output.TotalCodeSize),
|
|
8774
8774
|
};
|
|
8775
8775
|
};
|
|
8776
8776
|
const deserializeAws_restJson1AdditionalVersionWeights = (output, context) => {
|
|
@@ -8780,17 +8780,17 @@ const deserializeAws_restJson1AdditionalVersionWeights = (output, context) => {
|
|
|
8780
8780
|
}
|
|
8781
8781
|
return {
|
|
8782
8782
|
...acc,
|
|
8783
|
-
[key]:
|
|
8783
|
+
[key]: smithy_client_1.limitedParseDouble(value),
|
|
8784
8784
|
};
|
|
8785
8785
|
}, {});
|
|
8786
8786
|
};
|
|
8787
8787
|
const deserializeAws_restJson1AliasConfiguration = (output, context) => {
|
|
8788
8788
|
return {
|
|
8789
|
-
AliasArn:
|
|
8790
|
-
Description:
|
|
8791
|
-
FunctionVersion:
|
|
8792
|
-
Name:
|
|
8793
|
-
RevisionId:
|
|
8789
|
+
AliasArn: smithy_client_1.expectString(output.AliasArn),
|
|
8790
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
8791
|
+
FunctionVersion: smithy_client_1.expectString(output.FunctionVersion),
|
|
8792
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
8793
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
8794
8794
|
RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
|
|
8795
8795
|
? deserializeAws_restJson1AliasRoutingConfiguration(output.RoutingConfig, context)
|
|
8796
8796
|
: undefined,
|
|
@@ -8825,13 +8825,13 @@ const deserializeAws_restJson1CodeSigningConfig = (output, context) => {
|
|
|
8825
8825
|
AllowedPublishers: output.AllowedPublishers !== undefined && output.AllowedPublishers !== null
|
|
8826
8826
|
? deserializeAws_restJson1AllowedPublishers(output.AllowedPublishers, context)
|
|
8827
8827
|
: undefined,
|
|
8828
|
-
CodeSigningConfigArn:
|
|
8829
|
-
CodeSigningConfigId:
|
|
8828
|
+
CodeSigningConfigArn: smithy_client_1.expectString(output.CodeSigningConfigArn),
|
|
8829
|
+
CodeSigningConfigId: smithy_client_1.expectString(output.CodeSigningConfigId),
|
|
8830
8830
|
CodeSigningPolicies: output.CodeSigningPolicies !== undefined && output.CodeSigningPolicies !== null
|
|
8831
8831
|
? deserializeAws_restJson1CodeSigningPolicies(output.CodeSigningPolicies, context)
|
|
8832
8832
|
: undefined,
|
|
8833
|
-
Description:
|
|
8834
|
-
LastModified:
|
|
8833
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
8834
|
+
LastModified: smithy_client_1.expectString(output.LastModified),
|
|
8835
8835
|
};
|
|
8836
8836
|
};
|
|
8837
8837
|
const deserializeAws_restJson1CodeSigningConfigList = (output, context) => {
|
|
@@ -8846,7 +8846,7 @@ const deserializeAws_restJson1CodeSigningConfigList = (output, context) => {
|
|
|
8846
8846
|
};
|
|
8847
8847
|
const deserializeAws_restJson1CodeSigningPolicies = (output, context) => {
|
|
8848
8848
|
return {
|
|
8849
|
-
UntrustedArtifactOnDeployment:
|
|
8849
|
+
UntrustedArtifactOnDeployment: smithy_client_1.expectString(output.UntrustedArtifactOnDeployment),
|
|
8850
8850
|
};
|
|
8851
8851
|
};
|
|
8852
8852
|
const deserializeAws_restJson1CompatibleRuntimes = (output, context) => {
|
|
@@ -8856,17 +8856,17 @@ const deserializeAws_restJson1CompatibleRuntimes = (output, context) => {
|
|
|
8856
8856
|
if (entry === null) {
|
|
8857
8857
|
return null;
|
|
8858
8858
|
}
|
|
8859
|
-
return
|
|
8859
|
+
return smithy_client_1.expectString(entry);
|
|
8860
8860
|
});
|
|
8861
8861
|
};
|
|
8862
8862
|
const deserializeAws_restJson1Concurrency = (output, context) => {
|
|
8863
8863
|
return {
|
|
8864
|
-
ReservedConcurrentExecutions:
|
|
8864
|
+
ReservedConcurrentExecutions: smithy_client_1.expectInt32(output.ReservedConcurrentExecutions),
|
|
8865
8865
|
};
|
|
8866
8866
|
};
|
|
8867
8867
|
const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
|
|
8868
8868
|
return {
|
|
8869
|
-
TargetArn:
|
|
8869
|
+
TargetArn: smithy_client_1.expectString(output.TargetArn),
|
|
8870
8870
|
};
|
|
8871
8871
|
};
|
|
8872
8872
|
const deserializeAws_restJson1DestinationConfig = (output, context) => {
|
|
@@ -8886,7 +8886,7 @@ const deserializeAws_restJson1EndpointLists = (output, context) => {
|
|
|
8886
8886
|
if (entry === null) {
|
|
8887
8887
|
return null;
|
|
8888
8888
|
}
|
|
8889
|
-
return
|
|
8889
|
+
return smithy_client_1.expectString(entry);
|
|
8890
8890
|
});
|
|
8891
8891
|
};
|
|
8892
8892
|
const deserializeAws_restJson1Endpoints = (output, context) => {
|
|
@@ -8902,8 +8902,8 @@ const deserializeAws_restJson1Endpoints = (output, context) => {
|
|
|
8902
8902
|
};
|
|
8903
8903
|
const deserializeAws_restJson1EnvironmentError = (output, context) => {
|
|
8904
8904
|
return {
|
|
8905
|
-
ErrorCode:
|
|
8906
|
-
Message:
|
|
8905
|
+
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
8906
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
8907
8907
|
};
|
|
8908
8908
|
};
|
|
8909
8909
|
const deserializeAws_restJson1EnvironmentResponse = (output, context) => {
|
|
@@ -8923,30 +8923,30 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
|
8923
8923
|
}
|
|
8924
8924
|
return {
|
|
8925
8925
|
...acc,
|
|
8926
|
-
[key]:
|
|
8926
|
+
[key]: smithy_client_1.expectString(value),
|
|
8927
8927
|
};
|
|
8928
8928
|
}, {});
|
|
8929
8929
|
};
|
|
8930
8930
|
const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context) => {
|
|
8931
8931
|
return {
|
|
8932
|
-
BatchSize:
|
|
8933
|
-
BisectBatchOnFunctionError:
|
|
8932
|
+
BatchSize: smithy_client_1.expectInt32(output.BatchSize),
|
|
8933
|
+
BisectBatchOnFunctionError: smithy_client_1.expectBoolean(output.BisectBatchOnFunctionError),
|
|
8934
8934
|
DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
8935
8935
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
8936
8936
|
: undefined,
|
|
8937
|
-
EventSourceArn:
|
|
8938
|
-
FunctionArn:
|
|
8937
|
+
EventSourceArn: smithy_client_1.expectString(output.EventSourceArn),
|
|
8938
|
+
FunctionArn: smithy_client_1.expectString(output.FunctionArn),
|
|
8939
8939
|
FunctionResponseTypes: output.FunctionResponseTypes !== undefined && output.FunctionResponseTypes !== null
|
|
8940
8940
|
? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
|
|
8941
8941
|
: undefined,
|
|
8942
8942
|
LastModified: output.LastModified !== undefined && output.LastModified !== null
|
|
8943
|
-
?
|
|
8943
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
|
|
8944
8944
|
: undefined,
|
|
8945
|
-
LastProcessingResult:
|
|
8946
|
-
MaximumBatchingWindowInSeconds:
|
|
8947
|
-
MaximumRecordAgeInSeconds:
|
|
8948
|
-
MaximumRetryAttempts:
|
|
8949
|
-
ParallelizationFactor:
|
|
8945
|
+
LastProcessingResult: smithy_client_1.expectString(output.LastProcessingResult),
|
|
8946
|
+
MaximumBatchingWindowInSeconds: smithy_client_1.expectInt32(output.MaximumBatchingWindowInSeconds),
|
|
8947
|
+
MaximumRecordAgeInSeconds: smithy_client_1.expectInt32(output.MaximumRecordAgeInSeconds),
|
|
8948
|
+
MaximumRetryAttempts: smithy_client_1.expectInt32(output.MaximumRetryAttempts),
|
|
8949
|
+
ParallelizationFactor: smithy_client_1.expectInt32(output.ParallelizationFactor),
|
|
8950
8950
|
Queues: output.Queues !== undefined && output.Queues !== null
|
|
8951
8951
|
? deserializeAws_restJson1Queues(output.Queues, context)
|
|
8952
8952
|
: undefined,
|
|
@@ -8956,17 +8956,17 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
8956
8956
|
SourceAccessConfigurations: output.SourceAccessConfigurations !== undefined && output.SourceAccessConfigurations !== null
|
|
8957
8957
|
? deserializeAws_restJson1SourceAccessConfigurations(output.SourceAccessConfigurations, context)
|
|
8958
8958
|
: undefined,
|
|
8959
|
-
StartingPosition:
|
|
8959
|
+
StartingPosition: smithy_client_1.expectString(output.StartingPosition),
|
|
8960
8960
|
StartingPositionTimestamp: output.StartingPositionTimestamp !== undefined && output.StartingPositionTimestamp !== null
|
|
8961
|
-
?
|
|
8961
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartingPositionTimestamp)))
|
|
8962
8962
|
: undefined,
|
|
8963
|
-
State:
|
|
8964
|
-
StateTransitionReason:
|
|
8963
|
+
State: smithy_client_1.expectString(output.State),
|
|
8964
|
+
StateTransitionReason: smithy_client_1.expectString(output.StateTransitionReason),
|
|
8965
8965
|
Topics: output.Topics !== undefined && output.Topics !== null
|
|
8966
8966
|
? deserializeAws_restJson1Topics(output.Topics, context)
|
|
8967
8967
|
: undefined,
|
|
8968
|
-
TumblingWindowInSeconds:
|
|
8969
|
-
UUID:
|
|
8968
|
+
TumblingWindowInSeconds: smithy_client_1.expectInt32(output.TumblingWindowInSeconds),
|
|
8969
|
+
UUID: smithy_client_1.expectString(output.UUID),
|
|
8970
8970
|
};
|
|
8971
8971
|
};
|
|
8972
8972
|
const deserializeAws_restJson1EventSourceMappingsList = (output, context) => {
|
|
@@ -8981,8 +8981,8 @@ const deserializeAws_restJson1EventSourceMappingsList = (output, context) => {
|
|
|
8981
8981
|
};
|
|
8982
8982
|
const deserializeAws_restJson1FileSystemConfig = (output, context) => {
|
|
8983
8983
|
return {
|
|
8984
|
-
Arn:
|
|
8985
|
-
LocalMountPath:
|
|
8984
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
8985
|
+
LocalMountPath: smithy_client_1.expectString(output.LocalMountPath),
|
|
8986
8986
|
};
|
|
8987
8987
|
};
|
|
8988
8988
|
const deserializeAws_restJson1FileSystemConfigList = (output, context) => {
|
|
@@ -9002,61 +9002,61 @@ const deserializeAws_restJson1FunctionArnList = (output, context) => {
|
|
|
9002
9002
|
if (entry === null) {
|
|
9003
9003
|
return null;
|
|
9004
9004
|
}
|
|
9005
|
-
return
|
|
9005
|
+
return smithy_client_1.expectString(entry);
|
|
9006
9006
|
});
|
|
9007
9007
|
};
|
|
9008
9008
|
const deserializeAws_restJson1FunctionCodeLocation = (output, context) => {
|
|
9009
9009
|
return {
|
|
9010
|
-
ImageUri:
|
|
9011
|
-
Location:
|
|
9012
|
-
RepositoryType:
|
|
9013
|
-
ResolvedImageUri:
|
|
9010
|
+
ImageUri: smithy_client_1.expectString(output.ImageUri),
|
|
9011
|
+
Location: smithy_client_1.expectString(output.Location),
|
|
9012
|
+
RepositoryType: smithy_client_1.expectString(output.RepositoryType),
|
|
9013
|
+
ResolvedImageUri: smithy_client_1.expectString(output.ResolvedImageUri),
|
|
9014
9014
|
};
|
|
9015
9015
|
};
|
|
9016
9016
|
const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
9017
9017
|
return {
|
|
9018
|
-
CodeSha256:
|
|
9019
|
-
CodeSize:
|
|
9018
|
+
CodeSha256: smithy_client_1.expectString(output.CodeSha256),
|
|
9019
|
+
CodeSize: smithy_client_1.expectLong(output.CodeSize),
|
|
9020
9020
|
DeadLetterConfig: output.DeadLetterConfig !== undefined && output.DeadLetterConfig !== null
|
|
9021
9021
|
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
9022
9022
|
: undefined,
|
|
9023
|
-
Description:
|
|
9023
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
9024
9024
|
Environment: output.Environment !== undefined && output.Environment !== null
|
|
9025
9025
|
? deserializeAws_restJson1EnvironmentResponse(output.Environment, context)
|
|
9026
9026
|
: undefined,
|
|
9027
9027
|
FileSystemConfigs: output.FileSystemConfigs !== undefined && output.FileSystemConfigs !== null
|
|
9028
9028
|
? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
|
|
9029
9029
|
: undefined,
|
|
9030
|
-
FunctionArn:
|
|
9031
|
-
FunctionName:
|
|
9032
|
-
Handler:
|
|
9030
|
+
FunctionArn: smithy_client_1.expectString(output.FunctionArn),
|
|
9031
|
+
FunctionName: smithy_client_1.expectString(output.FunctionName),
|
|
9032
|
+
Handler: smithy_client_1.expectString(output.Handler),
|
|
9033
9033
|
ImageConfigResponse: output.ImageConfigResponse !== undefined && output.ImageConfigResponse !== null
|
|
9034
9034
|
? deserializeAws_restJson1ImageConfigResponse(output.ImageConfigResponse, context)
|
|
9035
9035
|
: undefined,
|
|
9036
|
-
KMSKeyArn:
|
|
9037
|
-
LastModified:
|
|
9038
|
-
LastUpdateStatus:
|
|
9039
|
-
LastUpdateStatusReason:
|
|
9040
|
-
LastUpdateStatusReasonCode:
|
|
9036
|
+
KMSKeyArn: smithy_client_1.expectString(output.KMSKeyArn),
|
|
9037
|
+
LastModified: smithy_client_1.expectString(output.LastModified),
|
|
9038
|
+
LastUpdateStatus: smithy_client_1.expectString(output.LastUpdateStatus),
|
|
9039
|
+
LastUpdateStatusReason: smithy_client_1.expectString(output.LastUpdateStatusReason),
|
|
9040
|
+
LastUpdateStatusReasonCode: smithy_client_1.expectString(output.LastUpdateStatusReasonCode),
|
|
9041
9041
|
Layers: output.Layers !== undefined && output.Layers !== null
|
|
9042
9042
|
? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
|
|
9043
9043
|
: undefined,
|
|
9044
|
-
MasterArn:
|
|
9045
|
-
MemorySize:
|
|
9046
|
-
PackageType:
|
|
9047
|
-
RevisionId:
|
|
9048
|
-
Role:
|
|
9049
|
-
Runtime:
|
|
9050
|
-
SigningJobArn:
|
|
9051
|
-
SigningProfileVersionArn:
|
|
9052
|
-
State:
|
|
9053
|
-
StateReason:
|
|
9054
|
-
StateReasonCode:
|
|
9055
|
-
Timeout:
|
|
9044
|
+
MasterArn: smithy_client_1.expectString(output.MasterArn),
|
|
9045
|
+
MemorySize: smithy_client_1.expectInt32(output.MemorySize),
|
|
9046
|
+
PackageType: smithy_client_1.expectString(output.PackageType),
|
|
9047
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
9048
|
+
Role: smithy_client_1.expectString(output.Role),
|
|
9049
|
+
Runtime: smithy_client_1.expectString(output.Runtime),
|
|
9050
|
+
SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
|
|
9051
|
+
SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
|
|
9052
|
+
State: smithy_client_1.expectString(output.State),
|
|
9053
|
+
StateReason: smithy_client_1.expectString(output.StateReason),
|
|
9054
|
+
StateReasonCode: smithy_client_1.expectString(output.StateReasonCode),
|
|
9055
|
+
Timeout: smithy_client_1.expectInt32(output.Timeout),
|
|
9056
9056
|
TracingConfig: output.TracingConfig !== undefined && output.TracingConfig !== null
|
|
9057
9057
|
? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
|
|
9058
9058
|
: undefined,
|
|
9059
|
-
Version:
|
|
9059
|
+
Version: smithy_client_1.expectString(output.Version),
|
|
9060
9060
|
VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
|
|
9061
9061
|
? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context)
|
|
9062
9062
|
: undefined,
|
|
@@ -9067,12 +9067,12 @@ const deserializeAws_restJson1FunctionEventInvokeConfig = (output, context) => {
|
|
|
9067
9067
|
DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
9068
9068
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
9069
9069
|
: undefined,
|
|
9070
|
-
FunctionArn:
|
|
9070
|
+
FunctionArn: smithy_client_1.expectString(output.FunctionArn),
|
|
9071
9071
|
LastModified: output.LastModified !== undefined && output.LastModified !== null
|
|
9072
|
-
?
|
|
9072
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
|
|
9073
9073
|
: undefined,
|
|
9074
|
-
MaximumEventAgeInSeconds:
|
|
9075
|
-
MaximumRetryAttempts:
|
|
9074
|
+
MaximumEventAgeInSeconds: smithy_client_1.expectInt32(output.MaximumEventAgeInSeconds),
|
|
9075
|
+
MaximumRetryAttempts: smithy_client_1.expectInt32(output.MaximumRetryAttempts),
|
|
9076
9076
|
};
|
|
9077
9077
|
};
|
|
9078
9078
|
const deserializeAws_restJson1FunctionEventInvokeConfigList = (output, context) => {
|
|
@@ -9102,7 +9102,7 @@ const deserializeAws_restJson1FunctionResponseTypeList = (output, context) => {
|
|
|
9102
9102
|
if (entry === null) {
|
|
9103
9103
|
return null;
|
|
9104
9104
|
}
|
|
9105
|
-
return
|
|
9105
|
+
return smithy_client_1.expectString(entry);
|
|
9106
9106
|
});
|
|
9107
9107
|
};
|
|
9108
9108
|
const deserializeAws_restJson1ImageConfig = (output, context) => {
|
|
@@ -9113,13 +9113,13 @@ const deserializeAws_restJson1ImageConfig = (output, context) => {
|
|
|
9113
9113
|
EntryPoint: output.EntryPoint !== undefined && output.EntryPoint !== null
|
|
9114
9114
|
? deserializeAws_restJson1StringList(output.EntryPoint, context)
|
|
9115
9115
|
: undefined,
|
|
9116
|
-
WorkingDirectory:
|
|
9116
|
+
WorkingDirectory: smithy_client_1.expectString(output.WorkingDirectory),
|
|
9117
9117
|
};
|
|
9118
9118
|
};
|
|
9119
9119
|
const deserializeAws_restJson1ImageConfigError = (output, context) => {
|
|
9120
9120
|
return {
|
|
9121
|
-
ErrorCode:
|
|
9122
|
-
Message:
|
|
9121
|
+
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
9122
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
9123
9123
|
};
|
|
9124
9124
|
};
|
|
9125
9125
|
const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
|
|
@@ -9134,10 +9134,10 @@ const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
|
|
|
9134
9134
|
};
|
|
9135
9135
|
const deserializeAws_restJson1Layer = (output, context) => {
|
|
9136
9136
|
return {
|
|
9137
|
-
Arn:
|
|
9138
|
-
CodeSize:
|
|
9139
|
-
SigningJobArn:
|
|
9140
|
-
SigningProfileVersionArn:
|
|
9137
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
9138
|
+
CodeSize: smithy_client_1.expectLong(output.CodeSize),
|
|
9139
|
+
SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
|
|
9140
|
+
SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
|
|
9141
9141
|
};
|
|
9142
9142
|
};
|
|
9143
9143
|
const deserializeAws_restJson1LayersList = (output, context) => {
|
|
@@ -9155,8 +9155,8 @@ const deserializeAws_restJson1LayersListItem = (output, context) => {
|
|
|
9155
9155
|
LatestMatchingVersion: output.LatestMatchingVersion !== undefined && output.LatestMatchingVersion !== null
|
|
9156
9156
|
? deserializeAws_restJson1LayerVersionsListItem(output.LatestMatchingVersion, context)
|
|
9157
9157
|
: undefined,
|
|
9158
|
-
LayerArn:
|
|
9159
|
-
LayerName:
|
|
9158
|
+
LayerArn: smithy_client_1.expectString(output.LayerArn),
|
|
9159
|
+
LayerName: smithy_client_1.expectString(output.LayerName),
|
|
9160
9160
|
};
|
|
9161
9161
|
};
|
|
9162
9162
|
const deserializeAws_restJson1LayersReferenceList = (output, context) => {
|
|
@@ -9171,11 +9171,11 @@ const deserializeAws_restJson1LayersReferenceList = (output, context) => {
|
|
|
9171
9171
|
};
|
|
9172
9172
|
const deserializeAws_restJson1LayerVersionContentOutput = (output, context) => {
|
|
9173
9173
|
return {
|
|
9174
|
-
CodeSha256:
|
|
9175
|
-
CodeSize:
|
|
9176
|
-
Location:
|
|
9177
|
-
SigningJobArn:
|
|
9178
|
-
SigningProfileVersionArn:
|
|
9174
|
+
CodeSha256: smithy_client_1.expectString(output.CodeSha256),
|
|
9175
|
+
CodeSize: smithy_client_1.expectLong(output.CodeSize),
|
|
9176
|
+
Location: smithy_client_1.expectString(output.Location),
|
|
9177
|
+
SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
|
|
9178
|
+
SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
|
|
9179
9179
|
};
|
|
9180
9180
|
};
|
|
9181
9181
|
const deserializeAws_restJson1LayerVersionsList = (output, context) => {
|
|
@@ -9193,21 +9193,21 @@ const deserializeAws_restJson1LayerVersionsListItem = (output, context) => {
|
|
|
9193
9193
|
CompatibleRuntimes: output.CompatibleRuntimes !== undefined && output.CompatibleRuntimes !== null
|
|
9194
9194
|
? deserializeAws_restJson1CompatibleRuntimes(output.CompatibleRuntimes, context)
|
|
9195
9195
|
: undefined,
|
|
9196
|
-
CreatedDate:
|
|
9197
|
-
Description:
|
|
9198
|
-
LayerVersionArn:
|
|
9199
|
-
LicenseInfo:
|
|
9200
|
-
Version:
|
|
9196
|
+
CreatedDate: smithy_client_1.expectString(output.CreatedDate),
|
|
9197
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
9198
|
+
LayerVersionArn: smithy_client_1.expectString(output.LayerVersionArn),
|
|
9199
|
+
LicenseInfo: smithy_client_1.expectString(output.LicenseInfo),
|
|
9200
|
+
Version: smithy_client_1.expectLong(output.Version),
|
|
9201
9201
|
};
|
|
9202
9202
|
};
|
|
9203
9203
|
const deserializeAws_restJson1OnFailure = (output, context) => {
|
|
9204
9204
|
return {
|
|
9205
|
-
Destination:
|
|
9205
|
+
Destination: smithy_client_1.expectString(output.Destination),
|
|
9206
9206
|
};
|
|
9207
9207
|
};
|
|
9208
9208
|
const deserializeAws_restJson1OnSuccess = (output, context) => {
|
|
9209
9209
|
return {
|
|
9210
|
-
Destination:
|
|
9210
|
+
Destination: smithy_client_1.expectString(output.Destination),
|
|
9211
9211
|
};
|
|
9212
9212
|
};
|
|
9213
9213
|
const deserializeAws_restJson1ProvisionedConcurrencyConfigList = (output, context) => {
|
|
@@ -9222,13 +9222,13 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigList = (output, contex
|
|
|
9222
9222
|
};
|
|
9223
9223
|
const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = (output, context) => {
|
|
9224
9224
|
return {
|
|
9225
|
-
AllocatedProvisionedConcurrentExecutions:
|
|
9226
|
-
AvailableProvisionedConcurrentExecutions:
|
|
9227
|
-
FunctionArn:
|
|
9228
|
-
LastModified:
|
|
9229
|
-
RequestedProvisionedConcurrentExecutions:
|
|
9230
|
-
Status:
|
|
9231
|
-
StatusReason:
|
|
9225
|
+
AllocatedProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.AllocatedProvisionedConcurrentExecutions),
|
|
9226
|
+
AvailableProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.AvailableProvisionedConcurrentExecutions),
|
|
9227
|
+
FunctionArn: smithy_client_1.expectString(output.FunctionArn),
|
|
9228
|
+
LastModified: smithy_client_1.expectString(output.LastModified),
|
|
9229
|
+
RequestedProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.RequestedProvisionedConcurrentExecutions),
|
|
9230
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
9231
|
+
StatusReason: smithy_client_1.expectString(output.StatusReason),
|
|
9232
9232
|
};
|
|
9233
9233
|
};
|
|
9234
9234
|
const deserializeAws_restJson1Queues = (output, context) => {
|
|
@@ -9238,7 +9238,7 @@ const deserializeAws_restJson1Queues = (output, context) => {
|
|
|
9238
9238
|
if (entry === null) {
|
|
9239
9239
|
return null;
|
|
9240
9240
|
}
|
|
9241
|
-
return
|
|
9241
|
+
return smithy_client_1.expectString(entry);
|
|
9242
9242
|
});
|
|
9243
9243
|
};
|
|
9244
9244
|
const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
@@ -9248,7 +9248,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
9248
9248
|
if (entry === null) {
|
|
9249
9249
|
return null;
|
|
9250
9250
|
}
|
|
9251
|
-
return
|
|
9251
|
+
return smithy_client_1.expectString(entry);
|
|
9252
9252
|
});
|
|
9253
9253
|
};
|
|
9254
9254
|
const deserializeAws_restJson1SelfManagedEventSource = (output, context) => {
|
|
@@ -9265,13 +9265,13 @@ const deserializeAws_restJson1SigningProfileVersionArns = (output, context) => {
|
|
|
9265
9265
|
if (entry === null) {
|
|
9266
9266
|
return null;
|
|
9267
9267
|
}
|
|
9268
|
-
return
|
|
9268
|
+
return smithy_client_1.expectString(entry);
|
|
9269
9269
|
});
|
|
9270
9270
|
};
|
|
9271
9271
|
const deserializeAws_restJson1SourceAccessConfiguration = (output, context) => {
|
|
9272
9272
|
return {
|
|
9273
|
-
Type:
|
|
9274
|
-
URI:
|
|
9273
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
9274
|
+
URI: smithy_client_1.expectString(output.URI),
|
|
9275
9275
|
};
|
|
9276
9276
|
};
|
|
9277
9277
|
const deserializeAws_restJson1SourceAccessConfigurations = (output, context) => {
|
|
@@ -9291,7 +9291,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
9291
9291
|
if (entry === null) {
|
|
9292
9292
|
return null;
|
|
9293
9293
|
}
|
|
9294
|
-
return
|
|
9294
|
+
return smithy_client_1.expectString(entry);
|
|
9295
9295
|
});
|
|
9296
9296
|
};
|
|
9297
9297
|
const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
@@ -9301,7 +9301,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
|
9301
9301
|
if (entry === null) {
|
|
9302
9302
|
return null;
|
|
9303
9303
|
}
|
|
9304
|
-
return
|
|
9304
|
+
return smithy_client_1.expectString(entry);
|
|
9305
9305
|
});
|
|
9306
9306
|
};
|
|
9307
9307
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
@@ -9311,7 +9311,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
9311
9311
|
}
|
|
9312
9312
|
return {
|
|
9313
9313
|
...acc,
|
|
9314
|
-
[key]:
|
|
9314
|
+
[key]: smithy_client_1.expectString(value),
|
|
9315
9315
|
};
|
|
9316
9316
|
}, {});
|
|
9317
9317
|
};
|
|
@@ -9322,12 +9322,12 @@ const deserializeAws_restJson1Topics = (output, context) => {
|
|
|
9322
9322
|
if (entry === null) {
|
|
9323
9323
|
return null;
|
|
9324
9324
|
}
|
|
9325
|
-
return
|
|
9325
|
+
return smithy_client_1.expectString(entry);
|
|
9326
9326
|
});
|
|
9327
9327
|
};
|
|
9328
9328
|
const deserializeAws_restJson1TracingConfigResponse = (output, context) => {
|
|
9329
9329
|
return {
|
|
9330
|
-
Mode:
|
|
9330
|
+
Mode: smithy_client_1.expectString(output.Mode),
|
|
9331
9331
|
};
|
|
9332
9332
|
};
|
|
9333
9333
|
const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
@@ -9338,7 +9338,7 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
|
9338
9338
|
SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
|
|
9339
9339
|
? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
|
|
9340
9340
|
: undefined,
|
|
9341
|
-
VpcId:
|
|
9341
|
+
VpcId: smithy_client_1.expectString(output.VpcId),
|
|
9342
9342
|
};
|
|
9343
9343
|
};
|
|
9344
9344
|
const deserializeMetadata = (output) => {
|