@aws-sdk/client-lambda 3.28.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 +32 -0
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +140 -140
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/protocols/Aws_restJson1.js +361 -273
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +32 -32
- package/protocols/Aws_restJson1.ts +155 -142
|
@@ -236,10 +236,15 @@ import {
|
|
|
236
236
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
237
237
|
import {
|
|
238
238
|
expectBoolean as __expectBoolean,
|
|
239
|
-
|
|
239
|
+
expectInt32 as __expectInt32,
|
|
240
|
+
expectLong as __expectLong,
|
|
241
|
+
expectNonNull as __expectNonNull,
|
|
242
|
+
expectNumber as __expectNumber,
|
|
243
|
+
expectObject as __expectObject,
|
|
240
244
|
expectString as __expectString,
|
|
241
245
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
242
|
-
|
|
246
|
+
limitedParseDouble as __limitedParseDouble,
|
|
247
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
243
248
|
serializeFloat as __serializeFloat,
|
|
244
249
|
} from "@aws-sdk/smithy-client";
|
|
245
250
|
import {
|
|
@@ -2448,7 +2453,7 @@ export const deserializeAws_restJson1AddLayerVersionPermissionCommand = async (
|
|
|
2448
2453
|
RevisionId: undefined,
|
|
2449
2454
|
Statement: undefined,
|
|
2450
2455
|
};
|
|
2451
|
-
const data: any = await parseBody(output.body, context);
|
|
2456
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2452
2457
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
2453
2458
|
contents.RevisionId = __expectString(data.RevisionId);
|
|
2454
2459
|
}
|
|
@@ -2554,7 +2559,7 @@ export const deserializeAws_restJson1AddPermissionCommand = async (
|
|
|
2554
2559
|
$metadata: deserializeMetadata(output),
|
|
2555
2560
|
Statement: undefined,
|
|
2556
2561
|
};
|
|
2557
|
-
const data: any = await parseBody(output.body, context);
|
|
2562
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2558
2563
|
if (data.Statement !== undefined && data.Statement !== null) {
|
|
2559
2564
|
contents.Statement = __expectString(data.Statement);
|
|
2560
2565
|
}
|
|
@@ -2662,7 +2667,7 @@ export const deserializeAws_restJson1CreateAliasCommand = async (
|
|
|
2662
2667
|
RevisionId: undefined,
|
|
2663
2668
|
RoutingConfig: undefined,
|
|
2664
2669
|
};
|
|
2665
|
-
const data: any = await parseBody(output.body, context);
|
|
2670
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2666
2671
|
if (data.AliasArn !== undefined && data.AliasArn !== null) {
|
|
2667
2672
|
contents.AliasArn = __expectString(data.AliasArn);
|
|
2668
2673
|
}
|
|
@@ -2764,7 +2769,7 @@ export const deserializeAws_restJson1CreateCodeSigningConfigCommand = async (
|
|
|
2764
2769
|
$metadata: deserializeMetadata(output),
|
|
2765
2770
|
CodeSigningConfig: undefined,
|
|
2766
2771
|
};
|
|
2767
|
-
const data: any = await parseBody(output.body, context);
|
|
2772
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2768
2773
|
if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
|
|
2769
2774
|
contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
|
|
2770
2775
|
}
|
|
@@ -2848,9 +2853,9 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async (
|
|
|
2848
2853
|
TumblingWindowInSeconds: undefined,
|
|
2849
2854
|
UUID: undefined,
|
|
2850
2855
|
};
|
|
2851
|
-
const data: any = await parseBody(output.body, context);
|
|
2856
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2852
2857
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
2853
|
-
contents.BatchSize =
|
|
2858
|
+
contents.BatchSize = __expectInt32(data.BatchSize);
|
|
2854
2859
|
}
|
|
2855
2860
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
2856
2861
|
contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
|
|
@@ -2871,22 +2876,22 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async (
|
|
|
2871
2876
|
);
|
|
2872
2877
|
}
|
|
2873
2878
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
2874
|
-
contents.LastModified =
|
|
2879
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
2875
2880
|
}
|
|
2876
2881
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
2877
2882
|
contents.LastProcessingResult = __expectString(data.LastProcessingResult);
|
|
2878
2883
|
}
|
|
2879
2884
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
2880
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
2885
|
+
contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
2881
2886
|
}
|
|
2882
2887
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
2883
|
-
contents.MaximumRecordAgeInSeconds =
|
|
2888
|
+
contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
|
|
2884
2889
|
}
|
|
2885
2890
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
2886
|
-
contents.MaximumRetryAttempts =
|
|
2891
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
2887
2892
|
}
|
|
2888
2893
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
2889
|
-
contents.ParallelizationFactor =
|
|
2894
|
+
contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
|
|
2890
2895
|
}
|
|
2891
2896
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
2892
2897
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -2907,7 +2912,9 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async (
|
|
|
2907
2912
|
contents.StartingPosition = __expectString(data.StartingPosition);
|
|
2908
2913
|
}
|
|
2909
2914
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
2910
|
-
contents.StartingPositionTimestamp =
|
|
2915
|
+
contents.StartingPositionTimestamp = __expectNonNull(
|
|
2916
|
+
__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp))
|
|
2917
|
+
);
|
|
2911
2918
|
}
|
|
2912
2919
|
if (data.State !== undefined && data.State !== null) {
|
|
2913
2920
|
contents.State = __expectString(data.State);
|
|
@@ -2919,7 +2926,7 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async (
|
|
|
2919
2926
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
2920
2927
|
}
|
|
2921
2928
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
2922
|
-
contents.TumblingWindowInSeconds =
|
|
2929
|
+
contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
|
|
2923
2930
|
}
|
|
2924
2931
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
2925
2932
|
contents.UUID = __expectString(data.UUID);
|
|
@@ -3037,12 +3044,12 @@ export const deserializeAws_restJson1CreateFunctionCommand = async (
|
|
|
3037
3044
|
Version: undefined,
|
|
3038
3045
|
VpcConfig: undefined,
|
|
3039
3046
|
};
|
|
3040
|
-
const data: any = await parseBody(output.body, context);
|
|
3047
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3041
3048
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
3042
3049
|
contents.CodeSha256 = __expectString(data.CodeSha256);
|
|
3043
3050
|
}
|
|
3044
3051
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
3045
|
-
contents.CodeSize =
|
|
3052
|
+
contents.CodeSize = __expectLong(data.CodeSize);
|
|
3046
3053
|
}
|
|
3047
3054
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
3048
3055
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
@@ -3090,7 +3097,7 @@ export const deserializeAws_restJson1CreateFunctionCommand = async (
|
|
|
3090
3097
|
contents.MasterArn = __expectString(data.MasterArn);
|
|
3091
3098
|
}
|
|
3092
3099
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
3093
|
-
contents.MemorySize =
|
|
3100
|
+
contents.MemorySize = __expectInt32(data.MemorySize);
|
|
3094
3101
|
}
|
|
3095
3102
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
3096
3103
|
contents.PackageType = __expectString(data.PackageType);
|
|
@@ -3120,7 +3127,7 @@ export const deserializeAws_restJson1CreateFunctionCommand = async (
|
|
|
3120
3127
|
contents.StateReasonCode = __expectString(data.StateReasonCode);
|
|
3121
3128
|
}
|
|
3122
3129
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
3123
|
-
contents.Timeout =
|
|
3130
|
+
contents.Timeout = __expectInt32(data.Timeout);
|
|
3124
3131
|
}
|
|
3125
3132
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
3126
3133
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
@@ -3417,9 +3424,9 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (
|
|
|
3417
3424
|
TumblingWindowInSeconds: undefined,
|
|
3418
3425
|
UUID: undefined,
|
|
3419
3426
|
};
|
|
3420
|
-
const data: any = await parseBody(output.body, context);
|
|
3427
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3421
3428
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
3422
|
-
contents.BatchSize =
|
|
3429
|
+
contents.BatchSize = __expectInt32(data.BatchSize);
|
|
3423
3430
|
}
|
|
3424
3431
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
3425
3432
|
contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
|
|
@@ -3440,22 +3447,22 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (
|
|
|
3440
3447
|
);
|
|
3441
3448
|
}
|
|
3442
3449
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
3443
|
-
contents.LastModified =
|
|
3450
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
3444
3451
|
}
|
|
3445
3452
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
3446
3453
|
contents.LastProcessingResult = __expectString(data.LastProcessingResult);
|
|
3447
3454
|
}
|
|
3448
3455
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
3449
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
3456
|
+
contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
3450
3457
|
}
|
|
3451
3458
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
3452
|
-
contents.MaximumRecordAgeInSeconds =
|
|
3459
|
+
contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
|
|
3453
3460
|
}
|
|
3454
3461
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
3455
|
-
contents.MaximumRetryAttempts =
|
|
3462
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
3456
3463
|
}
|
|
3457
3464
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
3458
|
-
contents.ParallelizationFactor =
|
|
3465
|
+
contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
|
|
3459
3466
|
}
|
|
3460
3467
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
3461
3468
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -3476,7 +3483,9 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (
|
|
|
3476
3483
|
contents.StartingPosition = __expectString(data.StartingPosition);
|
|
3477
3484
|
}
|
|
3478
3485
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
3479
|
-
contents.StartingPositionTimestamp =
|
|
3486
|
+
contents.StartingPositionTimestamp = __expectNonNull(
|
|
3487
|
+
__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp))
|
|
3488
|
+
);
|
|
3480
3489
|
}
|
|
3481
3490
|
if (data.State !== undefined && data.State !== null) {
|
|
3482
3491
|
contents.State = __expectString(data.State);
|
|
@@ -3488,7 +3497,7 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (
|
|
|
3488
3497
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
3489
3498
|
}
|
|
3490
3499
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
3491
|
-
contents.TumblingWindowInSeconds =
|
|
3500
|
+
contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
|
|
3492
3501
|
}
|
|
3493
3502
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
3494
3503
|
contents.UUID = __expectString(data.UUID);
|
|
@@ -4059,7 +4068,7 @@ export const deserializeAws_restJson1GetAccountSettingsCommand = async (
|
|
|
4059
4068
|
AccountLimit: undefined,
|
|
4060
4069
|
AccountUsage: undefined,
|
|
4061
4070
|
};
|
|
4062
|
-
const data: any = await parseBody(output.body, context);
|
|
4071
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4063
4072
|
if (data.AccountLimit !== undefined && data.AccountLimit !== null) {
|
|
4064
4073
|
contents.AccountLimit = deserializeAws_restJson1AccountLimit(data.AccountLimit, context);
|
|
4065
4074
|
}
|
|
@@ -4130,7 +4139,7 @@ export const deserializeAws_restJson1GetAliasCommand = async (
|
|
|
4130
4139
|
RevisionId: undefined,
|
|
4131
4140
|
RoutingConfig: undefined,
|
|
4132
4141
|
};
|
|
4133
|
-
const data: any = await parseBody(output.body, context);
|
|
4142
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4134
4143
|
if (data.AliasArn !== undefined && data.AliasArn !== null) {
|
|
4135
4144
|
contents.AliasArn = __expectString(data.AliasArn);
|
|
4136
4145
|
}
|
|
@@ -4224,7 +4233,7 @@ export const deserializeAws_restJson1GetCodeSigningConfigCommand = async (
|
|
|
4224
4233
|
$metadata: deserializeMetadata(output),
|
|
4225
4234
|
CodeSigningConfig: undefined,
|
|
4226
4235
|
};
|
|
4227
|
-
const data: any = await parseBody(output.body, context);
|
|
4236
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4228
4237
|
if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
|
|
4229
4238
|
contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
|
|
4230
4239
|
}
|
|
@@ -4316,9 +4325,9 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async (
|
|
|
4316
4325
|
TumblingWindowInSeconds: undefined,
|
|
4317
4326
|
UUID: undefined,
|
|
4318
4327
|
};
|
|
4319
|
-
const data: any = await parseBody(output.body, context);
|
|
4328
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4320
4329
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
4321
|
-
contents.BatchSize =
|
|
4330
|
+
contents.BatchSize = __expectInt32(data.BatchSize);
|
|
4322
4331
|
}
|
|
4323
4332
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
4324
4333
|
contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
|
|
@@ -4339,22 +4348,22 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async (
|
|
|
4339
4348
|
);
|
|
4340
4349
|
}
|
|
4341
4350
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4342
|
-
contents.LastModified =
|
|
4351
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
4343
4352
|
}
|
|
4344
4353
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
4345
4354
|
contents.LastProcessingResult = __expectString(data.LastProcessingResult);
|
|
4346
4355
|
}
|
|
4347
4356
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
4348
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
4357
|
+
contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
4349
4358
|
}
|
|
4350
4359
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
4351
|
-
contents.MaximumRecordAgeInSeconds =
|
|
4360
|
+
contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
|
|
4352
4361
|
}
|
|
4353
4362
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
4354
|
-
contents.MaximumRetryAttempts =
|
|
4363
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
4355
4364
|
}
|
|
4356
4365
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
4357
|
-
contents.ParallelizationFactor =
|
|
4366
|
+
contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
|
|
4358
4367
|
}
|
|
4359
4368
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
4360
4369
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -4375,7 +4384,9 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async (
|
|
|
4375
4384
|
contents.StartingPosition = __expectString(data.StartingPosition);
|
|
4376
4385
|
}
|
|
4377
4386
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
4378
|
-
contents.StartingPositionTimestamp =
|
|
4387
|
+
contents.StartingPositionTimestamp = __expectNonNull(
|
|
4388
|
+
__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp))
|
|
4389
|
+
);
|
|
4379
4390
|
}
|
|
4380
4391
|
if (data.State !== undefined && data.State !== null) {
|
|
4381
4392
|
contents.State = __expectString(data.State);
|
|
@@ -4387,7 +4398,7 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async (
|
|
|
4387
4398
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
4388
4399
|
}
|
|
4389
4400
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
4390
|
-
contents.TumblingWindowInSeconds =
|
|
4401
|
+
contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
|
|
4391
4402
|
}
|
|
4392
4403
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
4393
4404
|
contents.UUID = __expectString(data.UUID);
|
|
@@ -4470,7 +4481,7 @@ export const deserializeAws_restJson1GetFunctionCommand = async (
|
|
|
4470
4481
|
Configuration: undefined,
|
|
4471
4482
|
Tags: undefined,
|
|
4472
4483
|
};
|
|
4473
|
-
const data: any = await parseBody(output.body, context);
|
|
4484
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4474
4485
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4475
4486
|
contents.Code = deserializeAws_restJson1FunctionCodeLocation(data.Code, context);
|
|
4476
4487
|
}
|
|
@@ -4559,7 +4570,7 @@ export const deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = async
|
|
|
4559
4570
|
CodeSigningConfigArn: undefined,
|
|
4560
4571
|
FunctionName: undefined,
|
|
4561
4572
|
};
|
|
4562
|
-
const data: any = await parseBody(output.body, context);
|
|
4573
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4563
4574
|
if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
|
|
4564
4575
|
contents.CodeSigningConfigArn = __expectString(data.CodeSigningConfigArn);
|
|
4565
4576
|
}
|
|
@@ -4641,9 +4652,9 @@ export const deserializeAws_restJson1GetFunctionConcurrencyCommand = async (
|
|
|
4641
4652
|
$metadata: deserializeMetadata(output),
|
|
4642
4653
|
ReservedConcurrentExecutions: undefined,
|
|
4643
4654
|
};
|
|
4644
|
-
const data: any = await parseBody(output.body, context);
|
|
4655
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4645
4656
|
if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
|
|
4646
|
-
contents.ReservedConcurrentExecutions =
|
|
4657
|
+
contents.ReservedConcurrentExecutions = __expectInt32(data.ReservedConcurrentExecutions);
|
|
4647
4658
|
}
|
|
4648
4659
|
return Promise.resolve(contents);
|
|
4649
4660
|
};
|
|
@@ -4750,12 +4761,12 @@ export const deserializeAws_restJson1GetFunctionConfigurationCommand = async (
|
|
|
4750
4761
|
Version: undefined,
|
|
4751
4762
|
VpcConfig: undefined,
|
|
4752
4763
|
};
|
|
4753
|
-
const data: any = await parseBody(output.body, context);
|
|
4764
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4754
4765
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
4755
4766
|
contents.CodeSha256 = __expectString(data.CodeSha256);
|
|
4756
4767
|
}
|
|
4757
4768
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
4758
|
-
contents.CodeSize =
|
|
4769
|
+
contents.CodeSize = __expectLong(data.CodeSize);
|
|
4759
4770
|
}
|
|
4760
4771
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
4761
4772
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
@@ -4803,7 +4814,7 @@ export const deserializeAws_restJson1GetFunctionConfigurationCommand = async (
|
|
|
4803
4814
|
contents.MasterArn = __expectString(data.MasterArn);
|
|
4804
4815
|
}
|
|
4805
4816
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
4806
|
-
contents.MemorySize =
|
|
4817
|
+
contents.MemorySize = __expectInt32(data.MemorySize);
|
|
4807
4818
|
}
|
|
4808
4819
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
4809
4820
|
contents.PackageType = __expectString(data.PackageType);
|
|
@@ -4833,7 +4844,7 @@ export const deserializeAws_restJson1GetFunctionConfigurationCommand = async (
|
|
|
4833
4844
|
contents.StateReasonCode = __expectString(data.StateReasonCode);
|
|
4834
4845
|
}
|
|
4835
4846
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
4836
|
-
contents.Timeout =
|
|
4847
|
+
contents.Timeout = __expectInt32(data.Timeout);
|
|
4837
4848
|
}
|
|
4838
4849
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
4839
4850
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
@@ -4923,7 +4934,7 @@ export const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async
|
|
|
4923
4934
|
MaximumEventAgeInSeconds: undefined,
|
|
4924
4935
|
MaximumRetryAttempts: undefined,
|
|
4925
4936
|
};
|
|
4926
|
-
const data: any = await parseBody(output.body, context);
|
|
4937
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4927
4938
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
4928
4939
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
4929
4940
|
}
|
|
@@ -4931,13 +4942,13 @@ export const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async
|
|
|
4931
4942
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
4932
4943
|
}
|
|
4933
4944
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4934
|
-
contents.LastModified =
|
|
4945
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
4935
4946
|
}
|
|
4936
4947
|
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
4937
|
-
contents.MaximumEventAgeInSeconds =
|
|
4948
|
+
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
4938
4949
|
}
|
|
4939
4950
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
4940
|
-
contents.MaximumRetryAttempts =
|
|
4951
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
4941
4952
|
}
|
|
4942
4953
|
return Promise.resolve(contents);
|
|
4943
4954
|
};
|
|
@@ -5021,7 +5032,7 @@ export const deserializeAws_restJson1GetLayerVersionCommand = async (
|
|
|
5021
5032
|
LicenseInfo: undefined,
|
|
5022
5033
|
Version: undefined,
|
|
5023
5034
|
};
|
|
5024
|
-
const data: any = await parseBody(output.body, context);
|
|
5035
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5025
5036
|
if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
|
|
5026
5037
|
contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
|
|
5027
5038
|
}
|
|
@@ -5044,7 +5055,7 @@ export const deserializeAws_restJson1GetLayerVersionCommand = async (
|
|
|
5044
5055
|
contents.LicenseInfo = __expectString(data.LicenseInfo);
|
|
5045
5056
|
}
|
|
5046
5057
|
if (data.Version !== undefined && data.Version !== null) {
|
|
5047
|
-
contents.Version =
|
|
5058
|
+
contents.Version = __expectLong(data.Version);
|
|
5048
5059
|
}
|
|
5049
5060
|
return Promise.resolve(contents);
|
|
5050
5061
|
};
|
|
@@ -5128,7 +5139,7 @@ export const deserializeAws_restJson1GetLayerVersionByArnCommand = async (
|
|
|
5128
5139
|
LicenseInfo: undefined,
|
|
5129
5140
|
Version: undefined,
|
|
5130
5141
|
};
|
|
5131
|
-
const data: any = await parseBody(output.body, context);
|
|
5142
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5132
5143
|
if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
|
|
5133
5144
|
contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
|
|
5134
5145
|
}
|
|
@@ -5151,7 +5162,7 @@ export const deserializeAws_restJson1GetLayerVersionByArnCommand = async (
|
|
|
5151
5162
|
contents.LicenseInfo = __expectString(data.LicenseInfo);
|
|
5152
5163
|
}
|
|
5153
5164
|
if (data.Version !== undefined && data.Version !== null) {
|
|
5154
|
-
contents.Version =
|
|
5165
|
+
contents.Version = __expectLong(data.Version);
|
|
5155
5166
|
}
|
|
5156
5167
|
return Promise.resolve(contents);
|
|
5157
5168
|
};
|
|
@@ -5229,7 +5240,7 @@ export const deserializeAws_restJson1GetLayerVersionPolicyCommand = async (
|
|
|
5229
5240
|
Policy: undefined,
|
|
5230
5241
|
RevisionId: undefined,
|
|
5231
5242
|
};
|
|
5232
|
-
const data: any = await parseBody(output.body, context);
|
|
5243
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5233
5244
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
5234
5245
|
contents.Policy = __expectString(data.Policy);
|
|
5235
5246
|
}
|
|
@@ -5312,7 +5323,7 @@ export const deserializeAws_restJson1GetPolicyCommand = async (
|
|
|
5312
5323
|
Policy: undefined,
|
|
5313
5324
|
RevisionId: undefined,
|
|
5314
5325
|
};
|
|
5315
|
-
const data: any = await parseBody(output.body, context);
|
|
5326
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5316
5327
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
5317
5328
|
contents.Policy = __expectString(data.Policy);
|
|
5318
5329
|
}
|
|
@@ -5399,18 +5410,18 @@ export const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = as
|
|
|
5399
5410
|
Status: undefined,
|
|
5400
5411
|
StatusReason: undefined,
|
|
5401
5412
|
};
|
|
5402
|
-
const data: any = await parseBody(output.body, context);
|
|
5413
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5403
5414
|
if (
|
|
5404
5415
|
data.AllocatedProvisionedConcurrentExecutions !== undefined &&
|
|
5405
5416
|
data.AllocatedProvisionedConcurrentExecutions !== null
|
|
5406
5417
|
) {
|
|
5407
|
-
contents.AllocatedProvisionedConcurrentExecutions =
|
|
5418
|
+
contents.AllocatedProvisionedConcurrentExecutions = __expectInt32(data.AllocatedProvisionedConcurrentExecutions);
|
|
5408
5419
|
}
|
|
5409
5420
|
if (
|
|
5410
5421
|
data.AvailableProvisionedConcurrentExecutions !== undefined &&
|
|
5411
5422
|
data.AvailableProvisionedConcurrentExecutions !== null
|
|
5412
5423
|
) {
|
|
5413
|
-
contents.AvailableProvisionedConcurrentExecutions =
|
|
5424
|
+
contents.AvailableProvisionedConcurrentExecutions = __expectInt32(data.AvailableProvisionedConcurrentExecutions);
|
|
5414
5425
|
}
|
|
5415
5426
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
5416
5427
|
contents.LastModified = __expectString(data.LastModified);
|
|
@@ -5419,7 +5430,7 @@ export const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = as
|
|
|
5419
5430
|
data.RequestedProvisionedConcurrentExecutions !== undefined &&
|
|
5420
5431
|
data.RequestedProvisionedConcurrentExecutions !== null
|
|
5421
5432
|
) {
|
|
5422
|
-
contents.RequestedProvisionedConcurrentExecutions =
|
|
5433
|
+
contents.RequestedProvisionedConcurrentExecutions = __expectInt32(data.RequestedProvisionedConcurrentExecutions);
|
|
5423
5434
|
}
|
|
5424
5435
|
if (data.Status !== undefined && data.Status !== null) {
|
|
5425
5436
|
contents.Status = __expectString(data.Status);
|
|
@@ -5867,7 +5878,7 @@ export const deserializeAws_restJson1ListAliasesCommand = async (
|
|
|
5867
5878
|
Aliases: undefined,
|
|
5868
5879
|
NextMarker: undefined,
|
|
5869
5880
|
};
|
|
5870
|
-
const data: any = await parseBody(output.body, context);
|
|
5881
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5871
5882
|
if (data.Aliases !== undefined && data.Aliases !== null) {
|
|
5872
5883
|
contents.Aliases = deserializeAws_restJson1AliasList(data.Aliases, context);
|
|
5873
5884
|
}
|
|
@@ -5950,7 +5961,7 @@ export const deserializeAws_restJson1ListCodeSigningConfigsCommand = async (
|
|
|
5950
5961
|
CodeSigningConfigs: undefined,
|
|
5951
5962
|
NextMarker: undefined,
|
|
5952
5963
|
};
|
|
5953
|
-
const data: any = await parseBody(output.body, context);
|
|
5964
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5954
5965
|
if (data.CodeSigningConfigs !== undefined && data.CodeSigningConfigs !== null) {
|
|
5955
5966
|
contents.CodeSigningConfigs = deserializeAws_restJson1CodeSigningConfigList(data.CodeSigningConfigs, context);
|
|
5956
5967
|
}
|
|
@@ -6017,7 +6028,7 @@ export const deserializeAws_restJson1ListEventSourceMappingsCommand = async (
|
|
|
6017
6028
|
EventSourceMappings: undefined,
|
|
6018
6029
|
NextMarker: undefined,
|
|
6019
6030
|
};
|
|
6020
|
-
const data: any = await parseBody(output.body, context);
|
|
6031
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6021
6032
|
if (data.EventSourceMappings !== undefined && data.EventSourceMappings !== null) {
|
|
6022
6033
|
contents.EventSourceMappings = deserializeAws_restJson1EventSourceMappingsList(data.EventSourceMappings, context);
|
|
6023
6034
|
}
|
|
@@ -6100,7 +6111,7 @@ export const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = asy
|
|
|
6100
6111
|
FunctionEventInvokeConfigs: undefined,
|
|
6101
6112
|
NextMarker: undefined,
|
|
6102
6113
|
};
|
|
6103
|
-
const data: any = await parseBody(output.body, context);
|
|
6114
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6104
6115
|
if (data.FunctionEventInvokeConfigs !== undefined && data.FunctionEventInvokeConfigs !== null) {
|
|
6105
6116
|
contents.FunctionEventInvokeConfigs = deserializeAws_restJson1FunctionEventInvokeConfigList(
|
|
6106
6117
|
data.FunctionEventInvokeConfigs,
|
|
@@ -6186,7 +6197,7 @@ export const deserializeAws_restJson1ListFunctionsCommand = async (
|
|
|
6186
6197
|
Functions: undefined,
|
|
6187
6198
|
NextMarker: undefined,
|
|
6188
6199
|
};
|
|
6189
|
-
const data: any = await parseBody(output.body, context);
|
|
6200
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6190
6201
|
if (data.Functions !== undefined && data.Functions !== null) {
|
|
6191
6202
|
contents.Functions = deserializeAws_restJson1FunctionList(data.Functions, context);
|
|
6192
6203
|
}
|
|
@@ -6261,7 +6272,7 @@ export const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = a
|
|
|
6261
6272
|
FunctionArns: undefined,
|
|
6262
6273
|
NextMarker: undefined,
|
|
6263
6274
|
};
|
|
6264
|
-
const data: any = await parseBody(output.body, context);
|
|
6275
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6265
6276
|
if (data.FunctionArns !== undefined && data.FunctionArns !== null) {
|
|
6266
6277
|
contents.FunctionArns = deserializeAws_restJson1FunctionArnList(data.FunctionArns, context);
|
|
6267
6278
|
}
|
|
@@ -6336,7 +6347,7 @@ export const deserializeAws_restJson1ListLayersCommand = async (
|
|
|
6336
6347
|
Layers: undefined,
|
|
6337
6348
|
NextMarker: undefined,
|
|
6338
6349
|
};
|
|
6339
|
-
const data: any = await parseBody(output.body, context);
|
|
6350
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6340
6351
|
if (data.Layers !== undefined && data.Layers !== null) {
|
|
6341
6352
|
contents.Layers = deserializeAws_restJson1LayersList(data.Layers, context);
|
|
6342
6353
|
}
|
|
@@ -6411,7 +6422,7 @@ export const deserializeAws_restJson1ListLayerVersionsCommand = async (
|
|
|
6411
6422
|
LayerVersions: undefined,
|
|
6412
6423
|
NextMarker: undefined,
|
|
6413
6424
|
};
|
|
6414
|
-
const data: any = await parseBody(output.body, context);
|
|
6425
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6415
6426
|
if (data.LayerVersions !== undefined && data.LayerVersions !== null) {
|
|
6416
6427
|
contents.LayerVersions = deserializeAws_restJson1LayerVersionsList(data.LayerVersions, context);
|
|
6417
6428
|
}
|
|
@@ -6494,7 +6505,7 @@ export const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand =
|
|
|
6494
6505
|
NextMarker: undefined,
|
|
6495
6506
|
ProvisionedConcurrencyConfigs: undefined,
|
|
6496
6507
|
};
|
|
6497
|
-
const data: any = await parseBody(output.body, context);
|
|
6508
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6498
6509
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
6499
6510
|
contents.NextMarker = __expectString(data.NextMarker);
|
|
6500
6511
|
}
|
|
@@ -6579,7 +6590,7 @@ export const deserializeAws_restJson1ListTagsCommand = async (
|
|
|
6579
6590
|
$metadata: deserializeMetadata(output),
|
|
6580
6591
|
Tags: undefined,
|
|
6581
6592
|
};
|
|
6582
|
-
const data: any = await parseBody(output.body, context);
|
|
6593
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6583
6594
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
6584
6595
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
6585
6596
|
}
|
|
@@ -6659,7 +6670,7 @@ export const deserializeAws_restJson1ListVersionsByFunctionCommand = async (
|
|
|
6659
6670
|
NextMarker: undefined,
|
|
6660
6671
|
Versions: undefined,
|
|
6661
6672
|
};
|
|
6662
|
-
const data: any = await parseBody(output.body, context);
|
|
6673
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6663
6674
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
6664
6675
|
contents.NextMarker = __expectString(data.NextMarker);
|
|
6665
6676
|
}
|
|
@@ -6748,7 +6759,7 @@ export const deserializeAws_restJson1PublishLayerVersionCommand = async (
|
|
|
6748
6759
|
LicenseInfo: undefined,
|
|
6749
6760
|
Version: undefined,
|
|
6750
6761
|
};
|
|
6751
|
-
const data: any = await parseBody(output.body, context);
|
|
6762
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6752
6763
|
if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
|
|
6753
6764
|
contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
|
|
6754
6765
|
}
|
|
@@ -6771,7 +6782,7 @@ export const deserializeAws_restJson1PublishLayerVersionCommand = async (
|
|
|
6771
6782
|
contents.LicenseInfo = __expectString(data.LicenseInfo);
|
|
6772
6783
|
}
|
|
6773
6784
|
if (data.Version !== undefined && data.Version !== null) {
|
|
6774
|
-
contents.Version =
|
|
6785
|
+
contents.Version = __expectLong(data.Version);
|
|
6775
6786
|
}
|
|
6776
6787
|
return Promise.resolve(contents);
|
|
6777
6788
|
};
|
|
@@ -6886,12 +6897,12 @@ export const deserializeAws_restJson1PublishVersionCommand = async (
|
|
|
6886
6897
|
Version: undefined,
|
|
6887
6898
|
VpcConfig: undefined,
|
|
6888
6899
|
};
|
|
6889
|
-
const data: any = await parseBody(output.body, context);
|
|
6900
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6890
6901
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
6891
6902
|
contents.CodeSha256 = __expectString(data.CodeSha256);
|
|
6892
6903
|
}
|
|
6893
6904
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
6894
|
-
contents.CodeSize =
|
|
6905
|
+
contents.CodeSize = __expectLong(data.CodeSize);
|
|
6895
6906
|
}
|
|
6896
6907
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
6897
6908
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
@@ -6939,7 +6950,7 @@ export const deserializeAws_restJson1PublishVersionCommand = async (
|
|
|
6939
6950
|
contents.MasterArn = __expectString(data.MasterArn);
|
|
6940
6951
|
}
|
|
6941
6952
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
6942
|
-
contents.MemorySize =
|
|
6953
|
+
contents.MemorySize = __expectInt32(data.MemorySize);
|
|
6943
6954
|
}
|
|
6944
6955
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
6945
6956
|
contents.PackageType = __expectString(data.PackageType);
|
|
@@ -6969,7 +6980,7 @@ export const deserializeAws_restJson1PublishVersionCommand = async (
|
|
|
6969
6980
|
contents.StateReasonCode = __expectString(data.StateReasonCode);
|
|
6970
6981
|
}
|
|
6971
6982
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
6972
|
-
contents.Timeout =
|
|
6983
|
+
contents.Timeout = __expectInt32(data.Timeout);
|
|
6973
6984
|
}
|
|
6974
6985
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
6975
6986
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
@@ -7080,7 +7091,7 @@ export const deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = async
|
|
|
7080
7091
|
CodeSigningConfigArn: undefined,
|
|
7081
7092
|
FunctionName: undefined,
|
|
7082
7093
|
};
|
|
7083
|
-
const data: any = await parseBody(output.body, context);
|
|
7094
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7084
7095
|
if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
|
|
7085
7096
|
contents.CodeSigningConfigArn = __expectString(data.CodeSigningConfigArn);
|
|
7086
7097
|
}
|
|
@@ -7178,9 +7189,9 @@ export const deserializeAws_restJson1PutFunctionConcurrencyCommand = async (
|
|
|
7178
7189
|
$metadata: deserializeMetadata(output),
|
|
7179
7190
|
ReservedConcurrentExecutions: undefined,
|
|
7180
7191
|
};
|
|
7181
|
-
const data: any = await parseBody(output.body, context);
|
|
7192
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7182
7193
|
if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
|
|
7183
|
-
contents.ReservedConcurrentExecutions =
|
|
7194
|
+
contents.ReservedConcurrentExecutions = __expectInt32(data.ReservedConcurrentExecutions);
|
|
7184
7195
|
}
|
|
7185
7196
|
return Promise.resolve(contents);
|
|
7186
7197
|
};
|
|
@@ -7269,7 +7280,7 @@ export const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async
|
|
|
7269
7280
|
MaximumEventAgeInSeconds: undefined,
|
|
7270
7281
|
MaximumRetryAttempts: undefined,
|
|
7271
7282
|
};
|
|
7272
|
-
const data: any = await parseBody(output.body, context);
|
|
7283
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7273
7284
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
7274
7285
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
7275
7286
|
}
|
|
@@ -7277,13 +7288,13 @@ export const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async
|
|
|
7277
7288
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
7278
7289
|
}
|
|
7279
7290
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
7280
|
-
contents.LastModified =
|
|
7291
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
7281
7292
|
}
|
|
7282
7293
|
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
7283
|
-
contents.MaximumEventAgeInSeconds =
|
|
7294
|
+
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
7284
7295
|
}
|
|
7285
7296
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
7286
|
-
contents.MaximumRetryAttempts =
|
|
7297
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
7287
7298
|
}
|
|
7288
7299
|
return Promise.resolve(contents);
|
|
7289
7300
|
};
|
|
@@ -7373,18 +7384,18 @@ export const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = as
|
|
|
7373
7384
|
Status: undefined,
|
|
7374
7385
|
StatusReason: undefined,
|
|
7375
7386
|
};
|
|
7376
|
-
const data: any = await parseBody(output.body, context);
|
|
7387
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7377
7388
|
if (
|
|
7378
7389
|
data.AllocatedProvisionedConcurrentExecutions !== undefined &&
|
|
7379
7390
|
data.AllocatedProvisionedConcurrentExecutions !== null
|
|
7380
7391
|
) {
|
|
7381
|
-
contents.AllocatedProvisionedConcurrentExecutions =
|
|
7392
|
+
contents.AllocatedProvisionedConcurrentExecutions = __expectInt32(data.AllocatedProvisionedConcurrentExecutions);
|
|
7382
7393
|
}
|
|
7383
7394
|
if (
|
|
7384
7395
|
data.AvailableProvisionedConcurrentExecutions !== undefined &&
|
|
7385
7396
|
data.AvailableProvisionedConcurrentExecutions !== null
|
|
7386
7397
|
) {
|
|
7387
|
-
contents.AvailableProvisionedConcurrentExecutions =
|
|
7398
|
+
contents.AvailableProvisionedConcurrentExecutions = __expectInt32(data.AvailableProvisionedConcurrentExecutions);
|
|
7388
7399
|
}
|
|
7389
7400
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
7390
7401
|
contents.LastModified = __expectString(data.LastModified);
|
|
@@ -7393,7 +7404,7 @@ export const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = as
|
|
|
7393
7404
|
data.RequestedProvisionedConcurrentExecutions !== undefined &&
|
|
7394
7405
|
data.RequestedProvisionedConcurrentExecutions !== null
|
|
7395
7406
|
) {
|
|
7396
|
-
contents.RequestedProvisionedConcurrentExecutions =
|
|
7407
|
+
contents.RequestedProvisionedConcurrentExecutions = __expectInt32(data.RequestedProvisionedConcurrentExecutions);
|
|
7397
7408
|
}
|
|
7398
7409
|
if (data.Status !== undefined && data.Status !== null) {
|
|
7399
7410
|
contents.Status = __expectString(data.Status);
|
|
@@ -7821,7 +7832,7 @@ export const deserializeAws_restJson1UpdateAliasCommand = async (
|
|
|
7821
7832
|
RevisionId: undefined,
|
|
7822
7833
|
RoutingConfig: undefined,
|
|
7823
7834
|
};
|
|
7824
|
-
const data: any = await parseBody(output.body, context);
|
|
7835
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7825
7836
|
if (data.AliasArn !== undefined && data.AliasArn !== null) {
|
|
7826
7837
|
contents.AliasArn = __expectString(data.AliasArn);
|
|
7827
7838
|
}
|
|
@@ -7931,7 +7942,7 @@ export const deserializeAws_restJson1UpdateCodeSigningConfigCommand = async (
|
|
|
7931
7942
|
$metadata: deserializeMetadata(output),
|
|
7932
7943
|
CodeSigningConfig: undefined,
|
|
7933
7944
|
};
|
|
7934
|
-
const data: any = await parseBody(output.body, context);
|
|
7945
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7935
7946
|
if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
|
|
7936
7947
|
contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
|
|
7937
7948
|
}
|
|
@@ -8023,9 +8034,9 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (
|
|
|
8023
8034
|
TumblingWindowInSeconds: undefined,
|
|
8024
8035
|
UUID: undefined,
|
|
8025
8036
|
};
|
|
8026
|
-
const data: any = await parseBody(output.body, context);
|
|
8037
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
8027
8038
|
if (data.BatchSize !== undefined && data.BatchSize !== null) {
|
|
8028
|
-
contents.BatchSize =
|
|
8039
|
+
contents.BatchSize = __expectInt32(data.BatchSize);
|
|
8029
8040
|
}
|
|
8030
8041
|
if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
|
|
8031
8042
|
contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
|
|
@@ -8046,22 +8057,22 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (
|
|
|
8046
8057
|
);
|
|
8047
8058
|
}
|
|
8048
8059
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
8049
|
-
contents.LastModified =
|
|
8060
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
8050
8061
|
}
|
|
8051
8062
|
if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
|
|
8052
8063
|
contents.LastProcessingResult = __expectString(data.LastProcessingResult);
|
|
8053
8064
|
}
|
|
8054
8065
|
if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
|
|
8055
|
-
contents.MaximumBatchingWindowInSeconds =
|
|
8066
|
+
contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
|
|
8056
8067
|
}
|
|
8057
8068
|
if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
|
|
8058
|
-
contents.MaximumRecordAgeInSeconds =
|
|
8069
|
+
contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
|
|
8059
8070
|
}
|
|
8060
8071
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
8061
|
-
contents.MaximumRetryAttempts =
|
|
8072
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
8062
8073
|
}
|
|
8063
8074
|
if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
|
|
8064
|
-
contents.ParallelizationFactor =
|
|
8075
|
+
contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
|
|
8065
8076
|
}
|
|
8066
8077
|
if (data.Queues !== undefined && data.Queues !== null) {
|
|
8067
8078
|
contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
|
|
@@ -8082,7 +8093,9 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (
|
|
|
8082
8093
|
contents.StartingPosition = __expectString(data.StartingPosition);
|
|
8083
8094
|
}
|
|
8084
8095
|
if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
|
|
8085
|
-
contents.StartingPositionTimestamp =
|
|
8096
|
+
contents.StartingPositionTimestamp = __expectNonNull(
|
|
8097
|
+
__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp))
|
|
8098
|
+
);
|
|
8086
8099
|
}
|
|
8087
8100
|
if (data.State !== undefined && data.State !== null) {
|
|
8088
8101
|
contents.State = __expectString(data.State);
|
|
@@ -8094,7 +8107,7 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (
|
|
|
8094
8107
|
contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
|
|
8095
8108
|
}
|
|
8096
8109
|
if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
|
|
8097
|
-
contents.TumblingWindowInSeconds =
|
|
8110
|
+
contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
|
|
8098
8111
|
}
|
|
8099
8112
|
if (data.UUID !== undefined && data.UUID !== null) {
|
|
8100
8113
|
contents.UUID = __expectString(data.UUID);
|
|
@@ -8220,12 +8233,12 @@ export const deserializeAws_restJson1UpdateFunctionCodeCommand = async (
|
|
|
8220
8233
|
Version: undefined,
|
|
8221
8234
|
VpcConfig: undefined,
|
|
8222
8235
|
};
|
|
8223
|
-
const data: any = await parseBody(output.body, context);
|
|
8236
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
8224
8237
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
8225
8238
|
contents.CodeSha256 = __expectString(data.CodeSha256);
|
|
8226
8239
|
}
|
|
8227
8240
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
8228
|
-
contents.CodeSize =
|
|
8241
|
+
contents.CodeSize = __expectLong(data.CodeSize);
|
|
8229
8242
|
}
|
|
8230
8243
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
8231
8244
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
@@ -8273,7 +8286,7 @@ export const deserializeAws_restJson1UpdateFunctionCodeCommand = async (
|
|
|
8273
8286
|
contents.MasterArn = __expectString(data.MasterArn);
|
|
8274
8287
|
}
|
|
8275
8288
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
8276
|
-
contents.MemorySize =
|
|
8289
|
+
contents.MemorySize = __expectInt32(data.MemorySize);
|
|
8277
8290
|
}
|
|
8278
8291
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
8279
8292
|
contents.PackageType = __expectString(data.PackageType);
|
|
@@ -8303,7 +8316,7 @@ export const deserializeAws_restJson1UpdateFunctionCodeCommand = async (
|
|
|
8303
8316
|
contents.StateReasonCode = __expectString(data.StateReasonCode);
|
|
8304
8317
|
}
|
|
8305
8318
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
8306
|
-
contents.Timeout =
|
|
8319
|
+
contents.Timeout = __expectInt32(data.Timeout);
|
|
8307
8320
|
}
|
|
8308
8321
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
8309
8322
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
@@ -8467,12 +8480,12 @@ export const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async
|
|
|
8467
8480
|
Version: undefined,
|
|
8468
8481
|
VpcConfig: undefined,
|
|
8469
8482
|
};
|
|
8470
|
-
const data: any = await parseBody(output.body, context);
|
|
8483
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
8471
8484
|
if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
|
|
8472
8485
|
contents.CodeSha256 = __expectString(data.CodeSha256);
|
|
8473
8486
|
}
|
|
8474
8487
|
if (data.CodeSize !== undefined && data.CodeSize !== null) {
|
|
8475
|
-
contents.CodeSize =
|
|
8488
|
+
contents.CodeSize = __expectLong(data.CodeSize);
|
|
8476
8489
|
}
|
|
8477
8490
|
if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
|
|
8478
8491
|
contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
|
|
@@ -8520,7 +8533,7 @@ export const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async
|
|
|
8520
8533
|
contents.MasterArn = __expectString(data.MasterArn);
|
|
8521
8534
|
}
|
|
8522
8535
|
if (data.MemorySize !== undefined && data.MemorySize !== null) {
|
|
8523
|
-
contents.MemorySize =
|
|
8536
|
+
contents.MemorySize = __expectInt32(data.MemorySize);
|
|
8524
8537
|
}
|
|
8525
8538
|
if (data.PackageType !== undefined && data.PackageType !== null) {
|
|
8526
8539
|
contents.PackageType = __expectString(data.PackageType);
|
|
@@ -8550,7 +8563,7 @@ export const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async
|
|
|
8550
8563
|
contents.StateReasonCode = __expectString(data.StateReasonCode);
|
|
8551
8564
|
}
|
|
8552
8565
|
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
8553
|
-
contents.Timeout =
|
|
8566
|
+
contents.Timeout = __expectInt32(data.Timeout);
|
|
8554
8567
|
}
|
|
8555
8568
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
8556
8569
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
@@ -8680,7 +8693,7 @@ export const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = as
|
|
|
8680
8693
|
MaximumEventAgeInSeconds: undefined,
|
|
8681
8694
|
MaximumRetryAttempts: undefined,
|
|
8682
8695
|
};
|
|
8683
|
-
const data: any = await parseBody(output.body, context);
|
|
8696
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
8684
8697
|
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
8685
8698
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
8686
8699
|
}
|
|
@@ -8688,13 +8701,13 @@ export const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = as
|
|
|
8688
8701
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
8689
8702
|
}
|
|
8690
8703
|
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
8691
|
-
contents.LastModified =
|
|
8704
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
8692
8705
|
}
|
|
8693
8706
|
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
8694
|
-
contents.MaximumEventAgeInSeconds =
|
|
8707
|
+
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
8695
8708
|
}
|
|
8696
8709
|
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
8697
|
-
contents.MaximumRetryAttempts =
|
|
8710
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
8698
8711
|
}
|
|
8699
8712
|
return Promise.resolve(contents);
|
|
8700
8713
|
};
|
|
@@ -9832,18 +9845,18 @@ const serializeAws_restJson1VpcConfig = (input: VpcConfig, context: __SerdeConte
|
|
|
9832
9845
|
|
|
9833
9846
|
const deserializeAws_restJson1AccountLimit = (output: any, context: __SerdeContext): AccountLimit => {
|
|
9834
9847
|
return {
|
|
9835
|
-
CodeSizeUnzipped:
|
|
9836
|
-
CodeSizeZipped:
|
|
9837
|
-
ConcurrentExecutions:
|
|
9838
|
-
TotalCodeSize:
|
|
9839
|
-
UnreservedConcurrentExecutions:
|
|
9848
|
+
CodeSizeUnzipped: __expectLong(output.CodeSizeUnzipped),
|
|
9849
|
+
CodeSizeZipped: __expectLong(output.CodeSizeZipped),
|
|
9850
|
+
ConcurrentExecutions: __expectInt32(output.ConcurrentExecutions),
|
|
9851
|
+
TotalCodeSize: __expectLong(output.TotalCodeSize),
|
|
9852
|
+
UnreservedConcurrentExecutions: __expectInt32(output.UnreservedConcurrentExecutions),
|
|
9840
9853
|
} as any;
|
|
9841
9854
|
};
|
|
9842
9855
|
|
|
9843
9856
|
const deserializeAws_restJson1AccountUsage = (output: any, context: __SerdeContext): AccountUsage => {
|
|
9844
9857
|
return {
|
|
9845
|
-
FunctionCount:
|
|
9846
|
-
TotalCodeSize:
|
|
9858
|
+
FunctionCount: __expectLong(output.FunctionCount),
|
|
9859
|
+
TotalCodeSize: __expectLong(output.TotalCodeSize),
|
|
9847
9860
|
} as any;
|
|
9848
9861
|
};
|
|
9849
9862
|
|
|
@@ -9857,7 +9870,7 @@ const deserializeAws_restJson1AdditionalVersionWeights = (
|
|
|
9857
9870
|
}
|
|
9858
9871
|
return {
|
|
9859
9872
|
...acc,
|
|
9860
|
-
[key]:
|
|
9873
|
+
[key]: __limitedParseDouble(value) as any,
|
|
9861
9874
|
};
|
|
9862
9875
|
}, {});
|
|
9863
9876
|
};
|
|
@@ -9955,7 +9968,7 @@ const deserializeAws_restJson1CompatibleRuntimes = (output: any, context: __Serd
|
|
|
9955
9968
|
|
|
9956
9969
|
const deserializeAws_restJson1Concurrency = (output: any, context: __SerdeContext): Concurrency => {
|
|
9957
9970
|
return {
|
|
9958
|
-
ReservedConcurrentExecutions:
|
|
9971
|
+
ReservedConcurrentExecutions: __expectInt32(output.ReservedConcurrentExecutions),
|
|
9959
9972
|
} as any;
|
|
9960
9973
|
};
|
|
9961
9974
|
|
|
@@ -10044,7 +10057,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (
|
|
|
10044
10057
|
context: __SerdeContext
|
|
10045
10058
|
): EventSourceMappingConfiguration => {
|
|
10046
10059
|
return {
|
|
10047
|
-
BatchSize:
|
|
10060
|
+
BatchSize: __expectInt32(output.BatchSize),
|
|
10048
10061
|
BisectBatchOnFunctionError: __expectBoolean(output.BisectBatchOnFunctionError),
|
|
10049
10062
|
DestinationConfig:
|
|
10050
10063
|
output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
@@ -10058,13 +10071,13 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (
|
|
|
10058
10071
|
: undefined,
|
|
10059
10072
|
LastModified:
|
|
10060
10073
|
output.LastModified !== undefined && output.LastModified !== null
|
|
10061
|
-
?
|
|
10074
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
|
|
10062
10075
|
: undefined,
|
|
10063
10076
|
LastProcessingResult: __expectString(output.LastProcessingResult),
|
|
10064
|
-
MaximumBatchingWindowInSeconds:
|
|
10065
|
-
MaximumRecordAgeInSeconds:
|
|
10066
|
-
MaximumRetryAttempts:
|
|
10067
|
-
ParallelizationFactor:
|
|
10077
|
+
MaximumBatchingWindowInSeconds: __expectInt32(output.MaximumBatchingWindowInSeconds),
|
|
10078
|
+
MaximumRecordAgeInSeconds: __expectInt32(output.MaximumRecordAgeInSeconds),
|
|
10079
|
+
MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
|
|
10080
|
+
ParallelizationFactor: __expectInt32(output.ParallelizationFactor),
|
|
10068
10081
|
Queues:
|
|
10069
10082
|
output.Queues !== undefined && output.Queues !== null
|
|
10070
10083
|
? deserializeAws_restJson1Queues(output.Queues, context)
|
|
@@ -10080,7 +10093,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (
|
|
|
10080
10093
|
StartingPosition: __expectString(output.StartingPosition),
|
|
10081
10094
|
StartingPositionTimestamp:
|
|
10082
10095
|
output.StartingPositionTimestamp !== undefined && output.StartingPositionTimestamp !== null
|
|
10083
|
-
?
|
|
10096
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartingPositionTimestamp)))
|
|
10084
10097
|
: undefined,
|
|
10085
10098
|
State: __expectString(output.State),
|
|
10086
10099
|
StateTransitionReason: __expectString(output.StateTransitionReason),
|
|
@@ -10088,7 +10101,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (
|
|
|
10088
10101
|
output.Topics !== undefined && output.Topics !== null
|
|
10089
10102
|
? deserializeAws_restJson1Topics(output.Topics, context)
|
|
10090
10103
|
: undefined,
|
|
10091
|
-
TumblingWindowInSeconds:
|
|
10104
|
+
TumblingWindowInSeconds: __expectInt32(output.TumblingWindowInSeconds),
|
|
10092
10105
|
UUID: __expectString(output.UUID),
|
|
10093
10106
|
} as any;
|
|
10094
10107
|
};
|
|
@@ -10148,7 +10161,7 @@ const deserializeAws_restJson1FunctionCodeLocation = (output: any, context: __Se
|
|
|
10148
10161
|
const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __SerdeContext): FunctionConfiguration => {
|
|
10149
10162
|
return {
|
|
10150
10163
|
CodeSha256: __expectString(output.CodeSha256),
|
|
10151
|
-
CodeSize:
|
|
10164
|
+
CodeSize: __expectLong(output.CodeSize),
|
|
10152
10165
|
DeadLetterConfig:
|
|
10153
10166
|
output.DeadLetterConfig !== undefined && output.DeadLetterConfig !== null
|
|
10154
10167
|
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
@@ -10179,7 +10192,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S
|
|
|
10179
10192
|
? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
|
|
10180
10193
|
: undefined,
|
|
10181
10194
|
MasterArn: __expectString(output.MasterArn),
|
|
10182
|
-
MemorySize:
|
|
10195
|
+
MemorySize: __expectInt32(output.MemorySize),
|
|
10183
10196
|
PackageType: __expectString(output.PackageType),
|
|
10184
10197
|
RevisionId: __expectString(output.RevisionId),
|
|
10185
10198
|
Role: __expectString(output.Role),
|
|
@@ -10189,7 +10202,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S
|
|
|
10189
10202
|
State: __expectString(output.State),
|
|
10190
10203
|
StateReason: __expectString(output.StateReason),
|
|
10191
10204
|
StateReasonCode: __expectString(output.StateReasonCode),
|
|
10192
|
-
Timeout:
|
|
10205
|
+
Timeout: __expectInt32(output.Timeout),
|
|
10193
10206
|
TracingConfig:
|
|
10194
10207
|
output.TracingConfig !== undefined && output.TracingConfig !== null
|
|
10195
10208
|
? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
|
|
@@ -10214,10 +10227,10 @@ const deserializeAws_restJson1FunctionEventInvokeConfig = (
|
|
|
10214
10227
|
FunctionArn: __expectString(output.FunctionArn),
|
|
10215
10228
|
LastModified:
|
|
10216
10229
|
output.LastModified !== undefined && output.LastModified !== null
|
|
10217
|
-
?
|
|
10230
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
|
|
10218
10231
|
: undefined,
|
|
10219
|
-
MaximumEventAgeInSeconds:
|
|
10220
|
-
MaximumRetryAttempts:
|
|
10232
|
+
MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds),
|
|
10233
|
+
MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
|
|
10221
10234
|
} as any;
|
|
10222
10235
|
};
|
|
10223
10236
|
|
|
@@ -10297,7 +10310,7 @@ const deserializeAws_restJson1ImageConfigResponse = (output: any, context: __Ser
|
|
|
10297
10310
|
const deserializeAws_restJson1Layer = (output: any, context: __SerdeContext): Layer => {
|
|
10298
10311
|
return {
|
|
10299
10312
|
Arn: __expectString(output.Arn),
|
|
10300
|
-
CodeSize:
|
|
10313
|
+
CodeSize: __expectLong(output.CodeSize),
|
|
10301
10314
|
SigningJobArn: __expectString(output.SigningJobArn),
|
|
10302
10315
|
SigningProfileVersionArn: __expectString(output.SigningProfileVersionArn),
|
|
10303
10316
|
} as any;
|
|
@@ -10342,7 +10355,7 @@ const deserializeAws_restJson1LayerVersionContentOutput = (
|
|
|
10342
10355
|
): LayerVersionContentOutput => {
|
|
10343
10356
|
return {
|
|
10344
10357
|
CodeSha256: __expectString(output.CodeSha256),
|
|
10345
|
-
CodeSize:
|
|
10358
|
+
CodeSize: __expectLong(output.CodeSize),
|
|
10346
10359
|
Location: __expectString(output.Location),
|
|
10347
10360
|
SigningJobArn: __expectString(output.SigningJobArn),
|
|
10348
10361
|
SigningProfileVersionArn: __expectString(output.SigningProfileVersionArn),
|
|
@@ -10370,7 +10383,7 @@ const deserializeAws_restJson1LayerVersionsListItem = (output: any, context: __S
|
|
|
10370
10383
|
Description: __expectString(output.Description),
|
|
10371
10384
|
LayerVersionArn: __expectString(output.LayerVersionArn),
|
|
10372
10385
|
LicenseInfo: __expectString(output.LicenseInfo),
|
|
10373
|
-
Version:
|
|
10386
|
+
Version: __expectLong(output.Version),
|
|
10374
10387
|
} as any;
|
|
10375
10388
|
};
|
|
10376
10389
|
|
|
@@ -10405,11 +10418,11 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = (
|
|
|
10405
10418
|
context: __SerdeContext
|
|
10406
10419
|
): ProvisionedConcurrencyConfigListItem => {
|
|
10407
10420
|
return {
|
|
10408
|
-
AllocatedProvisionedConcurrentExecutions:
|
|
10409
|
-
AvailableProvisionedConcurrentExecutions:
|
|
10421
|
+
AllocatedProvisionedConcurrentExecutions: __expectInt32(output.AllocatedProvisionedConcurrentExecutions),
|
|
10422
|
+
AvailableProvisionedConcurrentExecutions: __expectInt32(output.AvailableProvisionedConcurrentExecutions),
|
|
10410
10423
|
FunctionArn: __expectString(output.FunctionArn),
|
|
10411
10424
|
LastModified: __expectString(output.LastModified),
|
|
10412
|
-
RequestedProvisionedConcurrentExecutions:
|
|
10425
|
+
RequestedProvisionedConcurrentExecutions: __expectInt32(output.RequestedProvisionedConcurrentExecutions),
|
|
10413
10426
|
Status: __expectString(output.Status),
|
|
10414
10427
|
StatusReason: __expectString(output.StatusReason),
|
|
10415
10428
|
} as any;
|