From d6d7a0bdd4e97eda553609afd6eca261994f76cc Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Thu, 26 Aug 2021 15:54:00 +0000 Subject: [PATCH] chore: update generated code --- .../protocols/Aws_restJson1.ts | 22 +- .../client-acm-pca/protocols/Aws_json1_1.ts | 4 +- clients/client-acm/protocols/Aws_json1_1.ts | 4 +- .../protocols/Aws_json1_1.ts | 29 +- clients/client-amp/protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_restJson1.ts | 59 +- .../protocols/Aws_restJson1.ts | 26 +- .../protocols/Aws_restJson1.ts | 83 +-- .../protocols/Aws_restJson1.ts | 80 +-- .../client-appflow/protocols/Aws_restJson1.ts | 15 +- .../protocols/Aws_json1_1.ts | 28 +- .../protocols/Aws_json1_1.ts | 53 +- .../protocols/Aws_json1_1.ts | 19 +- .../client-apprunner/protocols/Aws_json1_0.ts | 20 +- .../client-appstream/protocols/Aws_json1_1.ts | 16 +- .../client-appsync/protocols/Aws_restJson1.ts | 21 +- .../client-athena/protocols/Aws_json1_1.ts | 23 +- .../protocols/Aws_restJson1.ts | 32 +- .../protocols/Aws_json1_1.ts | 29 +- .../protocols/Aws_query.ts | 92 +-- .../client-backup/protocols/Aws_restJson1.ts | 38 +- .../client-batch/protocols/Aws_restJson1.ts | 87 +-- .../client-braket/protocols/Aws_restJson1.ts | 6 +- .../client-budgets/protocols/Aws_json1_1.ts | 6 +- .../protocols/Aws_restJson1.ts | 4 +- .../client-chime/protocols/Aws_restJson1.ts | 26 +- .../client-cloud9/protocols/Aws_json1_1.ts | 18 +- .../protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_query.ts | 30 +- .../protocols/Aws_restXml.ts | 153 ++--- .../protocols/Aws_restJson1.ts | 32 +- .../client-cloudsearch/protocols/Aws_query.ts | 21 +- .../protocols/Aws_json1_1.ts | 41 +- .../protocols/Aws_json1_1.ts | 73 +- .../client-cloudwatch/protocols/Aws_query.ts | 17 +- .../protocols/Aws_restJson1.ts | 13 +- .../client-codebuild/protocols/Aws_json1_1.ts | 65 +- .../protocols/Aws_json1_1.ts | 23 +- .../protocols/Aws_json1_1.ts | 43 +- .../protocols/Aws_restJson1.ts | 15 +- .../protocols/Aws_restJson1.ts | 20 +- .../protocols/Aws_json1_1.ts | 26 +- .../protocols/Aws_json1_1.ts | 29 +- .../protocols/Aws_restJson1.ts | 27 +- .../protocols/Aws_json1_1.ts | 105 +-- .../protocols/Aws_json1_1.ts | 68 +- .../protocols/Aws_json1_0.ts | 65 +- .../protocols/Aws_json1_1.ts | 33 +- .../protocols/Aws_restJson1.ts | 14 +- .../client-connect/protocols/Aws_restJson1.ts | 28 +- .../protocols/Aws_json1_1.ts | 30 +- .../protocols/Aws_restJson1.ts | 23 +- .../protocols/Aws_json1_1.ts | 143 ++-- .../protocols/Aws_restJson1.ts | 33 +- .../protocols/Aws_restJson1.ts | 8 +- .../client-datasync/protocols/Aws_json1_1.ts | 28 +- clients/client-dax/protocols/Aws_json1_1.ts | 8 +- .../protocols/Aws_restJson1.ts | 8 +- .../protocols/Aws_json1_1.ts | 93 +-- .../protocols/Aws_restJson1.ts | 49 +- .../protocols/Aws_json1_1.ts | 23 +- .../protocols/Aws_json1_1.ts | 28 +- clients/client-dlm/protocols/Aws_restJson1.ts | 16 +- clients/client-docdb/protocols/Aws_query.ts | 26 +- .../protocols/Aws_json1_0.ts | 4 +- .../client-dynamodb/protocols/Aws_json1_0.ts | 91 +-- clients/client-ebs/protocols/Aws_restJson1.ts | 23 +- clients/client-ec2/protocols/Aws_ec2.ts | 375 +++++------ .../protocols/Aws_json1_1.ts | 14 +- clients/client-ecr/protocols/Aws_json1_1.ts | 19 +- clients/client-ecs/protocols/Aws_json1_1.ts | 125 ++-- clients/client-efs/protocols/Aws_restJson1.ts | 33 +- clients/client-eks/protocols/Aws_restJson1.ts | 14 +- .../protocols/Aws_query.ts | 49 +- .../protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_query.ts | 29 +- .../protocols/Aws_query.ts | 25 +- .../protocols/Aws_restJson1.ts | 27 +- .../client-elasticache/protocols/Aws_query.ts | 30 +- .../protocols/Aws_restJson1.ts | 49 +- clients/client-emr/protocols/Aws_json1_1.ts | 81 +-- .../protocols/Aws_json1_1.ts | 41 +- .../protocols/Aws_restJson1.ts | 4 +- .../client-firehose/protocols/Aws_json1_1.ts | 46 +- clients/client-fms/protocols/Aws_json1_1.ts | 21 +- .../client-forecast/protocols/Aws_json1_1.ts | 59 +- .../protocols/Aws_json1_1.ts | 4 +- .../protocols/Aws_json1_1.ts | 26 +- clients/client-fsx/protocols/Aws_json1_1.ts | 25 +- .../client-gamelift/protocols/Aws_json1_1.ts | 94 +-- .../client-glacier/protocols/Aws_restJson1.ts | 24 +- .../protocols/Aws_json1_1.ts | 30 +- clients/client-glue/protocols/Aws_json1_1.ts | 227 +++---- .../protocols/Aws_restJson1.ts | 20 +- .../protocols/Aws_restJson1.ts | 35 +- .../protocols/Aws_restJson1.ts | 34 +- .../protocols/Aws_restJson1.ts | 43 +- .../client-health/protocols/Aws_json1_1.ts | 6 +- .../protocols/Aws_restJson1.ts | 25 +- clients/client-iam/protocols/Aws_query.ts | 32 +- .../protocols/Aws_restJson1.ts | 10 +- .../client-inspector/protocols/Aws_json1_1.ts | 27 +- .../protocols/Aws_restJson1.ts | 8 +- .../protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_restJson1.ts | 26 +- .../protocols/Aws_restJson1.ts | 63 +- clients/client-iot/protocols/Aws_restJson1.ts | 195 +++--- .../protocols/Aws_restJson1.ts | 20 +- .../protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_restJson1.ts | 10 +- .../protocols/Aws_json1_1.ts | 4 +- .../protocols/Aws_restJson1.ts | 25 +- .../protocols/Aws_json1_1.ts | 20 +- clients/client-ivs/protocols/Aws_restJson1.ts | 6 +- .../client-kafka/protocols/Aws_restJson1.ts | 25 +- .../client-kendra/protocols/Aws_json1_1.ts | 73 +- .../protocols/Aws_json1_1.ts | 53 +- .../protocols/Aws_json1_1.ts | 7 +- .../protocols/Aws_restJson1.ts | 6 +- .../protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_restJson1.ts | 6 +- .../client-kinesis/protocols/Aws_json1_1.ts | 25 +- clients/client-kms/protocols/Aws_json1_1.ts | 6 +- .../client-lambda/protocols/Aws_restJson1.ts | 169 ++--- .../protocols/Aws_restJson1.ts | 28 +- .../protocols/Aws_restJson1.ts | 42 +- .../protocols/Aws_restJson1.ts | 10 +- .../protocols/Aws_restJson1.ts | 18 +- .../protocols/Aws_json1_1.ts | 25 +- .../client-lightsail/protocols/Aws_json1_1.ts | 132 ++-- .../protocols/Aws_restJson1.ts | 26 +- .../protocols/Aws_json1_0.ts | 6 +- .../protocols/Aws_restJson1.ts | 28 +- .../protocols/Aws_restJson1.ts | 26 +- .../protocols/Aws_json1_1.ts | 61 +- .../client-macie2/protocols/Aws_restJson1.ts | 145 ++-- .../protocols/Aws_restJson1.ts | 12 +- .../protocols/Aws_json1_1.ts | 12 +- .../protocols/Aws_json1_1.ts | 6 +- .../protocols/Aws_restJson1.ts | 46 +- .../protocols/Aws_restJson1.ts | 622 +++++++++--------- .../protocols/Aws_restJson1.ts | 519 +++++++-------- .../protocols/Aws_restJson1.ts | 18 +- .../protocols/Aws_restJson1.ts | 54 +- .../protocols/Aws_restJson1.ts | 10 +- .../protocols/Aws_json1_1.ts | 4 +- .../protocols/Aws_restJson1.ts | 35 +- .../client-memorydb/protocols/Aws_json1_1.ts | 24 +- clients/client-mgn/protocols/Aws_restJson1.ts | 32 +- .../protocols/Aws_json1_1.ts | 8 +- .../protocols/Aws_json1_1.ts | 4 +- clients/client-mq/protocols/Aws_restJson1.ts | 16 +- clients/client-mturk/protocols/Aws_json1_1.ts | 43 +- .../client-mwaa/protocols/Aws_restJson1.ts | 8 +- clients/client-neptune/protocols/Aws_query.ts | 52 +- .../protocols/Aws_json1_0.ts | 14 +- .../protocols/Aws_restJson1.ts | 12 +- .../client-nimble/protocols/Aws_restJson1.ts | 4 +- .../client-opsworks/protocols/Aws_json1_1.ts | 98 +-- .../protocols/Aws_json1_1.ts | 10 +- .../protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_json1_1.ts | 30 +- clients/client-pi/protocols/Aws_json1_1.ts | 8 +- .../protocols/Aws_restJson1.ts | 53 +- .../protocols/Aws_restJson1.ts | 124 ++-- .../client-polly/protocols/Aws_restJson1.ts | 12 +- .../protocols/Aws_json1_0.ts | 8 +- .../protocols/Aws_restJson1.ts | 69 +- .../protocols/Aws_restJson1.ts | 52 +- clients/client-rds/protocols/Aws_query.ts | 123 ++-- .../protocols/Aws_json1_1.ts | 41 +- .../client-redshift/protocols/Aws_query.ts | 85 +-- .../protocols/Aws_json1_1.ts | 159 ++--- .../protocols/Aws_json1_1.ts | 7 +- .../protocols/Aws_restJson1.ts | 61 +- .../protocols/Aws_json1_1.ts | 4 +- .../client-route-53/protocols/Aws_restXml.ts | 83 +-- .../protocols/Aws_json1_0.ts | 6 +- .../protocols/Aws_restJson1.ts | 10 +- .../protocols/Aws_json1_1.ts | 34 +- .../protocols/Aws_restXml.ts | 31 +- clients/client-s3/protocols/Aws_restXml.ts | 71 +- .../protocols/Aws_restJson1.ts | 4 +- .../client-sagemaker/protocols/Aws_json1_1.ts | 218 +++--- .../protocols/Aws_restJson1.ts | 8 +- .../client-schemas/protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_json1_1.ts | 4 +- .../protocols/Aws_restJson1.ts | 369 +++++------ .../protocols/Aws_restJson1.ts | 10 +- .../protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_json1_1.ts | 6 +- .../protocols/Aws_json1_1.ts | 12 +- .../protocols/Aws_json1_1.ts | 22 +- clients/client-ses/protocols/Aws_query.ts | 10 +- .../client-sesv2/protocols/Aws_restJson1.ts | 57 +- clients/client-sfn/protocols/Aws_json1_0.ts | 25 +- .../client-shield/protocols/Aws_json1_1.ts | 31 +- .../client-signer/protocols/Aws_restJson1.ts | 10 +- clients/client-sms/protocols/Aws_json1_1.ts | 18 +- .../protocols/Aws_restJson1.ts | 17 +- .../client-snowball/protocols/Aws_json1_1.ts | 17 +- .../protocols/Aws_json1_1.ts | 10 +- .../protocols/Aws_restJson1.ts | 8 +- clients/client-ssm/protocols/Aws_json1_1.ts | 159 ++--- .../protocols/Aws_restJson1.ts | 16 +- clients/client-sso/protocols/Aws_restJson1.ts | 4 +- .../protocols/Aws_json1_1.ts | 107 +-- clients/client-sts/protocols/Aws_query.ts | 10 +- .../client-support/protocols/Aws_json1_1.ts | 18 +- clients/client-swf/protocols/Aws_json1_0.ts | 165 ++--- .../protocols/Aws_restJson1.ts | 13 +- .../client-textract/protocols/Aws_json1_1.ts | 42 +- .../protocols/Aws_json1_0.ts | 12 +- .../protocols/Aws_json1_0.ts | 18 +- .../protocols/Aws_restJson1.ts | 38 +- .../protocols/Aws_json1_1.ts | 47 +- .../client-transfer/protocols/Aws_json1_1.ts | 17 +- .../client-translate/protocols/Aws_json1_1.ts | 24 +- .../protocols/Aws_json1_1.ts | 13 +- clients/client-waf/protocols/Aws_json1_1.ts | 13 +- clients/client-wafv2/protocols/Aws_json1_1.ts | 33 +- .../protocols/Aws_restJson1.ts | 22 +- .../protocols/Aws_restJson1.ts | 14 +- .../client-workmail/protocols/Aws_json1_1.ts | 14 +- .../protocols/Aws_json1_1.ts | 8 +- .../client-xray/protocols/Aws_restJson1.ts | 87 +-- protocol_tests/aws-ec2/protocols/Aws_ec2.ts | 15 +- .../aws-json-10/protocols/Aws_json1_0.ts | 13 +- .../aws-json/protocols/Aws_json1_1.ts | 24 +- .../aws-query/protocols/Aws_query.ts | 15 +- .../aws-restjson/protocols/Aws_restJson1.ts | 48 +- .../tests/functional/restjson1.spec.ts | 4 +- .../aws-restxml/protocols/Aws_restXml.ts | 44 +- .../tests/functional/restxml.spec.ts | 4 +- 237 files changed, 5135 insertions(+), 4988 deletions(-) diff --git a/clients/client-accessanalyzer/protocols/Aws_restJson1.ts b/clients/client-accessanalyzer/protocols/Aws_restJson1.ts index a2c732ccc4db1..98c80a4ecb265 100644 --- a/clients/client-accessanalyzer/protocols/Aws_restJson1.ts +++ b/clients/client-accessanalyzer/protocols/Aws_restJson1.ts @@ -112,10 +112,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3505,7 +3505,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -3579,7 +3579,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -4647,8 +4647,8 @@ const deserializeAws_restJson1NetworkOriginConfiguration = ( }; const deserializeAws_restJson1PathElement = (output: any, context: __SerdeContext): PathElement => { - if (__expectInt(output.index) !== undefined) { - return { index: __expectInt(output.index) as any }; + if (__expectInt32(output.index) !== undefined) { + return { index: __expectInt32(output.index) as any }; } if (__expectString(output.key) !== undefined) { return { key: __expectString(output.key) as any }; @@ -4699,9 +4699,9 @@ const deserializeAws_restJson1PolicyGenerationList = (output: any, context: __Se const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): Position => { return { - column: __expectInt(output.column), - line: __expectInt(output.line), - offset: __expectInt(output.offset), + column: __expectInt32(output.column), + line: __expectInt32(output.line), + offset: __expectInt32(output.offset), } as any; }; @@ -4866,8 +4866,8 @@ const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeConte const deserializeAws_restJson1Substring = (output: any, context: __SerdeContext): Substring => { return { - length: __expectInt(output.length), - start: __expectInt(output.start), + length: __expectInt32(output.length), + start: __expectInt32(output.start), } as any; }; diff --git a/clients/client-acm-pca/protocols/Aws_json1_1.ts b/clients/client-acm-pca/protocols/Aws_json1_1.ts index 95cfc40a82646..2970f2fd652b7 100644 --- a/clients/client-acm-pca/protocols/Aws_json1_1.ts +++ b/clients/client-acm-pca/protocols/Aws_json1_1.ts @@ -141,7 +141,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3374,7 +3374,7 @@ const deserializeAws_json1_1CrlConfiguration = (output: any, context: __SerdeCon return { CustomCname: __expectString(output.CustomCname), Enabled: __expectBoolean(output.Enabled), - ExpirationInDays: __expectInt(output.ExpirationInDays), + ExpirationInDays: __expectInt32(output.ExpirationInDays), S3BucketName: __expectString(output.S3BucketName), S3ObjectAcl: __expectString(output.S3ObjectAcl), } as any; diff --git a/clients/client-acm/protocols/Aws_json1_1.ts b/clients/client-acm/protocols/Aws_json1_1.ts index 74499238bb691..43ccd265c418f 100644 --- a/clients/client-acm/protocols/Aws_json1_1.ts +++ b/clients/client-acm/protocols/Aws_json1_1.ts @@ -94,7 +94,7 @@ import { ValidationException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -2131,7 +2131,7 @@ const deserializeAws_json1_1ExpiryEventsConfiguration = ( context: __SerdeContext ): ExpiryEventsConfiguration => { return { - DaysBeforeExpiry: __expectInt(output.DaysBeforeExpiry), + DaysBeforeExpiry: __expectInt32(output.DaysBeforeExpiry), } as any; }; diff --git a/clients/client-alexa-for-business/protocols/Aws_json1_1.ts b/clients/client-alexa-for-business/protocols/Aws_json1_1.ts index cf58c7b6ea80a..f8c2d7dd4c04a 100644 --- a/clients/client-alexa-for-business/protocols/Aws_json1_1.ts +++ b/clients/client-alexa-for-business/protocols/Aws_json1_1.ts @@ -476,7 +476,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -8947,7 +8948,7 @@ const deserializeAws_json1_1BusinessReportScheduleList = ( const deserializeAws_json1_1Category = (output: any, context: __SerdeContext): Category => { return { - CategoryId: __expectInt(output.CategoryId), + CategoryId: __expectLong(output.CategoryId), CategoryName: __expectString(output.CategoryName), } as any; }; @@ -9412,7 +9413,7 @@ const deserializeAws_json1_1EndOfMeetingReminderMinutesList = (output: any, cont if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -9629,7 +9630,7 @@ const deserializeAws_json1_1GetSkillGroupResponse = (output: any, context: __Ser const deserializeAws_json1_1InstantBooking = (output: any, context: __SerdeContext): InstantBooking => { return { - DurationInMinutes: __expectInt(output.DurationInMinutes), + DurationInMinutes: __expectInt32(output.DurationInMinutes), Enabled: __expectBoolean(output.Enabled), } as any; }; @@ -9927,7 +9928,7 @@ const deserializeAws_json1_1Profile = (output: any, context: __SerdeContext): Pr DistanceUnit: __expectString(output.DistanceUnit), IsDefault: __expectBoolean(output.IsDefault), Locale: __expectString(output.Locale), - MaxVolumeLimit: __expectInt(output.MaxVolumeLimit), + MaxVolumeLimit: __expectInt32(output.MaxVolumeLimit), MeetingRoomConfiguration: output.MeetingRoomConfiguration !== undefined && output.MeetingRoomConfiguration !== null ? deserializeAws_json1_1MeetingRoomConfiguration(output.MeetingRoomConfiguration, context) @@ -10020,7 +10021,7 @@ const deserializeAws_json1_1RejectSkillResponse = (output: any, context: __Serde const deserializeAws_json1_1RequireCheckIn = (output: any, context: __SerdeContext): RequireCheckIn => { return { Enabled: __expectBoolean(output.Enabled), - ReleaseAfterMinutes: __expectInt(output.ReleaseAfterMinutes), + ReleaseAfterMinutes: __expectInt32(output.ReleaseAfterMinutes), } as any; }; @@ -10141,7 +10142,7 @@ const deserializeAws_json1_1SearchAddressBooksResponse = ( ? deserializeAws_json1_1AddressBookDataList(output.AddressBooks, context) : undefined, NextToken: __expectString(output.NextToken), - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -10152,7 +10153,7 @@ const deserializeAws_json1_1SearchContactsResponse = (output: any, context: __Se ? deserializeAws_json1_1ContactDataList(output.Contacts, context) : undefined, NextToken: __expectString(output.NextToken), - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -10163,7 +10164,7 @@ const deserializeAws_json1_1SearchDevicesResponse = (output: any, context: __Ser ? deserializeAws_json1_1DeviceDataList(output.Devices, context) : undefined, NextToken: __expectString(output.NextToken), - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -10177,7 +10178,7 @@ const deserializeAws_json1_1SearchNetworkProfilesResponse = ( ? deserializeAws_json1_1NetworkProfileDataList(output.NetworkProfiles, context) : undefined, NextToken: __expectString(output.NextToken), - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -10188,7 +10189,7 @@ const deserializeAws_json1_1SearchProfilesResponse = (output: any, context: __Se output.Profiles !== undefined && output.Profiles !== null ? deserializeAws_json1_1ProfileDataList(output.Profiles, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -10199,7 +10200,7 @@ const deserializeAws_json1_1SearchRoomsResponse = (output: any, context: __Serde output.Rooms !== undefined && output.Rooms !== null ? deserializeAws_json1_1RoomDataList(output.Rooms, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -10213,14 +10214,14 @@ const deserializeAws_json1_1SearchSkillGroupsResponse = ( output.SkillGroups !== undefined && output.SkillGroups !== null ? deserializeAws_json1_1SkillGroupDataList(output.SkillGroups, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; const deserializeAws_json1_1SearchUsersResponse = (output: any, context: __SerdeContext): SearchUsersResponse => { return { NextToken: __expectString(output.NextToken), - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), Users: output.Users !== undefined && output.Users !== null ? deserializeAws_json1_1UserDataList(output.Users, context) diff --git a/clients/client-amp/protocols/Aws_restJson1.ts b/clients/client-amp/protocols/Aws_restJson1.ts index 5d06ef08ef4bd..be20f03edd852 100644 --- a/clients/client-amp/protocols/Aws_restJson1.ts +++ b/clients/client-amp/protocols/Aws_restJson1.ts @@ -23,7 +23,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -691,7 +691,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -773,7 +773,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( serviceCode: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { diff --git a/clients/client-amplifybackend/protocols/Aws_restJson1.ts b/clients/client-amplifybackend/protocols/Aws_restJson1.ts index da7722ca4c930..23a5f5eec4ea5 100644 --- a/clients/client-amplifybackend/protocols/Aws_restJson1.ts +++ b/clients/client-amplifybackend/protocols/Aws_restJson1.ts @@ -80,7 +80,7 @@ import { expectBoolean as __expectBoolean, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -4063,7 +4063,7 @@ const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = ( return { CognitoUserPoolId: __expectString(output.cognitoUserPoolId), Description: __expectString(output.description), - ExpirationTime: __limitedParseFloat(output.expirationTime), + ExpirationTime: __limitedParseDouble(output.expirationTime), OpenIDAuthTTL: __expectString(output.openIDAuthTTL), OpenIDClientId: __expectString(output.openIDClientId), OpenIDIatTTL: __expectString(output.openIDIatTTL), @@ -4224,7 +4224,7 @@ const deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = ( output.additionalConstraints !== undefined && output.additionalConstraints !== null ? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context) : undefined, - MinimumLength: __limitedParseFloat(output.minimumLength), + MinimumLength: __limitedParseDouble(output.minimumLength), } as any; }; diff --git a/clients/client-api-gateway/protocols/Aws_restJson1.ts b/clients/client-api-gateway/protocols/Aws_restJson1.ts index dc422fb6428ce..4df776aeab586 100644 --- a/clients/client-api-gateway/protocols/Aws_restJson1.ts +++ b/clients/client-api-gateway/protocols/Aws_restJson1.ts @@ -277,10 +277,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -5299,7 +5300,7 @@ export const deserializeAws_restJson1CreateAuthorizerCommand = async ( contents.authorizerCredentials = __expectString(data.authorizerCredentials); } if (data.authorizerResultTtlInSeconds !== undefined && data.authorizerResultTtlInSeconds !== null) { - contents.authorizerResultTtlInSeconds = __expectInt(data.authorizerResultTtlInSeconds); + contents.authorizerResultTtlInSeconds = __expectInt32(data.authorizerResultTtlInSeconds); } if (data.authorizerUri !== undefined && data.authorizerUri !== null) { contents.authorizerUri = __expectString(data.authorizerUri); @@ -6323,7 +6324,7 @@ export const deserializeAws_restJson1CreateRestApiCommand = async ( contents.id = __expectString(data.id); } if (data.minimumCompressionSize !== undefined && data.minimumCompressionSize !== null) { - contents.minimumCompressionSize = __expectInt(data.minimumCompressionSize); + contents.minimumCompressionSize = __expectInt32(data.minimumCompressionSize); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -9073,7 +9074,7 @@ export const deserializeAws_restJson1GetAuthorizerCommand = async ( contents.authorizerCredentials = __expectString(data.authorizerCredentials); } if (data.authorizerResultTtlInSeconds !== undefined && data.authorizerResultTtlInSeconds !== null) { - contents.authorizerResultTtlInSeconds = __expectInt(data.authorizerResultTtlInSeconds); + contents.authorizerResultTtlInSeconds = __expectInt32(data.authorizerResultTtlInSeconds); } if (data.authorizerUri !== undefined && data.authorizerUri !== null) { contents.authorizerUri = __expectString(data.authorizerUri); @@ -10608,7 +10609,7 @@ export const deserializeAws_restJson1GetIntegrationCommand = async ( contents.requestTemplates = deserializeAws_restJson1MapOfStringToString(data.requestTemplates, context); } if (data.timeoutInMillis !== undefined && data.timeoutInMillis !== null) { - contents.timeoutInMillis = __expectInt(data.timeoutInMillis); + contents.timeoutInMillis = __expectInt32(data.timeoutInMillis); } if (data.tlsConfig !== undefined && data.tlsConfig !== null) { contents.tlsConfig = deserializeAws_restJson1TlsConfig(data.tlsConfig, context); @@ -11583,7 +11584,7 @@ export const deserializeAws_restJson1GetRestApiCommand = async ( contents.id = __expectString(data.id); } if (data.minimumCompressionSize !== undefined && data.minimumCompressionSize !== null) { - contents.minimumCompressionSize = __expectInt(data.minimumCompressionSize); + contents.minimumCompressionSize = __expectInt32(data.minimumCompressionSize); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -13139,7 +13140,7 @@ export const deserializeAws_restJson1ImportRestApiCommand = async ( contents.id = __expectString(data.id); } if (data.minimumCompressionSize !== undefined && data.minimumCompressionSize !== null) { - contents.minimumCompressionSize = __expectInt(data.minimumCompressionSize); + contents.minimumCompressionSize = __expectInt32(data.minimumCompressionSize); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -13394,7 +13395,7 @@ export const deserializeAws_restJson1PutIntegrationCommand = async ( contents.requestTemplates = deserializeAws_restJson1MapOfStringToString(data.requestTemplates, context); } if (data.timeoutInMillis !== undefined && data.timeoutInMillis !== null) { - contents.timeoutInMillis = __expectInt(data.timeoutInMillis); + contents.timeoutInMillis = __expectInt32(data.timeoutInMillis); } if (data.tlsConfig !== undefined && data.tlsConfig !== null) { contents.tlsConfig = deserializeAws_restJson1TlsConfig(data.tlsConfig, context); @@ -13872,7 +13873,7 @@ export const deserializeAws_restJson1PutRestApiCommand = async ( contents.id = __expectString(data.id); } if (data.minimumCompressionSize !== undefined && data.minimumCompressionSize !== null) { - contents.minimumCompressionSize = __expectInt(data.minimumCompressionSize); + contents.minimumCompressionSize = __expectInt32(data.minimumCompressionSize); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -14085,10 +14086,10 @@ export const deserializeAws_restJson1TestInvokeAuthorizerCommand = async ( contents.claims = deserializeAws_restJson1MapOfStringToString(data.claims, context); } if (data.clientStatus !== undefined && data.clientStatus !== null) { - contents.clientStatus = __expectInt(data.clientStatus); + contents.clientStatus = __expectInt32(data.clientStatus); } if (data.latency !== undefined && data.latency !== null) { - contents.latency = __expectInt(data.latency); + contents.latency = __expectLong(data.latency); } if (data.log !== undefined && data.log !== null) { contents.log = __expectString(data.log); @@ -14187,7 +14188,7 @@ export const deserializeAws_restJson1TestInvokeMethodCommand = async ( contents.headers = deserializeAws_restJson1MapOfStringToString(data.headers, context); } if (data.latency !== undefined && data.latency !== null) { - contents.latency = __expectInt(data.latency); + contents.latency = __expectLong(data.latency); } if (data.log !== undefined && data.log !== null) { contents.log = __expectString(data.log); @@ -14196,7 +14197,7 @@ export const deserializeAws_restJson1TestInvokeMethodCommand = async ( contents.multiValueHeaders = deserializeAws_restJson1MapOfStringToList(data.multiValueHeaders, context); } if (data.status !== undefined && data.status !== null) { - contents.status = __expectInt(data.status); + contents.status = __expectInt32(data.status); } return Promise.resolve(contents); }; @@ -14587,7 +14588,7 @@ export const deserializeAws_restJson1UpdateAuthorizerCommand = async ( contents.authorizerCredentials = __expectString(data.authorizerCredentials); } if (data.authorizerResultTtlInSeconds !== undefined && data.authorizerResultTtlInSeconds !== null) { - contents.authorizerResultTtlInSeconds = __expectInt(data.authorizerResultTtlInSeconds); + contents.authorizerResultTtlInSeconds = __expectInt32(data.authorizerResultTtlInSeconds); } if (data.authorizerUri !== undefined && data.authorizerUri !== null) { contents.authorizerUri = __expectString(data.authorizerUri); @@ -15477,7 +15478,7 @@ export const deserializeAws_restJson1UpdateIntegrationCommand = async ( contents.requestTemplates = deserializeAws_restJson1MapOfStringToString(data.requestTemplates, context); } if (data.timeoutInMillis !== undefined && data.timeoutInMillis !== null) { - contents.timeoutInMillis = __expectInt(data.timeoutInMillis); + contents.timeoutInMillis = __expectInt32(data.timeoutInMillis); } if (data.tlsConfig !== undefined && data.tlsConfig !== null) { contents.tlsConfig = deserializeAws_restJson1TlsConfig(data.tlsConfig, context); @@ -16236,7 +16237,7 @@ export const deserializeAws_restJson1UpdateRestApiCommand = async ( contents.id = __expectString(data.id); } if (data.minimumCompressionSize !== undefined && data.minimumCompressionSize !== null) { - contents.minimumCompressionSize = __expectInt(data.minimumCompressionSize); + contents.minimumCompressionSize = __expectInt32(data.minimumCompressionSize); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -17209,7 +17210,7 @@ const deserializeAws_restJson1Authorizer = (output: any, context: __SerdeContext return { authType: __expectString(output.authType), authorizerCredentials: __expectString(output.authorizerCredentials), - authorizerResultTtlInSeconds: __expectInt(output.authorizerResultTtlInSeconds), + authorizerResultTtlInSeconds: __expectInt32(output.authorizerResultTtlInSeconds), authorizerUri: __expectString(output.authorizerUri), id: __expectString(output.id), identitySource: __expectString(output.identitySource), @@ -17234,7 +17235,7 @@ const deserializeAws_restJson1BasePathMapping = (output: any, context: __SerdeCo const deserializeAws_restJson1CanarySettings = (output: any, context: __SerdeContext): CanarySettings => { return { deploymentId: __expectString(output.deploymentId), - percentTraffic: __limitedParseFloat(output.percentTraffic), + percentTraffic: __limitedParseDouble(output.percentTraffic), stageVariableOverrides: output.stageVariableOverrides !== undefined && output.stageVariableOverrides !== null ? deserializeAws_restJson1MapOfStringToString(output.stageVariableOverrides, context) @@ -17401,7 +17402,7 @@ const deserializeAws_restJson1Integration = (output: any, context: __SerdeContex output.requestTemplates !== undefined && output.requestTemplates !== null ? deserializeAws_restJson1MapOfStringToString(output.requestTemplates, context) : undefined, - timeoutInMillis: __expectInt(output.timeoutInMillis), + timeoutInMillis: __expectInt32(output.timeoutInMillis), tlsConfig: output.tlsConfig !== undefined && output.tlsConfig !== null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) @@ -17572,7 +17573,7 @@ const deserializeAws_restJson1ListOfLong = (output: any, context: __SerdeContext if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectLong(entry) as any; }); }; @@ -17906,14 +17907,14 @@ const deserializeAws_restJson1MethodResponse = (output: any, context: __SerdeCon const deserializeAws_restJson1MethodSetting = (output: any, context: __SerdeContext): MethodSetting => { return { cacheDataEncrypted: __expectBoolean(output.cacheDataEncrypted), - cacheTtlInSeconds: __expectInt(output.cacheTtlInSeconds), + cacheTtlInSeconds: __expectInt32(output.cacheTtlInSeconds), cachingEnabled: __expectBoolean(output.cachingEnabled), dataTraceEnabled: __expectBoolean(output.dataTraceEnabled), loggingLevel: __expectString(output.loggingLevel), metricsEnabled: __expectBoolean(output.metricsEnabled), requireAuthorizationForCacheControl: __expectBoolean(output.requireAuthorizationForCacheControl), - throttlingBurstLimit: __expectInt(output.throttlingBurstLimit), - throttlingRateLimit: __limitedParseFloat(output.throttlingRateLimit), + throttlingBurstLimit: __expectInt32(output.throttlingBurstLimit), + throttlingRateLimit: __limitedParseDouble(output.throttlingRateLimit), unauthorizedCacheControlHeaderStrategy: __expectString(output.unauthorizedCacheControlHeaderStrategy), } as any; }; @@ -17969,8 +17970,8 @@ const deserializeAws_restJson1PathToMapOfMethodSnapshot = ( const deserializeAws_restJson1QuotaSettings = (output: any, context: __SerdeContext): QuotaSettings => { return { - limit: __expectInt(output.limit), - offset: __expectInt(output.offset), + limit: __expectInt32(output.limit), + offset: __expectInt32(output.offset), period: __expectString(output.period), } as any; }; @@ -18015,7 +18016,7 @@ const deserializeAws_restJson1RestApi = (output: any, context: __SerdeContext): ? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context) : undefined, id: __expectString(output.id), - minimumCompressionSize: __expectInt(output.minimumCompressionSize), + minimumCompressionSize: __expectInt32(output.minimumCompressionSize), name: __expectString(output.name), policy: __expectString(output.policy), tags: @@ -18100,8 +18101,8 @@ const deserializeAws_restJson1Stage = (output: any, context: __SerdeContext): St const deserializeAws_restJson1ThrottleSettings = (output: any, context: __SerdeContext): ThrottleSettings => { return { - burstLimit: __expectInt(output.burstLimit), - rateLimit: __limitedParseFloat(output.rateLimit), + burstLimit: __expectInt32(output.burstLimit), + rateLimit: __limitedParseDouble(output.rateLimit), } as any; }; diff --git a/clients/client-apigatewayv2/protocols/Aws_restJson1.ts b/clients/client-apigatewayv2/protocols/Aws_restJson1.ts index 32fdfd9c98659..3840cf9f84784 100644 --- a/clients/client-apigatewayv2/protocols/Aws_restJson1.ts +++ b/clients/client-apigatewayv2/protocols/Aws_restJson1.ts @@ -141,10 +141,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -3418,7 +3418,7 @@ export const deserializeAws_restJson1CreateAuthorizerCommand = async ( contents.AuthorizerPayloadFormatVersion = __expectString(data.authorizerPayloadFormatVersion); } if (data.authorizerResultTtlInSeconds !== undefined && data.authorizerResultTtlInSeconds !== null) { - contents.AuthorizerResultTtlInSeconds = __expectInt(data.authorizerResultTtlInSeconds); + contents.AuthorizerResultTtlInSeconds = __expectInt32(data.authorizerResultTtlInSeconds); } if (data.authorizerType !== undefined && data.authorizerType !== null) { contents.AuthorizerType = __expectString(data.authorizerType); @@ -3802,7 +3802,7 @@ export const deserializeAws_restJson1CreateIntegrationCommand = async ( contents.TemplateSelectionExpression = __expectString(data.templateSelectionExpression); } if (data.timeoutInMillis !== undefined && data.timeoutInMillis !== null) { - contents.TimeoutInMillis = __expectInt(data.timeoutInMillis); + contents.TimeoutInMillis = __expectInt32(data.timeoutInMillis); } if (data.tlsConfig !== undefined && data.tlsConfig !== null) { contents.TlsConfig = deserializeAws_restJson1TlsConfig(data.tlsConfig, context); @@ -5922,7 +5922,7 @@ export const deserializeAws_restJson1GetAuthorizerCommand = async ( contents.AuthorizerPayloadFormatVersion = __expectString(data.authorizerPayloadFormatVersion); } if (data.authorizerResultTtlInSeconds !== undefined && data.authorizerResultTtlInSeconds !== null) { - contents.AuthorizerResultTtlInSeconds = __expectInt(data.authorizerResultTtlInSeconds); + contents.AuthorizerResultTtlInSeconds = __expectInt32(data.authorizerResultTtlInSeconds); } if (data.authorizerType !== undefined && data.authorizerType !== null) { contents.AuthorizerType = __expectString(data.authorizerType); @@ -6475,7 +6475,7 @@ export const deserializeAws_restJson1GetIntegrationCommand = async ( contents.TemplateSelectionExpression = __expectString(data.templateSelectionExpression); } if (data.timeoutInMillis !== undefined && data.timeoutInMillis !== null) { - contents.TimeoutInMillis = __expectInt(data.timeoutInMillis); + contents.TimeoutInMillis = __expectInt32(data.timeoutInMillis); } if (data.tlsConfig !== undefined && data.tlsConfig !== null) { contents.TlsConfig = deserializeAws_restJson1TlsConfig(data.tlsConfig, context); @@ -8498,7 +8498,7 @@ export const deserializeAws_restJson1UpdateAuthorizerCommand = async ( contents.AuthorizerPayloadFormatVersion = __expectString(data.authorizerPayloadFormatVersion); } if (data.authorizerResultTtlInSeconds !== undefined && data.authorizerResultTtlInSeconds !== null) { - contents.AuthorizerResultTtlInSeconds = __expectInt(data.authorizerResultTtlInSeconds); + contents.AuthorizerResultTtlInSeconds = __expectInt32(data.authorizerResultTtlInSeconds); } if (data.authorizerType !== undefined && data.authorizerType !== null) { contents.AuthorizerType = __expectString(data.authorizerType); @@ -8874,7 +8874,7 @@ export const deserializeAws_restJson1UpdateIntegrationCommand = async ( contents.TemplateSelectionExpression = __expectString(data.templateSelectionExpression); } if (data.timeoutInMillis !== undefined && data.timeoutInMillis !== null) { - contents.TimeoutInMillis = __expectInt(data.timeoutInMillis); + contents.TimeoutInMillis = __expectInt32(data.timeoutInMillis); } if (data.tlsConfig !== undefined && data.tlsConfig !== null) { contents.TlsConfig = deserializeAws_restJson1TlsConfig(data.tlsConfig, context); @@ -10216,7 +10216,7 @@ const deserializeAws_restJson1Authorizer = (output: any, context: __SerdeContext AuthorizerCredentialsArn: __expectString(output.authorizerCredentialsArn), AuthorizerId: __expectString(output.authorizerId), AuthorizerPayloadFormatVersion: __expectString(output.authorizerPayloadFormatVersion), - AuthorizerResultTtlInSeconds: __expectInt(output.authorizerResultTtlInSeconds), + AuthorizerResultTtlInSeconds: __expectInt32(output.authorizerResultTtlInSeconds), AuthorizerType: __expectString(output.authorizerType), AuthorizerUri: __expectString(output.authorizerUri), EnableSimpleResponses: __expectBoolean(output.enableSimpleResponses), @@ -10252,7 +10252,7 @@ const deserializeAws_restJson1Cors = (output: any, context: __SerdeContext): Cor output.exposeHeaders !== undefined && output.exposeHeaders !== null ? deserializeAws_restJson1CorsHeaderList(output.exposeHeaders, context) : undefined, - MaxAge: __expectInt(output.maxAge), + MaxAge: __expectInt32(output.maxAge), } as any; }; @@ -10395,7 +10395,7 @@ const deserializeAws_restJson1Integration = (output: any, context: __SerdeContex ? deserializeAws_restJson1ResponseParameters(output.responseParameters, context) : undefined, TemplateSelectionExpression: __expectString(output.templateSelectionExpression), - TimeoutInMillis: __expectInt(output.timeoutInMillis), + TimeoutInMillis: __expectInt32(output.timeoutInMillis), TlsConfig: output.tlsConfig !== undefined && output.tlsConfig !== null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) @@ -10568,8 +10568,8 @@ const deserializeAws_restJson1RouteSettings = (output: any, context: __SerdeCont DataTraceEnabled: __expectBoolean(output.dataTraceEnabled), DetailedMetricsEnabled: __expectBoolean(output.detailedMetricsEnabled), LoggingLevel: __expectString(output.loggingLevel), - ThrottlingBurstLimit: __expectInt(output.throttlingBurstLimit), - ThrottlingRateLimit: __limitedParseFloat(output.throttlingRateLimit), + ThrottlingBurstLimit: __expectInt32(output.throttlingBurstLimit), + ThrottlingRateLimit: __limitedParseDouble(output.throttlingRateLimit), } as any; }; diff --git a/clients/client-app-mesh/protocols/Aws_restJson1.ts b/clients/client-app-mesh/protocols/Aws_restJson1.ts index 7220a075472e0..571847f858510 100644 --- a/clients/client-app-mesh/protocols/Aws_restJson1.ts +++ b/clients/client-app-mesh/protocols/Aws_restJson1.ts @@ -242,7 +242,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -7556,7 +7557,7 @@ const deserializeAws_restJson1DnsServiceDiscovery = (output: any, context: __Ser const deserializeAws_restJson1Duration = (output: any, context: __SerdeContext): Duration => { return { unit: __expectString(output.unit), - value: __expectInt(output.value), + value: __expectLong(output.value), } as any; }; @@ -7637,7 +7638,7 @@ const deserializeAws_restJson1GatewayRouteRef = (output: any, context: __SerdeCo meshName: __expectString(output.meshName), meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), - version: __expectInt(output.version), + version: __expectLong(output.version), virtualGatewayName: __expectString(output.virtualGatewayName), } as any; }; @@ -7656,7 +7657,7 @@ const deserializeAws_restJson1GatewayRouteSpec = (output: any, context: __SerdeC output.httpRoute !== undefined && output.httpRoute !== null ? deserializeAws_restJson1HttpGatewayRoute(output.httpRoute, context) : undefined, - priority: __expectInt(output.priority), + priority: __expectInt32(output.priority), } as any; }; @@ -7801,7 +7802,7 @@ const deserializeAws_restJson1GrpcRetryPolicy = (output: any, context: __SerdeCo output.httpRetryEvents !== undefined && output.httpRetryEvents !== null ? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context) : undefined, - maxRetries: __expectInt(output.maxRetries), + maxRetries: __expectLong(output.maxRetries), perRetryTimeout: output.perRetryTimeout !== undefined && output.perRetryTimeout !== null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) @@ -7950,13 +7951,13 @@ const deserializeAws_restJson1HeaderMatchMethod = (output: any, context: __Serde const deserializeAws_restJson1HealthCheckPolicy = (output: any, context: __SerdeContext): HealthCheckPolicy => { return { - healthyThreshold: __expectInt(output.healthyThreshold), - intervalMillis: __expectInt(output.intervalMillis), + healthyThreshold: __expectInt32(output.healthyThreshold), + intervalMillis: __expectLong(output.intervalMillis), path: __expectString(output.path), - port: __expectInt(output.port), + port: __expectInt32(output.port), protocol: __expectString(output.protocol), - timeoutMillis: __expectInt(output.timeoutMillis), - unhealthyThreshold: __expectInt(output.unhealthyThreshold), + timeoutMillis: __expectLong(output.timeoutMillis), + unhealthyThreshold: __expectInt32(output.unhealthyThreshold), } as any; }; @@ -8113,7 +8114,7 @@ const deserializeAws_restJson1HttpRetryPolicy = (output: any, context: __SerdeCo output.httpRetryEvents !== undefined && output.httpRetryEvents !== null ? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context) : undefined, - maxRetries: __expectInt(output.maxRetries), + maxRetries: __expectLong(output.maxRetries), perRetryTimeout: output.perRetryTimeout !== undefined && output.perRetryTimeout !== null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) @@ -8393,8 +8394,8 @@ const deserializeAws_restJson1Logging = (output: any, context: __SerdeContext): const deserializeAws_restJson1MatchRange = (output: any, context: __SerdeContext): MatchRange => { return { - end: __expectInt(output.end), - start: __expectInt(output.start), + end: __expectLong(output.end), + start: __expectLong(output.start), } as any; }; @@ -8441,7 +8442,7 @@ const deserializeAws_restJson1MeshRef = (output: any, context: __SerdeContext): meshName: __expectString(output.meshName), meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), - version: __expectInt(output.version), + version: __expectLong(output.version), } as any; }; @@ -8470,14 +8471,14 @@ const deserializeAws_restJson1OutlierDetection = (output: any, context: __SerdeC output.interval !== undefined && output.interval !== null ? deserializeAws_restJson1Duration(output.interval, context) : undefined, - maxEjectionPercent: __expectInt(output.maxEjectionPercent), - maxServerErrors: __expectInt(output.maxServerErrors), + maxEjectionPercent: __expectInt32(output.maxEjectionPercent), + maxServerErrors: __expectLong(output.maxServerErrors), } as any; }; const deserializeAws_restJson1PortMapping = (output: any, context: __SerdeContext): PortMapping => { return { - port: __expectInt(output.port), + port: __expectInt32(output.port), protocol: __expectString(output.protocol), } as any; }; @@ -8489,7 +8490,7 @@ const deserializeAws_restJson1PortSet = (output: any, context: __SerdeContext): if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -8513,7 +8514,7 @@ const deserializeAws_restJson1ResourceMetadata = (output: any, context: __SerdeC meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), uid: __expectString(output.uid), - version: __expectInt(output.version), + version: __expectLong(output.version), } as any; }; @@ -8563,7 +8564,7 @@ const deserializeAws_restJson1RouteRef = (output: any, context: __SerdeContext): meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), routeName: __expectString(output.routeName), - version: __expectInt(output.version), + version: __expectLong(output.version), virtualRouterName: __expectString(output.virtualRouterName), } as any; }; @@ -8582,7 +8583,7 @@ const deserializeAws_restJson1RouteSpec = (output: any, context: __SerdeContext) output.httpRoute !== undefined && output.httpRoute !== null ? deserializeAws_restJson1HttpRoute(output.httpRoute, context) : undefined, - priority: __expectInt(output.priority), + priority: __expectInt32(output.priority), tcpRoute: output.tcpRoute !== undefined && output.tcpRoute !== null ? deserializeAws_restJson1TcpRoute(output.tcpRoute, context) @@ -8916,7 +8917,7 @@ const deserializeAws_restJson1VirtualGatewayGrpcConnectionPool = ( context: __SerdeContext ): VirtualGatewayGrpcConnectionPool => { return { - maxRequests: __expectInt(output.maxRequests), + maxRequests: __expectInt32(output.maxRequests), } as any; }; @@ -8925,13 +8926,13 @@ const deserializeAws_restJson1VirtualGatewayHealthCheckPolicy = ( context: __SerdeContext ): VirtualGatewayHealthCheckPolicy => { return { - healthyThreshold: __expectInt(output.healthyThreshold), - intervalMillis: __expectInt(output.intervalMillis), + healthyThreshold: __expectInt32(output.healthyThreshold), + intervalMillis: __expectLong(output.intervalMillis), path: __expectString(output.path), - port: __expectInt(output.port), + port: __expectInt32(output.port), protocol: __expectString(output.protocol), - timeoutMillis: __expectInt(output.timeoutMillis), - unhealthyThreshold: __expectInt(output.unhealthyThreshold), + timeoutMillis: __expectLong(output.timeoutMillis), + unhealthyThreshold: __expectInt32(output.unhealthyThreshold), } as any; }; @@ -8940,7 +8941,7 @@ const deserializeAws_restJson1VirtualGatewayHttp2ConnectionPool = ( context: __SerdeContext ): VirtualGatewayHttp2ConnectionPool => { return { - maxRequests: __expectInt(output.maxRequests), + maxRequests: __expectInt32(output.maxRequests), } as any; }; @@ -8949,8 +8950,8 @@ const deserializeAws_restJson1VirtualGatewayHttpConnectionPool = ( context: __SerdeContext ): VirtualGatewayHttpConnectionPool => { return { - maxConnections: __expectInt(output.maxConnections), - maxPendingRequests: __expectInt(output.maxPendingRequests), + maxConnections: __expectInt32(output.maxConnections), + maxPendingRequests: __expectInt32(output.maxPendingRequests), } as any; }; @@ -9117,7 +9118,7 @@ const deserializeAws_restJson1VirtualGatewayPortMapping = ( context: __SerdeContext ): VirtualGatewayPortMapping => { return { - port: __expectInt(output.port), + port: __expectInt32(output.port), protocol: __expectString(output.protocol), } as any; }; @@ -9136,7 +9137,7 @@ const deserializeAws_restJson1VirtualGatewayRef = (output: any, context: __Serde meshName: __expectString(output.meshName), meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), - version: __expectInt(output.version), + version: __expectLong(output.version), virtualGatewayName: __expectString(output.virtualGatewayName), } as any; }; @@ -9283,7 +9284,7 @@ const deserializeAws_restJson1VirtualNodeGrpcConnectionPool = ( context: __SerdeContext ): VirtualNodeGrpcConnectionPool => { return { - maxRequests: __expectInt(output.maxRequests), + maxRequests: __expectInt32(output.maxRequests), } as any; }; @@ -9292,7 +9293,7 @@ const deserializeAws_restJson1VirtualNodeHttp2ConnectionPool = ( context: __SerdeContext ): VirtualNodeHttp2ConnectionPool => { return { - maxRequests: __expectInt(output.maxRequests), + maxRequests: __expectInt32(output.maxRequests), } as any; }; @@ -9301,8 +9302,8 @@ const deserializeAws_restJson1VirtualNodeHttpConnectionPool = ( context: __SerdeContext ): VirtualNodeHttpConnectionPool => { return { - maxConnections: __expectInt(output.maxConnections), - maxPendingRequests: __expectInt(output.maxPendingRequests), + maxConnections: __expectInt32(output.maxConnections), + maxPendingRequests: __expectInt32(output.maxPendingRequests), } as any; }; @@ -9331,7 +9332,7 @@ const deserializeAws_restJson1VirtualNodeRef = (output: any, context: __SerdeCon meshName: __expectString(output.meshName), meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), - version: __expectInt(output.version), + version: __expectLong(output.version), virtualNodeName: __expectString(output.virtualNodeName), } as any; }; @@ -9381,7 +9382,7 @@ const deserializeAws_restJson1VirtualNodeTcpConnectionPool = ( context: __SerdeContext ): VirtualNodeTcpConnectionPool => { return { - maxConnections: __expectInt(output.maxConnections), + maxConnections: __expectInt32(output.maxConnections), } as any; }; @@ -9452,7 +9453,7 @@ const deserializeAws_restJson1VirtualRouterRef = (output: any, context: __SerdeC meshName: __expectString(output.meshName), meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), - version: __expectInt(output.version), + version: __expectLong(output.version), virtualRouterName: __expectString(output.virtualRouterName), } as any; }; @@ -9552,7 +9553,7 @@ const deserializeAws_restJson1VirtualServiceRef = (output: any, context: __Serde meshName: __expectString(output.meshName), meshOwner: __expectString(output.meshOwner), resourceOwner: __expectString(output.resourceOwner), - version: __expectInt(output.version), + version: __expectLong(output.version), virtualServiceName: __expectString(output.virtualServiceName), } as any; }; @@ -9575,7 +9576,7 @@ const deserializeAws_restJson1VirtualServiceStatus = (output: any, context: __Se const deserializeAws_restJson1WeightedTarget = (output: any, context: __SerdeContext): WeightedTarget => { return { virtualNode: __expectString(output.virtualNode), - weight: __expectInt(output.weight), + weight: __expectInt32(output.weight), } as any; }; diff --git a/clients/client-appconfig/protocols/Aws_restJson1.ts b/clients/client-appconfig/protocols/Aws_restJson1.ts index 876cc731f2fd4..870c0ce9ce5d3 100644 --- a/clients/client-appconfig/protocols/Aws_restJson1.ts +++ b/clients/client-appconfig/protocols/Aws_restJson1.ts @@ -99,12 +99,12 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1577,16 +1577,16 @@ export const deserializeAws_restJson1CreateDeploymentStrategyCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) { - contents.DeploymentDurationInMinutes = __expectInt(data.DeploymentDurationInMinutes); + contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes); } if (data.Description !== undefined && data.Description !== null) { contents.Description = __expectString(data.Description); } if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) { - contents.FinalBakeTimeInMinutes = __expectInt(data.FinalBakeTimeInMinutes); + contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes); } if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) { - contents.GrowthFactor = __limitedParseFloat(data.GrowthFactor); + contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor); } if (data.GrowthType !== undefined && data.GrowthType !== null) { contents.GrowthType = __expectString(data.GrowthType); @@ -1762,7 +1762,7 @@ export const deserializeAws_restJson1CreateHostedConfigurationVersionCommand = a contents.ConfigurationProfileId = output.headers["configuration-profile-id"]; } if (output.headers["version-number"] !== undefined) { - contents.VersionNumber = __strictParseInt(output.headers["version-number"]); + contents.VersionNumber = __strictParseInt32(output.headers["version-number"]); } if (output.headers["description"] !== undefined) { contents.Description = output.headers["description"]; @@ -2502,10 +2502,10 @@ export const deserializeAws_restJson1GetDeploymentCommand = async ( contents.ConfigurationVersion = __expectString(data.ConfigurationVersion); } if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) { - contents.DeploymentDurationInMinutes = __expectInt(data.DeploymentDurationInMinutes); + contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes); } if (data.DeploymentNumber !== undefined && data.DeploymentNumber !== null) { - contents.DeploymentNumber = __expectInt(data.DeploymentNumber); + contents.DeploymentNumber = __expectInt32(data.DeploymentNumber); } if (data.DeploymentStrategyId !== undefined && data.DeploymentStrategyId !== null) { contents.DeploymentStrategyId = __expectString(data.DeploymentStrategyId); @@ -2520,16 +2520,16 @@ export const deserializeAws_restJson1GetDeploymentCommand = async ( contents.EventLog = deserializeAws_restJson1DeploymentEvents(data.EventLog, context); } if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) { - contents.FinalBakeTimeInMinutes = __expectInt(data.FinalBakeTimeInMinutes); + contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes); } if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) { - contents.GrowthFactor = __limitedParseFloat(data.GrowthFactor); + contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor); } if (data.GrowthType !== undefined && data.GrowthType !== null) { contents.GrowthType = __expectString(data.GrowthType); } if (data.PercentageComplete !== undefined && data.PercentageComplete !== null) { - contents.PercentageComplete = __limitedParseFloat(data.PercentageComplete); + contents.PercentageComplete = __limitedParseFloat32(data.PercentageComplete); } if (data.StartedAt !== undefined && data.StartedAt !== null) { contents.StartedAt = new Date(data.StartedAt); @@ -2613,16 +2613,16 @@ export const deserializeAws_restJson1GetDeploymentStrategyCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) { - contents.DeploymentDurationInMinutes = __expectInt(data.DeploymentDurationInMinutes); + contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes); } if (data.Description !== undefined && data.Description !== null) { contents.Description = __expectString(data.Description); } if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) { - contents.FinalBakeTimeInMinutes = __expectInt(data.FinalBakeTimeInMinutes); + contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes); } if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) { - contents.GrowthFactor = __limitedParseFloat(data.GrowthFactor); + contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor); } if (data.GrowthType !== undefined && data.GrowthType !== null) { contents.GrowthType = __expectString(data.GrowthType); @@ -2806,7 +2806,7 @@ export const deserializeAws_restJson1GetHostedConfigurationVersionCommand = asyn contents.ConfigurationProfileId = output.headers["configuration-profile-id"]; } if (output.headers["version-number"] !== undefined) { - contents.VersionNumber = __strictParseInt(output.headers["version-number"]); + contents.VersionNumber = __strictParseInt32(output.headers["version-number"]); } if (output.headers["description"] !== undefined) { contents.Description = output.headers["description"]; @@ -3425,10 +3425,10 @@ export const deserializeAws_restJson1StartDeploymentCommand = async ( contents.ConfigurationVersion = __expectString(data.ConfigurationVersion); } if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) { - contents.DeploymentDurationInMinutes = __expectInt(data.DeploymentDurationInMinutes); + contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes); } if (data.DeploymentNumber !== undefined && data.DeploymentNumber !== null) { - contents.DeploymentNumber = __expectInt(data.DeploymentNumber); + contents.DeploymentNumber = __expectInt32(data.DeploymentNumber); } if (data.DeploymentStrategyId !== undefined && data.DeploymentStrategyId !== null) { contents.DeploymentStrategyId = __expectString(data.DeploymentStrategyId); @@ -3443,16 +3443,16 @@ export const deserializeAws_restJson1StartDeploymentCommand = async ( contents.EventLog = deserializeAws_restJson1DeploymentEvents(data.EventLog, context); } if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) { - contents.FinalBakeTimeInMinutes = __expectInt(data.FinalBakeTimeInMinutes); + contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes); } if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) { - contents.GrowthFactor = __limitedParseFloat(data.GrowthFactor); + contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor); } if (data.GrowthType !== undefined && data.GrowthType !== null) { contents.GrowthType = __expectString(data.GrowthType); } if (data.PercentageComplete !== undefined && data.PercentageComplete !== null) { - contents.PercentageComplete = __limitedParseFloat(data.PercentageComplete); + contents.PercentageComplete = __limitedParseFloat32(data.PercentageComplete); } if (data.StartedAt !== undefined && data.StartedAt !== null) { contents.StartedAt = new Date(data.StartedAt); @@ -3572,10 +3572,10 @@ export const deserializeAws_restJson1StopDeploymentCommand = async ( contents.ConfigurationVersion = __expectString(data.ConfigurationVersion); } if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) { - contents.DeploymentDurationInMinutes = __expectInt(data.DeploymentDurationInMinutes); + contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes); } if (data.DeploymentNumber !== undefined && data.DeploymentNumber !== null) { - contents.DeploymentNumber = __expectInt(data.DeploymentNumber); + contents.DeploymentNumber = __expectInt32(data.DeploymentNumber); } if (data.DeploymentStrategyId !== undefined && data.DeploymentStrategyId !== null) { contents.DeploymentStrategyId = __expectString(data.DeploymentStrategyId); @@ -3590,16 +3590,16 @@ export const deserializeAws_restJson1StopDeploymentCommand = async ( contents.EventLog = deserializeAws_restJson1DeploymentEvents(data.EventLog, context); } if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) { - contents.FinalBakeTimeInMinutes = __expectInt(data.FinalBakeTimeInMinutes); + contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes); } if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) { - contents.GrowthFactor = __limitedParseFloat(data.GrowthFactor); + contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor); } if (data.GrowthType !== undefined && data.GrowthType !== null) { contents.GrowthType = __expectString(data.GrowthType); } if (data.PercentageComplete !== undefined && data.PercentageComplete !== null) { - contents.PercentageComplete = __limitedParseFloat(data.PercentageComplete); + contents.PercentageComplete = __limitedParseFloat32(data.PercentageComplete); } if (data.StartedAt !== undefined && data.StartedAt !== null) { contents.StartedAt = new Date(data.StartedAt); @@ -3991,16 +3991,16 @@ export const deserializeAws_restJson1UpdateDeploymentStrategyCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) { - contents.DeploymentDurationInMinutes = __expectInt(data.DeploymentDurationInMinutes); + contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes); } if (data.Description !== undefined && data.Description !== null) { contents.Description = __expectString(data.Description); } if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) { - contents.FinalBakeTimeInMinutes = __expectInt(data.FinalBakeTimeInMinutes); + contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes); } if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) { - contents.GrowthFactor = __limitedParseFloat(data.GrowthFactor); + contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor); } if (data.GrowthType !== undefined && data.GrowthType !== null) { contents.GrowthType = __expectString(data.GrowthType); @@ -4294,7 +4294,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async ( }; const data: any = parsedOutput.body; if (data.Limit !== undefined && data.Limit !== null) { - contents.Limit = __limitedParseFloat(data.Limit); + contents.Limit = __limitedParseFloat32(data.Limit); } if (data.Measure !== undefined && data.Measure !== null) { contents.Measure = __expectString(data.Measure); @@ -4303,7 +4303,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async ( contents.Message = __expectString(data.Message); } if (data.Size !== undefined && data.Size !== null) { - contents.Size = __limitedParseFloat(data.Size); + contents.Size = __limitedParseFloat32(data.Size); } return contents; }; @@ -4476,10 +4476,10 @@ const deserializeAws_restJson1DeploymentList = (output: any, context: __SerdeCon const deserializeAws_restJson1DeploymentStrategy = (output: any, context: __SerdeContext): DeploymentStrategy => { return { - DeploymentDurationInMinutes: __expectInt(output.DeploymentDurationInMinutes), + DeploymentDurationInMinutes: __expectInt32(output.DeploymentDurationInMinutes), Description: __expectString(output.Description), - FinalBakeTimeInMinutes: __expectInt(output.FinalBakeTimeInMinutes), - GrowthFactor: __limitedParseFloat(output.GrowthFactor), + FinalBakeTimeInMinutes: __expectInt32(output.FinalBakeTimeInMinutes), + GrowthFactor: __limitedParseFloat32(output.GrowthFactor), GrowthType: __expectString(output.GrowthType), Id: __expectString(output.Id), Name: __expectString(output.Name), @@ -4504,12 +4504,12 @@ const deserializeAws_restJson1DeploymentSummary = (output: any, context: __Serde output.CompletedAt !== undefined && output.CompletedAt !== null ? new Date(output.CompletedAt) : undefined, ConfigurationName: __expectString(output.ConfigurationName), ConfigurationVersion: __expectString(output.ConfigurationVersion), - DeploymentDurationInMinutes: __expectInt(output.DeploymentDurationInMinutes), - DeploymentNumber: __expectInt(output.DeploymentNumber), - FinalBakeTimeInMinutes: __expectInt(output.FinalBakeTimeInMinutes), - GrowthFactor: __limitedParseFloat(output.GrowthFactor), + DeploymentDurationInMinutes: __expectInt32(output.DeploymentDurationInMinutes), + DeploymentNumber: __expectInt32(output.DeploymentNumber), + FinalBakeTimeInMinutes: __expectInt32(output.FinalBakeTimeInMinutes), + GrowthFactor: __limitedParseFloat32(output.GrowthFactor), GrowthType: __expectString(output.GrowthType), - PercentageComplete: __limitedParseFloat(output.PercentageComplete), + PercentageComplete: __limitedParseFloat32(output.PercentageComplete), StartedAt: output.StartedAt !== undefined && output.StartedAt !== null ? new Date(output.StartedAt) : undefined, State: __expectString(output.State), } as any; @@ -4549,7 +4549,7 @@ const deserializeAws_restJson1HostedConfigurationVersionSummary = ( ConfigurationProfileId: __expectString(output.ConfigurationProfileId), ContentType: __expectString(output.ContentType), Description: __expectString(output.Description), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectInt32(output.VersionNumber), } as any; }; diff --git a/clients/client-appflow/protocols/Aws_restJson1.ts b/clients/client-appflow/protocols/Aws_restJson1.ts index 0862ecfdab225..5d35cbc718d26 100644 --- a/clients/client-appflow/protocols/Aws_restJson1.ts +++ b/clients/client-appflow/protocols/Aws_restJson1.ts @@ -176,7 +176,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -4114,7 +4115,7 @@ const deserializeAws_restJson1ErrorHandlingConfig = (output: any, context: __Ser const deserializeAws_restJson1ErrorInfo = (output: any, context: __SerdeContext): ErrorInfo => { return { executionMessage: __expectString(output.executionMessage), - putFailuresCount: __expectInt(output.putFailuresCount), + putFailuresCount: __expectLong(output.putFailuresCount), } as any; }; @@ -4175,13 +4176,13 @@ const deserializeAws_restJson1ExecutionRecord = (output: any, context: __SerdeCo const deserializeAws_restJson1ExecutionResult = (output: any, context: __SerdeContext): ExecutionResult => { return { - bytesProcessed: __expectInt(output.bytesProcessed), - bytesWritten: __expectInt(output.bytesWritten), + bytesProcessed: __expectLong(output.bytesProcessed), + bytesWritten: __expectLong(output.bytesWritten), errorInfo: output.errorInfo !== undefined && output.errorInfo !== null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined, - recordsProcessed: __expectInt(output.recordsProcessed), + recordsProcessed: __expectLong(output.recordsProcessed), } as any; }; @@ -4569,7 +4570,7 @@ const deserializeAws_restJson1SAPODataConnectorProfileProperties = ( output.oAuthProperties !== undefined && output.oAuthProperties !== null ? deserializeAws_restJson1OAuthProperties(output.oAuthProperties, context) : undefined, - portNumber: __expectInt(output.portNumber), + portNumber: __expectInt32(output.portNumber), privateLinkServiceName: __expectString(output.privateLinkServiceName), } as any; }; @@ -4602,7 +4603,7 @@ const deserializeAws_restJson1ScheduledTriggerProperties = ( ? new Date(Math.round(output.scheduleEndTime * 1000)) : undefined, scheduleExpression: __expectString(output.scheduleExpression), - scheduleOffset: __expectInt(output.scheduleOffset), + scheduleOffset: __expectLong(output.scheduleOffset), scheduleStartTime: output.scheduleStartTime !== undefined && output.scheduleStartTime !== null ? new Date(Math.round(output.scheduleStartTime * 1000)) diff --git a/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts b/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts index 7c393d28de9ad..3a7f4106355a0 100644 --- a/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts +++ b/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts @@ -77,9 +77,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -1688,8 +1688,8 @@ const deserializeAws_json1_1ScalableTarget = (output: any, context: __SerdeConte output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, - MaxCapacity: __expectInt(output.MaxCapacity), - MinCapacity: __expectInt(output.MinCapacity), + MaxCapacity: __expectInt32(output.MaxCapacity), + MinCapacity: __expectInt32(output.MinCapacity), ResourceId: __expectString(output.ResourceId), RoleARN: __expectString(output.RoleARN), ScalableDimension: __expectString(output.ScalableDimension), @@ -1703,8 +1703,8 @@ const deserializeAws_json1_1ScalableTarget = (output: any, context: __SerdeConte const deserializeAws_json1_1ScalableTargetAction = (output: any, context: __SerdeContext): ScalableTargetAction => { return { - MaxCapacity: __expectInt(output.MaxCapacity), - MinCapacity: __expectInt(output.MinCapacity), + MaxCapacity: __expectInt32(output.MaxCapacity), + MinCapacity: __expectInt32(output.MinCapacity), } as any; }; @@ -1831,9 +1831,9 @@ const deserializeAws_json1_1ScheduledActions = (output: any, context: __SerdeCon const deserializeAws_json1_1StepAdjustment = (output: any, context: __SerdeContext): StepAdjustment => { return { - MetricIntervalLowerBound: __limitedParseFloat(output.MetricIntervalLowerBound), - MetricIntervalUpperBound: __limitedParseFloat(output.MetricIntervalUpperBound), - ScalingAdjustment: __expectInt(output.ScalingAdjustment), + MetricIntervalLowerBound: __limitedParseDouble(output.MetricIntervalLowerBound), + MetricIntervalUpperBound: __limitedParseDouble(output.MetricIntervalUpperBound), + ScalingAdjustment: __expectInt32(output.ScalingAdjustment), } as any; }; @@ -1854,9 +1854,9 @@ const deserializeAws_json1_1StepScalingPolicyConfiguration = ( ): StepScalingPolicyConfiguration => { return { AdjustmentType: __expectString(output.AdjustmentType), - Cooldown: __expectInt(output.Cooldown), + Cooldown: __expectInt32(output.Cooldown), MetricAggregationType: __expectString(output.MetricAggregationType), - MinAdjustmentMagnitude: __expectInt(output.MinAdjustmentMagnitude), + MinAdjustmentMagnitude: __expectInt32(output.MinAdjustmentMagnitude), StepAdjustments: output.StepAdjustments !== undefined && output.StepAdjustments !== null ? deserializeAws_json1_1StepAdjustments(output.StepAdjustments, context) @@ -1886,9 +1886,9 @@ const deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration = ( output.PredefinedMetricSpecification !== undefined && output.PredefinedMetricSpecification !== null ? deserializeAws_json1_1PredefinedMetricSpecification(output.PredefinedMetricSpecification, context) : undefined, - ScaleInCooldown: __expectInt(output.ScaleInCooldown), - ScaleOutCooldown: __expectInt(output.ScaleOutCooldown), - TargetValue: __limitedParseFloat(output.TargetValue), + ScaleInCooldown: __expectInt32(output.ScaleInCooldown), + ScaleOutCooldown: __expectInt32(output.ScaleOutCooldown), + TargetValue: __limitedParseDouble(output.TargetValue), } as any; }; diff --git a/clients/client-application-discovery-service/protocols/Aws_json1_1.ts b/clients/client-application-discovery-service/protocols/Aws_json1_1.ts index 98ea592502b44..cf98daf54b100 100644 --- a/clients/client-application-discovery-service/protocols/Aws_json1_1.ts +++ b/clients/client-application-discovery-service/protocols/Aws_json1_1.ts @@ -149,7 +149,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3620,25 +3621,25 @@ const deserializeAws_json1_1CreateTagsResponse = (output: any, context: __SerdeC const deserializeAws_json1_1CustomerAgentInfo = (output: any, context: __SerdeContext): CustomerAgentInfo => { return { - activeAgents: __expectInt(output.activeAgents), - blackListedAgents: __expectInt(output.blackListedAgents), - healthyAgents: __expectInt(output.healthyAgents), - shutdownAgents: __expectInt(output.shutdownAgents), - totalAgents: __expectInt(output.totalAgents), - unhealthyAgents: __expectInt(output.unhealthyAgents), - unknownAgents: __expectInt(output.unknownAgents), + activeAgents: __expectInt32(output.activeAgents), + blackListedAgents: __expectInt32(output.blackListedAgents), + healthyAgents: __expectInt32(output.healthyAgents), + shutdownAgents: __expectInt32(output.shutdownAgents), + totalAgents: __expectInt32(output.totalAgents), + unhealthyAgents: __expectInt32(output.unhealthyAgents), + unknownAgents: __expectInt32(output.unknownAgents), } as any; }; const deserializeAws_json1_1CustomerConnectorInfo = (output: any, context: __SerdeContext): CustomerConnectorInfo => { return { - activeConnectors: __expectInt(output.activeConnectors), - blackListedConnectors: __expectInt(output.blackListedConnectors), - healthyConnectors: __expectInt(output.healthyConnectors), - shutdownConnectors: __expectInt(output.shutdownConnectors), - totalConnectors: __expectInt(output.totalConnectors), - unhealthyConnectors: __expectInt(output.unhealthyConnectors), - unknownConnectors: __expectInt(output.unknownConnectors), + activeConnectors: __expectInt32(output.activeConnectors), + blackListedConnectors: __expectInt32(output.blackListedConnectors), + healthyConnectors: __expectInt32(output.healthyConnectors), + shutdownConnectors: __expectInt32(output.shutdownConnectors), + totalConnectors: __expectInt32(output.totalConnectors), + unhealthyConnectors: __expectInt32(output.unhealthyConnectors), + unknownConnectors: __expectInt32(output.unknownConnectors), } as any; }; @@ -3824,14 +3825,14 @@ const deserializeAws_json1_1GetDiscoverySummaryResponse = ( output.agentSummary !== undefined && output.agentSummary !== null ? deserializeAws_json1_1CustomerAgentInfo(output.agentSummary, context) : undefined, - applications: __expectInt(output.applications), + applications: __expectLong(output.applications), connectorSummary: output.connectorSummary !== undefined && output.connectorSummary !== null ? deserializeAws_json1_1CustomerConnectorInfo(output.connectorSummary, context) : undefined, - servers: __expectInt(output.servers), - serversMappedToApplications: __expectInt(output.serversMappedToApplications), - serversMappedtoTags: __expectInt(output.serversMappedtoTags), + servers: __expectLong(output.servers), + serversMappedToApplications: __expectLong(output.serversMappedToApplications), + serversMappedtoTags: __expectLong(output.serversMappedtoTags), } as any; }; @@ -3846,8 +3847,8 @@ const deserializeAws_json1_1HomeRegionNotSetException = ( const deserializeAws_json1_1ImportTask = (output: any, context: __SerdeContext): ImportTask => { return { - applicationImportFailure: __expectInt(output.applicationImportFailure), - applicationImportSuccess: __expectInt(output.applicationImportSuccess), + applicationImportFailure: __expectInt32(output.applicationImportFailure), + applicationImportSuccess: __expectInt32(output.applicationImportSuccess), clientRequestToken: __expectString(output.clientRequestToken), errorsAndFailedEntriesZip: __expectString(output.errorsAndFailedEntriesZip), importCompletionTime: @@ -3865,8 +3866,8 @@ const deserializeAws_json1_1ImportTask = (output: any, context: __SerdeContext): importTaskId: __expectString(output.importTaskId), importUrl: __expectString(output.importUrl), name: __expectString(output.name), - serverImportFailure: __expectInt(output.serverImportFailure), - serverImportSuccess: __expectInt(output.serverImportSuccess), + serverImportFailure: __expectInt32(output.serverImportFailure), + serverImportSuccess: __expectInt32(output.serverImportSuccess), status: __expectString(output.status), } as any; }; @@ -3918,7 +3919,7 @@ const deserializeAws_json1_1ListServerNeighborsResponse = ( context: __SerdeContext ): ListServerNeighborsResponse => { return { - knownDependencyCount: __expectInt(output.knownDependencyCount), + knownDependencyCount: __expectLong(output.knownDependencyCount), neighbors: output.neighbors !== undefined && output.neighbors !== null ? deserializeAws_json1_1NeighborDetailsList(output.neighbors, context) @@ -3932,8 +3933,8 @@ const deserializeAws_json1_1NeighborConnectionDetail = ( context: __SerdeContext ): NeighborConnectionDetail => { return { - connectionsCount: __expectInt(output.connectionsCount), - destinationPort: __expectInt(output.destinationPort), + connectionsCount: __expectLong(output.connectionsCount), + destinationPort: __expectInt32(output.destinationPort), destinationServerId: __expectString(output.destinationServerId), sourceServerId: __expectString(output.sourceServerId), transportProtocol: __expectString(output.transportProtocol), diff --git a/clients/client-application-insights/protocols/Aws_json1_1.ts b/clients/client-application-insights/protocols/Aws_json1_1.ts index 080e31b7a63a7..07cb9d57e5d09 100644 --- a/clients/client-application-insights/protocols/Aws_json1_1.ts +++ b/clients/client-application-insights/protocols/Aws_json1_1.ts @@ -127,9 +127,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3261,7 +3262,7 @@ const deserializeAws_json1_1LogPattern = (output: any, context: __SerdeContext): Pattern: __expectString(output.Pattern), PatternName: __expectString(output.PatternName), PatternSetName: __expectString(output.PatternSetName), - Rank: __expectInt(output.Rank), + Rank: __expectInt32(output.Rank), } as any; }; @@ -3333,14 +3334,14 @@ const deserializeAws_json1_1Observation = (output: any, context: __SerdeContext) StatesInput: __expectString(output.StatesInput), StatesStatus: __expectString(output.StatesStatus), Unit: __expectString(output.Unit), - Value: __limitedParseFloat(output.Value), - XRayErrorPercent: __expectInt(output.XRayErrorPercent), - XRayFaultPercent: __expectInt(output.XRayFaultPercent), + Value: __limitedParseDouble(output.Value), + XRayErrorPercent: __expectInt32(output.XRayErrorPercent), + XRayFaultPercent: __expectInt32(output.XRayFaultPercent), XRayNodeName: __expectString(output.XRayNodeName), XRayNodeType: __expectString(output.XRayNodeType), - XRayRequestAverageLatency: __expectInt(output.XRayRequestAverageLatency), - XRayRequestCount: __expectInt(output.XRayRequestCount), - XRayThrottlePercent: __expectInt(output.XRayThrottlePercent), + XRayRequestAverageLatency: __expectLong(output.XRayRequestAverageLatency), + XRayRequestCount: __expectInt32(output.XRayRequestCount), + XRayThrottlePercent: __expectInt32(output.XRayThrottlePercent), } as any; }; diff --git a/clients/client-apprunner/protocols/Aws_json1_0.ts b/clients/client-apprunner/protocols/Aws_json1_0.ts index 2ba17ad0f5cc6..d696b4183795c 100644 --- a/clients/client-apprunner/protocols/Aws_json1_0.ts +++ b/clients/client-apprunner/protocols/Aws_json1_0.ts @@ -119,7 +119,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -2508,7 +2508,7 @@ const deserializeAws_json1_0AutoScalingConfiguration = ( return { AutoScalingConfigurationArn: __expectString(output.AutoScalingConfigurationArn), AutoScalingConfigurationName: __expectString(output.AutoScalingConfigurationName), - AutoScalingConfigurationRevision: __expectInt(output.AutoScalingConfigurationRevision), + AutoScalingConfigurationRevision: __expectInt32(output.AutoScalingConfigurationRevision), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -2518,9 +2518,9 @@ const deserializeAws_json1_0AutoScalingConfiguration = ( ? new Date(Math.round(output.DeletedAt * 1000)) : undefined, Latest: __expectBoolean(output.Latest), - MaxConcurrency: __expectInt(output.MaxConcurrency), - MaxSize: __expectInt(output.MaxSize), - MinSize: __expectInt(output.MinSize), + MaxConcurrency: __expectInt32(output.MaxConcurrency), + MaxSize: __expectInt32(output.MaxSize), + MinSize: __expectInt32(output.MinSize), Status: __expectString(output.Status), } as any; }; @@ -2532,7 +2532,7 @@ const deserializeAws_json1_0AutoScalingConfigurationSummary = ( return { AutoScalingConfigurationArn: __expectString(output.AutoScalingConfigurationArn), AutoScalingConfigurationName: __expectString(output.AutoScalingConfigurationName), - AutoScalingConfigurationRevision: __expectInt(output.AutoScalingConfigurationRevision), + AutoScalingConfigurationRevision: __expectInt32(output.AutoScalingConfigurationRevision), } as any; }; @@ -2811,12 +2811,12 @@ const deserializeAws_json1_0HealthCheckConfiguration = ( context: __SerdeContext ): HealthCheckConfiguration => { return { - HealthyThreshold: __expectInt(output.HealthyThreshold), - Interval: __expectInt(output.Interval), + HealthyThreshold: __expectInt32(output.HealthyThreshold), + Interval: __expectInt32(output.Interval), Path: __expectString(output.Path), Protocol: __expectString(output.Protocol), - Timeout: __expectInt(output.Timeout), - UnhealthyThreshold: __expectInt(output.UnhealthyThreshold), + Timeout: __expectInt32(output.Timeout), + UnhealthyThreshold: __expectInt32(output.UnhealthyThreshold), } as any; }; diff --git a/clients/client-appstream/protocols/Aws_json1_1.ts b/clients/client-appstream/protocols/Aws_json1_1.ts index 8183c21008bc4..13a93311fd912 100644 --- a/clients/client-appstream/protocols/Aws_json1_1.ts +++ b/clients/client-appstream/protocols/Aws_json1_1.ts @@ -245,7 +245,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -5563,10 +5563,10 @@ const deserializeAws_json1_1BatchDisassociateUserStackResult = ( const deserializeAws_json1_1ComputeCapacityStatus = (output: any, context: __SerdeContext): ComputeCapacityStatus => { return { - Available: __expectInt(output.Available), - Desired: __expectInt(output.Desired), - InUse: __expectInt(output.InUse), - Running: __expectInt(output.Running), + Available: __expectInt32(output.Available), + Desired: __expectInt32(output.Desired), + InUse: __expectInt32(output.InUse), + Running: __expectInt32(output.Running), } as any; }; @@ -5938,7 +5938,7 @@ const deserializeAws_json1_1Fleet = (output: any, context: __SerdeContext): Flee ? new Date(Math.round(output.CreatedTime * 1000)) : undefined, Description: __expectString(output.Description), - DisconnectTimeoutInSeconds: __expectInt(output.DisconnectTimeoutInSeconds), + DisconnectTimeoutInSeconds: __expectInt32(output.DisconnectTimeoutInSeconds), DisplayName: __expectString(output.DisplayName), DomainJoinInfo: output.DomainJoinInfo !== undefined && output.DomainJoinInfo !== null @@ -5951,11 +5951,11 @@ const deserializeAws_json1_1Fleet = (output: any, context: __SerdeContext): Flee : undefined, FleetType: __expectString(output.FleetType), IamRoleArn: __expectString(output.IamRoleArn), - IdleDisconnectTimeoutInSeconds: __expectInt(output.IdleDisconnectTimeoutInSeconds), + IdleDisconnectTimeoutInSeconds: __expectInt32(output.IdleDisconnectTimeoutInSeconds), ImageArn: __expectString(output.ImageArn), ImageName: __expectString(output.ImageName), InstanceType: __expectString(output.InstanceType), - MaxUserDurationInSeconds: __expectInt(output.MaxUserDurationInSeconds), + MaxUserDurationInSeconds: __expectInt32(output.MaxUserDurationInSeconds), Name: __expectString(output.Name), State: __expectString(output.State), StreamView: __expectString(output.StreamView), diff --git a/clients/client-appsync/protocols/Aws_restJson1.ts b/clients/client-appsync/protocols/Aws_restJson1.ts index 4d41a8ca3aee9..b78b72ccdc215 100644 --- a/clients/client-appsync/protocols/Aws_restJson1.ts +++ b/clients/client-appsync/protocols/Aws_restJson1.ts @@ -96,7 +96,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -5712,16 +5713,16 @@ const deserializeAws_restJson1ApiCache = (output: any, context: __SerdeContext): atRestEncryptionEnabled: __expectBoolean(output.atRestEncryptionEnabled), status: __expectString(output.status), transitEncryptionEnabled: __expectBoolean(output.transitEncryptionEnabled), - ttl: __expectInt(output.ttl), + ttl: __expectLong(output.ttl), type: __expectString(output.type), } as any; }; const deserializeAws_restJson1ApiKey = (output: any, context: __SerdeContext): ApiKey => { return { - deletes: __expectInt(output.deletes), + deletes: __expectLong(output.deletes), description: __expectString(output.description), - expires: __expectInt(output.expires), + expires: __expectLong(output.expires), id: __expectString(output.id), } as any; }; @@ -5760,7 +5761,7 @@ const deserializeAws_restJson1CachingConfig = (output: any, context: __SerdeCont output.cachingKeys !== undefined && output.cachingKeys !== null ? deserializeAws_restJson1CachingKeys(output.cachingKeys, context) : undefined, - ttl: __expectInt(output.ttl), + ttl: __expectLong(output.ttl), } as any; }; @@ -5826,9 +5827,9 @@ const deserializeAws_restJson1DataSources = (output: any, context: __SerdeContex const deserializeAws_restJson1DeltaSyncConfig = (output: any, context: __SerdeContext): DeltaSyncConfig => { return { - baseTableTTL: __expectInt(output.baseTableTTL), + baseTableTTL: __expectLong(output.baseTableTTL), deltaSyncTableName: __expectString(output.deltaSyncTableName), - deltaSyncTableTTL: __expectInt(output.deltaSyncTableTTL), + deltaSyncTableTTL: __expectLong(output.deltaSyncTableTTL), } as any; }; @@ -5962,7 +5963,7 @@ const deserializeAws_restJson1LambdaAuthorizerConfig = ( context: __SerdeContext ): LambdaAuthorizerConfig => { return { - authorizerResultTtlInSeconds: __expectInt(output.authorizerResultTtlInSeconds), + authorizerResultTtlInSeconds: __expectInt32(output.authorizerResultTtlInSeconds), authorizerUri: __expectString(output.authorizerUri), identityValidationExpression: __expectString(output.identityValidationExpression), } as any; @@ -6011,9 +6012,9 @@ const deserializeAws_restJson1MapOfStringToString = ( const deserializeAws_restJson1OpenIDConnectConfig = (output: any, context: __SerdeContext): OpenIDConnectConfig => { return { - authTTL: __expectInt(output.authTTL), + authTTL: __expectLong(output.authTTL), clientId: __expectString(output.clientId), - iatTTL: __expectInt(output.iatTTL), + iatTTL: __expectLong(output.iatTTL), issuer: __expectString(output.issuer), } as any; }; diff --git a/clients/client-athena/protocols/Aws_json1_1.ts b/clients/client-athena/protocols/Aws_json1_1.ts index e50f78214aab6..9d1650777ba7d 100644 --- a/clients/client-athena/protocols/Aws_json1_1.ts +++ b/clients/client-athena/protocols/Aws_json1_1.ts @@ -165,7 +165,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3428,8 +3429,8 @@ const deserializeAws_json1_1ColumnInfo = (output: any, context: __SerdeContext): Label: __expectString(output.Label), Name: __expectString(output.Name), Nullable: __expectString(output.Nullable), - Precision: __expectInt(output.Precision), - Scale: __expectInt(output.Scale), + Precision: __expectInt32(output.Precision), + Scale: __expectInt32(output.Scale), SchemaName: __expectString(output.SchemaName), TableName: __expectString(output.TableName), Type: __expectString(output.Type), @@ -3659,7 +3660,7 @@ const deserializeAws_json1_1GetQueryResultsOutput = (output: any, context: __Ser output.ResultSet !== undefined && output.ResultSet !== null ? deserializeAws_json1_1ResultSet(output.ResultSet, context) : undefined, - UpdateCount: __expectInt(output.UpdateCount), + UpdateCount: __expectLong(output.UpdateCount), } as any; }; @@ -3960,12 +3961,12 @@ const deserializeAws_json1_1QueryExecutionStatistics = ( ): QueryExecutionStatistics => { return { DataManifestLocation: __expectString(output.DataManifestLocation), - DataScannedInBytes: __expectInt(output.DataScannedInBytes), - EngineExecutionTimeInMillis: __expectInt(output.EngineExecutionTimeInMillis), - QueryPlanningTimeInMillis: __expectInt(output.QueryPlanningTimeInMillis), - QueryQueueTimeInMillis: __expectInt(output.QueryQueueTimeInMillis), - ServiceProcessingTimeInMillis: __expectInt(output.ServiceProcessingTimeInMillis), - TotalExecutionTimeInMillis: __expectInt(output.TotalExecutionTimeInMillis), + DataScannedInBytes: __expectLong(output.DataScannedInBytes), + EngineExecutionTimeInMillis: __expectLong(output.EngineExecutionTimeInMillis), + QueryPlanningTimeInMillis: __expectLong(output.QueryPlanningTimeInMillis), + QueryQueueTimeInMillis: __expectLong(output.QueryQueueTimeInMillis), + ServiceProcessingTimeInMillis: __expectLong(output.ServiceProcessingTimeInMillis), + TotalExecutionTimeInMillis: __expectLong(output.TotalExecutionTimeInMillis), } as any; }; @@ -4222,7 +4223,7 @@ const deserializeAws_json1_1WorkGroup = (output: any, context: __SerdeContext): const deserializeAws_json1_1WorkGroupConfiguration = (output: any, context: __SerdeContext): WorkGroupConfiguration => { return { - BytesScannedCutoffPerQuery: __expectInt(output.BytesScannedCutoffPerQuery), + BytesScannedCutoffPerQuery: __expectLong(output.BytesScannedCutoffPerQuery), EnforceWorkGroupConfiguration: __expectBoolean(output.EnforceWorkGroupConfiguration), EngineVersion: output.EngineVersion !== undefined && output.EngineVersion !== null diff --git a/clients/client-auditmanager/protocols/Aws_restJson1.ts b/clients/client-auditmanager/protocols/Aws_restJson1.ts index 81910bf39f1ef..5d0195f65ca25 100644 --- a/clients/client-auditmanager/protocols/Aws_restJson1.ts +++ b/clients/client-auditmanager/protocols/Aws_restJson1.ts @@ -185,7 +185,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -6294,13 +6294,13 @@ const deserializeAws_restJson1Assessment = (output: any, context: __SerdeContext const deserializeAws_restJson1AssessmentControl = (output: any, context: __SerdeContext): AssessmentControl => { return { - assessmentReportEvidenceCount: __expectInt(output.assessmentReportEvidenceCount), + assessmentReportEvidenceCount: __expectInt32(output.assessmentReportEvidenceCount), comments: output.comments !== undefined && output.comments !== null ? deserializeAws_restJson1ControlComments(output.comments, context) : undefined, description: __expectString(output.description), - evidenceCount: __expectInt(output.evidenceCount), + evidenceCount: __expectInt32(output.evidenceCount), evidenceSources: output.evidenceSources !== undefined && output.evidenceSources !== null ? deserializeAws_restJson1EvidenceSources(output.evidenceSources, context) @@ -6335,13 +6335,13 @@ const deserializeAws_restJson1AssessmentControlSet = (output: any, context: __Se : undefined, description: __expectString(output.description), id: __expectString(output.id), - manualEvidenceCount: __expectInt(output.manualEvidenceCount), + manualEvidenceCount: __expectInt32(output.manualEvidenceCount), roles: output.roles !== undefined && output.roles !== null ? deserializeAws_restJson1Roles(output.roles, context) : undefined, status: __expectString(output.status), - systemEvidenceCount: __expectInt(output.systemEvidenceCount), + systemEvidenceCount: __expectInt32(output.systemEvidenceCount), } as any; }; @@ -6365,23 +6365,23 @@ const deserializeAws_restJson1AssessmentEvidenceFolder = ( ): AssessmentEvidenceFolder => { return { assessmentId: __expectString(output.assessmentId), - assessmentReportSelectionCount: __expectInt(output.assessmentReportSelectionCount), + assessmentReportSelectionCount: __expectInt32(output.assessmentReportSelectionCount), author: __expectString(output.author), controlId: __expectString(output.controlId), controlName: __expectString(output.controlName), controlSetId: __expectString(output.controlSetId), dataSource: __expectString(output.dataSource), date: output.date !== undefined && output.date !== null ? new Date(Math.round(output.date * 1000)) : undefined, - evidenceAwsServiceSourceCount: __expectInt(output.evidenceAwsServiceSourceCount), - evidenceByTypeComplianceCheckCount: __expectInt(output.evidenceByTypeComplianceCheckCount), - evidenceByTypeComplianceCheckIssuesCount: __expectInt(output.evidenceByTypeComplianceCheckIssuesCount), - evidenceByTypeConfigurationDataCount: __expectInt(output.evidenceByTypeConfigurationDataCount), - evidenceByTypeManualCount: __expectInt(output.evidenceByTypeManualCount), - evidenceByTypeUserActivityCount: __expectInt(output.evidenceByTypeUserActivityCount), - evidenceResourcesIncludedCount: __expectInt(output.evidenceResourcesIncludedCount), + evidenceAwsServiceSourceCount: __expectInt32(output.evidenceAwsServiceSourceCount), + evidenceByTypeComplianceCheckCount: __expectInt32(output.evidenceByTypeComplianceCheckCount), + evidenceByTypeComplianceCheckIssuesCount: __expectInt32(output.evidenceByTypeComplianceCheckIssuesCount), + evidenceByTypeConfigurationDataCount: __expectInt32(output.evidenceByTypeConfigurationDataCount), + evidenceByTypeManualCount: __expectInt32(output.evidenceByTypeManualCount), + evidenceByTypeUserActivityCount: __expectInt32(output.evidenceByTypeUserActivityCount), + evidenceResourcesIncludedCount: __expectInt32(output.evidenceResourcesIncludedCount), id: __expectString(output.id), name: __expectString(output.name), - totalEvidence: __expectInt(output.totalEvidence), + totalEvidence: __expectInt32(output.totalEvidence), } as any; }; @@ -6421,8 +6421,8 @@ const deserializeAws_restJson1AssessmentFrameworkMetadata = ( return { arn: __expectString(output.arn), complianceType: __expectString(output.complianceType), - controlSetsCount: __expectInt(output.controlSetsCount), - controlsCount: __expectInt(output.controlsCount), + controlSetsCount: __expectInt32(output.controlSetsCount), + controlsCount: __expectInt32(output.controlsCount), createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) diff --git a/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts b/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts index b771803b4611e..ed75c8303260e 100644 --- a/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts +++ b/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts @@ -49,9 +49,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -1049,7 +1050,7 @@ const deserializeAws_json1_1CreateScalingPlanResponse = ( context: __SerdeContext ): CreateScalingPlanResponse => { return { - ScalingPlanVersion: __expectInt(output.ScalingPlanVersion), + ScalingPlanVersion: __expectLong(output.ScalingPlanVersion), } as any; }; @@ -1091,7 +1092,7 @@ const deserializeAws_json1_1Datapoint = (output: any, context: __SerdeContext): output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -1229,19 +1230,19 @@ const deserializeAws_json1_1ScalingInstruction = (output: any, context: __SerdeC ? deserializeAws_json1_1CustomizedLoadMetricSpecification(output.CustomizedLoadMetricSpecification, context) : undefined, DisableDynamicScaling: __expectBoolean(output.DisableDynamicScaling), - MaxCapacity: __expectInt(output.MaxCapacity), - MinCapacity: __expectInt(output.MinCapacity), + MaxCapacity: __expectInt32(output.MaxCapacity), + MinCapacity: __expectInt32(output.MinCapacity), PredefinedLoadMetricSpecification: output.PredefinedLoadMetricSpecification !== undefined && output.PredefinedLoadMetricSpecification !== null ? deserializeAws_json1_1PredefinedLoadMetricSpecification(output.PredefinedLoadMetricSpecification, context) : undefined, PredictiveScalingMaxCapacityBehavior: __expectString(output.PredictiveScalingMaxCapacityBehavior), - PredictiveScalingMaxCapacityBuffer: __expectInt(output.PredictiveScalingMaxCapacityBuffer), + PredictiveScalingMaxCapacityBuffer: __expectInt32(output.PredictiveScalingMaxCapacityBuffer), PredictiveScalingMode: __expectString(output.PredictiveScalingMode), ResourceId: __expectString(output.ResourceId), ScalableDimension: __expectString(output.ScalableDimension), ScalingPolicyUpdateBehavior: __expectString(output.ScalingPolicyUpdateBehavior), - ScheduledActionBufferTime: __expectInt(output.ScheduledActionBufferTime), + ScheduledActionBufferTime: __expectInt32(output.ScheduledActionBufferTime), ServiceNamespace: __expectString(output.ServiceNamespace), TargetTrackingConfigurations: output.TargetTrackingConfigurations !== undefined && output.TargetTrackingConfigurations !== null @@ -1276,7 +1277,7 @@ const deserializeAws_json1_1ScalingPlan = (output: any, context: __SerdeContext) ? deserializeAws_json1_1ScalingInstructions(output.ScalingInstructions, context) : undefined, ScalingPlanName: __expectString(output.ScalingPlanName), - ScalingPlanVersion: __expectInt(output.ScalingPlanVersion), + ScalingPlanVersion: __expectLong(output.ScalingPlanVersion), StatusCode: __expectString(output.StatusCode), StatusMessage: __expectString(output.StatusMessage), StatusStartTime: @@ -1291,7 +1292,7 @@ const deserializeAws_json1_1ScalingPlanResource = (output: any, context: __Serde ResourceId: __expectString(output.ResourceId), ScalableDimension: __expectString(output.ScalableDimension), ScalingPlanName: __expectString(output.ScalingPlanName), - ScalingPlanVersion: __expectInt(output.ScalingPlanVersion), + ScalingPlanVersion: __expectLong(output.ScalingPlanVersion), ScalingPolicies: output.ScalingPolicies !== undefined && output.ScalingPolicies !== null ? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context) @@ -1391,7 +1392,7 @@ const deserializeAws_json1_1TargetTrackingConfiguration = ( ) : undefined, DisableScaleIn: __expectBoolean(output.DisableScaleIn), - EstimatedInstanceWarmup: __expectInt(output.EstimatedInstanceWarmup), + EstimatedInstanceWarmup: __expectInt32(output.EstimatedInstanceWarmup), PredefinedScalingMetricSpecification: output.PredefinedScalingMetricSpecification !== undefined && output.PredefinedScalingMetricSpecification !== null ? deserializeAws_json1_1PredefinedScalingMetricSpecification( @@ -1399,9 +1400,9 @@ const deserializeAws_json1_1TargetTrackingConfiguration = ( context ) : undefined, - ScaleInCooldown: __expectInt(output.ScaleInCooldown), - ScaleOutCooldown: __expectInt(output.ScaleOutCooldown), - TargetValue: __limitedParseFloat(output.TargetValue), + ScaleInCooldown: __expectInt32(output.ScaleInCooldown), + ScaleOutCooldown: __expectInt32(output.ScaleOutCooldown), + TargetValue: __limitedParseDouble(output.TargetValue), } as any; }; diff --git a/clients/client-auto-scaling/protocols/Aws_query.ts b/clients/client-auto-scaling/protocols/Aws_query.ts index cb947446cc3bd..788bfe128ae63 100644 --- a/clients/client-auto-scaling/protocols/Aws_query.ts +++ b/clients/client-auto-scaling/protocols/Aws_query.ts @@ -351,7 +351,7 @@ import { parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -7387,7 +7387,7 @@ const deserializeAws_queryActivity = (output: any, context: __SerdeContext): Act contents.StatusMessage = __expectString(output["StatusMessage"]); } if (output["Progress"] !== undefined) { - contents.Progress = __strictParseInt(output["Progress"]) as number; + contents.Progress = __strictParseInt32(output["Progress"]) as number; } if (output["Details"] !== undefined) { contents.Details = __expectString(output["Details"]); @@ -7533,19 +7533,19 @@ const deserializeAws_queryAutoScalingGroup = (output: any, context: __SerdeConte contents.MixedInstancesPolicy = deserializeAws_queryMixedInstancesPolicy(output["MixedInstancesPolicy"], context); } if (output["MinSize"] !== undefined) { - contents.MinSize = __strictParseInt(output["MinSize"]) as number; + contents.MinSize = __strictParseInt32(output["MinSize"]) as number; } if (output["MaxSize"] !== undefined) { - contents.MaxSize = __strictParseInt(output["MaxSize"]) as number; + contents.MaxSize = __strictParseInt32(output["MaxSize"]) as number; } if (output["DesiredCapacity"] !== undefined) { - contents.DesiredCapacity = __strictParseInt(output["DesiredCapacity"]) as number; + contents.DesiredCapacity = __strictParseInt32(output["DesiredCapacity"]) as number; } if (output["PredictedCapacity"] !== undefined) { - contents.PredictedCapacity = __strictParseInt(output["PredictedCapacity"]) as number; + contents.PredictedCapacity = __strictParseInt32(output["PredictedCapacity"]) as number; } if (output["DefaultCooldown"] !== undefined) { - contents.DefaultCooldown = __strictParseInt(output["DefaultCooldown"]) as number; + contents.DefaultCooldown = __strictParseInt32(output["DefaultCooldown"]) as number; } if (output.AvailabilityZones === "") { contents.AvailabilityZones = []; @@ -7578,7 +7578,7 @@ const deserializeAws_queryAutoScalingGroup = (output: any, context: __SerdeConte contents.HealthCheckType = __expectString(output["HealthCheckType"]); } if (output["HealthCheckGracePeriod"] !== undefined) { - contents.HealthCheckGracePeriod = __strictParseInt(output["HealthCheckGracePeriod"]) as number; + contents.HealthCheckGracePeriod = __strictParseInt32(output["HealthCheckGracePeriod"]) as number; } if (output.Instances === "") { contents.Instances = []; @@ -7638,7 +7638,7 @@ const deserializeAws_queryAutoScalingGroup = (output: any, context: __SerdeConte contents.ServiceLinkedRoleARN = __expectString(output["ServiceLinkedRoleARN"]); } if (output["MaxInstanceLifetime"] !== undefined) { - contents.MaxInstanceLifetime = __strictParseInt(output["MaxInstanceLifetime"]) as number; + contents.MaxInstanceLifetime = __strictParseInt32(output["MaxInstanceLifetime"]) as number; } if (output["CapacityRebalance"] !== undefined) { contents.CapacityRebalance = __parseBoolean(output["CapacityRebalance"]); @@ -7650,7 +7650,7 @@ const deserializeAws_queryAutoScalingGroup = (output: any, context: __SerdeConte ); } if (output["WarmPoolSize"] !== undefined) { - contents.WarmPoolSize = __strictParseInt(output["WarmPoolSize"]) as number; + contents.WarmPoolSize = __strictParseInt32(output["WarmPoolSize"]) as number; } if (output["Context"] !== undefined) { contents.Context = __expectString(output["Context"]); @@ -7917,7 +7917,7 @@ const deserializeAws_queryCheckpointPercentages = (output: any, context: __Serde if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; @@ -7999,16 +7999,16 @@ const deserializeAws_queryDescribeAccountLimitsAnswer = ( NumberOfLaunchConfigurations: undefined, }; if (output["MaxNumberOfAutoScalingGroups"] !== undefined) { - contents.MaxNumberOfAutoScalingGroups = __strictParseInt(output["MaxNumberOfAutoScalingGroups"]) as number; + contents.MaxNumberOfAutoScalingGroups = __strictParseInt32(output["MaxNumberOfAutoScalingGroups"]) as number; } if (output["MaxNumberOfLaunchConfigurations"] !== undefined) { - contents.MaxNumberOfLaunchConfigurations = __strictParseInt(output["MaxNumberOfLaunchConfigurations"]) as number; + contents.MaxNumberOfLaunchConfigurations = __strictParseInt32(output["MaxNumberOfLaunchConfigurations"]) as number; } if (output["NumberOfAutoScalingGroups"] !== undefined) { - contents.NumberOfAutoScalingGroups = __strictParseInt(output["NumberOfAutoScalingGroups"]) as number; + contents.NumberOfAutoScalingGroups = __strictParseInt32(output["NumberOfAutoScalingGroups"]) as number; } if (output["NumberOfLaunchConfigurations"] !== undefined) { - contents.NumberOfLaunchConfigurations = __strictParseInt(output["NumberOfLaunchConfigurations"]) as number; + contents.NumberOfLaunchConfigurations = __strictParseInt32(output["NumberOfLaunchConfigurations"]) as number; } return contents; }; @@ -8319,7 +8319,7 @@ const deserializeAws_queryEbs = (output: any, context: __SerdeContext): Ebs => { contents.SnapshotId = __expectString(output["SnapshotId"]); } if (output["VolumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt(output["VolumeSize"]) as number; + contents.VolumeSize = __strictParseInt32(output["VolumeSize"]) as number; } if (output["VolumeType"] !== undefined) { contents.VolumeType = __expectString(output["VolumeType"]); @@ -8328,13 +8328,13 @@ const deserializeAws_queryEbs = (output: any, context: __SerdeContext): Ebs => { contents.DeleteOnTermination = __parseBoolean(output["DeleteOnTermination"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output["Encrypted"] !== undefined) { contents.Encrypted = __parseBoolean(output["Encrypted"]); } if (output["Throughput"] !== undefined) { - contents.Throughput = __strictParseInt(output["Throughput"]) as number; + contents.Throughput = __strictParseInt32(output["Throughput"]) as number; } return contents; }; @@ -8510,7 +8510,7 @@ const deserializeAws_queryInstanceMetadataOptions = (output: any, context: __Ser contents.HttpTokens = __expectString(output["HttpTokens"]); } if (output["HttpPutResponseHopLimit"] !== undefined) { - contents.HttpPutResponseHopLimit = __strictParseInt(output["HttpPutResponseHopLimit"]) as number; + contents.HttpPutResponseHopLimit = __strictParseInt32(output["HttpPutResponseHopLimit"]) as number; } if (output["HttpEndpoint"] !== undefined) { contents.HttpEndpoint = __expectString(output["HttpEndpoint"]); @@ -8561,10 +8561,10 @@ const deserializeAws_queryInstanceRefresh = (output: any, context: __SerdeContex contents.EndTime = new Date(output["EndTime"]); } if (output["PercentageComplete"] !== undefined) { - contents.PercentageComplete = __strictParseInt(output["PercentageComplete"]) as number; + contents.PercentageComplete = __strictParseInt32(output["PercentageComplete"]) as number; } if (output["InstancesToUpdate"] !== undefined) { - contents.InstancesToUpdate = __strictParseInt(output["InstancesToUpdate"]) as number; + contents.InstancesToUpdate = __strictParseInt32(output["InstancesToUpdate"]) as number; } if (output["ProgressDetails"] !== undefined) { contents.ProgressDetails = deserializeAws_queryInstanceRefreshProgressDetails(output["ProgressDetails"], context); @@ -8611,10 +8611,10 @@ const deserializeAws_queryInstanceRefreshLivePoolProgress = ( InstancesToUpdate: undefined, }; if (output["PercentageComplete"] !== undefined) { - contents.PercentageComplete = __strictParseInt(output["PercentageComplete"]) as number; + contents.PercentageComplete = __strictParseInt32(output["PercentageComplete"]) as number; } if (output["InstancesToUpdate"] !== undefined) { - contents.InstancesToUpdate = __strictParseInt(output["InstancesToUpdate"]) as number; + contents.InstancesToUpdate = __strictParseInt32(output["InstancesToUpdate"]) as number; } return contents; }; @@ -8651,10 +8651,10 @@ const deserializeAws_queryInstanceRefreshWarmPoolProgress = ( InstancesToUpdate: undefined, }; if (output["PercentageComplete"] !== undefined) { - contents.PercentageComplete = __strictParseInt(output["PercentageComplete"]) as number; + contents.PercentageComplete = __strictParseInt32(output["PercentageComplete"]) as number; } if (output["InstancesToUpdate"] !== undefined) { - contents.InstancesToUpdate = __strictParseInt(output["InstancesToUpdate"]) as number; + contents.InstancesToUpdate = __strictParseInt32(output["InstancesToUpdate"]) as number; } return contents; }; @@ -8683,10 +8683,10 @@ const deserializeAws_queryInstancesDistribution = (output: any, context: __Serde contents.OnDemandAllocationStrategy = __expectString(output["OnDemandAllocationStrategy"]); } if (output["OnDemandBaseCapacity"] !== undefined) { - contents.OnDemandBaseCapacity = __strictParseInt(output["OnDemandBaseCapacity"]) as number; + contents.OnDemandBaseCapacity = __strictParseInt32(output["OnDemandBaseCapacity"]) as number; } if (output["OnDemandPercentageAboveBaseCapacity"] !== undefined) { - contents.OnDemandPercentageAboveBaseCapacity = __strictParseInt( + contents.OnDemandPercentageAboveBaseCapacity = __strictParseInt32( output["OnDemandPercentageAboveBaseCapacity"] ) as number; } @@ -8694,7 +8694,7 @@ const deserializeAws_queryInstancesDistribution = (output: any, context: __Serde contents.SpotAllocationStrategy = __expectString(output["SpotAllocationStrategy"]); } if (output["SpotInstancePools"] !== undefined) { - contents.SpotInstancePools = __strictParseInt(output["SpotInstancePools"]) as number; + contents.SpotInstancePools = __strictParseInt32(output["SpotInstancePools"]) as number; } if (output["SpotMaxPrice"] !== undefined) { contents.SpotMaxPrice = __expectString(output["SpotMaxPrice"]); @@ -8946,10 +8946,10 @@ const deserializeAws_queryLifecycleHook = (output: any, context: __SerdeContext) contents.NotificationMetadata = __expectString(output["NotificationMetadata"]); } if (output["HeartbeatTimeout"] !== undefined) { - contents.HeartbeatTimeout = __strictParseInt(output["HeartbeatTimeout"]) as number; + contents.HeartbeatTimeout = __strictParseInt32(output["HeartbeatTimeout"]) as number; } if (output["GlobalTimeout"] !== undefined) { - contents.GlobalTimeout = __strictParseInt(output["GlobalTimeout"]) as number; + contents.GlobalTimeout = __strictParseInt32(output["GlobalTimeout"]) as number; } if (output["DefaultResult"] !== undefined) { contents.DefaultResult = __expectString(output["DefaultResult"]); @@ -9297,13 +9297,13 @@ const deserializeAws_queryPredictiveScalingConfiguration = ( contents.Mode = __expectString(output["Mode"]); } if (output["SchedulingBufferTime"] !== undefined) { - contents.SchedulingBufferTime = __strictParseInt(output["SchedulingBufferTime"]) as number; + contents.SchedulingBufferTime = __strictParseInt32(output["SchedulingBufferTime"]) as number; } if (output["MaxCapacityBreachBehavior"] !== undefined) { contents.MaxCapacityBreachBehavior = __expectString(output["MaxCapacityBreachBehavior"]); } if (output["MaxCapacityBuffer"] !== undefined) { - contents.MaxCapacityBuffer = __strictParseInt(output["MaxCapacityBuffer"]) as number; + contents.MaxCapacityBuffer = __strictParseInt32(output["MaxCapacityBuffer"]) as number; } return contents; }; @@ -9490,10 +9490,10 @@ const deserializeAws_queryRefreshPreferences = (output: any, context: __SerdeCon SkipMatching: undefined, }; if (output["MinHealthyPercentage"] !== undefined) { - contents.MinHealthyPercentage = __strictParseInt(output["MinHealthyPercentage"]) as number; + contents.MinHealthyPercentage = __strictParseInt32(output["MinHealthyPercentage"]) as number; } if (output["InstanceWarmup"] !== undefined) { - contents.InstanceWarmup = __strictParseInt(output["InstanceWarmup"]) as number; + contents.InstanceWarmup = __strictParseInt32(output["InstanceWarmup"]) as number; } if (output.CheckpointPercentages === "") { contents.CheckpointPercentages = []; @@ -9505,7 +9505,7 @@ const deserializeAws_queryRefreshPreferences = (output: any, context: __SerdeCon ); } if (output["CheckpointDelay"] !== undefined) { - contents.CheckpointDelay = __strictParseInt(output["CheckpointDelay"]) as number; + contents.CheckpointDelay = __strictParseInt32(output["CheckpointDelay"]) as number; } if (output["SkipMatching"] !== undefined) { contents.SkipMatching = __parseBoolean(output["SkipMatching"]); @@ -9592,16 +9592,16 @@ const deserializeAws_queryScalingPolicy = (output: any, context: __SerdeContext) contents.AdjustmentType = __expectString(output["AdjustmentType"]); } if (output["MinAdjustmentStep"] !== undefined) { - contents.MinAdjustmentStep = __strictParseInt(output["MinAdjustmentStep"]) as number; + contents.MinAdjustmentStep = __strictParseInt32(output["MinAdjustmentStep"]) as number; } if (output["MinAdjustmentMagnitude"] !== undefined) { - contents.MinAdjustmentMagnitude = __strictParseInt(output["MinAdjustmentMagnitude"]) as number; + contents.MinAdjustmentMagnitude = __strictParseInt32(output["MinAdjustmentMagnitude"]) as number; } if (output["ScalingAdjustment"] !== undefined) { - contents.ScalingAdjustment = __strictParseInt(output["ScalingAdjustment"]) as number; + contents.ScalingAdjustment = __strictParseInt32(output["ScalingAdjustment"]) as number; } if (output["Cooldown"] !== undefined) { - contents.Cooldown = __strictParseInt(output["Cooldown"]) as number; + contents.Cooldown = __strictParseInt32(output["Cooldown"]) as number; } if (output.StepAdjustments === "") { contents.StepAdjustments = []; @@ -9616,7 +9616,7 @@ const deserializeAws_queryScalingPolicy = (output: any, context: __SerdeContext) contents.MetricAggregationType = __expectString(output["MetricAggregationType"]); } if (output["EstimatedInstanceWarmup"] !== undefined) { - contents.EstimatedInstanceWarmup = __strictParseInt(output["EstimatedInstanceWarmup"]) as number; + contents.EstimatedInstanceWarmup = __strictParseInt32(output["EstimatedInstanceWarmup"]) as number; } if (output.Alarms === "") { contents.Alarms = []; @@ -9704,13 +9704,13 @@ const deserializeAws_queryScheduledUpdateGroupAction = ( contents.Recurrence = __expectString(output["Recurrence"]); } if (output["MinSize"] !== undefined) { - contents.MinSize = __strictParseInt(output["MinSize"]) as number; + contents.MinSize = __strictParseInt32(output["MinSize"]) as number; } if (output["MaxSize"] !== undefined) { - contents.MaxSize = __strictParseInt(output["MaxSize"]) as number; + contents.MaxSize = __strictParseInt32(output["MaxSize"]) as number; } if (output["DesiredCapacity"] !== undefined) { - contents.DesiredCapacity = __strictParseInt(output["DesiredCapacity"]) as number; + contents.DesiredCapacity = __strictParseInt32(output["DesiredCapacity"]) as number; } if (output["TimeZone"] !== undefined) { contents.TimeZone = __expectString(output["TimeZone"]); @@ -9790,7 +9790,7 @@ const deserializeAws_queryStepAdjustment = (output: any, context: __SerdeContext contents.MetricIntervalUpperBound = __strictParseFloat(output["MetricIntervalUpperBound"]) as number; } if (output["ScalingAdjustment"] !== undefined) { - contents.ScalingAdjustment = __strictParseInt(output["ScalingAdjustment"]) as number; + contents.ScalingAdjustment = __strictParseInt32(output["ScalingAdjustment"]) as number; } return contents; }; @@ -9946,10 +9946,10 @@ const deserializeAws_queryWarmPoolConfiguration = (output: any, context: __Serde Status: undefined, }; if (output["MaxGroupPreparedCapacity"] !== undefined) { - contents.MaxGroupPreparedCapacity = __strictParseInt(output["MaxGroupPreparedCapacity"]) as number; + contents.MaxGroupPreparedCapacity = __strictParseInt32(output["MaxGroupPreparedCapacity"]) as number; } if (output["MinSize"] !== undefined) { - contents.MinSize = __strictParseInt(output["MinSize"]) as number; + contents.MinSize = __strictParseInt32(output["MinSize"]) as number; } if (output["PoolState"] !== undefined) { contents.PoolState = __expectString(output["PoolState"]); diff --git a/clients/client-backup/protocols/Aws_restJson1.ts b/clients/client-backup/protocols/Aws_restJson1.ts index 3211d38a9df88..5c435aa271a33 100644 --- a/clients/client-backup/protocols/Aws_restJson1.ts +++ b/clients/client-backup/protocols/Aws_restJson1.ts @@ -172,7 +172,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2661,7 +2661,7 @@ export const deserializeAws_restJson1DescribeBackupJobCommand = async ( contents.BackupOptions = deserializeAws_restJson1BackupOptions(data.BackupOptions, context); } if (data.BackupSizeInBytes !== undefined && data.BackupSizeInBytes !== null) { - contents.BackupSizeInBytes = __expectInt(data.BackupSizeInBytes); + contents.BackupSizeInBytes = __expectLong(data.BackupSizeInBytes); } if (data.BackupType !== undefined && data.BackupType !== null) { contents.BackupType = __expectString(data.BackupType); @@ -2673,7 +2673,7 @@ export const deserializeAws_restJson1DescribeBackupJobCommand = async ( contents.BackupVaultName = __expectString(data.BackupVaultName); } if (data.BytesTransferred !== undefined && data.BytesTransferred !== null) { - contents.BytesTransferred = __expectInt(data.BytesTransferred); + contents.BytesTransferred = __expectLong(data.BytesTransferred); } if (data.CompletionDate !== undefined && data.CompletionDate !== null) { contents.CompletionDate = new Date(Math.round(data.CompletionDate * 1000)); @@ -2816,7 +2816,7 @@ export const deserializeAws_restJson1DescribeBackupVaultCommand = async ( contents.EncryptionKeyArn = __expectString(data.EncryptionKeyArn); } if (data.NumberOfRecoveryPoints !== undefined && data.NumberOfRecoveryPoints !== null) { - contents.NumberOfRecoveryPoints = __expectInt(data.NumberOfRecoveryPoints); + contents.NumberOfRecoveryPoints = __expectLong(data.NumberOfRecoveryPoints); } return Promise.resolve(contents); }; @@ -3145,7 +3145,7 @@ export const deserializeAws_restJson1DescribeRecoveryPointCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BackupSizeInBytes !== undefined && data.BackupSizeInBytes !== null) { - contents.BackupSizeInBytes = __expectInt(data.BackupSizeInBytes); + contents.BackupSizeInBytes = __expectLong(data.BackupSizeInBytes); } if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) { contents.BackupVaultArn = __expectString(data.BackupVaultArn); @@ -3348,7 +3348,7 @@ export const deserializeAws_restJson1DescribeRestoreJobCommand = async ( contents.AccountId = __expectString(data.AccountId); } if (data.BackupSizeInBytes !== undefined && data.BackupSizeInBytes !== null) { - contents.BackupSizeInBytes = __expectInt(data.BackupSizeInBytes); + contents.BackupSizeInBytes = __expectLong(data.BackupSizeInBytes); } if (data.CompletionDate !== undefined && data.CompletionDate !== null) { contents.CompletionDate = new Date(Math.round(data.CompletionDate * 1000)); @@ -3360,7 +3360,7 @@ export const deserializeAws_restJson1DescribeRestoreJobCommand = async ( contents.CreationDate = new Date(Math.round(data.CreationDate * 1000)); } if (data.ExpectedCompletionTimeMinutes !== undefined && data.ExpectedCompletionTimeMinutes !== null) { - contents.ExpectedCompletionTimeMinutes = __expectInt(data.ExpectedCompletionTimeMinutes); + contents.ExpectedCompletionTimeMinutes = __expectLong(data.ExpectedCompletionTimeMinutes); } if (data.IamRoleArn !== undefined && data.IamRoleArn !== null) { contents.IamRoleArn = __expectString(data.IamRoleArn); @@ -6806,11 +6806,11 @@ const deserializeAws_restJson1BackupJob = (output: any, context: __SerdeContext) output.BackupOptions !== undefined && output.BackupOptions !== null ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context) : undefined, - BackupSizeInBytes: __expectInt(output.BackupSizeInBytes), + BackupSizeInBytes: __expectLong(output.BackupSizeInBytes), BackupType: __expectString(output.BackupType), BackupVaultArn: __expectString(output.BackupVaultArn), BackupVaultName: __expectString(output.BackupVaultName), - BytesTransferred: __expectInt(output.BytesTransferred), + BytesTransferred: __expectLong(output.BytesTransferred), CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? new Date(Math.round(output.CompletionDate * 1000)) @@ -6953,7 +6953,7 @@ const deserializeAws_restJson1BackupPlanVersionsList = ( const deserializeAws_restJson1BackupRule = (output: any, context: __SerdeContext): BackupRule => { return { - CompletionWindowMinutes: __expectInt(output.CompletionWindowMinutes), + CompletionWindowMinutes: __expectLong(output.CompletionWindowMinutes), CopyActions: output.CopyActions !== undefined && output.CopyActions !== null ? deserializeAws_restJson1CopyActions(output.CopyActions, context) @@ -6970,7 +6970,7 @@ const deserializeAws_restJson1BackupRule = (output: any, context: __SerdeContext RuleId: __expectString(output.RuleId), RuleName: __expectString(output.RuleName), ScheduleExpression: __expectString(output.ScheduleExpression), - StartWindowMinutes: __expectInt(output.StartWindowMinutes), + StartWindowMinutes: __expectLong(output.StartWindowMinutes), TargetBackupVaultName: __expectString(output.TargetBackupVaultName), } as any; }; @@ -7067,7 +7067,7 @@ const deserializeAws_restJson1BackupVaultListMember = (output: any, context: __S : undefined, CreatorRequestId: __expectString(output.CreatorRequestId), EncryptionKeyArn: __expectString(output.EncryptionKeyArn), - NumberOfRecoveryPoints: __expectInt(output.NumberOfRecoveryPoints), + NumberOfRecoveryPoints: __expectLong(output.NumberOfRecoveryPoints), } as any; }; @@ -7116,7 +7116,7 @@ const deserializeAws_restJson1CopyActions = (output: any, context: __SerdeContex const deserializeAws_restJson1CopyJob = (output: any, context: __SerdeContext): CopyJob => { return { AccountId: __expectString(output.AccountId), - BackupSizeInBytes: __expectInt(output.BackupSizeInBytes), + BackupSizeInBytes: __expectLong(output.BackupSizeInBytes), CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? new Date(Math.round(output.CompletionDate * 1000)) @@ -7167,8 +7167,8 @@ const deserializeAws_restJson1GlobalSettings = (output: any, context: __SerdeCon const deserializeAws_restJson1Lifecycle = (output: any, context: __SerdeContext): Lifecycle => { return { - DeleteAfterDays: __expectInt(output.DeleteAfterDays), - MoveToColdStorageAfterDays: __expectInt(output.MoveToColdStorageAfterDays), + DeleteAfterDays: __expectLong(output.DeleteAfterDays), + MoveToColdStorageAfterDays: __expectLong(output.MoveToColdStorageAfterDays), } as any; }; @@ -7222,7 +7222,7 @@ const deserializeAws_restJson1RecoveryPointByBackupVault = ( context: __SerdeContext ): RecoveryPointByBackupVault => { return { - BackupSizeInBytes: __expectInt(output.BackupSizeInBytes), + BackupSizeInBytes: __expectLong(output.BackupSizeInBytes), BackupVaultArn: __expectString(output.BackupVaultArn), BackupVaultName: __expectString(output.BackupVaultName), CalculatedLifecycle: @@ -7279,7 +7279,7 @@ const deserializeAws_restJson1RecoveryPointByResource = ( context: __SerdeContext ): RecoveryPointByResource => { return { - BackupSizeBytes: __expectInt(output.BackupSizeBytes), + BackupSizeBytes: __expectLong(output.BackupSizeBytes), BackupVaultName: __expectString(output.BackupVaultName), CreationDate: output.CreationDate !== undefined && output.CreationDate !== null @@ -7365,7 +7365,7 @@ const deserializeAws_restJson1RestoreJobsList = (output: any, context: __SerdeCo const deserializeAws_restJson1RestoreJobsListMember = (output: any, context: __SerdeContext): RestoreJobsListMember => { return { AccountId: __expectString(output.AccountId), - BackupSizeInBytes: __expectInt(output.BackupSizeInBytes), + BackupSizeInBytes: __expectLong(output.BackupSizeInBytes), CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? new Date(Math.round(output.CompletionDate * 1000)) @@ -7375,7 +7375,7 @@ const deserializeAws_restJson1RestoreJobsListMember = (output: any, context: __S output.CreationDate !== undefined && output.CreationDate !== null ? new Date(Math.round(output.CreationDate * 1000)) : undefined, - ExpectedCompletionTimeMinutes: __expectInt(output.ExpectedCompletionTimeMinutes), + ExpectedCompletionTimeMinutes: __expectLong(output.ExpectedCompletionTimeMinutes), IamRoleArn: __expectString(output.IamRoleArn), PercentDone: __expectString(output.PercentDone), RecoveryPointArn: __expectString(output.RecoveryPointArn), diff --git a/clients/client-batch/protocols/Aws_restJson1.ts b/clients/client-batch/protocols/Aws_restJson1.ts index 6105d039ad1b0..7aa155306a00c 100644 --- a/clients/client-batch/protocols/Aws_restJson1.ts +++ b/clients/client-batch/protocols/Aws_restJson1.ts @@ -96,7 +96,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1492,7 +1493,7 @@ export const deserializeAws_restJson1RegisterJobDefinitionCommand = async ( contents.jobDefinitionName = __expectString(data.jobDefinitionName); } if (data.revision !== undefined && data.revision !== null) { - contents.revision = __expectInt(data.revision); + contents.revision = __expectInt32(data.revision); } return Promise.resolve(contents); }; @@ -2609,15 +2610,15 @@ const deserializeAws_restJson1ArrayJobStatusSummary = ( } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; const deserializeAws_restJson1ArrayPropertiesDetail = (output: any, context: __SerdeContext): ArrayPropertiesDetail => { return { - index: __expectInt(output.index), - size: __expectInt(output.size), + index: __expectInt32(output.index), + size: __expectInt32(output.size), statusSummary: output.statusSummary !== undefined && output.statusSummary !== null ? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context) @@ -2630,8 +2631,8 @@ const deserializeAws_restJson1ArrayPropertiesSummary = ( context: __SerdeContext ): ArrayPropertiesSummary => { return { - index: __expectInt(output.index), - size: __expectInt(output.size), + index: __expectInt32(output.index), + size: __expectInt32(output.size), } as any; }; @@ -2641,7 +2642,7 @@ const deserializeAws_restJson1AttemptContainerDetail = ( ): AttemptContainerDetail => { return { containerInstanceArn: __expectString(output.containerInstanceArn), - exitCode: __expectInt(output.exitCode), + exitCode: __expectInt32(output.exitCode), logStreamName: __expectString(output.logStreamName), networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null @@ -2658,9 +2659,9 @@ const deserializeAws_restJson1AttemptDetail = (output: any, context: __SerdeCont output.container !== undefined && output.container !== null ? deserializeAws_restJson1AttemptContainerDetail(output.container, context) : undefined, - startedAt: __expectInt(output.startedAt), + startedAt: __expectLong(output.startedAt), statusReason: __expectString(output.statusReason), - stoppedAt: __expectInt(output.stoppedAt), + stoppedAt: __expectLong(output.stoppedAt), } as any; }; @@ -2719,7 +2720,7 @@ const deserializeAws_restJson1ComputeEnvironmentOrder = ( ): ComputeEnvironmentOrder => { return { computeEnvironment: __expectString(output.computeEnvironment), - order: __expectInt(output.order), + order: __expectInt32(output.order), } as any; }; @@ -2740,8 +2741,8 @@ const deserializeAws_restJson1ComputeEnvironmentOrders = ( const deserializeAws_restJson1ComputeResource = (output: any, context: __SerdeContext): ComputeResource => { return { allocationStrategy: __expectString(output.allocationStrategy), - bidPercentage: __expectInt(output.bidPercentage), - desiredvCpus: __expectInt(output.desiredvCpus), + bidPercentage: __expectInt32(output.bidPercentage), + desiredvCpus: __expectInt32(output.desiredvCpus), ec2Configuration: output.ec2Configuration !== undefined && output.ec2Configuration !== null ? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context) @@ -2757,8 +2758,8 @@ const deserializeAws_restJson1ComputeResource = (output: any, context: __SerdeCo output.launchTemplate !== undefined && output.launchTemplate !== null ? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context) : undefined, - maxvCpus: __expectInt(output.maxvCpus), - minvCpus: __expectInt(output.minvCpus), + maxvCpus: __expectInt32(output.maxvCpus), + minvCpus: __expectInt32(output.minvCpus), placementGroup: __expectString(output.placementGroup), securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null @@ -2789,7 +2790,7 @@ const deserializeAws_restJson1ContainerDetail = (output: any, context: __SerdeCo ? deserializeAws_restJson1EnvironmentVariables(output.environment, context) : undefined, executionRoleArn: __expectString(output.executionRoleArn), - exitCode: __expectInt(output.exitCode), + exitCode: __expectInt32(output.exitCode), fargatePlatformConfiguration: output.fargatePlatformConfiguration !== undefined && output.fargatePlatformConfiguration !== null ? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context) @@ -2806,7 +2807,7 @@ const deserializeAws_restJson1ContainerDetail = (output: any, context: __SerdeCo ? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context) : undefined, logStreamName: __expectString(output.logStreamName), - memory: __expectInt(output.memory), + memory: __expectInt32(output.memory), mountPoints: output.mountPoints !== undefined && output.mountPoints !== null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) @@ -2836,7 +2837,7 @@ const deserializeAws_restJson1ContainerDetail = (output: any, context: __SerdeCo ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined, user: __expectString(output.user), - vcpus: __expectInt(output.vcpus), + vcpus: __expectInt32(output.vcpus), volumes: output.volumes !== undefined && output.volumes !== null ? deserializeAws_restJson1Volumes(output.volumes, context) @@ -2870,7 +2871,7 @@ const deserializeAws_restJson1ContainerProperties = (output: any, context: __Ser output.logConfiguration !== undefined && output.logConfiguration !== null ? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context) : undefined, - memory: __expectInt(output.memory), + memory: __expectInt32(output.memory), mountPoints: output.mountPoints !== undefined && output.mountPoints !== null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) @@ -2894,7 +2895,7 @@ const deserializeAws_restJson1ContainerProperties = (output: any, context: __Ser ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined, user: __expectString(output.user), - vcpus: __expectInt(output.vcpus), + vcpus: __expectInt32(output.vcpus), volumes: output.volumes !== undefined && output.volumes !== null ? deserializeAws_restJson1Volumes(output.volumes, context) @@ -2904,7 +2905,7 @@ const deserializeAws_restJson1ContainerProperties = (output: any, context: __Ser const deserializeAws_restJson1ContainerSummary = (output: any, context: __SerdeContext): ContainerSummary => { return { - exitCode: __expectInt(output.exitCode), + exitCode: __expectInt32(output.exitCode), reason: __expectString(output.reason), } as any; }; @@ -2985,7 +2986,7 @@ const deserializeAws_restJson1EFSVolumeConfiguration = ( fileSystemId: __expectString(output.fileSystemId), rootDirectory: __expectString(output.rootDirectory), transitEncryption: __expectString(output.transitEncryption), - transitEncryptionPort: __expectInt(output.transitEncryptionPort), + transitEncryptionPort: __expectInt32(output.transitEncryptionPort), } as any; }; @@ -3060,7 +3061,7 @@ const deserializeAws_restJson1JobDefinition = (output: any, context: __SerdeCont output.retryStrategy !== undefined && output.retryStrategy !== null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined, - revision: __expectInt(output.revision), + revision: __expectInt32(output.revision), status: __expectString(output.status), tags: output.tags !== undefined && output.tags !== null @@ -3117,7 +3118,7 @@ const deserializeAws_restJson1JobDetail = (output: any, context: __SerdeContext) output.container !== undefined && output.container !== null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined, - createdAt: __expectInt(output.createdAt), + createdAt: __expectLong(output.createdAt), dependsOn: output.dependsOn !== undefined && output.dependsOn !== null ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context) @@ -3148,10 +3149,10 @@ const deserializeAws_restJson1JobDetail = (output: any, context: __SerdeContext) output.retryStrategy !== undefined && output.retryStrategy !== null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined, - startedAt: __expectInt(output.startedAt), + startedAt: __expectLong(output.startedAt), status: __expectString(output.status), statusReason: __expectString(output.statusReason), - stoppedAt: __expectInt(output.stoppedAt), + stoppedAt: __expectLong(output.stoppedAt), tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) @@ -3182,7 +3183,7 @@ const deserializeAws_restJson1JobQueueDetail = (output: any, context: __SerdeCon : undefined, jobQueueArn: __expectString(output.jobQueueArn), jobQueueName: __expectString(output.jobQueueName), - priority: __expectInt(output.priority), + priority: __expectInt32(output.priority), state: __expectString(output.state), status: __expectString(output.status), statusReason: __expectString(output.statusReason), @@ -3214,7 +3215,7 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext output.container !== undefined && output.container !== null ? deserializeAws_restJson1ContainerSummary(output.container, context) : undefined, - createdAt: __expectInt(output.createdAt), + createdAt: __expectLong(output.createdAt), jobArn: __expectString(output.jobArn), jobDefinition: __expectString(output.jobDefinition), jobId: __expectString(output.jobId), @@ -3223,10 +3224,10 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext output.nodeProperties !== undefined && output.nodeProperties !== null ? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context) : undefined, - startedAt: __expectInt(output.startedAt), + startedAt: __expectLong(output.startedAt), status: __expectString(output.status), statusReason: __expectString(output.statusReason), - stoppedAt: __expectInt(output.stoppedAt), + stoppedAt: __expectLong(output.stoppedAt), } as any; }; @@ -3243,7 +3244,7 @@ const deserializeAws_restJson1JobSummaryList = (output: any, context: __SerdeCon const deserializeAws_restJson1JobTimeout = (output: any, context: __SerdeContext): JobTimeout => { return { - attemptDurationSeconds: __expectInt(output.attemptDurationSeconds), + attemptDurationSeconds: __expectInt32(output.attemptDurationSeconds), } as any; }; @@ -3272,9 +3273,9 @@ const deserializeAws_restJson1LinuxParameters = (output: any, context: __SerdeCo ? deserializeAws_restJson1DevicesList(output.devices, context) : undefined, initProcessEnabled: __expectBoolean(output.initProcessEnabled), - maxSwap: __expectInt(output.maxSwap), - sharedMemorySize: __expectInt(output.sharedMemorySize), - swappiness: __expectInt(output.swappiness), + maxSwap: __expectInt32(output.maxSwap), + sharedMemorySize: __expectInt32(output.sharedMemorySize), + swappiness: __expectInt32(output.swappiness), tmpfs: output.tmpfs !== undefined && output.tmpfs !== null ? deserializeAws_restJson1TmpfsList(output.tmpfs, context) @@ -3358,26 +3359,26 @@ const deserializeAws_restJson1NetworkInterfaceList = (output: any, context: __Se const deserializeAws_restJson1NodeDetails = (output: any, context: __SerdeContext): NodeDetails => { return { isMainNode: __expectBoolean(output.isMainNode), - nodeIndex: __expectInt(output.nodeIndex), + nodeIndex: __expectInt32(output.nodeIndex), } as any; }; const deserializeAws_restJson1NodeProperties = (output: any, context: __SerdeContext): NodeProperties => { return { - mainNode: __expectInt(output.mainNode), + mainNode: __expectInt32(output.mainNode), nodeRangeProperties: output.nodeRangeProperties !== undefined && output.nodeRangeProperties !== null ? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context) : undefined, - numNodes: __expectInt(output.numNodes), + numNodes: __expectInt32(output.numNodes), } as any; }; const deserializeAws_restJson1NodePropertiesSummary = (output: any, context: __SerdeContext): NodePropertiesSummary => { return { isMainNode: __expectBoolean(output.isMainNode), - nodeIndex: __expectInt(output.nodeIndex), - numNodes: __expectInt(output.numNodes), + nodeIndex: __expectInt32(output.nodeIndex), + numNodes: __expectInt32(output.numNodes), } as any; }; @@ -3448,7 +3449,7 @@ const deserializeAws_restJson1ResourceRequirements = (output: any, context: __Se const deserializeAws_restJson1RetryStrategy = (output: any, context: __SerdeContext): RetryStrategy => { return { - attempts: __expectInt(output.attempts), + attempts: __expectInt32(output.attempts), evaluateOnExit: output.evaluateOnExit !== undefined && output.evaluateOnExit !== null ? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context) @@ -3516,7 +3517,7 @@ const deserializeAws_restJson1Tmpfs = (output: any, context: __SerdeContext): Tm output.mountOptions !== undefined && output.mountOptions !== null ? deserializeAws_restJson1StringList(output.mountOptions, context) : undefined, - size: __expectInt(output.size), + size: __expectInt32(output.size), } as any; }; @@ -3533,9 +3534,9 @@ const deserializeAws_restJson1TmpfsList = (output: any, context: __SerdeContext) const deserializeAws_restJson1Ulimit = (output: any, context: __SerdeContext): Ulimit => { return { - hardLimit: __expectInt(output.hardLimit), + hardLimit: __expectInt32(output.hardLimit), name: __expectString(output.name), - softLimit: __expectInt(output.softLimit), + softLimit: __expectInt32(output.softLimit), } as any; }; diff --git a/clients/client-braket/protocols/Aws_restJson1.ts b/clients/client-braket/protocols/Aws_restJson1.ts index 31118cb579d5f..e40901f661278 100644 --- a/clients/client-braket/protocols/Aws_restJson1.ts +++ b/clients/client-braket/protocols/Aws_restJson1.ts @@ -28,7 +28,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { LazyJsonString as __LazyJsonString, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -681,7 +681,7 @@ export const deserializeAws_restJson1GetQuantumTaskCommand = async ( contents.quantumTaskArn = __expectString(data.quantumTaskArn); } if (data.shots !== undefined && data.shots !== null) { - contents.shots = __expectInt(data.shots); + contents.shots = __expectLong(data.shots); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -1386,7 +1386,7 @@ const deserializeAws_restJson1QuantumTaskSummary = (output: any, context: __Serd outputS3Bucket: __expectString(output.outputS3Bucket), outputS3Directory: __expectString(output.outputS3Directory), quantumTaskArn: __expectString(output.quantumTaskArn), - shots: __expectInt(output.shots), + shots: __expectLong(output.shots), status: __expectString(output.status), tags: output.tags !== undefined && output.tags !== null diff --git a/clients/client-budgets/protocols/Aws_json1_1.ts b/clients/client-budgets/protocols/Aws_json1_1.ts index 92315756fe333..b3a7169e6b745 100644 --- a/clients/client-budgets/protocols/Aws_json1_1.ts +++ b/clients/client-budgets/protocols/Aws_json1_1.ts @@ -121,7 +121,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { expectBoolean as __expectBoolean, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -3084,7 +3084,7 @@ const deserializeAws_json1_1Actions = (output: any, context: __SerdeContext): Ac const deserializeAws_json1_1ActionThreshold = (output: any, context: __SerdeContext): ActionThreshold => { return { ActionThresholdType: __expectString(output.ActionThresholdType), - ActionThresholdValue: __limitedParseFloat(output.ActionThresholdValue), + ActionThresholdValue: __limitedParseDouble(output.ActionThresholdValue), } as any; }; @@ -3550,7 +3550,7 @@ const deserializeAws_json1_1Notification = (output: any, context: __SerdeContext ComparisonOperator: __expectString(output.ComparisonOperator), NotificationState: __expectString(output.NotificationState), NotificationType: __expectString(output.NotificationType), - Threshold: __limitedParseFloat(output.Threshold), + Threshold: __limitedParseDouble(output.Threshold), ThresholdType: __expectString(output.ThresholdType), } as any; }; diff --git a/clients/client-chime-sdk-identity/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-identity/protocols/Aws_restJson1.ts index b79613368e810..57c43337e491c 100644 --- a/clients/client-chime-sdk-identity/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-identity/protocols/Aws_restJson1.ts @@ -72,7 +72,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2607,7 +2607,7 @@ const deserializeAws_restJson1ChannelRetentionSettings = ( context: __SerdeContext ): ChannelRetentionSettings => { return { - RetentionDays: __expectInt(output.RetentionDays), + RetentionDays: __expectInt32(output.RetentionDays), } as any; }; diff --git a/clients/client-chime/protocols/Aws_restJson1.ts b/clients/client-chime/protocols/Aws_restJson1.ts index 0c014fe9a31ea..bf444f93da575 100644 --- a/clients/client-chime/protocols/Aws_restJson1.ts +++ b/clients/client-chime/protocols/Aws_restJson1.ts @@ -645,7 +645,7 @@ import { } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -28971,7 +28971,7 @@ const deserializeAws_restJson1ChannelRetentionSettings = ( context: __SerdeContext ): ChannelRetentionSettings => { return { - RetentionDays: __expectInt(output.RetentionDays), + RetentionDays: __expectInt32(output.RetentionDays), } as any; }; @@ -29005,7 +29005,7 @@ const deserializeAws_restJson1ConversationRetentionSettings = ( context: __SerdeContext ): ConversationRetentionSettings => { return { - RetentionDays: __expectInt(output.RetentionDays), + RetentionDays: __expectInt32(output.RetentionDays), } as any; }; @@ -29273,10 +29273,10 @@ const deserializeAws_restJson1Origination = (output: any, context: __SerdeContex const deserializeAws_restJson1OriginationRoute = (output: any, context: __SerdeContext): OriginationRoute => { return { Host: __expectString(output.Host), - Port: __expectInt(output.Port), - Priority: __expectInt(output.Priority), + Port: __expectInt32(output.Port), + Priority: __expectInt32(output.Priority), Protocol: __expectString(output.Protocol), - Weight: __expectInt(output.Weight), + Weight: __expectInt32(output.Weight), } as any; }; @@ -29485,7 +29485,7 @@ const deserializeAws_restJson1PhoneNumberTypeList = ( const deserializeAws_restJson1Proxy = (output: any, context: __SerdeContext): Proxy => { return { - DefaultSessionExpiryMinutes: __expectInt(output.DefaultSessionExpiryMinutes), + DefaultSessionExpiryMinutes: __expectInt32(output.DefaultSessionExpiryMinutes), Disabled: __expectBoolean(output.Disabled), FallBackPhoneNumber: __expectString(output.FallBackPhoneNumber), PhoneNumberCountries: @@ -29509,7 +29509,7 @@ const deserializeAws_restJson1ProxySession = (output: any, context: __SerdeConte output.EndedTimestamp !== undefined && output.EndedTimestamp !== null ? new Date(output.EndedTimestamp) : undefined, - ExpiryMinutes: __expectInt(output.ExpiryMinutes), + ExpiryMinutes: __expectInt32(output.ExpiryMinutes), GeoMatchLevel: __expectString(output.GeoMatchLevel), GeoMatchParams: output.GeoMatchParams !== undefined && output.GeoMatchParams !== null @@ -29612,7 +29612,7 @@ const deserializeAws_restJson1RoomMembershipList = (output: any, context: __Serd const deserializeAws_restJson1RoomRetentionSettings = (output: any, context: __SerdeContext): RoomRetentionSettings => { return { - RetentionDays: __expectInt(output.RetentionDays), + RetentionDays: __expectInt32(output.RetentionDays), } as any; }; @@ -29761,7 +29761,7 @@ const deserializeAws_restJson1SipRuleTargetApplication = ( ): SipRuleTargetApplication => { return { AwsRegion: __expectString(output.AwsRegion), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), SipMediaApplicationId: __expectString(output.SipMediaApplicationId), } as any; }; @@ -29785,7 +29785,7 @@ const deserializeAws_restJson1StreamingConfiguration = ( context: __SerdeContext ): StreamingConfiguration => { return { - DataRetentionInHours: __expectInt(output.DataRetentionInHours), + DataRetentionInHours: __expectInt32(output.DataRetentionInHours), Disabled: __expectBoolean(output.Disabled), StreamingNotificationTargets: output.StreamingNotificationTargets !== undefined && output.StreamingNotificationTargets !== null @@ -29864,7 +29864,7 @@ const deserializeAws_restJson1Termination = (output: any, context: __SerdeContex output.CidrAllowedList !== undefined && output.CidrAllowedList !== null ? deserializeAws_restJson1StringList(output.CidrAllowedList, context) : undefined, - CpsLimit: __expectInt(output.CpsLimit), + CpsLimit: __expectInt32(output.CpsLimit), DefaultPhoneNumber: __expectString(output.DefaultPhoneNumber), Disabled: __expectBoolean(output.Disabled), } as any; @@ -29991,7 +29991,7 @@ const deserializeAws_restJson1VoiceConnectorGroupList = ( const deserializeAws_restJson1VoiceConnectorItem = (output: any, context: __SerdeContext): VoiceConnectorItem => { return { - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), VoiceConnectorId: __expectString(output.VoiceConnectorId), } as any; }; diff --git a/clients/client-cloud9/protocols/Aws_json1_1.ts b/clients/client-cloud9/protocols/Aws_json1_1.ts index 9f88a9b24219e..81439db28ecb9 100644 --- a/clients/client-cloud9/protocols/Aws_json1_1.ts +++ b/clients/client-cloud9/protocols/Aws_json1_1.ts @@ -77,7 +77,7 @@ import { UpdateEnvironmentResult, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -1818,7 +1818,7 @@ const serializeAws_json1_1UpdateEnvironmentRequest = ( const deserializeAws_json1_1BadRequestException = (output: any, context: __SerdeContext): BadRequestException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -1829,7 +1829,7 @@ const deserializeAws_json1_1ConcurrentAccessException = ( ): ConcurrentAccessException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -1837,7 +1837,7 @@ const deserializeAws_json1_1ConcurrentAccessException = ( const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -1986,7 +1986,7 @@ const deserializeAws_json1_1EnvironmentMembersList = (output: any, context: __Se const deserializeAws_json1_1ForbiddenException = (output: any, context: __SerdeContext): ForbiddenException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -1997,7 +1997,7 @@ const deserializeAws_json1_1InternalServerErrorException = ( ): InternalServerErrorException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -2005,7 +2005,7 @@ const deserializeAws_json1_1InternalServerErrorException = ( const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -2035,7 +2035,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeContext): NotFoundException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -2068,7 +2068,7 @@ const deserializeAws_json1_1TooManyRequestsException = ( ): TooManyRequestsException => { return { className: __expectString(output.className), - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; diff --git a/clients/client-clouddirectory/protocols/Aws_restJson1.ts b/clients/client-clouddirectory/protocols/Aws_restJson1.ts index 80784bacf1da8..9146c2172da9d 100644 --- a/clients/client-clouddirectory/protocols/Aws_restJson1.ts +++ b/clients/client-clouddirectory/protocols/Aws_restJson1.ts @@ -277,7 +277,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -10166,7 +10166,7 @@ const deserializeAws_restJson1BatchWriteExceptionResponse = async ( }; const data: any = parsedOutput.body; if (data.Index !== undefined && data.Index !== null) { - contents.Index = __expectInt(data.Index); + contents.Index = __expectInt32(data.Index); } if (data.Message !== undefined && data.Message !== null) { contents.Message = __expectString(data.Message); diff --git a/clients/client-cloudformation/protocols/Aws_query.ts b/clients/client-cloudformation/protocols/Aws_query.ts index 59318e4c20ef8..bae9c97d86247 100644 --- a/clients/client-cloudformation/protocols/Aws_query.ts +++ b/clients/client-cloudformation/protocols/Aws_query.ts @@ -353,7 +353,7 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -7469,7 +7469,7 @@ const deserializeAws_queryAccountLimit = (output: any, context: __SerdeContext): contents.Name = __expectString(output["Name"]); } if (output["Value"] !== undefined) { - contents.Value = __strictParseInt(output["Value"]) as number; + contents.Value = __strictParseInt32(output["Value"]) as number; } return contents; }; @@ -8056,7 +8056,7 @@ const deserializeAws_queryDescribeStackDriftDetectionStatusOutput = ( contents.DetectionStatusReason = __expectString(output["DetectionStatusReason"]); } if (output["DriftedStackResourceCount"] !== undefined) { - contents.DriftedStackResourceCount = __strictParseInt(output["DriftedStackResourceCount"]) as number; + contents.DriftedStackResourceCount = __strictParseInt32(output["DriftedStackResourceCount"]) as number; } if (output["Timestamp"] !== undefined) { contents.Timestamp = new Date(output["Timestamp"]); @@ -9467,7 +9467,7 @@ const deserializeAws_queryRollbackConfiguration = (output: any, context: __Serde ); } if (output["MonitoringTimeInMinutes"] !== undefined) { - contents.MonitoringTimeInMinutes = __strictParseInt(output["MonitoringTimeInMinutes"]) as number; + contents.MonitoringTimeInMinutes = __strictParseInt32(output["MonitoringTimeInMinutes"]) as number; } return contents; }; @@ -9609,7 +9609,7 @@ const deserializeAws_queryStack = (output: any, context: __SerdeContext): Stack ); } if (output["TimeoutInMinutes"] !== undefined) { - contents.TimeoutInMinutes = __strictParseInt(output["TimeoutInMinutes"]) as number; + contents.TimeoutInMinutes = __strictParseInt32(output["TimeoutInMinutes"]) as number; } if (output.Capabilities === "") { contents.Capabilities = []; @@ -10299,19 +10299,19 @@ const deserializeAws_queryStackSetDriftDetectionDetails = ( contents.LastDriftCheckTimestamp = new Date(output["LastDriftCheckTimestamp"]); } if (output["TotalStackInstancesCount"] !== undefined) { - contents.TotalStackInstancesCount = __strictParseInt(output["TotalStackInstancesCount"]) as number; + contents.TotalStackInstancesCount = __strictParseInt32(output["TotalStackInstancesCount"]) as number; } if (output["DriftedStackInstancesCount"] !== undefined) { - contents.DriftedStackInstancesCount = __strictParseInt(output["DriftedStackInstancesCount"]) as number; + contents.DriftedStackInstancesCount = __strictParseInt32(output["DriftedStackInstancesCount"]) as number; } if (output["InSyncStackInstancesCount"] !== undefined) { - contents.InSyncStackInstancesCount = __strictParseInt(output["InSyncStackInstancesCount"]) as number; + contents.InSyncStackInstancesCount = __strictParseInt32(output["InSyncStackInstancesCount"]) as number; } if (output["InProgressStackInstancesCount"] !== undefined) { - contents.InProgressStackInstancesCount = __strictParseInt(output["InProgressStackInstancesCount"]) as number; + contents.InProgressStackInstancesCount = __strictParseInt32(output["InProgressStackInstancesCount"]) as number; } if (output["FailedStackInstancesCount"] !== undefined) { - contents.FailedStackInstancesCount = __strictParseInt(output["FailedStackInstancesCount"]) as number; + contents.FailedStackInstancesCount = __strictParseInt32(output["FailedStackInstancesCount"]) as number; } return contents; }; @@ -10427,16 +10427,16 @@ const deserializeAws_queryStackSetOperationPreferences = ( ); } if (output["FailureToleranceCount"] !== undefined) { - contents.FailureToleranceCount = __strictParseInt(output["FailureToleranceCount"]) as number; + contents.FailureToleranceCount = __strictParseInt32(output["FailureToleranceCount"]) as number; } if (output["FailureTolerancePercentage"] !== undefined) { - contents.FailureTolerancePercentage = __strictParseInt(output["FailureTolerancePercentage"]) as number; + contents.FailureTolerancePercentage = __strictParseInt32(output["FailureTolerancePercentage"]) as number; } if (output["MaxConcurrentCount"] !== undefined) { - contents.MaxConcurrentCount = __strictParseInt(output["MaxConcurrentCount"]) as number; + contents.MaxConcurrentCount = __strictParseInt32(output["MaxConcurrentCount"]) as number; } if (output["MaxConcurrentPercentage"] !== undefined) { - contents.MaxConcurrentPercentage = __strictParseInt(output["MaxConcurrentPercentage"]) as number; + contents.MaxConcurrentPercentage = __strictParseInt32(output["MaxConcurrentPercentage"]) as number; } return contents; }; @@ -10677,7 +10677,7 @@ const deserializeAws_querySupportedMajorVersions = (output: any, context: __Serd if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; diff --git a/clients/client-cloudfront/protocols/Aws_restXml.ts b/clients/client-cloudfront/protocols/Aws_restXml.ts index 2b68d94a248cd..c509eaa01e271 100644 --- a/clients/client-cloudfront/protocols/Aws_restXml.ts +++ b/clients/client-cloudfront/protocols/Aws_restXml.ts @@ -486,7 +486,8 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -15592,7 +15593,7 @@ const deserializeAws_restXmlActiveTrustedKeyGroups = (output: any, context: __Se contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -15616,7 +15617,7 @@ const deserializeAws_restXmlActiveTrustedSigners = (output: any, context: __Serd contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -15633,7 +15634,7 @@ const deserializeAws_restXmlAliases = (output: any, context: __SerdeContext): Al Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -15687,7 +15688,7 @@ const deserializeAws_restXmlAllowedMethods = (output: any, context: __SerdeConte CachedMethods: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -15782,13 +15783,13 @@ const deserializeAws_restXmlCacheBehavior = (output: any, context: __SerdeContex contents.ForwardedValues = deserializeAws_restXmlForwardedValues(output["ForwardedValues"], context); } if (output["MinTTL"] !== undefined) { - contents.MinTTL = __strictParseInt(output["MinTTL"]) as number; + contents.MinTTL = __strictParseLong(output["MinTTL"]) as number; } if (output["DefaultTTL"] !== undefined) { - contents.DefaultTTL = __strictParseInt(output["DefaultTTL"]) as number; + contents.DefaultTTL = __strictParseLong(output["DefaultTTL"]) as number; } if (output["MaxTTL"] !== undefined) { - contents.MaxTTL = __strictParseInt(output["MaxTTL"]) as number; + contents.MaxTTL = __strictParseLong(output["MaxTTL"]) as number; } return contents; }; @@ -15810,7 +15811,7 @@ const deserializeAws_restXmlCacheBehaviors = (output: any, context: __SerdeConte Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -15830,7 +15831,7 @@ const deserializeAws_restXmlCachedMethods = (output: any, context: __SerdeContex Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -15875,13 +15876,13 @@ const deserializeAws_restXmlCachePolicyConfig = (output: any, context: __SerdeCo contents.Name = __expectString(output["Name"]); } if (output["DefaultTTL"] !== undefined) { - contents.DefaultTTL = __strictParseInt(output["DefaultTTL"]) as number; + contents.DefaultTTL = __strictParseLong(output["DefaultTTL"]) as number; } if (output["MaxTTL"] !== undefined) { - contents.MaxTTL = __strictParseInt(output["MaxTTL"]) as number; + contents.MaxTTL = __strictParseLong(output["MaxTTL"]) as number; } if (output["MinTTL"] !== undefined) { - contents.MinTTL = __strictParseInt(output["MinTTL"]) as number; + contents.MinTTL = __strictParseLong(output["MinTTL"]) as number; } if (output["ParametersInCacheKeyAndForwardedToOrigin"] !== undefined) { contents.ParametersInCacheKeyAndForwardedToOrigin = deserializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin( @@ -15937,10 +15938,10 @@ const deserializeAws_restXmlCachePolicyList = (output: any, context: __SerdeCont contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16056,13 +16057,13 @@ const deserializeAws_restXmlCloudFrontOriginAccessIdentityList = ( contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["IsTruncated"] !== undefined) { contents.IsTruncated = __parseBoolean(output["IsTruncated"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16151,10 +16152,10 @@ const deserializeAws_restXmlConflictingAliasesList = (output: any, context: __Se contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16220,7 +16221,7 @@ const deserializeAws_restXmlContentTypeProfiles = (output: any, context: __Serde Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16251,7 +16252,7 @@ const deserializeAws_restXmlCookieNames = (output: any, context: __SerdeContext) Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16284,7 +16285,7 @@ const deserializeAws_restXmlCustomErrorResponse = (output: any, context: __Serde ErrorCachingMinTTL: undefined, }; if (output["ErrorCode"] !== undefined) { - contents.ErrorCode = __strictParseInt(output["ErrorCode"]) as number; + contents.ErrorCode = __strictParseInt32(output["ErrorCode"]) as number; } if (output["ResponsePagePath"] !== undefined) { contents.ResponsePagePath = __expectString(output["ResponsePagePath"]); @@ -16293,7 +16294,7 @@ const deserializeAws_restXmlCustomErrorResponse = (output: any, context: __Serde contents.ResponseCode = __expectString(output["ResponseCode"]); } if (output["ErrorCachingMinTTL"] !== undefined) { - contents.ErrorCachingMinTTL = __strictParseInt(output["ErrorCachingMinTTL"]) as number; + contents.ErrorCachingMinTTL = __strictParseLong(output["ErrorCachingMinTTL"]) as number; } return contents; }; @@ -16315,7 +16316,7 @@ const deserializeAws_restXmlCustomErrorResponses = (output: any, context: __Serd Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16335,7 +16336,7 @@ const deserializeAws_restXmlCustomHeaders = (output: any, context: __SerdeContex Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16359,10 +16360,10 @@ const deserializeAws_restXmlCustomOriginConfig = (output: any, context: __SerdeC OriginKeepaliveTimeout: undefined, }; if (output["HTTPPort"] !== undefined) { - contents.HTTPPort = __strictParseInt(output["HTTPPort"]) as number; + contents.HTTPPort = __strictParseInt32(output["HTTPPort"]) as number; } if (output["HTTPSPort"] !== undefined) { - contents.HTTPSPort = __strictParseInt(output["HTTPSPort"]) as number; + contents.HTTPSPort = __strictParseInt32(output["HTTPSPort"]) as number; } if (output["OriginProtocolPolicy"] !== undefined) { contents.OriginProtocolPolicy = __expectString(output["OriginProtocolPolicy"]); @@ -16371,10 +16372,10 @@ const deserializeAws_restXmlCustomOriginConfig = (output: any, context: __SerdeC contents.OriginSslProtocols = deserializeAws_restXmlOriginSslProtocols(output["OriginSslProtocols"], context); } if (output["OriginReadTimeout"] !== undefined) { - contents.OriginReadTimeout = __strictParseInt(output["OriginReadTimeout"]) as number; + contents.OriginReadTimeout = __strictParseInt32(output["OriginReadTimeout"]) as number; } if (output["OriginKeepaliveTimeout"] !== undefined) { - contents.OriginKeepaliveTimeout = __strictParseInt(output["OriginKeepaliveTimeout"]) as number; + contents.OriginKeepaliveTimeout = __strictParseInt32(output["OriginKeepaliveTimeout"]) as number; } return contents; }; @@ -16445,13 +16446,13 @@ const deserializeAws_restXmlDefaultCacheBehavior = (output: any, context: __Serd contents.ForwardedValues = deserializeAws_restXmlForwardedValues(output["ForwardedValues"], context); } if (output["MinTTL"] !== undefined) { - contents.MinTTL = __strictParseInt(output["MinTTL"]) as number; + contents.MinTTL = __strictParseLong(output["MinTTL"]) as number; } if (output["DefaultTTL"] !== undefined) { - contents.DefaultTTL = __strictParseInt(output["DefaultTTL"]) as number; + contents.DefaultTTL = __strictParseLong(output["DefaultTTL"]) as number; } if (output["MaxTTL"] !== undefined) { - contents.MaxTTL = __strictParseInt(output["MaxTTL"]) as number; + contents.MaxTTL = __strictParseLong(output["MaxTTL"]) as number; } return contents; }; @@ -16482,7 +16483,7 @@ const deserializeAws_restXmlDistribution = (output: any, context: __SerdeContext contents.LastModifiedTime = new Date(output["LastModifiedTime"]); } if (output["InProgressInvalidationBatches"] !== undefined) { - contents.InProgressInvalidationBatches = __strictParseInt(output["InProgressInvalidationBatches"]) as number; + contents.InProgressInvalidationBatches = __strictParseInt32(output["InProgressInvalidationBatches"]) as number; } if (output["DomainName"] !== undefined) { contents.DomainName = __expectString(output["DomainName"]); @@ -16601,13 +16602,13 @@ const deserializeAws_restXmlDistributionIdList = (output: any, context: __SerdeC contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["IsTruncated"] !== undefined) { contents.IsTruncated = __parseBoolean(output["IsTruncated"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16648,13 +16649,13 @@ const deserializeAws_restXmlDistributionList = (output: any, context: __SerdeCon contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["IsTruncated"] !== undefined) { contents.IsTruncated = __parseBoolean(output["IsTruncated"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16777,7 +16778,7 @@ const deserializeAws_restXmlEncryptionEntities = (output: any, context: __SerdeC Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16911,10 +16912,10 @@ const deserializeAws_restXmlFieldLevelEncryptionList = ( contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -16991,10 +16992,10 @@ const deserializeAws_restXmlFieldLevelEncryptionProfileList = ( contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17128,7 +17129,7 @@ const deserializeAws_restXmlFieldPatterns = (output: any, context: __SerdeContex Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17195,7 +17196,7 @@ const deserializeAws_restXmlFunctionAssociations = (output: any, context: __Serd Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17245,10 +17246,10 @@ const deserializeAws_restXmlFunctionList = (output: any, context: __SerdeContext contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17327,7 +17328,7 @@ const deserializeAws_restXmlGeoRestriction = (output: any, context: __SerdeConte contents.RestrictionType = __expectString(output["RestrictionType"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17355,7 +17356,7 @@ const deserializeAws_restXmlHeaders = (output: any, context: __SerdeContext): He Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17418,13 +17419,13 @@ const deserializeAws_restXmlInvalidationList = (output: any, context: __SerdeCon contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["IsTruncated"] !== undefined) { contents.IsTruncated = __parseBoolean(output["IsTruncated"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17520,10 +17521,10 @@ const deserializeAws_restXmlKeyGroupList = (output: any, context: __SerdeContext contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17575,7 +17576,7 @@ const deserializeAws_restXmlKeyPairIds = (output: any, context: __SerdeContext): Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17669,7 +17670,7 @@ const deserializeAws_restXmlLambdaFunctionAssociations = ( Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17771,10 +17772,10 @@ const deserializeAws_restXmlOrigin = (output: any, context: __SerdeContext): Ori contents.CustomOriginConfig = deserializeAws_restXmlCustomOriginConfig(output["CustomOriginConfig"], context); } if (output["ConnectionAttempts"] !== undefined) { - contents.ConnectionAttempts = __strictParseInt(output["ConnectionAttempts"]) as number; + contents.ConnectionAttempts = __strictParseInt32(output["ConnectionAttempts"]) as number; } if (output["ConnectionTimeout"] !== undefined) { - contents.ConnectionTimeout = __strictParseInt(output["ConnectionTimeout"]) as number; + contents.ConnectionTimeout = __strictParseInt32(output["ConnectionTimeout"]) as number; } if (output["OriginShield"] !== undefined) { contents.OriginShield = deserializeAws_restXmlOriginShield(output["OriginShield"], context); @@ -17876,7 +17877,7 @@ const deserializeAws_restXmlOriginGroupMembers = (output: any, context: __SerdeC Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -17896,7 +17897,7 @@ const deserializeAws_restXmlOriginGroups = (output: any, context: __SerdeContext Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18022,10 +18023,10 @@ const deserializeAws_restXmlOriginRequestPolicyList = ( contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18093,7 +18094,7 @@ const deserializeAws_restXmlOrigins = (output: any, context: __SerdeContext): Or Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18124,7 +18125,7 @@ const deserializeAws_restXmlOriginSslProtocols = (output: any, context: __SerdeC Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18187,7 +18188,7 @@ const deserializeAws_restXmlPaths = (output: any, context: __SerdeContext): Path Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18260,10 +18261,10 @@ const deserializeAws_restXmlPublicKeyList = (output: any, context: __SerdeContex contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18359,7 +18360,7 @@ const deserializeAws_restXmlQueryArgProfiles = (output: any, context: __SerdeCon Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18379,7 +18380,7 @@ const deserializeAws_restXmlQueryStringCacheKeys = (output: any, context: __Serd Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18410,7 +18411,7 @@ const deserializeAws_restXmlQueryStringNames = (output: any, context: __SerdeCon Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18450,7 +18451,7 @@ const deserializeAws_restXmlRealtimeLogConfig = (output: any, context: __SerdeCo contents.Name = __expectString(output["Name"]); } if (output["SamplingRate"] !== undefined) { - contents.SamplingRate = __strictParseInt(output["SamplingRate"]) as number; + contents.SamplingRate = __strictParseLong(output["SamplingRate"]) as number; } if (output.EndPoints === "") { contents.EndPoints = []; @@ -18490,7 +18491,7 @@ const deserializeAws_restXmlRealtimeLogConfigs = (output: any, context: __SerdeC NextMarker: undefined, }; if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18603,7 +18604,7 @@ const deserializeAws_restXmlStatusCodeList = (output: any, context: __SerdeConte if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; @@ -18613,7 +18614,7 @@ const deserializeAws_restXmlStatusCodes = (output: any, context: __SerdeContext) Items: undefined, }; if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18724,13 +18725,13 @@ const deserializeAws_restXmlStreamingDistributionList = ( contents.NextMarker = __expectString(output["NextMarker"]); } if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(output["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; } if (output["IsTruncated"] !== undefined) { contents.IsTruncated = __parseBoolean(output["IsTruncated"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18920,7 +18921,7 @@ const deserializeAws_restXmlTrustedKeyGroups = (output: any, context: __SerdeCon contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; @@ -18944,7 +18945,7 @@ const deserializeAws_restXmlTrustedSigners = (output: any, context: __SerdeConte contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt(output["Quantity"]) as number; + contents.Quantity = __strictParseInt32(output["Quantity"]) as number; } if (output.Items === "") { contents.Items = []; diff --git a/clients/client-cloudsearch-domain/protocols/Aws_restJson1.ts b/clients/client-cloudsearch-domain/protocols/Aws_restJson1.ts index 98e6003c2aac6..3ef6f7122418f 100644 --- a/clients/client-cloudsearch-domain/protocols/Aws_restJson1.ts +++ b/clients/client-cloudsearch-domain/protocols/Aws_restJson1.ts @@ -17,10 +17,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -267,10 +267,10 @@ export const deserializeAws_restJson1UploadDocumentsCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.adds !== undefined && data.adds !== null) { - contents.adds = __expectInt(data.adds); + contents.adds = __expectLong(data.adds); } if (data.deletes !== undefined && data.deletes !== null) { - contents.deletes = __expectInt(data.deletes); + contents.deletes = __expectLong(data.deletes); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -358,7 +358,7 @@ const deserializeAws_restJson1SearchExceptionResponse = async ( const deserializeAws_restJson1Bucket = (output: any, context: __SerdeContext): Bucket => { return { - count: __expectInt(output.count), + count: __expectLong(output.count), value: __expectString(output.value), } as any; }; @@ -444,14 +444,14 @@ const deserializeAws_restJson1Fields = (output: any, context: __SerdeContext): { const deserializeAws_restJson1FieldStats = (output: any, context: __SerdeContext): FieldStats => { return { - count: __expectInt(output.count), + count: __expectLong(output.count), max: __expectString(output.max), mean: __expectString(output.mean), min: __expectString(output.min), - missing: __expectInt(output.missing), - stddev: __limitedParseFloat(output.stddev), - sum: __limitedParseFloat(output.sum), - sumOfSquares: __limitedParseFloat(output.sumOfSquares), + missing: __expectLong(output.missing), + stddev: __limitedParseDouble(output.stddev), + sum: __limitedParseDouble(output.sum), + sumOfSquares: __limitedParseDouble(output.sumOfSquares), } as any; }; @@ -510,19 +510,19 @@ const deserializeAws_restJson1HitList = (output: any, context: __SerdeContext): const deserializeAws_restJson1Hits = (output: any, context: __SerdeContext): Hits => { return { cursor: __expectString(output.cursor), - found: __expectInt(output.found), + found: __expectLong(output.found), hit: output.hit !== undefined && output.hit !== null ? deserializeAws_restJson1HitList(output.hit, context) : undefined, - start: __expectInt(output.start), + start: __expectLong(output.start), } as any; }; const deserializeAws_restJson1SearchStatus = (output: any, context: __SerdeContext): SearchStatus => { return { rid: __expectString(output.rid), - timems: __expectInt(output.timems), + timems: __expectLong(output.timems), } as any; }; @@ -541,7 +541,7 @@ const deserializeAws_restJson1Stats = (output: any, context: __SerdeContext): { const deserializeAws_restJson1SuggestionMatch = (output: any, context: __SerdeContext): SuggestionMatch => { return { id: __expectString(output.id), - score: __expectInt(output.score), + score: __expectLong(output.score), suggestion: __expectString(output.suggestion), } as any; }; @@ -559,7 +559,7 @@ const deserializeAws_restJson1Suggestions = (output: any, context: __SerdeContex const deserializeAws_restJson1SuggestModel = (output: any, context: __SerdeContext): SuggestModel => { return { - found: __expectInt(output.found), + found: __expectLong(output.found), query: __expectString(output.query), suggestions: output.suggestions !== undefined && output.suggestions !== null @@ -571,7 +571,7 @@ const deserializeAws_restJson1SuggestModel = (output: any, context: __SerdeConte const deserializeAws_restJson1SuggestStatus = (output: any, context: __SerdeContext): SuggestStatus => { return { rid: __expectString(output.rid), - timems: __expectInt(output.timems), + timems: __expectLong(output.timems), } as any; }; diff --git a/clients/client-cloudsearch/protocols/Aws_query.ts b/clients/client-cloudsearch/protocols/Aws_query.ts index ac139d4c7509d..8226cec90b6ce 100644 --- a/clients/client-cloudsearch/protocols/Aws_query.ts +++ b/clients/client-cloudsearch/protocols/Aws_query.ts @@ -164,7 +164,8 @@ import { parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4158,10 +4159,10 @@ const deserializeAws_queryDomainStatus = (output: any, context: __SerdeContext): contents.SearchInstanceType = __expectString(output["SearchInstanceType"]); } if (output["SearchPartitionCount"] !== undefined) { - contents.SearchPartitionCount = __strictParseInt(output["SearchPartitionCount"]) as number; + contents.SearchPartitionCount = __strictParseInt32(output["SearchPartitionCount"]) as number; } if (output["SearchInstanceCount"] !== undefined) { - contents.SearchInstanceCount = __strictParseInt(output["SearchInstanceCount"]) as number; + contents.SearchInstanceCount = __strictParseInt32(output["SearchInstanceCount"]) as number; } if (output["Limits"] !== undefined) { contents.Limits = deserializeAws_queryLimits(output["Limits"], context); @@ -4394,7 +4395,7 @@ const deserializeAws_queryIntArrayOptions = (output: any, context: __SerdeContex ReturnEnabled: undefined, }; if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __strictParseInt(output["DefaultValue"]) as number; + contents.DefaultValue = __strictParseLong(output["DefaultValue"]) as number; } if (output["SourceFields"] !== undefined) { contents.SourceFields = __expectString(output["SourceFields"]); @@ -4435,7 +4436,7 @@ const deserializeAws_queryIntOptions = (output: any, context: __SerdeContext): I SortEnabled: undefined, }; if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __strictParseInt(output["DefaultValue"]) as number; + contents.DefaultValue = __strictParseLong(output["DefaultValue"]) as number; } if (output["SourceField"] !== undefined) { contents.SourceField = __expectString(output["SourceField"]); @@ -4519,10 +4520,10 @@ const deserializeAws_queryLimits = (output: any, context: __SerdeContext): Limit MaximumPartitionCount: undefined, }; if (output["MaximumReplicationCount"] !== undefined) { - contents.MaximumReplicationCount = __strictParseInt(output["MaximumReplicationCount"]) as number; + contents.MaximumReplicationCount = __strictParseInt32(output["MaximumReplicationCount"]) as number; } if (output["MaximumPartitionCount"] !== undefined) { - contents.MaximumPartitionCount = __strictParseInt(output["MaximumPartitionCount"]) as number; + contents.MaximumPartitionCount = __strictParseInt32(output["MaximumPartitionCount"]) as number; } return contents; }; @@ -4614,7 +4615,7 @@ const deserializeAws_queryOptionStatus = (output: any, context: __SerdeContext): contents.UpdateDate = new Date(output["UpdateDate"]); } if (output["UpdateVersion"] !== undefined) { - contents.UpdateVersion = __strictParseInt(output["UpdateVersion"]) as number; + contents.UpdateVersion = __strictParseInt32(output["UpdateVersion"]) as number; } if (output["State"] !== undefined) { contents.State = __expectString(output["State"]); @@ -4669,10 +4670,10 @@ const deserializeAws_queryScalingParameters = (output: any, context: __SerdeCont contents.DesiredInstanceType = __expectString(output["DesiredInstanceType"]); } if (output["DesiredReplicationCount"] !== undefined) { - contents.DesiredReplicationCount = __strictParseInt(output["DesiredReplicationCount"]) as number; + contents.DesiredReplicationCount = __strictParseInt32(output["DesiredReplicationCount"]) as number; } if (output["DesiredPartitionCount"] !== undefined) { - contents.DesiredPartitionCount = __strictParseInt(output["DesiredPartitionCount"]) as number; + contents.DesiredPartitionCount = __strictParseInt32(output["DesiredPartitionCount"]) as number; } return contents; }; diff --git a/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts index 99166d4e89661..99a32252c7905 100644 --- a/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts @@ -264,7 +264,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -6033,7 +6034,7 @@ const deserializeAws_json1_1ApiDestination = (output: any, context: __SerdeConte : undefined, HttpMethod: __expectString(output.HttpMethod), InvocationEndpoint: __expectString(output.InvocationEndpoint), - InvocationRateLimitPerSecond: __expectInt(output.InvocationRateLimitPerSecond), + InvocationRateLimitPerSecond: __expectInt32(output.InvocationRateLimitPerSecond), LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) @@ -6060,10 +6061,10 @@ const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Ar output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, - EventCount: __expectInt(output.EventCount), + EventCount: __expectLong(output.EventCount), EventSourceArn: __expectString(output.EventSourceArn), - RetentionDays: __expectInt(output.RetentionDays), - SizeBytes: __expectInt(output.SizeBytes), + RetentionDays: __expectInt32(output.RetentionDays), + SizeBytes: __expectLong(output.SizeBytes), State: __expectString(output.State), StateReason: __expectString(output.StateReason), } as any; @@ -6096,7 +6097,7 @@ const deserializeAws_json1_1AwsVpcConfiguration = (output: any, context: __Serde const deserializeAws_json1_1BatchArrayProperties = (output: any, context: __SerdeContext): BatchArrayProperties => { return { - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), } as any; }; @@ -6117,7 +6118,7 @@ const deserializeAws_json1_1BatchParameters = (output: any, context: __SerdeCont const deserializeAws_json1_1BatchRetryStrategy = (output: any, context: __SerdeContext): BatchRetryStrategy => { return { - Attempts: __expectInt(output.Attempts), + Attempts: __expectInt32(output.Attempts), } as any; }; @@ -6148,9 +6149,9 @@ const deserializeAws_json1_1CapacityProviderStrategyItem = ( context: __SerdeContext ): CapacityProviderStrategyItem => { return { - base: __expectInt(output.base), + base: __expectInt32(output.base), capacityProvider: __expectString(output.capacityProvider), - weight: __expectInt(output.weight), + weight: __expectInt32(output.weight), } as any; }; @@ -6499,7 +6500,7 @@ const deserializeAws_json1_1DescribeApiDestinationResponse = ( Description: __expectString(output.Description), HttpMethod: __expectString(output.HttpMethod), InvocationEndpoint: __expectString(output.InvocationEndpoint), - InvocationRateLimitPerSecond: __expectInt(output.InvocationRateLimitPerSecond), + InvocationRateLimitPerSecond: __expectInt32(output.InvocationRateLimitPerSecond), LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) @@ -6520,11 +6521,11 @@ const deserializeAws_json1_1DescribeArchiveResponse = ( ? new Date(Math.round(output.CreationTime * 1000)) : undefined, Description: __expectString(output.Description), - EventCount: __expectInt(output.EventCount), + EventCount: __expectLong(output.EventCount), EventPattern: __expectString(output.EventPattern), EventSourceArn: __expectString(output.EventSourceArn), - RetentionDays: __expectInt(output.RetentionDays), - SizeBytes: __expectInt(output.SizeBytes), + RetentionDays: __expectInt32(output.RetentionDays), + SizeBytes: __expectLong(output.SizeBytes), State: __expectString(output.State), StateReason: __expectString(output.StateReason), } as any; @@ -6681,7 +6682,7 @@ const deserializeAws_json1_1EcsParameters = (output: any, context: __SerdeContex output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, - TaskCount: __expectInt(output.TaskCount), + TaskCount: __expectInt32(output.TaskCount), TaskDefinitionArn: __expectString(output.TaskDefinitionArn), } as any; }; @@ -7090,7 +7091,7 @@ const deserializeAws_json1_1PutEventsResponse = (output: any, context: __SerdeCo output.Entries !== undefined && output.Entries !== null ? deserializeAws_json1_1PutEventsResultEntryList(output.Entries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7125,7 +7126,7 @@ const deserializeAws_json1_1PutPartnerEventsResponse = ( output.Entries !== undefined && output.Entries !== null ? deserializeAws_json1_1PutPartnerEventsResultEntryList(output.Entries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7166,7 +7167,7 @@ const deserializeAws_json1_1PutTargetsResponse = (output: any, context: __SerdeC output.FailedEntries !== undefined && output.FailedEntries !== null ? deserializeAws_json1_1PutTargetsResultEntryList(output.FailedEntries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7224,7 +7225,7 @@ const deserializeAws_json1_1RemoveTargetsResponse = (output: any, context: __Ser output.FailedEntries !== undefined && output.FailedEntries !== null ? deserializeAws_json1_1RemoveTargetsResultEntryList(output.FailedEntries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7334,8 +7335,8 @@ const deserializeAws_json1_1ResourceNotFoundException = ( const deserializeAws_json1_1RetryPolicy = (output: any, context: __SerdeContext): RetryPolicy => { return { - MaximumEventAgeInSeconds: __expectInt(output.MaximumEventAgeInSeconds), - MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts), + MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds), + MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts), } as any; }; diff --git a/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts index dc404cf0bce11..e7b1d1075de05 100644 --- a/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts @@ -181,9 +181,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -4619,7 +4620,7 @@ const deserializeAws_json1_1Destination = (output: any, context: __SerdeContext) return { accessPolicy: __expectString(output.accessPolicy), arn: __expectString(output.arn), - creationTime: __expectInt(output.creationTime), + creationTime: __expectLong(output.creationTime), destinationName: __expectString(output.destinationName), roleArn: __expectString(output.roleArn), targetArn: __expectString(output.targetArn), @@ -4657,7 +4658,7 @@ const deserializeAws_json1_1ExportTask = (output: any, context: __SerdeContext): output.executionInfo !== undefined && output.executionInfo !== null ? deserializeAws_json1_1ExportTaskExecutionInfo(output.executionInfo, context) : undefined, - from: __expectInt(output.from), + from: __expectLong(output.from), logGroupName: __expectString(output.logGroupName), status: output.status !== undefined && output.status !== null @@ -4665,7 +4666,7 @@ const deserializeAws_json1_1ExportTask = (output: any, context: __SerdeContext): : undefined, taskId: __expectString(output.taskId), taskName: __expectString(output.taskName), - to: __expectInt(output.to), + to: __expectLong(output.to), } as any; }; @@ -4674,8 +4675,8 @@ const deserializeAws_json1_1ExportTaskExecutionInfo = ( context: __SerdeContext ): ExportTaskExecutionInfo => { return { - completionTime: __expectInt(output.completionTime), - creationTime: __expectInt(output.creationTime), + completionTime: __expectLong(output.completionTime), + creationTime: __expectLong(output.creationTime), } as any; }; @@ -4712,10 +4713,10 @@ const deserializeAws_json1_1ExtractedValues = (output: any, context: __SerdeCont const deserializeAws_json1_1FilteredLogEvent = (output: any, context: __SerdeContext): FilteredLogEvent => { return { eventId: __expectString(output.eventId), - ingestionTime: __expectInt(output.ingestionTime), + ingestionTime: __expectLong(output.ingestionTime), logStreamName: __expectString(output.logStreamName), message: __expectString(output.message), - timestamp: __expectInt(output.timestamp), + timestamp: __expectLong(output.timestamp), } as any; }; @@ -4843,19 +4844,19 @@ const deserializeAws_json1_1ListTagsLogGroupResponse = ( const deserializeAws_json1_1LogGroup = (output: any, context: __SerdeContext): LogGroup => { return { arn: __expectString(output.arn), - creationTime: __expectInt(output.creationTime), + creationTime: __expectLong(output.creationTime), kmsKeyId: __expectString(output.kmsKeyId), logGroupName: __expectString(output.logGroupName), - metricFilterCount: __expectInt(output.metricFilterCount), - retentionInDays: __expectInt(output.retentionInDays), - storedBytes: __expectInt(output.storedBytes), + metricFilterCount: __expectInt32(output.metricFilterCount), + retentionInDays: __expectInt32(output.retentionInDays), + storedBytes: __expectLong(output.storedBytes), } as any; }; const deserializeAws_json1_1LogGroupField = (output: any, context: __SerdeContext): LogGroupField => { return { name: __expectString(output.name), - percent: __expectInt(output.percent), + percent: __expectInt32(output.percent), } as any; }; @@ -4907,12 +4908,12 @@ const deserializeAws_json1_1LogRecord = (output: any, context: __SerdeContext): const deserializeAws_json1_1LogStream = (output: any, context: __SerdeContext): LogStream => { return { arn: __expectString(output.arn), - creationTime: __expectInt(output.creationTime), - firstEventTimestamp: __expectInt(output.firstEventTimestamp), - lastEventTimestamp: __expectInt(output.lastEventTimestamp), - lastIngestionTime: __expectInt(output.lastIngestionTime), + creationTime: __expectLong(output.creationTime), + firstEventTimestamp: __expectLong(output.firstEventTimestamp), + lastEventTimestamp: __expectLong(output.lastEventTimestamp), + lastIngestionTime: __expectLong(output.lastIngestionTime), logStreamName: __expectString(output.logStreamName), - storedBytes: __expectInt(output.storedBytes), + storedBytes: __expectLong(output.storedBytes), uploadSequenceToken: __expectString(output.uploadSequenceToken), } as any; }; @@ -4943,7 +4944,7 @@ const deserializeAws_json1_1MalformedQueryException = ( const deserializeAws_json1_1MetricFilter = (output: any, context: __SerdeContext): MetricFilter => { return { - creationTime: __expectInt(output.creationTime), + creationTime: __expectLong(output.creationTime), filterName: __expectString(output.filterName), filterPattern: __expectString(output.filterPattern), logGroupName: __expectString(output.logGroupName), @@ -4971,7 +4972,7 @@ const deserializeAws_json1_1MetricFilterMatchRecord = ( ): MetricFilterMatchRecord => { return { eventMessage: __expectString(output.eventMessage), - eventNumber: __expectInt(output.eventNumber), + eventNumber: __expectLong(output.eventNumber), extractedValues: output.extractedValues !== undefined && output.extractedValues !== null ? deserializeAws_json1_1ExtractedValues(output.extractedValues, context) @@ -4992,7 +4993,7 @@ const deserializeAws_json1_1MetricFilters = (output: any, context: __SerdeContex const deserializeAws_json1_1MetricTransformation = (output: any, context: __SerdeContext): MetricTransformation => { return { - defaultValue: __limitedParseFloat(output.defaultValue), + defaultValue: __limitedParseDouble(output.defaultValue), dimensions: output.dimensions !== undefined && output.dimensions !== null ? deserializeAws_json1_1Dimensions(output.dimensions, context) @@ -5026,9 +5027,9 @@ const deserializeAws_json1_1OperationAbortedException = ( const deserializeAws_json1_1OutputLogEvent = (output: any, context: __SerdeContext): OutputLogEvent => { return { - ingestionTime: __expectInt(output.ingestionTime), + ingestionTime: __expectLong(output.ingestionTime), message: __expectString(output.message), - timestamp: __expectInt(output.timestamp), + timestamp: __expectLong(output.timestamp), } as any; }; @@ -5098,14 +5099,14 @@ const deserializeAws_json1_1QueryCompileErrorLocation = ( context: __SerdeContext ): QueryCompileErrorLocation => { return { - endCharOffset: __expectInt(output.endCharOffset), - startCharOffset: __expectInt(output.startCharOffset), + endCharOffset: __expectInt32(output.endCharOffset), + startCharOffset: __expectInt32(output.startCharOffset), } as any; }; const deserializeAws_json1_1QueryDefinition = (output: any, context: __SerdeContext): QueryDefinition => { return { - lastModified: __expectInt(output.lastModified), + lastModified: __expectLong(output.lastModified), logGroupNames: output.logGroupNames !== undefined && output.logGroupNames !== null ? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context) @@ -5129,7 +5130,7 @@ const deserializeAws_json1_1QueryDefinitionList = (output: any, context: __Serde const deserializeAws_json1_1QueryInfo = (output: any, context: __SerdeContext): QueryInfo => { return { - createTime: __expectInt(output.createTime), + createTime: __expectLong(output.createTime), logGroupName: __expectString(output.logGroupName), queryId: __expectString(output.queryId), queryString: __expectString(output.queryString), @@ -5161,17 +5162,17 @@ const deserializeAws_json1_1QueryResults = (output: any, context: __SerdeContext const deserializeAws_json1_1QueryStatistics = (output: any, context: __SerdeContext): QueryStatistics => { return { - bytesScanned: __limitedParseFloat(output.bytesScanned), - recordsMatched: __limitedParseFloat(output.recordsMatched), - recordsScanned: __limitedParseFloat(output.recordsScanned), + bytesScanned: __limitedParseDouble(output.bytesScanned), + recordsMatched: __limitedParseDouble(output.recordsMatched), + recordsScanned: __limitedParseDouble(output.recordsScanned), } as any; }; const deserializeAws_json1_1RejectedLogEventsInfo = (output: any, context: __SerdeContext): RejectedLogEventsInfo => { return { - expiredLogEventEndIndex: __expectInt(output.expiredLogEventEndIndex), - tooNewLogEventStartIndex: __expectInt(output.tooNewLogEventStartIndex), - tooOldLogEventEndIndex: __expectInt(output.tooOldLogEventEndIndex), + expiredLogEventEndIndex: __expectInt32(output.expiredLogEventEndIndex), + tooNewLogEventStartIndex: __expectInt32(output.tooNewLogEventStartIndex), + tooOldLogEventEndIndex: __expectInt32(output.tooOldLogEventEndIndex), } as any; }; @@ -5206,7 +5207,7 @@ const deserializeAws_json1_1ResourcePolicies = (output: any, context: __SerdeCon const deserializeAws_json1_1ResourcePolicy = (output: any, context: __SerdeContext): ResourcePolicy => { return { - lastUpdatedTime: __expectInt(output.lastUpdatedTime), + lastUpdatedTime: __expectLong(output.lastUpdatedTime), policyDocument: __expectString(output.policyDocument), policyName: __expectString(output.policyName), } as any; @@ -5271,7 +5272,7 @@ const deserializeAws_json1_1StopQueryResponse = (output: any, context: __SerdeCo const deserializeAws_json1_1SubscriptionFilter = (output: any, context: __SerdeContext): SubscriptionFilter => { return { - creationTime: __expectInt(output.creationTime), + creationTime: __expectLong(output.creationTime), destinationArn: __expectString(output.destinationArn), distribution: __expectString(output.distribution), filterName: __expectString(output.filterName), diff --git a/clients/client-cloudwatch/protocols/Aws_query.ts b/clients/client-cloudwatch/protocols/Aws_query.ts index 021db56d1966c..47b6ca3af945b 100644 --- a/clients/client-cloudwatch/protocols/Aws_query.ts +++ b/clients/client-cloudwatch/protocols/Aws_query.ts @@ -185,7 +185,8 @@ import { parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4826,7 +4827,7 @@ const deserializeAws_queryDashboardEntry = (output: any, context: __SerdeContext contents.LastModified = new Date(output["LastModified"]); } if (output["Size"] !== undefined) { - contents.Size = __strictParseInt(output["Size"]) as number; + contents.Size = __strictParseLong(output["Size"]) as number; } return contents; }; @@ -5243,7 +5244,7 @@ const deserializeAws_queryGetInsightRuleReportOutput = ( contents.AggregateValue = __strictParseFloat(output["AggregateValue"]) as number; } if (output["ApproximateUniqueCount"] !== undefined) { - contents.ApproximateUniqueCount = __strictParseInt(output["ApproximateUniqueCount"]) as number; + contents.ApproximateUniqueCount = __strictParseLong(output["ApproximateUniqueCount"]) as number; } if (output.Contributors === "") { contents.Contributors = []; @@ -5868,16 +5869,16 @@ const deserializeAws_queryMetricAlarm = (output: any, context: __SerdeContext): ); } if (output["Period"] !== undefined) { - contents.Period = __strictParseInt(output["Period"]) as number; + contents.Period = __strictParseInt32(output["Period"]) as number; } if (output["Unit"] !== undefined) { contents.Unit = __expectString(output["Unit"]); } if (output["EvaluationPeriods"] !== undefined) { - contents.EvaluationPeriods = __strictParseInt(output["EvaluationPeriods"]) as number; + contents.EvaluationPeriods = __strictParseInt32(output["EvaluationPeriods"]) as number; } if (output["DatapointsToAlarm"] !== undefined) { - contents.DatapointsToAlarm = __strictParseInt(output["DatapointsToAlarm"]) as number; + contents.DatapointsToAlarm = __strictParseInt32(output["DatapointsToAlarm"]) as number; } if (output["Threshold"] !== undefined) { contents.Threshold = __strictParseFloat(output["Threshold"]) as number; @@ -5954,7 +5955,7 @@ const deserializeAws_queryMetricDataQuery = (output: any, context: __SerdeContex contents.ReturnData = __parseBoolean(output["ReturnData"]); } if (output["Period"] !== undefined) { - contents.Period = __strictParseInt(output["Period"]) as number; + contents.Period = __strictParseInt32(output["Period"]) as number; } if (output["AccountId"] !== undefined) { contents.AccountId = __expectString(output["AccountId"]); @@ -6051,7 +6052,7 @@ const deserializeAws_queryMetricStat = (output: any, context: __SerdeContext): M contents.Metric = deserializeAws_queryMetric(output["Metric"], context); } if (output["Period"] !== undefined) { - contents.Period = __strictParseInt(output["Period"]) as number; + contents.Period = __strictParseInt32(output["Period"]) as number; } if (output["Stat"] !== undefined) { contents.Stat = __expectString(output["Stat"]); diff --git a/clients/client-codeartifact/protocols/Aws_restJson1.ts b/clients/client-codeartifact/protocols/Aws_restJson1.ts index c92b46e2b8c3f..f73527828c653 100644 --- a/clients/client-codeartifact/protocols/Aws_restJson1.ts +++ b/clients/client-codeartifact/protocols/Aws_restJson1.ts @@ -127,10 +127,11 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4527,7 +4528,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -4652,7 +4653,7 @@ const deserializeAws_restJson1AssetSummary = (output: any, context: __SerdeConte ? deserializeAws_restJson1AssetHashes(output.hashes, context) : undefined, name: __expectString(output.name), - size: __expectInt(output.size), + size: __expectLong(output.size), } as any; }; @@ -4670,7 +4671,7 @@ const deserializeAws_restJson1AssetSummaryList = (output: any, context: __SerdeC const deserializeAws_restJson1DomainDescription = (output: any, context: __SerdeContext): DomainDescription => { return { arn: __expectString(output.arn), - assetSizeBytes: __expectInt(output.assetSizeBytes), + assetSizeBytes: __expectLong(output.assetSizeBytes), createdTime: output.createdTime !== undefined && output.createdTime !== null ? new Date(Math.round(output.createdTime * 1000)) @@ -4678,7 +4679,7 @@ const deserializeAws_restJson1DomainDescription = (output: any, context: __Serde encryptionKey: __expectString(output.encryptionKey), name: __expectString(output.name), owner: __expectString(output.owner), - repositoryCount: __expectInt(output.repositoryCount), + repositoryCount: __expectInt32(output.repositoryCount), s3BucketArn: __expectString(output.s3BucketArn), status: __expectString(output.status), } as any; diff --git a/clients/client-codebuild/protocols/Aws_json1_1.ts b/clients/client-codebuild/protocols/Aws_json1_1.ts index d90068db8ef19..a34ae856fed23 100644 --- a/clients/client-codebuild/protocols/Aws_json1_1.ts +++ b/clients/client-codebuild/protocols/Aws_json1_1.ts @@ -242,9 +242,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -4845,7 +4846,7 @@ const deserializeAws_json1_1BatchRestrictions = (output: any, context: __SerdeCo output.computeTypesAllowed !== undefined && output.computeTypesAllowed !== null ? deserializeAws_json1_1ComputeTypesAllowed(output.computeTypesAllowed, context) : undefined, - maximumBuildsAllowed: __expectInt(output.maximumBuildsAllowed), + maximumBuildsAllowed: __expectInt32(output.maximumBuildsAllowed), } as any; }; @@ -4858,7 +4859,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil : undefined, buildBatchArn: __expectString(output.buildBatchArn), buildComplete: __expectBoolean(output.buildComplete), - buildNumber: __expectInt(output.buildNumber), + buildNumber: __expectLong(output.buildNumber), buildStatus: __expectString(output.buildStatus), cache: output.cache !== undefined && output.cache !== null @@ -4899,7 +4900,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil ? deserializeAws_json1_1BuildPhases(output.phases, context) : undefined, projectName: __expectString(output.projectName), - queuedTimeoutInMinutes: __expectInt(output.queuedTimeoutInMinutes), + queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes), reportArns: output.reportArns !== undefined && output.reportArns !== null ? deserializeAws_json1_1BuildReportArns(output.reportArns, context) @@ -4927,7 +4928,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil output.startTime !== undefined && output.startTime !== null ? new Date(Math.round(output.startTime * 1000)) : undefined, - timeoutInMinutes: __expectInt(output.timeoutInMinutes), + timeoutInMinutes: __expectInt32(output.timeoutInMinutes), vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) @@ -4969,13 +4970,13 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext): output.buildBatchConfig !== undefined && output.buildBatchConfig !== null ? deserializeAws_json1_1ProjectBuildBatchConfig(output.buildBatchConfig, context) : undefined, - buildBatchNumber: __expectInt(output.buildBatchNumber), + buildBatchNumber: __expectLong(output.buildBatchNumber), buildBatchStatus: __expectString(output.buildBatchStatus), buildGroups: output.buildGroups !== undefined && output.buildGroups !== null ? deserializeAws_json1_1BuildGroups(output.buildGroups, context) : undefined, - buildTimeoutInMinutes: __expectInt(output.buildTimeoutInMinutes), + buildTimeoutInMinutes: __expectInt32(output.buildTimeoutInMinutes), cache: output.cache !== undefined && output.cache !== null ? deserializeAws_json1_1ProjectCache(output.cache, context) @@ -5005,7 +5006,7 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext): ? deserializeAws_json1_1BuildBatchPhases(output.phases, context) : undefined, projectName: __expectString(output.projectName), - queuedTimeoutInMinutes: __expectInt(output.queuedTimeoutInMinutes), + queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes), resolvedSourceVersion: __expectString(output.resolvedSourceVersion), secondaryArtifacts: output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null @@ -5064,7 +5065,7 @@ const deserializeAws_json1_1BuildBatchPhase = (output: any, context: __SerdeCont output.contexts !== undefined && output.contexts !== null ? deserializeAws_json1_1PhaseContexts(output.contexts, context) : undefined, - durationInSeconds: __expectInt(output.durationInSeconds), + durationInSeconds: __expectLong(output.durationInSeconds), endTime: output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined, phaseStatus: __expectString(output.phaseStatus), @@ -5141,7 +5142,7 @@ const deserializeAws_json1_1BuildPhase = (output: any, context: __SerdeContext): output.contexts !== undefined && output.contexts !== null ? deserializeAws_json1_1PhaseContexts(output.contexts, context) : undefined, - durationInSeconds: __expectInt(output.durationInSeconds), + durationInSeconds: __expectLong(output.durationInSeconds), endTime: output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined, phaseStatus: __expectString(output.phaseStatus), @@ -5244,16 +5245,16 @@ const deserializeAws_json1_1CloudWatchLogsConfig = (output: any, context: __Serd const deserializeAws_json1_1CodeCoverage = (output: any, context: __SerdeContext): CodeCoverage => { return { - branchCoveragePercentage: __limitedParseFloat(output.branchCoveragePercentage), - branchesCovered: __expectInt(output.branchesCovered), - branchesMissed: __expectInt(output.branchesMissed), + branchCoveragePercentage: __limitedParseDouble(output.branchCoveragePercentage), + branchesCovered: __expectInt32(output.branchesCovered), + branchesMissed: __expectInt32(output.branchesMissed), expired: output.expired !== undefined && output.expired !== null ? new Date(Math.round(output.expired * 1000)) : undefined, filePath: __expectString(output.filePath), id: __expectString(output.id), - lineCoveragePercentage: __limitedParseFloat(output.lineCoveragePercentage), - linesCovered: __expectInt(output.linesCovered), - linesMissed: __expectInt(output.linesMissed), + lineCoveragePercentage: __limitedParseDouble(output.lineCoveragePercentage), + linesCovered: __expectInt32(output.linesCovered), + linesMissed: __expectInt32(output.linesMissed), reportARN: __expectString(output.reportARN), } as any; }; @@ -5263,12 +5264,12 @@ const deserializeAws_json1_1CodeCoverageReportSummary = ( context: __SerdeContext ): CodeCoverageReportSummary => { return { - branchCoveragePercentage: __limitedParseFloat(output.branchCoveragePercentage), - branchesCovered: __expectInt(output.branchesCovered), - branchesMissed: __expectInt(output.branchesMissed), - lineCoveragePercentage: __limitedParseFloat(output.lineCoveragePercentage), - linesCovered: __expectInt(output.linesCovered), - linesMissed: __expectInt(output.linesMissed), + branchCoveragePercentage: __limitedParseDouble(output.branchCoveragePercentage), + branchesCovered: __expectInt32(output.branchesCovered), + branchesMissed: __expectInt32(output.branchesMissed), + lineCoveragePercentage: __limitedParseDouble(output.lineCoveragePercentage), + linesCovered: __expectInt32(output.linesCovered), + linesMissed: __expectInt32(output.linesMissed), } as any; }; @@ -5827,7 +5828,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr output.cache !== undefined && output.cache !== null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined, - concurrentBuildLimit: __expectInt(output.concurrentBuildLimit), + concurrentBuildLimit: __expectInt32(output.concurrentBuildLimit), created: output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined, description: __expectString(output.description), @@ -5851,7 +5852,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr name: __expectString(output.name), projectVisibility: __expectString(output.projectVisibility), publicProjectAlias: __expectString(output.publicProjectAlias), - queuedTimeoutInMinutes: __expectInt(output.queuedTimeoutInMinutes), + queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes), resourceAccessRole: __expectString(output.resourceAccessRole), secondaryArtifacts: output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null @@ -5875,7 +5876,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1TagList(output.tags, context) : undefined, - timeoutInMinutes: __expectInt(output.timeoutInMinutes), + timeoutInMinutes: __expectInt32(output.timeoutInMinutes), vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) @@ -5942,7 +5943,7 @@ const deserializeAws_json1_1ProjectBuildBatchConfig = ( ? deserializeAws_json1_1BatchRestrictions(output.restrictions, context) : undefined, serviceRole: __expectString(output.serviceRole), - timeoutInMins: __expectInt(output.timeoutInMins), + timeoutInMins: __expectInt32(output.timeoutInMins), } as any; }; @@ -6061,7 +6062,7 @@ const deserializeAws_json1_1ProjectSource = (output: any, context: __SerdeContex ? deserializeAws_json1_1BuildStatusConfig(output.buildStatusConfig, context) : undefined, buildspec: __expectString(output.buildspec), - gitCloneDepth: __expectInt(output.gitCloneDepth), + gitCloneDepth: __expectInt32(output.gitCloneDepth), gitSubmodulesConfig: output.gitSubmodulesConfig !== undefined && output.gitSubmodulesConfig !== null ? deserializeAws_json1_1GitSubmodulesConfig(output.gitSubmodulesConfig, context) @@ -6242,7 +6243,7 @@ const deserializeAws_json1_1ReportStatusCounts = (output: any, context: __SerdeC } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -6436,7 +6437,7 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta const deserializeAws_json1_1TestCase = (output: any, context: __SerdeContext): TestCase => { return { - durationInNanoSeconds: __expectInt(output.durationInNanoSeconds), + durationInNanoSeconds: __expectLong(output.durationInNanoSeconds), expired: output.expired !== undefined && output.expired !== null ? new Date(Math.round(output.expired * 1000)) : undefined, message: __expectString(output.message), @@ -6461,12 +6462,12 @@ const deserializeAws_json1_1TestCases = (output: any, context: __SerdeContext): const deserializeAws_json1_1TestReportSummary = (output: any, context: __SerdeContext): TestReportSummary => { return { - durationInNanoSeconds: __expectInt(output.durationInNanoSeconds), + durationInNanoSeconds: __expectLong(output.durationInNanoSeconds), statusCounts: output.statusCounts !== undefined && output.statusCounts !== null ? deserializeAws_json1_1ReportStatusCounts(output.statusCounts, context) : undefined, - total: __expectInt(output.total), + total: __expectInt32(output.total), } as any; }; diff --git a/clients/client-codecommit/protocols/Aws_json1_1.ts b/clients/client-codecommit/protocols/Aws_json1_1.ts index 9d98496f03749..bd07cd07cb870 100644 --- a/clients/client-codecommit/protocols/Aws_json1_1.ts +++ b/clients/client-codecommit/protocols/Aws_json1_1.ts @@ -612,7 +612,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -18570,7 +18571,7 @@ const deserializeAws_json1_1ConflictMetadata = (output: any, context: __SerdeCon output.mergeOperations !== undefined && output.mergeOperations !== null ? deserializeAws_json1_1MergeOperations(output.mergeOperations, context) : undefined, - numberOfConflicts: __expectInt(output.numberOfConflicts), + numberOfConflicts: __expectInt32(output.numberOfConflicts), objectTypeConflict: __expectBoolean(output.objectTypeConflict), objectTypes: output.objectTypes !== undefined && output.objectTypes !== null @@ -18987,9 +18988,9 @@ const deserializeAws_json1_1FilePathConflictsWithSubmodulePathException = ( const deserializeAws_json1_1FileSizes = (output: any, context: __SerdeContext): FileSizes => { return { - base: __expectInt(output.base), - destination: __expectInt(output.destination), - source: __expectInt(output.source), + base: __expectLong(output.base), + destination: __expectLong(output.destination), + source: __expectLong(output.source), } as any; }; @@ -19152,7 +19153,7 @@ const deserializeAws_json1_1GetFileOutput = (output: any, context: __SerdeContex : undefined, fileMode: __expectString(output.fileMode), filePath: __expectString(output.filePath), - fileSize: __expectInt(output.fileSize), + fileSize: __expectLong(output.fileSize), } as any; }; @@ -19916,7 +19917,7 @@ const deserializeAws_json1_1ListTagsForResourceOutput = ( const deserializeAws_json1_1Location = (output: any, context: __SerdeContext): Location => { return { filePath: __expectString(output.filePath), - filePosition: __expectInt(output.filePosition), + filePosition: __expectLong(output.filePosition), relativeFileVersion: __expectString(output.relativeFileVersion), } as any; }; @@ -20070,9 +20071,9 @@ const deserializeAws_json1_1MergeHunk = (output: any, context: __SerdeContext): const deserializeAws_json1_1MergeHunkDetail = (output: any, context: __SerdeContext): MergeHunkDetail => { return { - endLine: __expectInt(output.endLine), + endLine: __expectInt32(output.endLine), hunkContent: __expectString(output.hunkContent), - startLine: __expectInt(output.startLine), + startLine: __expectInt32(output.startLine), } as any; }; @@ -20613,7 +20614,7 @@ const deserializeAws_json1_1ReactionCountsMap = (output: any, context: __SerdeCo } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -20628,7 +20629,7 @@ const deserializeAws_json1_1ReactionForComment = (output: any, context: __SerdeC output.reactionUsers !== undefined && output.reactionUsers !== null ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context) : undefined, - reactionsFromDeletedUsersCount: __expectInt(output.reactionsFromDeletedUsersCount), + reactionsFromDeletedUsersCount: __expectInt32(output.reactionsFromDeletedUsersCount), } as any; }; diff --git a/clients/client-codedeploy/protocols/Aws_json1_1.ts b/clients/client-codedeploy/protocols/Aws_json1_1.ts index 1567a2d7bb3be..fcccb17635fd9 100644 --- a/clients/client-codedeploy/protocols/Aws_json1_1.ts +++ b/clients/client-codedeploy/protocols/Aws_json1_1.ts @@ -405,9 +405,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -9049,7 +9050,7 @@ const deserializeAws_json1_1BlueInstanceTerminationOption = ( ): BlueInstanceTerminationOption => { return { action: __expectString(output.action), - terminationWaitTimeInMinutes: __expectInt(output.terminationWaitTimeInMinutes), + terminationWaitTimeInMinutes: __expectInt32(output.terminationWaitTimeInMinutes), } as any; }; @@ -9076,7 +9077,7 @@ const deserializeAws_json1_1CloudFormationTarget = (output: any, context: __Serd resourceType: __expectString(output.resourceType), status: __expectString(output.status), targetId: __expectString(output.targetId), - targetVersionWeight: __limitedParseFloat(output.targetVersionWeight), + targetVersionWeight: __limitedParseDouble(output.targetVersionWeight), } as any; }; @@ -9482,19 +9483,19 @@ const deserializeAws_json1_1DeploymentNotStartedException = ( const deserializeAws_json1_1DeploymentOverview = (output: any, context: __SerdeContext): DeploymentOverview => { return { - Failed: __expectInt(output.Failed), - InProgress: __expectInt(output.InProgress), - Pending: __expectInt(output.Pending), - Ready: __expectInt(output.Ready), - Skipped: __expectInt(output.Skipped), - Succeeded: __expectInt(output.Succeeded), + Failed: __expectLong(output.Failed), + InProgress: __expectLong(output.InProgress), + Pending: __expectLong(output.Pending), + Ready: __expectLong(output.Ready), + Skipped: __expectLong(output.Skipped), + Succeeded: __expectLong(output.Succeeded), } as any; }; const deserializeAws_json1_1DeploymentReadyOption = (output: any, context: __SerdeContext): DeploymentReadyOption => { return { actionOnTimeout: __expectString(output.actionOnTimeout), - waitTimeInMinutes: __expectInt(output.waitTimeInMinutes), + waitTimeInMinutes: __expectInt32(output.waitTimeInMinutes), } as any; }; @@ -9705,17 +9706,17 @@ const deserializeAws_json1_1ECSTarget = (output: any, context: __SerdeContext): const deserializeAws_json1_1ECSTaskSet = (output: any, context: __SerdeContext): ECSTaskSet => { return { - desiredCount: __expectInt(output.desiredCount), + desiredCount: __expectLong(output.desiredCount), identifer: __expectString(output.identifer), - pendingCount: __expectInt(output.pendingCount), - runningCount: __expectInt(output.runningCount), + pendingCount: __expectLong(output.pendingCount), + runningCount: __expectLong(output.runningCount), status: __expectString(output.status), targetGroup: output.targetGroup !== undefined && output.targetGroup !== null ? deserializeAws_json1_1TargetGroupInfo(output.targetGroup, context) : undefined, taskSetLabel: __expectString(output.taskSetLabel), - trafficWeight: __limitedParseFloat(output.trafficWeight), + trafficWeight: __limitedParseDouble(output.trafficWeight), } as any; }; @@ -10580,7 +10581,7 @@ const deserializeAws_json1_1LambdaFunctionInfo = (output: any, context: __SerdeC functionAlias: __expectString(output.functionAlias), functionName: __expectString(output.functionName), targetVersion: __expectString(output.targetVersion), - targetVersionWeight: __limitedParseFloat(output.targetVersionWeight), + targetVersionWeight: __limitedParseDouble(output.targetVersionWeight), } as any; }; @@ -10820,7 +10821,7 @@ const deserializeAws_json1_1LoadBalancerInfo = (output: any, context: __SerdeCon const deserializeAws_json1_1MinimumHealthyHosts = (output: any, context: __SerdeContext): MinimumHealthyHosts => { return { type: __expectString(output.type), - value: __expectInt(output.value), + value: __expectInt32(output.value), } as any; }; @@ -11159,15 +11160,15 @@ const deserializeAws_json1_1ThrottlingException = (output: any, context: __Serde const deserializeAws_json1_1TimeBasedCanary = (output: any, context: __SerdeContext): TimeBasedCanary => { return { - canaryInterval: __expectInt(output.canaryInterval), - canaryPercentage: __expectInt(output.canaryPercentage), + canaryInterval: __expectInt32(output.canaryInterval), + canaryPercentage: __expectInt32(output.canaryPercentage), } as any; }; const deserializeAws_json1_1TimeBasedLinear = (output: any, context: __SerdeContext): TimeBasedLinear => { return { - linearInterval: __expectInt(output.linearInterval), - linearPercentage: __expectInt(output.linearPercentage), + linearInterval: __expectInt32(output.linearInterval), + linearPercentage: __expectInt32(output.linearPercentage), } as any; }; diff --git a/clients/client-codeguru-reviewer/protocols/Aws_restJson1.ts b/clients/client-codeguru-reviewer/protocols/Aws_restJson1.ts index 118e4bd5816a0..cf0b8969b8906 100644 --- a/clients/client-codeguru-reviewer/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-reviewer/protocols/Aws_restJson1.ts @@ -77,7 +77,8 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2183,15 +2184,15 @@ const deserializeAws_restJson1KMSKeyDetails = (output: any, context: __SerdeCont const deserializeAws_restJson1Metrics = (output: any, context: __SerdeContext): Metrics => { return { - FindingsCount: __expectInt(output.FindingsCount), - MeteredLinesOfCodeCount: __expectInt(output.MeteredLinesOfCodeCount), + FindingsCount: __expectLong(output.FindingsCount), + MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount), } as any; }; const deserializeAws_restJson1MetricsSummary = (output: any, context: __SerdeContext): MetricsSummary => { return { - FindingsCount: __expectInt(output.FindingsCount), - MeteredLinesOfCodeCount: __expectInt(output.MeteredLinesOfCodeCount), + FindingsCount: __expectLong(output.FindingsCount), + MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount), } as any; }; @@ -2274,11 +2275,11 @@ const deserializeAws_restJson1RecommendationSummaries = ( const deserializeAws_restJson1RecommendationSummary = (output: any, context: __SerdeContext): RecommendationSummary => { return { Description: __expectString(output.Description), - EndLine: __expectInt(output.EndLine), + EndLine: __expectInt32(output.EndLine), FilePath: __expectString(output.FilePath), RecommendationCategory: __expectString(output.RecommendationCategory), RecommendationId: __expectString(output.RecommendationId), - StartLine: __expectInt(output.StartLine), + StartLine: __expectInt32(output.StartLine), } as any; }; diff --git a/clients/client-codeguruprofiler/protocols/Aws_restJson1.ts b/clients/client-codeguruprofiler/protocols/Aws_restJson1.ts index b583173de52b9..615fa77d44d43 100644 --- a/clients/client-codeguruprofiler/protocols/Aws_restJson1.ts +++ b/clients/client-codeguruprofiler/protocols/Aws_restJson1.ts @@ -90,10 +90,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3024,7 +3024,7 @@ const deserializeAws_restJson1AgentConfiguration = (output: any, context: __Serd output.agentParameters !== undefined && output.agentParameters !== null ? deserializeAws_restJson1AgentParameters(output.agentParameters, context) : undefined, - periodInSeconds: __expectInt(output.periodInSeconds), + periodInSeconds: __expectInt32(output.periodInSeconds), shouldProfile: __expectBoolean(output.shouldProfile), } as any; }; @@ -3167,7 +3167,7 @@ const deserializeAws_restJson1FindingsReportSummary = (output: any, context: __S ? new Date(output.profileStartTime) : undefined, profilingGroupName: __expectString(output.profilingGroupName), - totalNumberOfFindings: __expectInt(output.totalNumberOfFindings), + totalNumberOfFindings: __expectInt32(output.totalNumberOfFindings), } as any; }; @@ -3213,7 +3213,7 @@ const deserializeAws_restJson1FrameMetricValues = (output: any, context: __Serde if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -3231,8 +3231,8 @@ const deserializeAws_restJson1ListOfTimestamps = (output: any, context: __SerdeC const deserializeAws_restJson1Match = (output: any, context: __SerdeContext): Match => { return { frameAddress: __expectString(output.frameAddress), - targetFramesIndex: __expectInt(output.targetFramesIndex), - thresholdBreachValue: __limitedParseFloat(output.thresholdBreachValue), + targetFramesIndex: __expectInt32(output.targetFramesIndex), + thresholdBreachValue: __limitedParseDouble(output.thresholdBreachValue), } as any; }; @@ -3284,7 +3284,7 @@ const deserializeAws_restJson1Pattern = (output: any, context: __SerdeContext): output.targetFrames !== undefined && output.targetFrames !== null ? deserializeAws_restJson1TargetFrames(output.targetFrames, context) : undefined, - thresholdPercent: __limitedParseFloat(output.thresholdPercent), + thresholdPercent: __limitedParseDouble(output.thresholdPercent), } as any; }; @@ -3374,8 +3374,8 @@ const deserializeAws_restJson1ProfilingStatus = (output: any, context: __SerdeCo const deserializeAws_restJson1Recommendation = (output: any, context: __SerdeContext): Recommendation => { return { - allMatchesCount: __expectInt(output.allMatchesCount), - allMatchesSum: __limitedParseFloat(output.allMatchesSum), + allMatchesCount: __expectInt32(output.allMatchesCount), + allMatchesSum: __limitedParseDouble(output.allMatchesSum), endTime: output.endTime !== undefined && output.endTime !== null ? new Date(output.endTime) : undefined, pattern: output.pattern !== undefined && output.pattern !== null diff --git a/clients/client-codepipeline/protocols/Aws_json1_1.ts b/clients/client-codepipeline/protocols/Aws_json1_1.ts index d3492118a4b29..486d1a8b7aeeb 100644 --- a/clients/client-codepipeline/protocols/Aws_json1_1.ts +++ b/clients/client-codepipeline/protocols/Aws_json1_1.ts @@ -275,7 +275,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -5323,7 +5323,7 @@ const deserializeAws_json1_1ActionDeclaration = (output: any, context: __SerdeCo : undefined, region: __expectString(output.region), roleArn: __expectString(output.roleArn), - runOrder: __expectInt(output.runOrder), + runOrder: __expectInt32(output.runOrder), } as any; }; @@ -5341,7 +5341,7 @@ const deserializeAws_json1_1ActionExecution = (output: any, context: __SerdeCont ? new Date(Math.round(output.lastStatusChange * 1000)) : undefined, lastUpdatedBy: __expectString(output.lastUpdatedBy), - percentComplete: __expectInt(output.percentComplete), + percentComplete: __expectInt32(output.percentComplete), status: __expectString(output.status), summary: __expectString(output.summary), token: __expectString(output.token), @@ -5365,7 +5365,7 @@ const deserializeAws_json1_1ActionExecutionDetail = (output: any, context: __Ser ? deserializeAws_json1_1ActionExecutionOutput(output.output, context) : undefined, pipelineExecutionId: __expectString(output.pipelineExecutionId), - pipelineVersion: __expectInt(output.pipelineVersion), + pipelineVersion: __expectInt32(output.pipelineVersion), stageName: __expectString(output.stageName), startTime: output.startTime !== undefined && output.startTime !== null @@ -5513,8 +5513,8 @@ const deserializeAws_json1_1ActionTypeArtifactDetails = ( context: __SerdeContext ): ActionTypeArtifactDetails => { return { - maximumCount: __expectInt(output.maximumCount), - minimumCount: __expectInt(output.minimumCount), + maximumCount: __expectInt32(output.maximumCount), + minimumCount: __expectInt32(output.minimumCount), } as any; }; @@ -5558,7 +5558,7 @@ const deserializeAws_json1_1ActionTypeExecutor = (output: any, context: __SerdeC output.configuration !== undefined && output.configuration !== null ? deserializeAws_json1_1ExecutorConfiguration(output.configuration, context) : undefined, - jobTimeout: __expectInt(output.jobTimeout), + jobTimeout: __expectInt32(output.jobTimeout), policyStatementsTemplate: __expectString(output.policyStatementsTemplate), type: __expectString(output.type), } as any; @@ -5705,8 +5705,8 @@ const deserializeAws_json1_1ArtifactDetailList = (output: any, context: __SerdeC const deserializeAws_json1_1ArtifactDetails = (output: any, context: __SerdeContext): ArtifactDetails => { return { - maximumCount: __expectInt(output.maximumCount), - minimumCount: __expectInt(output.minimumCount), + maximumCount: __expectInt32(output.maximumCount), + minimumCount: __expectInt32(output.minimumCount), } as any; }; @@ -5941,7 +5941,7 @@ const deserializeAws_json1_1GetPipelineStateOutput = (output: any, context: __Se created: output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined, pipelineName: __expectString(output.pipelineName), - pipelineVersion: __expectInt(output.pipelineVersion), + pipelineVersion: __expectInt32(output.pipelineVersion), stageStates: output.stageStates !== undefined && output.stageStates !== null ? deserializeAws_json1_1StageStateList(output.stageStates, context) @@ -6368,7 +6368,7 @@ const deserializeAws_json1_1PipelineDeclaration = (output: any, context: __Serde output.stages !== undefined && output.stages !== null ? deserializeAws_json1_1PipelineStageDeclarationList(output.stages, context) : undefined, - version: __expectInt(output.version), + version: __expectInt32(output.version), } as any; }; @@ -6380,7 +6380,7 @@ const deserializeAws_json1_1PipelineExecution = (output: any, context: __SerdeCo : undefined, pipelineExecutionId: __expectString(output.pipelineExecutionId), pipelineName: __expectString(output.pipelineName), - pipelineVersion: __expectInt(output.pipelineVersion), + pipelineVersion: __expectInt32(output.pipelineVersion), status: __expectString(output.status), statusSummary: __expectString(output.statusSummary), } as any; @@ -6508,7 +6508,7 @@ const deserializeAws_json1_1PipelineSummary = (output: any, context: __SerdeCont name: __expectString(output.name), updated: output.updated !== undefined && output.updated !== null ? new Date(Math.round(output.updated * 1000)) : undefined, - version: __expectInt(output.version), + version: __expectInt32(output.version), } as any; }; diff --git a/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts b/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts index 0e648bc3004f4..999368668c003 100644 --- a/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts @@ -576,7 +576,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -15769,7 +15770,7 @@ const deserializeAws_json1_1AdminCreateUserConfigType = ( output.InviteMessageTemplate !== undefined && output.InviteMessageTemplate !== null ? deserializeAws_json1_1MessageTemplateType(output.InviteMessageTemplate, context) : undefined, - UnusedAccountValidityDays: __expectInt(output.UnusedAccountValidityDays), + UnusedAccountValidityDays: __expectInt32(output.UnusedAccountValidityDays), } as any; }; @@ -16071,7 +16072,7 @@ const deserializeAws_json1_1AuthenticationResultType = ( ): AuthenticationResultType => { return { AccessToken: __expectString(output.AccessToken), - ExpiresIn: __expectInt(output.ExpiresIn), + ExpiresIn: __expectInt32(output.ExpiresIn), IdToken: __expectString(output.IdToken), NewDeviceMetadata: output.NewDeviceMetadata !== undefined && output.NewDeviceMetadata !== null @@ -16782,7 +16783,7 @@ const deserializeAws_json1_1GroupType = (output: any, context: __SerdeContext): output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? new Date(Math.round(output.LastModifiedDate * 1000)) : undefined, - Precedence: __expectInt(output.Precedence), + Precedence: __expectInt32(output.Precedence), RoleArn: __expectString(output.RoleArn), UserPoolId: __expectString(output.UserPoolId), } as any; @@ -17191,12 +17192,12 @@ const deserializeAws_json1_1OAuthFlowsType = (output: any, context: __SerdeConte const deserializeAws_json1_1PasswordPolicyType = (output: any, context: __SerdeContext): PasswordPolicyType => { return { - MinimumLength: __expectInt(output.MinimumLength), + MinimumLength: __expectInt32(output.MinimumLength), RequireLowercase: __expectBoolean(output.RequireLowercase), RequireNumbers: __expectBoolean(output.RequireNumbers), RequireSymbols: __expectBoolean(output.RequireSymbols), RequireUppercase: __expectBoolean(output.RequireUppercase), - TemporaryPasswordValidityDays: __expectInt(output.TemporaryPasswordValidityDays), + TemporaryPasswordValidityDays: __expectInt32(output.TemporaryPasswordValidityDays), } as any; }; @@ -17270,7 +17271,7 @@ const deserializeAws_json1_1RecoveryMechanismsType = (output: any, context: __Se const deserializeAws_json1_1RecoveryOptionType = (output: any, context: __SerdeContext): RecoveryOptionType => { return { Name: __expectString(output.Name), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), } as any; }; @@ -17835,12 +17836,12 @@ const deserializeAws_json1_1UserImportJobType = (output: any, context: __SerdeCo output.CreationDate !== undefined && output.CreationDate !== null ? new Date(Math.round(output.CreationDate * 1000)) : undefined, - FailedUsers: __expectInt(output.FailedUsers), - ImportedUsers: __expectInt(output.ImportedUsers), + FailedUsers: __expectLong(output.FailedUsers), + ImportedUsers: __expectLong(output.ImportedUsers), JobId: __expectString(output.JobId), JobName: __expectString(output.JobName), PreSignedUrl: __expectString(output.PreSignedUrl), - SkippedUsers: __expectInt(output.SkippedUsers), + SkippedUsers: __expectLong(output.SkippedUsers), StartDate: output.StartDate !== undefined && output.StartDate !== null ? new Date(Math.round(output.StartDate * 1000)) @@ -17959,7 +17960,7 @@ const deserializeAws_json1_1UserPoolClientListType = ( const deserializeAws_json1_1UserPoolClientType = (output: any, context: __SerdeContext): UserPoolClientType => { return { - AccessTokenValidity: __expectInt(output.AccessTokenValidity), + AccessTokenValidity: __expectInt32(output.AccessTokenValidity), AllowedOAuthFlows: output.AllowedOAuthFlows !== undefined && output.AllowedOAuthFlows !== null ? deserializeAws_json1_1OAuthFlowsType(output.AllowedOAuthFlows, context) @@ -17990,7 +17991,7 @@ const deserializeAws_json1_1UserPoolClientType = (output: any, context: __SerdeC output.ExplicitAuthFlows !== undefined && output.ExplicitAuthFlows !== null ? deserializeAws_json1_1ExplicitAuthFlowsListType(output.ExplicitAuthFlows, context) : undefined, - IdTokenValidity: __expectInt(output.IdTokenValidity), + IdTokenValidity: __expectInt32(output.IdTokenValidity), LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? new Date(Math.round(output.LastModifiedDate * 1000)) @@ -18004,7 +18005,7 @@ const deserializeAws_json1_1UserPoolClientType = (output: any, context: __SerdeC output.ReadAttributes !== undefined && output.ReadAttributes !== null ? deserializeAws_json1_1ClientPermissionListType(output.ReadAttributes, context) : undefined, - RefreshTokenValidity: __expectInt(output.RefreshTokenValidity), + RefreshTokenValidity: __expectInt32(output.RefreshTokenValidity), SupportedIdentityProviders: output.SupportedIdentityProviders !== undefined && output.SupportedIdentityProviders !== null ? deserializeAws_json1_1SupportedIdentityProvidersListType(output.SupportedIdentityProviders, context) @@ -18121,7 +18122,7 @@ const deserializeAws_json1_1UserPoolType = (output: any, context: __SerdeContext EmailConfigurationFailure: __expectString(output.EmailConfigurationFailure), EmailVerificationMessage: __expectString(output.EmailVerificationMessage), EmailVerificationSubject: __expectString(output.EmailVerificationSubject), - EstimatedNumberOfUsers: __expectInt(output.EstimatedNumberOfUsers), + EstimatedNumberOfUsers: __expectInt32(output.EstimatedNumberOfUsers), Id: __expectString(output.Id), LambdaConfig: output.LambdaConfig !== undefined && output.LambdaConfig !== null diff --git a/clients/client-cognito-sync/protocols/Aws_restJson1.ts b/clients/client-cognito-sync/protocols/Aws_restJson1.ts index 6f9dceb87a893..8cb9edc526b2a 100644 --- a/clients/client-cognito-sync/protocols/Aws_restJson1.ts +++ b/clients/client-cognito-sync/protocols/Aws_restJson1.ts @@ -61,7 +61,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1516,7 +1517,7 @@ export const deserializeAws_restJson1ListDatasetsCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.Count !== undefined && data.Count !== null) { - contents.Count = __expectInt(data.Count); + contents.Count = __expectInt32(data.Count); } if (data.Datasets !== undefined && data.Datasets !== null) { contents.Datasets = deserializeAws_restJson1DatasetList(data.Datasets, context); @@ -1604,13 +1605,13 @@ export const deserializeAws_restJson1ListIdentityPoolUsageCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.Count !== undefined && data.Count !== null) { - contents.Count = __expectInt(data.Count); + contents.Count = __expectInt32(data.Count); } if (data.IdentityPoolUsages !== undefined && data.IdentityPoolUsages !== null) { contents.IdentityPoolUsages = deserializeAws_restJson1IdentityPoolUsageList(data.IdentityPoolUsages, context); } if (data.MaxResults !== undefined && data.MaxResults !== null) { - contents.MaxResults = __expectInt(data.MaxResults); + contents.MaxResults = __expectInt32(data.MaxResults); } if (data.NextToken !== undefined && data.NextToken !== null) { contents.NextToken = __expectString(data.NextToken); @@ -1700,7 +1701,7 @@ export const deserializeAws_restJson1ListRecordsCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.Count !== undefined && data.Count !== null) { - contents.Count = __expectInt(data.Count); + contents.Count = __expectInt32(data.Count); } if (data.DatasetDeletedAfterRequestedSyncCount !== undefined && data.DatasetDeletedAfterRequestedSyncCount !== null) { contents.DatasetDeletedAfterRequestedSyncCount = __expectBoolean(data.DatasetDeletedAfterRequestedSyncCount); @@ -1709,7 +1710,7 @@ export const deserializeAws_restJson1ListRecordsCommand = async ( contents.DatasetExists = __expectBoolean(data.DatasetExists); } if (data.DatasetSyncCount !== undefined && data.DatasetSyncCount !== null) { - contents.DatasetSyncCount = __expectInt(data.DatasetSyncCount); + contents.DatasetSyncCount = __expectLong(data.DatasetSyncCount); } if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) { contents.LastModifiedBy = __expectString(data.LastModifiedBy); @@ -2684,7 +2685,7 @@ const deserializeAws_restJson1Dataset = (output: any, context: __SerdeContext): output.CreationDate !== undefined && output.CreationDate !== null ? new Date(Math.round(output.CreationDate * 1000)) : undefined, - DataStorage: __expectInt(output.DataStorage), + DataStorage: __expectLong(output.DataStorage), DatasetName: __expectString(output.DatasetName), IdentityId: __expectString(output.IdentityId), LastModifiedBy: __expectString(output.LastModifiedBy), @@ -2692,7 +2693,7 @@ const deserializeAws_restJson1Dataset = (output: any, context: __SerdeContext): output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? new Date(Math.round(output.LastModifiedDate * 1000)) : undefined, - NumRecords: __expectInt(output.NumRecords), + NumRecords: __expectLong(output.NumRecords), } as any; }; @@ -2721,13 +2722,13 @@ const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): { const deserializeAws_restJson1IdentityPoolUsage = (output: any, context: __SerdeContext): IdentityPoolUsage => { return { - DataStorage: __expectInt(output.DataStorage), + DataStorage: __expectLong(output.DataStorage), IdentityPoolId: __expectString(output.IdentityPoolId), LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? new Date(Math.round(output.LastModifiedDate * 1000)) : undefined, - SyncSessionsCount: __expectInt(output.SyncSessionsCount), + SyncSessionsCount: __expectLong(output.SyncSessionsCount), } as any; }; @@ -2744,8 +2745,8 @@ const deserializeAws_restJson1IdentityPoolUsageList = (output: any, context: __S const deserializeAws_restJson1IdentityUsage = (output: any, context: __SerdeContext): IdentityUsage => { return { - DataStorage: __expectInt(output.DataStorage), - DatasetCount: __expectInt(output.DatasetCount), + DataStorage: __expectLong(output.DataStorage), + DatasetCount: __expectInt32(output.DatasetCount), IdentityId: __expectString(output.IdentityId), IdentityPoolId: __expectString(output.IdentityPoolId), LastModifiedDate: @@ -2788,7 +2789,7 @@ const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? new Date(Math.round(output.LastModifiedDate * 1000)) : undefined, - SyncCount: __expectInt(output.SyncCount), + SyncCount: __expectLong(output.SyncCount), Value: __expectString(output.Value), } as any; }; diff --git a/clients/client-comprehend/protocols/Aws_json1_1.ts b/clients/client-comprehend/protocols/Aws_json1_1.ts index 39d3a64db0742..8950f53d6974d 100644 --- a/clients/client-comprehend/protocols/Aws_json1_1.ts +++ b/clients/client-comprehend/protocols/Aws_json1_1.ts @@ -401,9 +401,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -7584,7 +7585,7 @@ const deserializeAws_json1_1BatchDetectDominantLanguageItemResult = ( context: __SerdeContext ): BatchDetectDominantLanguageItemResult => { return { - Index: __expectInt(output.Index), + Index: __expectInt32(output.Index), Languages: output.Languages !== undefined && output.Languages !== null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) @@ -7617,7 +7618,7 @@ const deserializeAws_json1_1BatchDetectEntitiesItemResult = ( output.Entities !== undefined && output.Entities !== null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined, - Index: __expectInt(output.Index), + Index: __expectInt32(output.Index), } as any; }; @@ -7642,7 +7643,7 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesItemResult = ( context: __SerdeContext ): BatchDetectKeyPhrasesItemResult => { return { - Index: __expectInt(output.Index), + Index: __expectInt32(output.Index), KeyPhrases: output.KeyPhrases !== undefined && output.KeyPhrases !== null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) @@ -7671,7 +7672,7 @@ const deserializeAws_json1_1BatchDetectSentimentItemResult = ( context: __SerdeContext ): BatchDetectSentimentItemResult => { return { - Index: __expectInt(output.Index), + Index: __expectInt32(output.Index), Sentiment: __expectString(output.Sentiment), SentimentScore: output.SentimentScore !== undefined && output.SentimentScore !== null @@ -7701,7 +7702,7 @@ const deserializeAws_json1_1BatchDetectSyntaxItemResult = ( context: __SerdeContext ): BatchDetectSyntaxItemResult => { return { - Index: __expectInt(output.Index), + Index: __expectInt32(output.Index), SyntaxTokens: output.SyntaxTokens !== undefined && output.SyntaxTokens !== null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) @@ -7729,7 +7730,7 @@ const deserializeAws_json1_1BatchItemError = (output: any, context: __SerdeConte return { ErrorCode: __expectString(output.ErrorCode), ErrorMessage: __expectString(output.ErrorMessage), - Index: __expectInt(output.Index), + Index: __expectInt32(output.Index), } as any; }; @@ -7758,14 +7759,14 @@ const deserializeAws_json1_1ClassifierEvaluationMetrics = ( context: __SerdeContext ): ClassifierEvaluationMetrics => { return { - Accuracy: __limitedParseFloat(output.Accuracy), - F1Score: __limitedParseFloat(output.F1Score), - HammingLoss: __limitedParseFloat(output.HammingLoss), - MicroF1Score: __limitedParseFloat(output.MicroF1Score), - MicroPrecision: __limitedParseFloat(output.MicroPrecision), - MicroRecall: __limitedParseFloat(output.MicroRecall), - Precision: __limitedParseFloat(output.Precision), - Recall: __limitedParseFloat(output.Recall), + Accuracy: __limitedParseDouble(output.Accuracy), + F1Score: __limitedParseDouble(output.F1Score), + HammingLoss: __limitedParseDouble(output.HammingLoss), + MicroF1Score: __limitedParseDouble(output.MicroF1Score), + MicroPrecision: __limitedParseDouble(output.MicroPrecision), + MicroRecall: __limitedParseDouble(output.MicroRecall), + Precision: __limitedParseDouble(output.Precision), + Recall: __limitedParseDouble(output.Recall), } as any; }; @@ -7775,9 +7776,9 @@ const deserializeAws_json1_1ClassifierMetadata = (output: any, context: __SerdeC output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null ? deserializeAws_json1_1ClassifierEvaluationMetrics(output.EvaluationMetrics, context) : undefined, - NumberOfLabels: __expectInt(output.NumberOfLabels), - NumberOfTestDocuments: __expectInt(output.NumberOfTestDocuments), - NumberOfTrainedDocuments: __expectInt(output.NumberOfTrainedDocuments), + NumberOfLabels: __expectInt32(output.NumberOfLabels), + NumberOfTestDocuments: __expectInt32(output.NumberOfTestDocuments), + NumberOfTrainedDocuments: __expectInt32(output.NumberOfTrainedDocuments), } as any; }; @@ -8066,7 +8067,7 @@ const deserializeAws_json1_1DetectSyntaxResponse = (output: any, context: __Serd const deserializeAws_json1_1DocumentClass = (output: any, context: __SerdeContext): DocumentClass => { return { Name: __expectString(output.Name), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -8219,14 +8220,14 @@ const deserializeAws_json1_1DocumentClassifierPropertiesList = ( const deserializeAws_json1_1DocumentLabel = (output: any, context: __SerdeContext): DocumentLabel => { return { Name: __expectString(output.Name), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; const deserializeAws_json1_1DominantLanguage = (output: any, context: __SerdeContext): DominantLanguage => { return { LanguageCode: __expectString(output.LanguageCode), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -8282,9 +8283,9 @@ const deserializeAws_json1_1EndpointProperties = (output: any, context: __SerdeC output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, - CurrentInferenceUnits: __expectInt(output.CurrentInferenceUnits), + CurrentInferenceUnits: __expectInt32(output.CurrentInferenceUnits), DataAccessRoleArn: __expectString(output.DataAccessRoleArn), - DesiredInferenceUnits: __expectInt(output.DesiredInferenceUnits), + DesiredInferenceUnits: __expectInt32(output.DesiredInferenceUnits), EndpointArn: __expectString(output.EndpointArn), LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null @@ -8357,9 +8358,9 @@ const deserializeAws_json1_1EntitiesDetectionJobPropertiesList = ( const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Entity => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), - Score: __limitedParseFloat(output.Score), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Type: __expectString(output.Type), } as any; @@ -8368,7 +8369,7 @@ const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Ent const deserializeAws_json1_1EntityLabel = (output: any, context: __SerdeContext): EntityLabel => { return { Name: __expectString(output.Name), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -8418,9 +8419,9 @@ const deserializeAws_json1_1EntityRecognizerEvaluationMetrics = ( context: __SerdeContext ): EntityRecognizerEvaluationMetrics => { return { - F1Score: __limitedParseFloat(output.F1Score), - Precision: __limitedParseFloat(output.Precision), - Recall: __limitedParseFloat(output.Recall), + F1Score: __limitedParseDouble(output.F1Score), + Precision: __limitedParseDouble(output.Precision), + Recall: __limitedParseDouble(output.Recall), } as any; }; @@ -8466,8 +8467,8 @@ const deserializeAws_json1_1EntityRecognizerMetadata = ( output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null ? deserializeAws_json1_1EntityRecognizerEvaluationMetrics(output.EvaluationMetrics, context) : undefined, - NumberOfTestDocuments: __expectInt(output.NumberOfTestDocuments), - NumberOfTrainedDocuments: __expectInt(output.NumberOfTrainedDocuments), + NumberOfTestDocuments: __expectInt32(output.NumberOfTestDocuments), + NumberOfTrainedDocuments: __expectInt32(output.NumberOfTrainedDocuments), } as any; }; @@ -8494,7 +8495,7 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = ( output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null ? deserializeAws_json1_1EntityTypesEvaluationMetrics(output.EvaluationMetrics, context) : undefined, - NumberOfTrainMentions: __expectInt(output.NumberOfTrainMentions), + NumberOfTrainMentions: __expectInt32(output.NumberOfTrainMentions), Type: __expectString(output.Type), } as any; }; @@ -8559,9 +8560,9 @@ const deserializeAws_json1_1EntityTypesEvaluationMetrics = ( context: __SerdeContext ): EntityTypesEvaluationMetrics => { return { - F1Score: __limitedParseFloat(output.F1Score), - Precision: __limitedParseFloat(output.Precision), - Recall: __limitedParseFloat(output.Recall), + F1Score: __limitedParseDouble(output.F1Score), + Precision: __limitedParseDouble(output.Precision), + Recall: __limitedParseDouble(output.Recall), } as any; }; @@ -8667,9 +8668,9 @@ const deserializeAws_json1_1JobNotFoundException = (output: any, context: __Serd const deserializeAws_json1_1KeyPhrase = (output: any, context: __SerdeContext): KeyPhrase => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), - Score: __limitedParseFloat(output.Score), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), } as any; }; @@ -9079,7 +9080,7 @@ const deserializeAws_json1_1OutputDataConfig = (output: any, context: __SerdeCon const deserializeAws_json1_1PartOfSpeechTag = (output: any, context: __SerdeContext): PartOfSpeechTag => { return { - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), Tag: __expectString(output.Tag), } as any; }; @@ -9133,9 +9134,9 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = ( const deserializeAws_json1_1PiiEntity = (output: any, context: __SerdeContext): PiiEntity => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), - Score: __limitedParseFloat(output.Score), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), + Score: __limitedParseFloat32(output.Score), Type: __expectString(output.Type), } as any; }; @@ -9251,10 +9252,10 @@ const deserializeAws_json1_1SentimentDetectionJobPropertiesList = ( const deserializeAws_json1_1SentimentScore = (output: any, context: __SerdeContext): SentimentScore => { return { - Mixed: __limitedParseFloat(output.Mixed), - Negative: __limitedParseFloat(output.Negative), - Neutral: __limitedParseFloat(output.Neutral), - Positive: __limitedParseFloat(output.Positive), + Mixed: __limitedParseFloat32(output.Mixed), + Negative: __limitedParseFloat32(output.Negative), + Neutral: __limitedParseFloat32(output.Neutral), + Positive: __limitedParseFloat32(output.Positive), } as any; }; @@ -9425,14 +9426,14 @@ const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): st const deserializeAws_json1_1SyntaxToken = (output: any, context: __SerdeContext): SyntaxToken => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), PartOfSpeech: output.PartOfSpeech !== undefined && output.PartOfSpeech !== null ? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context) : undefined, Text: __expectString(output.Text), - TokenId: __expectInt(output.TokenId), + TokenId: __expectInt32(output.TokenId), } as any; }; @@ -9518,7 +9519,7 @@ const deserializeAws_json1_1TopicsDetectionJobProperties = ( JobName: __expectString(output.JobName), JobStatus: __expectString(output.JobStatus), Message: __expectString(output.Message), - NumberOfTopics: __expectInt(output.NumberOfTopics), + NumberOfTopics: __expectInt32(output.NumberOfTopics), OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) diff --git a/clients/client-comprehendmedical/protocols/Aws_json1_1.ts b/clients/client-comprehendmedical/protocols/Aws_json1_1.ts index edd3d66f3f9a9..60fcb857bd320 100644 --- a/clients/client-comprehendmedical/protocols/Aws_json1_1.ts +++ b/clients/client-comprehendmedical/protocols/Aws_json1_1.ts @@ -137,9 +137,9 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -2498,13 +2498,13 @@ const serializeAws_json1_1StopRxNormInferenceJobRequest = ( const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): Attribute => { return { - BeginOffset: __expectInt(output.BeginOffset), + BeginOffset: __expectInt32(output.BeginOffset), Category: __expectString(output.Category), - EndOffset: __expectInt(output.EndOffset), - Id: __expectInt(output.Id), - RelationshipScore: __limitedParseFloat(output.RelationshipScore), + EndOffset: __expectInt32(output.EndOffset), + Id: __expectInt32(output.Id), + RelationshipScore: __limitedParseFloat32(output.RelationshipScore), RelationshipType: __expectString(output.RelationshipType), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Traits: output.Traits !== undefined && output.Traits !== null @@ -2672,11 +2672,11 @@ const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Ent output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_json1_1AttributeList(output.Attributes, context) : undefined, - BeginOffset: __expectInt(output.BeginOffset), + BeginOffset: __expectInt32(output.BeginOffset), Category: __expectString(output.Category), - EndOffset: __expectInt(output.EndOffset), - Id: __expectInt(output.Id), - Score: __limitedParseFloat(output.Score), + EndOffset: __expectInt32(output.EndOffset), + Id: __expectInt32(output.Id), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Traits: output.Traits !== undefined && output.Traits !== null @@ -2699,13 +2699,13 @@ const deserializeAws_json1_1EntityList = (output: any, context: __SerdeContext): const deserializeAws_json1_1ICD10CMAttribute = (output: any, context: __SerdeContext): ICD10CMAttribute => { return { - BeginOffset: __expectInt(output.BeginOffset), + BeginOffset: __expectInt32(output.BeginOffset), Category: __expectString(output.Category), - EndOffset: __expectInt(output.EndOffset), - Id: __expectInt(output.Id), - RelationshipScore: __limitedParseFloat(output.RelationshipScore), + EndOffset: __expectInt32(output.EndOffset), + Id: __expectInt32(output.Id), + RelationshipScore: __limitedParseFloat32(output.RelationshipScore), RelationshipType: __expectString(output.RelationshipType), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Traits: output.Traits !== undefined && output.Traits !== null @@ -2730,7 +2730,7 @@ const deserializeAws_json1_1ICD10CMConcept = (output: any, context: __SerdeConte return { Code: __expectString(output.Code), Description: __expectString(output.Description), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -2751,15 +2751,15 @@ const deserializeAws_json1_1ICD10CMEntity = (output: any, context: __SerdeContex output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_json1_1ICD10CMAttributeList(output.Attributes, context) : undefined, - BeginOffset: __expectInt(output.BeginOffset), + BeginOffset: __expectInt32(output.BeginOffset), Category: __expectString(output.Category), - EndOffset: __expectInt(output.EndOffset), + EndOffset: __expectInt32(output.EndOffset), ICD10CMConcepts: output.ICD10CMConcepts !== undefined && output.ICD10CMConcepts !== null ? deserializeAws_json1_1ICD10CMConceptList(output.ICD10CMConcepts, context) : undefined, - Id: __expectInt(output.Id), - Score: __limitedParseFloat(output.Score), + Id: __expectInt32(output.Id), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Traits: output.Traits !== undefined && output.Traits !== null @@ -2783,7 +2783,7 @@ const deserializeAws_json1_1ICD10CMEntityList = (output: any, context: __SerdeCo const deserializeAws_json1_1ICD10CMTrait = (output: any, context: __SerdeContext): ICD10CMTrait => { return { Name: __expectString(output.Name), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -2940,11 +2940,11 @@ const deserializeAws_json1_1ResourceNotFoundException = ( const deserializeAws_json1_1RxNormAttribute = (output: any, context: __SerdeContext): RxNormAttribute => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), - Id: __expectInt(output.Id), - RelationshipScore: __limitedParseFloat(output.RelationshipScore), - Score: __limitedParseFloat(output.Score), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), + Id: __expectInt32(output.Id), + RelationshipScore: __limitedParseFloat32(output.RelationshipScore), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Traits: output.Traits !== undefined && output.Traits !== null @@ -2969,7 +2969,7 @@ const deserializeAws_json1_1RxNormConcept = (output: any, context: __SerdeContex return { Code: __expectString(output.Code), Description: __expectString(output.Description), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -2990,15 +2990,15 @@ const deserializeAws_json1_1RxNormEntity = (output: any, context: __SerdeContext output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_json1_1RxNormAttributeList(output.Attributes, context) : undefined, - BeginOffset: __expectInt(output.BeginOffset), + BeginOffset: __expectInt32(output.BeginOffset), Category: __expectString(output.Category), - EndOffset: __expectInt(output.EndOffset), - Id: __expectInt(output.Id), + EndOffset: __expectInt32(output.EndOffset), + Id: __expectInt32(output.Id), RxNormConcepts: output.RxNormConcepts !== undefined && output.RxNormConcepts !== null ? deserializeAws_json1_1RxNormConceptList(output.RxNormConcepts, context) : undefined, - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), Text: __expectString(output.Text), Traits: output.Traits !== undefined && output.Traits !== null @@ -3022,7 +3022,7 @@ const deserializeAws_json1_1RxNormEntityList = (output: any, context: __SerdeCon const deserializeAws_json1_1RxNormTrait = (output: any, context: __SerdeContext): RxNormTrait => { return { Name: __expectString(output.Name), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; @@ -3139,7 +3139,7 @@ const deserializeAws_json1_1TooManyRequestsException = ( const deserializeAws_json1_1Trait = (output: any, context: __SerdeContext): Trait => { return { Name: __expectString(output.Name), - Score: __limitedParseFloat(output.Score), + Score: __limitedParseFloat32(output.Score), } as any; }; diff --git a/clients/client-compute-optimizer/protocols/Aws_json1_0.ts b/clients/client-compute-optimizer/protocols/Aws_json1_0.ts index 31f6081b73d83..3004a1bc4c977 100644 --- a/clients/client-compute-optimizer/protocols/Aws_json1_0.ts +++ b/clients/client-compute-optimizer/protocols/Aws_json1_0.ts @@ -126,9 +126,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -2287,10 +2288,10 @@ const deserializeAws_json1_0AutoScalingGroupConfiguration = ( context: __SerdeContext ): AutoScalingGroupConfiguration => { return { - desiredCapacity: __expectInt(output.desiredCapacity), + desiredCapacity: __expectInt32(output.desiredCapacity), instanceType: __expectString(output.instanceType), - maxSize: __expectInt(output.maxSize), - minSize: __expectInt(output.minSize), + maxSize: __expectInt32(output.maxSize), + minSize: __expectInt32(output.minSize), } as any; }; @@ -2311,7 +2312,7 @@ const deserializeAws_json1_0AutoScalingGroupRecommendation = ( output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null ? new Date(Math.round(output.lastRefreshTimestamp * 1000)) : undefined, - lookBackPeriodInDays: __limitedParseFloat(output.lookBackPeriodInDays), + lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays), recommendationOptions: output.recommendationOptions !== undefined && output.recommendationOptions !== null ? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context) @@ -2332,12 +2333,12 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOption = ( output.configuration !== undefined && output.configuration !== null ? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context) : undefined, - performanceRisk: __limitedParseFloat(output.performanceRisk), + performanceRisk: __limitedParseDouble(output.performanceRisk), projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null ? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context) : undefined, - rank: __expectInt(output.rank), + rank: __expectInt32(output.rank), } as any; }; @@ -2386,7 +2387,7 @@ const deserializeAws_json1_0EBSUtilizationMetric = (output: any, context: __Serd return { name: __expectString(output.name), statistic: __expectString(output.statistic), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -2599,7 +2600,7 @@ const deserializeAws_json1_0InstanceRecommendation = (output: any, context: __Se output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null ? new Date(Math.round(output.lastRefreshTimestamp * 1000)) : undefined, - lookBackPeriodInDays: __limitedParseFloat(output.lookBackPeriodInDays), + lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays), recommendationOptions: output.recommendationOptions !== undefined && output.recommendationOptions !== null ? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context) @@ -2635,7 +2636,7 @@ const deserializeAws_json1_0InstanceRecommendationOption = ( ): InstanceRecommendationOption => { return { instanceType: __expectString(output.instanceType), - performanceRisk: __limitedParseFloat(output.performanceRisk), + performanceRisk: __limitedParseDouble(output.performanceRisk), platformDifferences: output.platformDifferences !== undefined && output.platformDifferences !== null ? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context) @@ -2644,7 +2645,7 @@ const deserializeAws_json1_0InstanceRecommendationOption = ( output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null ? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context) : undefined, - rank: __expectInt(output.rank), + rank: __expectInt32(output.rank), } as any; }; @@ -2687,7 +2688,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetric = ( return { name: __expectString(output.name), statistic: __expectString(output.statistic), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -2710,12 +2711,12 @@ const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = ( context: __SerdeContext ): LambdaFunctionMemoryRecommendationOption => { return { - memorySize: __expectInt(output.memorySize), + memorySize: __expectInt32(output.memorySize), projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null ? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context) : undefined, - rank: __expectInt(output.rank), + rank: __expectInt32(output.rank), } as any; }; @@ -2739,7 +2740,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = ( ): LambdaFunctionRecommendation => { return { accountId: __expectString(output.accountId), - currentMemorySize: __expectInt(output.currentMemorySize), + currentMemorySize: __expectInt32(output.currentMemorySize), finding: __expectString(output.finding), findingReasonCodes: output.findingReasonCodes !== undefined && output.findingReasonCodes !== null @@ -2751,7 +2752,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = ( output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null ? new Date(Math.round(output.lastRefreshTimestamp * 1000)) : undefined, - lookbackPeriodInDays: __limitedParseFloat(output.lookbackPeriodInDays), + lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays), memorySizeRecommendationOptions: output.memorySizeRecommendationOptions !== undefined && output.memorySizeRecommendationOptions !== null ? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions( @@ -2759,7 +2760,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = ( context ) : undefined, - numberOfInvocations: __expectInt(output.numberOfInvocations), + numberOfInvocations: __expectLong(output.numberOfInvocations), utilizationMetrics: output.utilizationMetrics !== undefined && output.utilizationMetrics !== null ? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context) @@ -2802,7 +2803,7 @@ const deserializeAws_json1_0LambdaFunctionUtilizationMetric = ( return { name: __expectString(output.name), statistic: __expectString(output.statistic), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -2833,7 +2834,7 @@ const deserializeAws_json1_0MetricValues = (output: any, context: __SerdeContext if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -2919,7 +2920,7 @@ const deserializeAws_json1_0ReasonCodeSummaries = (output: any, context: __Serde const deserializeAws_json1_0ReasonCodeSummary = (output: any, context: __SerdeContext): ReasonCodeSummary => { return { name: __expectString(output.name), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -3027,7 +3028,7 @@ const deserializeAws_json1_0RecommendedOptionProjectedMetric = ( output.projectedMetrics !== undefined && output.projectedMetrics !== null ? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context) : undefined, - rank: __expectInt(output.rank), + rank: __expectInt32(output.rank), recommendedInstanceType: __expectString(output.recommendedInstanceType), } as any; }; @@ -3090,7 +3091,7 @@ const deserializeAws_json1_0Summary = (output: any, context: __SerdeContext): Su output.reasonCodeSummaries !== undefined && output.reasonCodeSummaries !== null ? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context) : undefined, - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -3125,7 +3126,7 @@ const deserializeAws_json1_0UtilizationMetric = (output: any, context: __SerdeCo return { name: __expectString(output.name), statistic: __expectString(output.statistic), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -3142,11 +3143,11 @@ const deserializeAws_json1_0UtilizationMetrics = (output: any, context: __SerdeC const deserializeAws_json1_0VolumeConfiguration = (output: any, context: __SerdeContext): VolumeConfiguration => { return { - volumeBaselineIOPS: __expectInt(output.volumeBaselineIOPS), - volumeBaselineThroughput: __expectInt(output.volumeBaselineThroughput), - volumeBurstIOPS: __expectInt(output.volumeBurstIOPS), - volumeBurstThroughput: __expectInt(output.volumeBurstThroughput), - volumeSize: __expectInt(output.volumeSize), + volumeBaselineIOPS: __expectInt32(output.volumeBaselineIOPS), + volumeBaselineThroughput: __expectInt32(output.volumeBaselineThroughput), + volumeBurstIOPS: __expectInt32(output.volumeBurstIOPS), + volumeBurstThroughput: __expectInt32(output.volumeBurstThroughput), + volumeSize: __expectInt32(output.volumeSize), volumeType: __expectString(output.volumeType), } as any; }; @@ -3163,7 +3164,7 @@ const deserializeAws_json1_0VolumeRecommendation = (output: any, context: __Serd output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null ? new Date(Math.round(output.lastRefreshTimestamp * 1000)) : undefined, - lookBackPeriodInDays: __limitedParseFloat(output.lookBackPeriodInDays), + lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays), utilizationMetrics: output.utilizationMetrics !== undefined && output.utilizationMetrics !== null ? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context) @@ -3185,8 +3186,8 @@ const deserializeAws_json1_0VolumeRecommendationOption = ( output.configuration !== undefined && output.configuration !== null ? deserializeAws_json1_0VolumeConfiguration(output.configuration, context) : undefined, - performanceRisk: __limitedParseFloat(output.performanceRisk), - rank: __expectInt(output.rank), + performanceRisk: __limitedParseDouble(output.performanceRisk), + rank: __expectInt32(output.rank), } as any; }; diff --git a/clients/client-config-service/protocols/Aws_json1_1.ts b/clients/client-config-service/protocols/Aws_json1_1.ts index d942062df9701..760d68c2fe2c0 100644 --- a/clients/client-config-service/protocols/Aws_json1_1.ts +++ b/clients/client-config-service/protocols/Aws_json1_1.ts @@ -610,7 +610,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -10711,9 +10712,9 @@ const deserializeAws_json1_1AggregateConformancePackCompliance = ( ): AggregateConformancePackCompliance => { return { ComplianceType: __expectString(output.ComplianceType), - CompliantRuleCount: __expectInt(output.CompliantRuleCount), - NonCompliantRuleCount: __expectInt(output.NonCompliantRuleCount), - TotalRuleCount: __expectInt(output.TotalRuleCount), + CompliantRuleCount: __expectInt32(output.CompliantRuleCount), + NonCompliantRuleCount: __expectInt32(output.NonCompliantRuleCount), + TotalRuleCount: __expectInt32(output.TotalRuleCount), } as any; }; @@ -10722,8 +10723,8 @@ const deserializeAws_json1_1AggregateConformancePackComplianceCount = ( context: __SerdeContext ): AggregateConformancePackComplianceCount => { return { - CompliantConformancePackCount: __expectInt(output.CompliantConformancePackCount), - NonCompliantConformancePackCount: __expectInt(output.NonCompliantConformancePackCount), + CompliantConformancePackCount: __expectInt32(output.CompliantConformancePackCount), + NonCompliantConformancePackCount: __expectInt32(output.NonCompliantConformancePackCount), } as any; }; @@ -11010,7 +11011,7 @@ const deserializeAws_json1_1ComplianceContributorCount = ( ): ComplianceContributorCount => { return { CapExceeded: __expectBoolean(output.CapExceeded), - CappedCount: __expectInt(output.CappedCount), + CappedCount: __expectInt32(output.CappedCount), } as any; }; @@ -12247,7 +12248,7 @@ const deserializeAws_json1_1GetAggregateDiscoveredResourceCountsResponse = ( ? deserializeAws_json1_1GroupedResourceCountList(output.GroupedResourceCounts, context) : undefined, NextToken: __expectString(output.NextToken), - TotalDiscoveredResources: __expectInt(output.TotalDiscoveredResources), + TotalDiscoveredResources: __expectLong(output.TotalDiscoveredResources), } as any; }; @@ -12356,7 +12357,7 @@ const deserializeAws_json1_1GetDiscoveredResourceCountsResponse = ( output.resourceCounts !== undefined && output.resourceCounts !== null ? deserializeAws_json1_1ResourceCounts(output.resourceCounts, context) : undefined, - totalDiscoveredResources: __expectInt(output.totalDiscoveredResources), + totalDiscoveredResources: __expectLong(output.totalDiscoveredResources), } as any; }; @@ -12418,7 +12419,7 @@ const deserializeAws_json1_1GetStoredQueryResponse = (output: any, context: __Se const deserializeAws_json1_1GroupedResourceCount = (output: any, context: __SerdeContext): GroupedResourceCount => { return { GroupName: __expectString(output.GroupName), - ResourceCount: __expectInt(output.ResourceCount), + ResourceCount: __expectLong(output.ResourceCount), } as any; }; @@ -13342,13 +13343,13 @@ const deserializeAws_json1_1RemediationConfiguration = ( output.ExecutionControls !== undefined && output.ExecutionControls !== null ? deserializeAws_json1_1ExecutionControls(output.ExecutionControls, context) : undefined, - MaximumAutomaticAttempts: __expectInt(output.MaximumAutomaticAttempts), + MaximumAutomaticAttempts: __expectInt32(output.MaximumAutomaticAttempts), Parameters: output.Parameters !== undefined && output.Parameters !== null ? deserializeAws_json1_1RemediationParameters(output.Parameters, context) : undefined, ResourceType: __expectString(output.ResourceType), - RetryAttemptSeconds: __expectInt(output.RetryAttemptSeconds), + RetryAttemptSeconds: __expectLong(output.RetryAttemptSeconds), TargetId: __expectString(output.TargetId), TargetType: __expectString(output.TargetType), TargetVersion: __expectString(output.TargetVersion), @@ -13543,7 +13544,7 @@ const deserializeAws_json1_1ResourceConcurrentModificationException = ( const deserializeAws_json1_1ResourceCount = (output: any, context: __SerdeContext): ResourceCount => { return { - count: __expectInt(output.count), + count: __expectLong(output.count), resourceType: __expectString(output.resourceType), } as any; }; @@ -13666,7 +13667,7 @@ const deserializeAws_json1_1Results = (output: any, context: __SerdeContext): st const deserializeAws_json1_1RetentionConfiguration = (output: any, context: __SerdeContext): RetentionConfiguration => { return { Name: __expectString(output.Name), - RetentionPeriodInDays: __expectInt(output.RetentionPeriodInDays), + RetentionPeriodInDays: __expectInt32(output.RetentionPeriodInDays), } as any; }; @@ -13762,8 +13763,8 @@ const deserializeAws_json1_1SourceDetails = (output: any, context: __SerdeContex const deserializeAws_json1_1SsmControls = (output: any, context: __SerdeContext): SsmControls => { return { - ConcurrentExecutionRatePercentage: __expectInt(output.ConcurrentExecutionRatePercentage), - ErrorPercentage: __expectInt(output.ErrorPercentage), + ConcurrentExecutionRatePercentage: __expectInt32(output.ConcurrentExecutionRatePercentage), + ErrorPercentage: __expectInt32(output.ErrorPercentage), } as any; }; diff --git a/clients/client-connect-contact-lens/protocols/Aws_restJson1.ts b/clients/client-connect-contact-lens/protocols/Aws_restJson1.ts index 81b8d178c9c44..450e2f42e8f13 100644 --- a/clients/client-connect-contact-lens/protocols/Aws_restJson1.ts +++ b/clients/client-connect-contact-lens/protocols/Aws_restJson1.ts @@ -17,7 +17,7 @@ import { Transcript, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -255,8 +255,8 @@ const deserializeAws_restJson1CategoryDetails = (output: any, context: __SerdeCo const deserializeAws_restJson1CharacterOffsets = (output: any, context: __SerdeContext): CharacterOffsets => { return { - BeginOffsetChar: __expectInt(output.BeginOffsetChar), - EndOffsetChar: __expectInt(output.EndOffsetChar), + BeginOffsetChar: __expectInt32(output.BeginOffsetChar), + EndOffsetChar: __expectInt32(output.EndOffsetChar), } as any; }; @@ -308,8 +308,8 @@ const deserializeAws_restJson1MatchedDetails = ( const deserializeAws_restJson1PointOfInterest = (output: any, context: __SerdeContext): PointOfInterest => { return { - BeginOffsetMillis: __expectInt(output.BeginOffsetMillis), - EndOffsetMillis: __expectInt(output.EndOffsetMillis), + BeginOffsetMillis: __expectInt32(output.BeginOffsetMillis), + EndOffsetMillis: __expectInt32(output.EndOffsetMillis), } as any; }; @@ -356,9 +356,9 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegments = ( const deserializeAws_restJson1Transcript = (output: any, context: __SerdeContext): Transcript => { return { - BeginOffsetMillis: __expectInt(output.BeginOffsetMillis), + BeginOffsetMillis: __expectInt32(output.BeginOffsetMillis), Content: __expectString(output.Content), - EndOffsetMillis: __expectInt(output.EndOffsetMillis), + EndOffsetMillis: __expectInt32(output.EndOffsetMillis), Id: __expectString(output.Id), IssuesDetected: output.IssuesDetected !== undefined && output.IssuesDetected !== null diff --git a/clients/client-connect/protocols/Aws_restJson1.ts b/clients/client-connect/protocols/Aws_restJson1.ts index 5c3d3fdffb9fb..a363f2c89bab1 100644 --- a/clients/client-connect/protocols/Aws_restJson1.ts +++ b/clients/client-connect/protocols/Aws_restJson1.ts @@ -406,10 +406,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -15027,7 +15027,7 @@ const deserializeAws_restJson1AgentStatus = (output: any, context: __SerdeContex AgentStatusARN: __expectString(output.AgentStatusARN), AgentStatusId: __expectString(output.AgentStatusId), Description: __expectString(output.Description), - DisplayOrder: __expectInt(output.DisplayOrder), + DisplayOrder: __expectInt32(output.DisplayOrder), Name: __expectString(output.Name), State: __expectString(output.State), Tags: @@ -15151,7 +15151,7 @@ const deserializeAws_restJson1CurrentMetricData = (output: any, context: __Serde output.Metric !== undefined && output.Metric !== null ? deserializeAws_restJson1CurrentMetric(output.Metric, context) : undefined, - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -15332,7 +15332,7 @@ const deserializeAws_restJson1HistoricalMetricData = (output: any, context: __Se output.Metric !== undefined && output.Metric !== null ? deserializeAws_restJson1HistoricalMetric(output.Metric, context) : undefined, - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -15459,8 +15459,8 @@ const deserializeAws_restJson1HoursOfOperationTimeSlice = ( context: __SerdeContext ): HoursOfOperationTimeSlice => { return { - Hours: __expectInt(output.Hours), - Minutes: __expectInt(output.Minutes), + Hours: __expectInt32(output.Hours), + Minutes: __expectInt32(output.Minutes), } as any; }; @@ -15608,7 +15608,7 @@ const deserializeAws_restJson1KinesisVideoStreamConfig = ( ? deserializeAws_restJson1EncryptionConfig(output.EncryptionConfig, context) : undefined, Prefix: __expectString(output.Prefix), - RetentionPeriodHours: __expectInt(output.RetentionPeriodHours), + RetentionPeriodHours: __expectInt32(output.RetentionPeriodHours), } as any; }; @@ -15674,7 +15674,7 @@ const deserializeAws_restJson1MediaConcurrencies = (output: any, context: __Serd const deserializeAws_restJson1MediaConcurrency = (output: any, context: __SerdeContext): MediaConcurrency => { return { Channel: __expectString(output.Channel), - Concurrency: __expectInt(output.Concurrency), + Concurrency: __expectInt32(output.Concurrency), } as any; }; @@ -15767,7 +15767,7 @@ const deserializeAws_restJson1Queue = (output: any, context: __SerdeContext): Qu return { Description: __expectString(output.Description), HoursOfOperationId: __expectString(output.HoursOfOperationId), - MaxContacts: __expectInt(output.MaxContacts), + MaxContacts: __expectInt32(output.MaxContacts), Name: __expectString(output.Name), OutboundCallerConfig: output.OutboundCallerConfig !== undefined && output.OutboundCallerConfig !== null @@ -15903,8 +15903,8 @@ const deserializeAws_restJson1RoutingProfileQueueConfigSummary = ( ): RoutingProfileQueueConfigSummary => { return { Channel: __expectString(output.Channel), - Delay: __expectInt(output.Delay), - Priority: __expectInt(output.Priority), + Delay: __expectInt32(output.Delay), + Priority: __expectInt32(output.Priority), QueueArn: __expectString(output.QueueArn), QueueId: __expectString(output.QueueId), QueueName: __expectString(output.QueueName), @@ -16031,7 +16031,7 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { const deserializeAws_restJson1Threshold = (output: any, context: __SerdeContext): Threshold => { return { Comparison: __expectString(output.Comparison), - ThresholdValue: __limitedParseFloat(output.ThresholdValue), + ThresholdValue: __limitedParseDouble(output.ThresholdValue), } as any; }; @@ -16091,7 +16091,7 @@ const deserializeAws_restJson1UserIdentityInfo = (output: any, context: __SerdeC const deserializeAws_restJson1UserPhoneConfig = (output: any, context: __SerdeContext): UserPhoneConfig => { return { - AfterContactWorkTimeLimit: __expectInt(output.AfterContactWorkTimeLimit), + AfterContactWorkTimeLimit: __expectInt32(output.AfterContactWorkTimeLimit), AutoAccept: __expectBoolean(output.AutoAccept), DeskPhoneNumber: __expectString(output.DeskPhoneNumber), PhoneType: __expectString(output.PhoneType), diff --git a/clients/client-cost-explorer/protocols/Aws_json1_1.ts b/clients/client-cost-explorer/protocols/Aws_json1_1.ts index 857fb80bf9399..64039d06318fb 100644 --- a/clients/client-cost-explorer/protocols/Aws_json1_1.ts +++ b/clients/client-cost-explorer/protocols/Aws_json1_1.ts @@ -250,9 +250,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -3712,7 +3712,7 @@ const deserializeAws_json1_1Anomaly = (output: any, context: __SerdeContext): An const deserializeAws_json1_1AnomalyMonitor = (output: any, context: __SerdeContext): AnomalyMonitor => { return { CreationDate: __expectString(output.CreationDate), - DimensionalValueCount: __expectInt(output.DimensionalValueCount), + DimensionalValueCount: __expectInt32(output.DimensionalValueCount), LastEvaluatedDate: __expectString(output.LastEvaluatedDate), LastUpdatedDate: __expectString(output.LastUpdatedDate), MonitorArn: __expectString(output.MonitorArn), @@ -3739,8 +3739,8 @@ const deserializeAws_json1_1AnomalyMonitors = (output: any, context: __SerdeCont const deserializeAws_json1_1AnomalyScore = (output: any, context: __SerdeContext): AnomalyScore => { return { - CurrentScore: __limitedParseFloat(output.CurrentScore), - MaxScore: __limitedParseFloat(output.MaxScore), + CurrentScore: __limitedParseDouble(output.CurrentScore), + MaxScore: __limitedParseDouble(output.MaxScore), } as any; }; @@ -3758,7 +3758,7 @@ const deserializeAws_json1_1AnomalySubscription = (output: any, context: __Serde : undefined, SubscriptionArn: __expectString(output.SubscriptionArn), SubscriptionName: __expectString(output.SubscriptionName), - Threshold: __limitedParseFloat(output.Threshold), + Threshold: __limitedParseDouble(output.Threshold), } as any; }; @@ -3869,7 +3869,7 @@ const deserializeAws_json1_1CostCategoryReference = (output: any, context: __Ser EffectiveEnd: __expectString(output.EffectiveEnd), EffectiveStart: __expectString(output.EffectiveStart), Name: __expectString(output.Name), - NumberOfRules: __expectInt(output.NumberOfRules), + NumberOfRules: __expectInt32(output.NumberOfRules), ProcessingStatus: output.ProcessingStatus !== undefined && output.ProcessingStatus !== null ? deserializeAws_json1_1CostCategoryProcessingStatusList(output.ProcessingStatus, context) @@ -4516,8 +4516,8 @@ const deserializeAws_json1_1GetCostCategoriesResponse = ( ? deserializeAws_json1_1CostCategoryValuesList(output.CostCategoryValues, context) : undefined, NextPageToken: __expectString(output.NextPageToken), - ReturnSize: __expectInt(output.ReturnSize), - TotalSize: __expectInt(output.TotalSize), + ReturnSize: __expectInt32(output.ReturnSize), + TotalSize: __expectInt32(output.TotalSize), } as any; }; @@ -4547,8 +4547,8 @@ const deserializeAws_json1_1GetDimensionValuesResponse = ( ? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValues, context) : undefined, NextPageToken: __expectString(output.NextPageToken), - ReturnSize: __expectInt(output.ReturnSize), - TotalSize: __expectInt(output.TotalSize), + ReturnSize: __expectInt32(output.ReturnSize), + TotalSize: __expectInt32(output.TotalSize), } as any; }; @@ -4698,12 +4698,12 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationResponse = ( const deserializeAws_json1_1GetTagsResponse = (output: any, context: __SerdeContext): GetTagsResponse => { return { NextPageToken: __expectString(output.NextPageToken), - ReturnSize: __expectInt(output.ReturnSize), + ReturnSize: __expectInt32(output.ReturnSize), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, - TotalSize: __expectInt(output.TotalSize), + TotalSize: __expectInt32(output.TotalSize), } as any; }; @@ -4765,8 +4765,8 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): Gro const deserializeAws_json1_1Impact = (output: any, context: __SerdeContext): Impact => { return { - MaxImpact: __limitedParseFloat(output.MaxImpact), - TotalImpact: __limitedParseFloat(output.TotalImpact), + MaxImpact: __limitedParseDouble(output.MaxImpact), + TotalImpact: __limitedParseDouble(output.TotalImpact), } as any; }; diff --git a/clients/client-customer-profiles/protocols/Aws_restJson1.ts b/clients/client-customer-profiles/protocols/Aws_restJson1.ts index 3dbec311dd40c..4000bbec36b80 100644 --- a/clients/client-customer-profiles/protocols/Aws_restJson1.ts +++ b/clients/client-customer-profiles/protocols/Aws_restJson1.ts @@ -97,7 +97,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1362,7 +1363,7 @@ export const deserializeAws_restJson1CreateDomainCommand = async ( contents.DefaultEncryptionKey = __expectString(data.DefaultEncryptionKey); } if (data.DefaultExpirationDays !== undefined && data.DefaultExpirationDays !== null) { - contents.DefaultExpirationDays = __expectInt(data.DefaultExpirationDays); + contents.DefaultExpirationDays = __expectInt32(data.DefaultExpirationDays); } if (data.DomainName !== undefined && data.DomainName !== null) { contents.DomainName = __expectString(data.DomainName); @@ -2087,7 +2088,7 @@ export const deserializeAws_restJson1GetDomainCommand = async ( contents.DefaultEncryptionKey = __expectString(data.DefaultEncryptionKey); } if (data.DefaultExpirationDays !== undefined && data.DefaultExpirationDays !== null) { - contents.DefaultExpirationDays = __expectInt(data.DefaultExpirationDays); + contents.DefaultExpirationDays = __expectInt32(data.DefaultExpirationDays); } if (data.DomainName !== undefined && data.DomainName !== null) { contents.DomainName = __expectString(data.DomainName); @@ -2308,7 +2309,7 @@ export const deserializeAws_restJson1GetMatchesCommand = async ( contents.NextToken = __expectString(data.NextToken); } if (data.PotentialMatches !== undefined && data.PotentialMatches !== null) { - contents.PotentialMatches = __expectInt(data.PotentialMatches); + contents.PotentialMatches = __expectInt32(data.PotentialMatches); } return Promise.resolve(contents); }; @@ -2417,7 +2418,7 @@ export const deserializeAws_restJson1GetProfileObjectTypeCommand = async ( contents.EncryptionKey = __expectString(data.EncryptionKey); } if (data.ExpirationDays !== undefined && data.ExpirationDays !== null) { - contents.ExpirationDays = __expectInt(data.ExpirationDays); + contents.ExpirationDays = __expectInt32(data.ExpirationDays); } if (data.Fields !== undefined && data.Fields !== null) { contents.Fields = deserializeAws_restJson1FieldMap(data.Fields, context); @@ -3541,7 +3542,7 @@ export const deserializeAws_restJson1PutProfileObjectTypeCommand = async ( contents.EncryptionKey = __expectString(data.EncryptionKey); } if (data.ExpirationDays !== undefined && data.ExpirationDays !== null) { - contents.ExpirationDays = __expectInt(data.ExpirationDays); + contents.ExpirationDays = __expectInt32(data.ExpirationDays); } if (data.Fields !== undefined && data.Fields !== null) { contents.Fields = deserializeAws_restJson1FieldMap(data.Fields, context); @@ -3887,7 +3888,7 @@ export const deserializeAws_restJson1UpdateDomainCommand = async ( contents.DefaultEncryptionKey = __expectString(data.DefaultEncryptionKey); } if (data.DefaultExpirationDays !== undefined && data.DefaultExpirationDays !== null) { - contents.DefaultExpirationDays = __expectInt(data.DefaultExpirationDays); + contents.DefaultExpirationDays = __expectInt32(data.DefaultExpirationDays); } if (data.DomainName !== undefined && data.DomainName !== null) { contents.DomainName = __expectString(data.DomainName); @@ -4635,10 +4636,10 @@ const deserializeAws_restJson1DomainList = (output: any, context: __SerdeContext const deserializeAws_restJson1DomainStats = (output: any, context: __SerdeContext): DomainStats => { return { - MeteringProfileCount: __expectInt(output.MeteringProfileCount), - ObjectCount: __expectInt(output.ObjectCount), - ProfileCount: __expectInt(output.ProfileCount), - TotalSize: __expectInt(output.TotalSize), + MeteringProfileCount: __expectLong(output.MeteringProfileCount), + ObjectCount: __expectLong(output.ObjectCount), + ProfileCount: __expectLong(output.ProfileCount), + TotalSize: __expectLong(output.TotalSize), } as any; }; diff --git a/clients/client-database-migration-service/protocols/Aws_json1_1.ts b/clients/client-database-migration-service/protocols/Aws_json1_1.ts index f363ecd9f39d1..bbe5c2ace9eca 100644 --- a/clients/client-database-migration-service/protocols/Aws_json1_1.ts +++ b/clients/client-database-migration-service/protocols/Aws_json1_1.ts @@ -363,7 +363,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -6730,8 +6731,8 @@ const deserializeAws_json1_1AccessDeniedFault = (output: any, context: __SerdeCo const deserializeAws_json1_1AccountQuota = (output: any, context: __SerdeContext): AccountQuota => { return { AccountQuotaName: __expectString(output.AccountQuotaName), - Max: __expectInt(output.Max), - Used: __expectInt(output.Used), + Max: __expectLong(output.Max), + Used: __expectLong(output.Used), } as any; }; @@ -6808,7 +6809,7 @@ const deserializeAws_json1_1Certificate = (output: any, context: __SerdeContext) output.CertificateWallet !== undefined && output.CertificateWallet !== null ? context.base64Decoder(output.CertificateWallet) : undefined, - KeyLength: __expectInt(output.KeyLength), + KeyLength: __expectInt32(output.KeyLength), SigningAlgorithm: __expectString(output.SigningAlgorithm), ValidFromDate: output.ValidFromDate !== undefined && output.ValidFromDate !== null @@ -7296,12 +7297,12 @@ const deserializeAws_json1_1DmsTransferSettings = (output: any, context: __Serde const deserializeAws_json1_1DocDbSettings = (output: any, context: __SerdeContext): DocDbSettings => { return { DatabaseName: __expectString(output.DatabaseName), - DocsToInvestigate: __expectInt(output.DocsToInvestigate), + DocsToInvestigate: __expectInt32(output.DocsToInvestigate), ExtractDocId: __expectBoolean(output.ExtractDocId), KmsKeyId: __expectString(output.KmsKeyId), NestingLevel: __expectString(output.NestingLevel), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId), ServerName: __expectString(output.ServerName), @@ -7318,8 +7319,8 @@ const deserializeAws_json1_1DynamoDbSettings = (output: any, context: __SerdeCon const deserializeAws_json1_1ElasticsearchSettings = (output: any, context: __SerdeContext): ElasticsearchSettings => { return { EndpointUri: __expectString(output.EndpointUri), - ErrorRetryDuration: __expectInt(output.ErrorRetryDuration), - FullLoadErrorPercentage: __expectInt(output.FullLoadErrorPercentage), + ErrorRetryDuration: __expectInt32(output.ErrorRetryDuration), + FullLoadErrorPercentage: __expectInt32(output.FullLoadErrorPercentage), ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn), } as any; }; @@ -7385,7 +7386,7 @@ const deserializeAws_json1_1Endpoint = (output: any, context: __SerdeContext): E output.OracleSettings !== undefined && output.OracleSettings !== null ? deserializeAws_json1_1OracleSettings(output.OracleSettings, context) : undefined, - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), PostgreSQLSettings: output.PostgreSQLSettings !== undefined && output.PostgreSQLSettings !== null ? deserializeAws_json1_1PostgreSQLSettings(output.PostgreSQLSettings, context) @@ -7429,8 +7430,8 @@ const deserializeAws_json1_1EndpointSetting = (output: any, context: __SerdeCont output.EnumValues !== undefined && output.EnumValues !== null ? deserializeAws_json1_1EndpointSettingEnumValues(output.EnumValues, context) : undefined, - IntValueMax: __expectInt(output.IntValueMax), - IntValueMin: __expectInt(output.IntValueMin), + IntValueMax: __expectInt32(output.IntValueMax), + IntValueMin: __expectInt32(output.IntValueMin), Name: __expectString(output.Name), Sensitive: __expectBoolean(output.Sensitive), Type: __expectString(output.Type), @@ -7551,9 +7552,9 @@ const deserializeAws_json1_1IBMDb2Settings = (output: any, context: __SerdeConte return { CurrentLsn: __expectString(output.CurrentLsn), DatabaseName: __expectString(output.DatabaseName), - MaxKBytesPerRead: __expectInt(output.MaxKBytesPerRead), + MaxKBytesPerRead: __expectInt32(output.MaxKBytesPerRead), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId), ServerName: __expectString(output.ServerName), @@ -7627,7 +7628,7 @@ const deserializeAws_json1_1KafkaSettings = (output: any, context: __SerdeContex IncludeTableAlterOperations: __expectBoolean(output.IncludeTableAlterOperations), IncludeTransactionDetails: __expectBoolean(output.IncludeTransactionDetails), MessageFormat: __expectString(output.MessageFormat), - MessageMaxBytes: __expectInt(output.MessageMaxBytes), + MessageMaxBytes: __expectInt32(output.MessageMaxBytes), NoHexPrefix: __expectBoolean(output.NoHexPrefix), PartitionIncludeSchemaTable: __expectBoolean(output.PartitionIncludeSchemaTable), SaslPassword: __expectString(output.SaslPassword), @@ -7718,11 +7719,11 @@ const deserializeAws_json1_1MicrosoftSQLServerSettings = ( context: __SerdeContext ): MicrosoftSQLServerSettings => { return { - BcpPacketSize: __expectInt(output.BcpPacketSize), + BcpPacketSize: __expectInt32(output.BcpPacketSize), ControlTablesFileGroup: __expectString(output.ControlTablesFileGroup), DatabaseName: __expectString(output.DatabaseName), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), QuerySingleAlwaysOnNode: __expectBoolean(output.QuerySingleAlwaysOnNode), ReadBackupOnly: __expectBoolean(output.ReadBackupOnly), SafeguardPolicy: __expectString(output.SafeguardPolicy), @@ -7803,7 +7804,7 @@ const deserializeAws_json1_1MongoDbSettings = (output: any, context: __SerdeCont KmsKeyId: __expectString(output.KmsKeyId), NestingLevel: __expectString(output.NestingLevel), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId), ServerName: __expectString(output.ServerName), @@ -7828,11 +7829,11 @@ const deserializeAws_json1_1MySQLSettings = (output: any, context: __SerdeContex AfterConnectScript: __expectString(output.AfterConnectScript), CleanSourceMetadataOnMismatch: __expectBoolean(output.CleanSourceMetadataOnMismatch), DatabaseName: __expectString(output.DatabaseName), - EventsPollInterval: __expectInt(output.EventsPollInterval), - MaxFileSize: __expectInt(output.MaxFileSize), - ParallelLoadThreads: __expectInt(output.ParallelLoadThreads), + EventsPollInterval: __expectInt32(output.EventsPollInterval), + MaxFileSize: __expectInt32(output.MaxFileSize), + ParallelLoadThreads: __expectInt32(output.ParallelLoadThreads), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId), ServerName: __expectString(output.ServerName), @@ -7844,10 +7845,10 @@ const deserializeAws_json1_1MySQLSettings = (output: any, context: __SerdeContex const deserializeAws_json1_1NeptuneSettings = (output: any, context: __SerdeContext): NeptuneSettings => { return { - ErrorRetryDuration: __expectInt(output.ErrorRetryDuration), + ErrorRetryDuration: __expectInt32(output.ErrorRetryDuration), IamAuthEnabled: __expectBoolean(output.IamAuthEnabled), - MaxFileSize: __expectInt(output.MaxFileSize), - MaxRetryCount: __expectInt(output.MaxRetryCount), + MaxFileSize: __expectInt32(output.MaxFileSize), + MaxRetryCount: __expectInt32(output.MaxRetryCount), S3BucketFolder: __expectString(output.S3BucketFolder), S3BucketName: __expectString(output.S3BucketName), ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn), @@ -7858,9 +7859,9 @@ const deserializeAws_json1_1OracleSettings = (output: any, context: __SerdeConte return { AccessAlternateDirectly: __expectBoolean(output.AccessAlternateDirectly), AddSupplementalLogging: __expectBoolean(output.AddSupplementalLogging), - AdditionalArchivedLogDestId: __expectInt(output.AdditionalArchivedLogDestId), + AdditionalArchivedLogDestId: __expectInt32(output.AdditionalArchivedLogDestId), AllowSelectNestedTables: __expectBoolean(output.AllowSelectNestedTables), - ArchivedLogDestId: __expectInt(output.ArchivedLogDestId), + ArchivedLogDestId: __expectInt32(output.ArchivedLogDestId), ArchivedLogsOnly: __expectBoolean(output.ArchivedLogsOnly), AsmPassword: __expectString(output.AsmPassword), AsmServer: __expectString(output.AsmServer), @@ -7871,15 +7872,15 @@ const deserializeAws_json1_1OracleSettings = (output: any, context: __SerdeConte DirectPathParallelLoad: __expectBoolean(output.DirectPathParallelLoad), EnableHomogenousTablespace: __expectBoolean(output.EnableHomogenousTablespace), FailTasksOnLobTruncation: __expectBoolean(output.FailTasksOnLobTruncation), - NumberDatatypeScale: __expectInt(output.NumberDatatypeScale), + NumberDatatypeScale: __expectInt32(output.NumberDatatypeScale), OraclePathPrefix: __expectString(output.OraclePathPrefix), - ParallelAsmReadThreads: __expectInt(output.ParallelAsmReadThreads), + ParallelAsmReadThreads: __expectInt32(output.ParallelAsmReadThreads), Password: __expectString(output.Password), - Port: __expectInt(output.Port), - ReadAheadBlocks: __expectInt(output.ReadAheadBlocks), + Port: __expectInt32(output.Port), + ReadAheadBlocks: __expectInt32(output.ReadAheadBlocks), ReadTableSpaceName: __expectBoolean(output.ReadTableSpaceName), ReplacePathPrefix: __expectBoolean(output.ReplacePathPrefix), - RetryInterval: __expectInt(output.RetryInterval), + RetryInterval: __expectInt32(output.RetryInterval), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerOracleAsmAccessRoleArn: __expectString(output.SecretsManagerOracleAsmAccessRoleArn), SecretsManagerOracleAsmSecretId: __expectString(output.SecretsManagerOracleAsmSecretId), @@ -7888,7 +7889,7 @@ const deserializeAws_json1_1OracleSettings = (output: any, context: __SerdeConte SecurityDbEncryptionName: __expectString(output.SecurityDbEncryptionName), ServerName: __expectString(output.ServerName), SpatialDataOptionToGeoJsonFunctionName: __expectString(output.SpatialDataOptionToGeoJsonFunctionName), - StandbyDelayTime: __expectInt(output.StandbyDelayTime), + StandbyDelayTime: __expectInt32(output.StandbyDelayTime), UseAlternateFolderForOnline: __expectBoolean(output.UseAlternateFolderForOnline), UseBFile: __expectBoolean(output.UseBFile), UseDirectPathFullLoad: __expectBoolean(output.UseDirectPathFullLoad), @@ -7907,11 +7908,11 @@ const deserializeAws_json1_1OrderableReplicationInstance = ( output.AvailabilityZones !== undefined && output.AvailabilityZones !== null ? deserializeAws_json1_1AvailabilityZonesList(output.AvailabilityZones, context) : undefined, - DefaultAllocatedStorage: __expectInt(output.DefaultAllocatedStorage), + DefaultAllocatedStorage: __expectInt32(output.DefaultAllocatedStorage), EngineVersion: __expectString(output.EngineVersion), - IncludedAllocatedStorage: __expectInt(output.IncludedAllocatedStorage), - MaxAllocatedStorage: __expectInt(output.MaxAllocatedStorage), - MinAllocatedStorage: __expectInt(output.MinAllocatedStorage), + IncludedAllocatedStorage: __expectInt32(output.IncludedAllocatedStorage), + MaxAllocatedStorage: __expectInt32(output.MaxAllocatedStorage), + MinAllocatedStorage: __expectInt32(output.MinAllocatedStorage), ReleaseStatus: __expectString(output.ReleaseStatus), ReplicationInstanceClass: __expectString(output.ReplicationInstanceClass), StorageType: __expectString(output.StorageType), @@ -7989,15 +7990,15 @@ const deserializeAws_json1_1PostgreSQLSettings = (output: any, context: __SerdeC CaptureDdls: __expectBoolean(output.CaptureDdls), DatabaseName: __expectString(output.DatabaseName), DdlArtifactsSchema: __expectString(output.DdlArtifactsSchema), - ExecuteTimeout: __expectInt(output.ExecuteTimeout), + ExecuteTimeout: __expectInt32(output.ExecuteTimeout), FailTasksOnLobTruncation: __expectBoolean(output.FailTasksOnLobTruncation), HeartbeatEnable: __expectBoolean(output.HeartbeatEnable), - HeartbeatFrequency: __expectInt(output.HeartbeatFrequency), + HeartbeatFrequency: __expectInt32(output.HeartbeatFrequency), HeartbeatSchema: __expectString(output.HeartbeatSchema), - MaxFileSize: __expectInt(output.MaxFileSize), + MaxFileSize: __expectInt32(output.MaxFileSize), Password: __expectString(output.Password), PluginName: __expectString(output.PluginName), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId), ServerName: __expectString(output.ServerName), @@ -8026,17 +8027,17 @@ const deserializeAws_json1_1RedshiftSettings = (output: any, context: __SerdeCon BucketName: __expectString(output.BucketName), CaseSensitiveNames: __expectBoolean(output.CaseSensitiveNames), CompUpdate: __expectBoolean(output.CompUpdate), - ConnectionTimeout: __expectInt(output.ConnectionTimeout), + ConnectionTimeout: __expectInt32(output.ConnectionTimeout), DatabaseName: __expectString(output.DatabaseName), DateFormat: __expectString(output.DateFormat), EmptyAsNull: __expectBoolean(output.EmptyAsNull), EncryptionMode: __expectString(output.EncryptionMode), ExplicitIds: __expectBoolean(output.ExplicitIds), - FileTransferUploadStreams: __expectInt(output.FileTransferUploadStreams), - LoadTimeout: __expectInt(output.LoadTimeout), - MaxFileSize: __expectInt(output.MaxFileSize), + FileTransferUploadStreams: __expectInt32(output.FileTransferUploadStreams), + LoadTimeout: __expectInt32(output.LoadTimeout), + MaxFileSize: __expectInt32(output.MaxFileSize), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), RemoveQuotes: __expectBoolean(output.RemoveQuotes), ReplaceChars: __expectString(output.ReplaceChars), ReplaceInvalidChars: __expectString(output.ReplaceInvalidChars), @@ -8049,7 +8050,7 @@ const deserializeAws_json1_1RedshiftSettings = (output: any, context: __SerdeCon TrimBlanks: __expectBoolean(output.TrimBlanks), TruncateColumns: __expectBoolean(output.TruncateColumns), Username: __expectString(output.Username), - WriteBufferSize: __expectInt(output.WriteBufferSize), + WriteBufferSize: __expectInt32(output.WriteBufferSize), } as any; }; @@ -8090,7 +8091,7 @@ const deserializeAws_json1_1RemoveTagsFromResourceResponse = ( const deserializeAws_json1_1ReplicationInstance = (output: any, context: __SerdeContext): ReplicationInstance => { return { - AllocatedStorage: __expectInt(output.AllocatedStorage), + AllocatedStorage: __expectInt32(output.AllocatedStorage), AutoMinorVersionUpgrade: __expectBoolean(output.AutoMinorVersionUpgrade), AvailabilityZone: __expectString(output.AvailabilityZone), DnsNameServers: __expectString(output.DnsNameServers), @@ -8188,7 +8189,7 @@ const deserializeAws_json1_1ReplicationInstanceTaskLog = ( context: __SerdeContext ): ReplicationInstanceTaskLog => { return { - ReplicationInstanceTaskLogSize: __expectInt(output.ReplicationInstanceTaskLogSize), + ReplicationInstanceTaskLogSize: __expectLong(output.ReplicationInstanceTaskLogSize), ReplicationTaskArn: __expectString(output.ReplicationTaskArn), ReplicationTaskName: __expectString(output.ReplicationTaskName), } as any; @@ -8213,7 +8214,7 @@ const deserializeAws_json1_1ReplicationPendingModifiedValues = ( context: __SerdeContext ): ReplicationPendingModifiedValues => { return { - AllocatedStorage: __expectInt(output.AllocatedStorage), + AllocatedStorage: __expectInt32(output.AllocatedStorage), EngineVersion: __expectString(output.EngineVersion), MultiAZ: __expectBoolean(output.MultiAZ), ReplicationInstanceClass: __expectString(output.ReplicationInstanceClass), @@ -8367,8 +8368,8 @@ const deserializeAws_json1_1ReplicationTaskAssessmentRunProgress = ( context: __SerdeContext ): ReplicationTaskAssessmentRunProgress => { return { - IndividualAssessmentCompletedCount: __expectInt(output.IndividualAssessmentCompletedCount), - IndividualAssessmentCount: __expectInt(output.IndividualAssessmentCount), + IndividualAssessmentCompletedCount: __expectInt32(output.IndividualAssessmentCompletedCount), + IndividualAssessmentCount: __expectInt32(output.IndividualAssessmentCount), } as any; }; @@ -8416,7 +8417,7 @@ const deserializeAws_json1_1ReplicationTaskList = (output: any, context: __Serde const deserializeAws_json1_1ReplicationTaskStats = (output: any, context: __SerdeContext): ReplicationTaskStats => { return { - ElapsedTimeMillis: __expectInt(output.ElapsedTimeMillis), + ElapsedTimeMillis: __expectLong(output.ElapsedTimeMillis), FreshStartDate: output.FreshStartDate !== undefined && output.FreshStartDate !== null ? new Date(Math.round(output.FreshStartDate * 1000)) @@ -8425,7 +8426,7 @@ const deserializeAws_json1_1ReplicationTaskStats = (output: any, context: __Serd output.FullLoadFinishDate !== undefined && output.FullLoadFinishDate !== null ? new Date(Math.round(output.FullLoadFinishDate * 1000)) : undefined, - FullLoadProgressPercent: __expectInt(output.FullLoadProgressPercent), + FullLoadProgressPercent: __expectInt32(output.FullLoadProgressPercent), FullLoadStartDate: output.FullLoadStartDate !== undefined && output.FullLoadStartDate !== null ? new Date(Math.round(output.FullLoadStartDate * 1000)) @@ -8438,10 +8439,10 @@ const deserializeAws_json1_1ReplicationTaskStats = (output: any, context: __Serd output.StopDate !== undefined && output.StopDate !== null ? new Date(Math.round(output.StopDate * 1000)) : undefined, - TablesErrored: __expectInt(output.TablesErrored), - TablesLoaded: __expectInt(output.TablesLoaded), - TablesLoading: __expectInt(output.TablesLoading), - TablesQueued: __expectInt(output.TablesQueued), + TablesErrored: __expectInt32(output.TablesErrored), + TablesLoaded: __expectInt32(output.TablesLoaded), + TablesLoading: __expectInt32(output.TablesLoading), + TablesQueued: __expectInt32(output.TablesQueued), } as any; }; @@ -8510,11 +8511,11 @@ const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext): CsvNoSupValue: __expectString(output.CsvNoSupValue), CsvRowDelimiter: __expectString(output.CsvRowDelimiter), DataFormat: __expectString(output.DataFormat), - DataPageSize: __expectInt(output.DataPageSize), + DataPageSize: __expectInt32(output.DataPageSize), DatePartitionDelimiter: __expectString(output.DatePartitionDelimiter), DatePartitionEnabled: __expectBoolean(output.DatePartitionEnabled), DatePartitionSequence: __expectString(output.DatePartitionSequence), - DictPageSizeLimit: __expectInt(output.DictPageSizeLimit), + DictPageSizeLimit: __expectInt32(output.DictPageSizeLimit), EnableStatistics: __expectBoolean(output.EnableStatistics), EncodingType: __expectString(output.EncodingType), EncryptionMode: __expectString(output.EncryptionMode), @@ -8523,7 +8524,7 @@ const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext): ParquetTimestampInMillisecond: __expectBoolean(output.ParquetTimestampInMillisecond), ParquetVersion: __expectString(output.ParquetVersion), PreserveTransactions: __expectBoolean(output.PreserveTransactions), - RowGroupLength: __expectInt(output.RowGroupLength), + RowGroupLength: __expectInt32(output.RowGroupLength), ServerSideEncryptionKmsKeyId: __expectString(output.ServerSideEncryptionKmsKeyId), ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn), TimestampColumnName: __expectString(output.TimestampColumnName), @@ -8681,7 +8682,7 @@ const deserializeAws_json1_1SybaseSettings = (output: any, context: __SerdeConte return { DatabaseName: __expectString(output.DatabaseName), Password: __expectString(output.Password), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn), SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId), ServerName: __expectString(output.ServerName), @@ -8691,21 +8692,21 @@ const deserializeAws_json1_1SybaseSettings = (output: any, context: __SerdeConte const deserializeAws_json1_1TableStatistics = (output: any, context: __SerdeContext): TableStatistics => { return { - Ddls: __expectInt(output.Ddls), - Deletes: __expectInt(output.Deletes), - FullLoadCondtnlChkFailedRows: __expectInt(output.FullLoadCondtnlChkFailedRows), + Ddls: __expectLong(output.Ddls), + Deletes: __expectLong(output.Deletes), + FullLoadCondtnlChkFailedRows: __expectLong(output.FullLoadCondtnlChkFailedRows), FullLoadEndTime: output.FullLoadEndTime !== undefined && output.FullLoadEndTime !== null ? new Date(Math.round(output.FullLoadEndTime * 1000)) : undefined, - FullLoadErrorRows: __expectInt(output.FullLoadErrorRows), + FullLoadErrorRows: __expectLong(output.FullLoadErrorRows), FullLoadReloaded: __expectBoolean(output.FullLoadReloaded), - FullLoadRows: __expectInt(output.FullLoadRows), + FullLoadRows: __expectLong(output.FullLoadRows), FullLoadStartTime: output.FullLoadStartTime !== undefined && output.FullLoadStartTime !== null ? new Date(Math.round(output.FullLoadStartTime * 1000)) : undefined, - Inserts: __expectInt(output.Inserts), + Inserts: __expectLong(output.Inserts), LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null ? new Date(Math.round(output.LastUpdateTime * 1000)) @@ -8713,12 +8714,12 @@ const deserializeAws_json1_1TableStatistics = (output: any, context: __SerdeCont SchemaName: __expectString(output.SchemaName), TableName: __expectString(output.TableName), TableState: __expectString(output.TableState), - Updates: __expectInt(output.Updates), - ValidationFailedRecords: __expectInt(output.ValidationFailedRecords), - ValidationPendingRecords: __expectInt(output.ValidationPendingRecords), + Updates: __expectLong(output.Updates), + ValidationFailedRecords: __expectLong(output.ValidationFailedRecords), + ValidationPendingRecords: __expectLong(output.ValidationPendingRecords), ValidationState: __expectString(output.ValidationState), ValidationStateDetails: __expectString(output.ValidationStateDetails), - ValidationSuspendedRecords: __expectInt(output.ValidationSuspendedRecords), + ValidationSuspendedRecords: __expectLong(output.ValidationSuspendedRecords), } as any; }; diff --git a/clients/client-databrew/protocols/Aws_restJson1.ts b/clients/client-databrew/protocols/Aws_restJson1.ts index 3c56a581cdc62..f45458b698d8b 100644 --- a/clients/client-databrew/protocols/Aws_restJson1.ts +++ b/clients/client-databrew/protocols/Aws_restJson1.ts @@ -102,7 +102,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2478,10 +2479,10 @@ export const deserializeAws_restJson1DescribeJobCommand = async ( contents.LogSubscription = __expectString(data.LogSubscription); } if (data.MaxCapacity !== undefined && data.MaxCapacity !== null) { - contents.MaxCapacity = __expectInt(data.MaxCapacity); + contents.MaxCapacity = __expectInt32(data.MaxCapacity); } if (data.MaxRetries !== undefined && data.MaxRetries !== null) { - contents.MaxRetries = __expectInt(data.MaxRetries); + contents.MaxRetries = __expectInt32(data.MaxRetries); } if (data.Name !== undefined && data.Name !== null) { contents.Name = __expectString(data.Name); @@ -2508,7 +2509,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async ( contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context); } if (data.Timeout !== undefined && data.Timeout !== null) { - contents.Timeout = __expectInt(data.Timeout); + contents.Timeout = __expectInt32(data.Timeout); } if (data.Type !== undefined && data.Type !== null) { contents.Type = __expectString(data.Type); @@ -2591,7 +2592,7 @@ export const deserializeAws_restJson1DescribeJobRunCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.Attempt !== undefined && data.Attempt !== null) { - contents.Attempt = __expectInt(data.Attempt); + contents.Attempt = __expectInt32(data.Attempt); } if (data.CompletedOn !== undefined && data.CompletedOn !== null) { contents.CompletedOn = new Date(Math.round(data.CompletedOn * 1000)); @@ -2609,7 +2610,7 @@ export const deserializeAws_restJson1DescribeJobRunCommand = async ( contents.ErrorMessage = __expectString(data.ErrorMessage); } if (data.ExecutionTime !== undefined && data.ExecutionTime !== null) { - contents.ExecutionTime = __expectInt(data.ExecutionTime); + contents.ExecutionTime = __expectInt32(data.ExecutionTime); } if (data.JobName !== undefined && data.JobName !== null) { contents.JobName = __expectString(data.JobName); @@ -3591,7 +3592,7 @@ export const deserializeAws_restJson1SendProjectSessionActionCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.ActionId !== undefined && data.ActionId !== null) { - contents.ActionId = __expectInt(data.ActionId); + contents.ActionId = __expectInt32(data.ActionId); } if (data.Name !== undefined && data.Name !== null) { contents.Name = __expectString(data.Name); @@ -5373,7 +5374,7 @@ const deserializeAws_restJson1ExcelOptions = (output: any, context: __SerdeConte const deserializeAws_restJson1FilesLimit = (output: any, context: __SerdeContext): FilesLimit => { return { - MaxFiles: __expectInt(output.MaxFiles), + MaxFiles: __expectInt32(output.MaxFiles), Order: __expectString(output.Order), OrderedBy: __expectString(output.OrderedBy), } as any; @@ -5452,8 +5453,8 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job ? new Date(Math.round(output.LastModifiedDate * 1000)) : undefined, LogSubscription: __expectString(output.LogSubscription), - MaxCapacity: __expectInt(output.MaxCapacity), - MaxRetries: __expectInt(output.MaxRetries), + MaxCapacity: __expectInt32(output.MaxCapacity), + MaxRetries: __expectInt32(output.MaxRetries), Name: __expectString(output.Name), Outputs: output.Outputs !== undefined && output.Outputs !== null @@ -5470,7 +5471,7 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job output.Tags !== undefined && output.Tags !== null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined, - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), Type: __expectString(output.Type), } as any; }; @@ -5499,7 +5500,7 @@ const deserializeAws_restJson1JobNameList = (output: any, context: __SerdeContex const deserializeAws_restJson1JobRun = (output: any, context: __SerdeContext): JobRun => { return { - Attempt: __expectInt(output.Attempt), + Attempt: __expectInt32(output.Attempt), CompletedOn: output.CompletedOn !== undefined && output.CompletedOn !== null ? new Date(Math.round(output.CompletedOn * 1000)) @@ -5514,7 +5515,7 @@ const deserializeAws_restJson1JobRun = (output: any, context: __SerdeContext): J : undefined, DatasetName: __expectString(output.DatasetName), ErrorMessage: __expectString(output.ErrorMessage), - ExecutionTime: __expectInt(output.ExecutionTime), + ExecutionTime: __expectInt32(output.ExecutionTime), JobName: __expectString(output.JobName), JobSample: output.JobSample !== undefined && output.JobSample !== null @@ -5554,7 +5555,7 @@ const deserializeAws_restJson1JobRunList = (output: any, context: __SerdeContext const deserializeAws_restJson1JobSample = (output: any, context: __SerdeContext): JobSample => { return { Mode: __expectString(output.Mode), - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), } as any; }; @@ -5835,7 +5836,7 @@ const deserializeAws_restJson1S3TableOutputOptions = (output: any, context: __Se const deserializeAws_restJson1Sample = (output: any, context: __SerdeContext): Sample => { return { - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), Type: __expectString(output.Type), } as any; }; @@ -5885,7 +5886,7 @@ const deserializeAws_restJson1SheetIndexList = (output: any, context: __SerdeCon if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; diff --git a/clients/client-dataexchange/protocols/Aws_restJson1.ts b/clients/client-dataexchange/protocols/Aws_restJson1.ts index 6d0f02d0d005c..395f0f50a3dd0 100644 --- a/clients/client-dataexchange/protocols/Aws_restJson1.ts +++ b/clients/client-dataexchange/protocols/Aws_restJson1.ts @@ -66,7 +66,7 @@ import { expectBoolean as __expectBoolean, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3041,7 +3041,7 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async ( contents.LimitName = __expectString(data.LimitName); } if (data.LimitValue !== undefined && data.LimitValue !== null) { - contents.LimitValue = __limitedParseFloat(data.LimitValue); + contents.LimitValue = __limitedParseDouble(data.LimitValue); } if (data.Message !== undefined && data.Message !== null) { contents.Message = __expectString(data.Message); @@ -3481,7 +3481,7 @@ const deserializeAws_restJson1JobError = (output: any, context: __SerdeContext): ? deserializeAws_restJson1Details(output.Details, context) : undefined, LimitName: __expectString(output.LimitName), - LimitValue: __limitedParseFloat(output.LimitValue), + LimitValue: __limitedParseDouble(output.LimitValue), Message: __expectString(output.Message), ResourceId: __expectString(output.ResourceId), ResourceType: __expectString(output.ResourceType), @@ -3651,7 +3651,7 @@ const deserializeAws_restJson1RevisionEntry = (output: any, context: __SerdeCont const deserializeAws_restJson1S3SnapshotAsset = (output: any, context: __SerdeContext): S3SnapshotAsset => { return { - Size: __limitedParseFloat(output.Size), + Size: __limitedParseDouble(output.Size), } as any; }; diff --git a/clients/client-datasync/protocols/Aws_json1_1.ts b/clients/client-datasync/protocols/Aws_json1_1.ts index 04f777633c53c..e17f0a52ad5e3 100644 --- a/clients/client-datasync/protocols/Aws_json1_1.ts +++ b/clients/client-datasync/protocols/Aws_json1_1.ts @@ -161,7 +161,11 @@ import { UpdateTaskResponse, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectString as __expectString, +} from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -3663,7 +3667,7 @@ const deserializeAws_json1_1DescribeLocationObjectStorageResponse = ( : undefined, LocationArn: __expectString(output.LocationArn), LocationUri: __expectString(output.LocationUri), - ServerPort: __expectInt(output.ServerPort), + ServerPort: __expectInt32(output.ServerPort), ServerProtocol: __expectString(output.ServerProtocol), } as any; }; @@ -3720,15 +3724,15 @@ const deserializeAws_json1_1DescribeTaskExecutionResponse = ( context: __SerdeContext ): DescribeTaskExecutionResponse => { return { - BytesTransferred: __expectInt(output.BytesTransferred), - BytesWritten: __expectInt(output.BytesWritten), - EstimatedBytesToTransfer: __expectInt(output.EstimatedBytesToTransfer), - EstimatedFilesToTransfer: __expectInt(output.EstimatedFilesToTransfer), + BytesTransferred: __expectLong(output.BytesTransferred), + BytesWritten: __expectLong(output.BytesWritten), + EstimatedBytesToTransfer: __expectLong(output.EstimatedBytesToTransfer), + EstimatedFilesToTransfer: __expectLong(output.EstimatedFilesToTransfer), Excludes: output.Excludes !== undefined && output.Excludes !== null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined, - FilesTransferred: __expectInt(output.FilesTransferred), + FilesTransferred: __expectLong(output.FilesTransferred), Includes: output.Includes !== undefined && output.Includes !== null ? deserializeAws_json1_1FilterList(output.Includes, context) @@ -3947,7 +3951,7 @@ const deserializeAws_json1_1OnPremConfig = (output: any, context: __SerdeContext const deserializeAws_json1_1Options = (output: any, context: __SerdeContext): Options => { return { Atime: __expectString(output.Atime), - BytesPerSecond: __expectInt(output.BytesPerSecond), + BytesPerSecond: __expectLong(output.BytesPerSecond), Gid: __expectString(output.Gid), LogLevel: __expectString(output.LogLevel), Mtime: __expectString(output.Mtime), @@ -4079,12 +4083,12 @@ const deserializeAws_json1_1TaskExecutionResultDetail = ( return { ErrorCode: __expectString(output.ErrorCode), ErrorDetail: __expectString(output.ErrorDetail), - PrepareDuration: __expectInt(output.PrepareDuration), + PrepareDuration: __expectLong(output.PrepareDuration), PrepareStatus: __expectString(output.PrepareStatus), - TotalDuration: __expectInt(output.TotalDuration), - TransferDuration: __expectInt(output.TransferDuration), + TotalDuration: __expectLong(output.TotalDuration), + TransferDuration: __expectLong(output.TransferDuration), TransferStatus: __expectString(output.TransferStatus), - VerifyDuration: __expectInt(output.VerifyDuration), + VerifyDuration: __expectLong(output.VerifyDuration), VerifyStatus: __expectString(output.VerifyStatus), } as any; }; diff --git a/clients/client-dax/protocols/Aws_json1_1.ts b/clients/client-dax/protocols/Aws_json1_1.ts index 651fd14b070e3..7b331c176fee8 100644 --- a/clients/client-dax/protocols/Aws_json1_1.ts +++ b/clients/client-dax/protocols/Aws_json1_1.ts @@ -131,7 +131,7 @@ import { UpdateSubnetGroupResponse, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -3125,7 +3125,7 @@ const serializeAws_json1_1UpdateSubnetGroupRequest = ( const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cluster => { return { - ActiveNodes: __expectInt(output.ActiveNodes), + ActiveNodes: __expectInt32(output.ActiveNodes), ClusterArn: __expectString(output.ClusterArn), ClusterDiscoveryEndpoint: output.ClusterDiscoveryEndpoint !== undefined && output.ClusterDiscoveryEndpoint !== null @@ -3163,7 +3163,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl : undefined, Status: __expectString(output.Status), SubnetGroup: __expectString(output.SubnetGroup), - TotalNodes: __expectInt(output.TotalNodes), + TotalNodes: __expectInt32(output.TotalNodes), } as any; }; @@ -3352,7 +3352,7 @@ const deserializeAws_json1_1DescribeSubnetGroupsResponse = ( const deserializeAws_json1_1Endpoint = (output: any, context: __SerdeContext): Endpoint => { return { Address: __expectString(output.Address), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), URL: __expectString(output.URL), } as any; }; diff --git a/clients/client-detective/protocols/Aws_restJson1.ts b/clients/client-detective/protocols/Aws_restJson1.ts index ad0d06047fa8a..843324abd724c 100644 --- a/clients/client-detective/protocols/Aws_restJson1.ts +++ b/clients/client-detective/protocols/Aws_restJson1.ts @@ -35,10 +35,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1711,7 +1711,7 @@ const deserializeAws_restJson1MemberDetail = (output: any, context: __SerdeConte InvitedTime: output.InvitedTime !== undefined && output.InvitedTime !== null ? new Date(output.InvitedTime) : undefined, MasterId: __expectString(output.MasterId), - PercentOfGraphUtilization: __limitedParseFloat(output.PercentOfGraphUtilization), + PercentOfGraphUtilization: __limitedParseDouble(output.PercentOfGraphUtilization), PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime !== undefined && output.PercentOfGraphUtilizationUpdatedTime !== null ? new Date(output.PercentOfGraphUtilizationUpdatedTime) @@ -1719,7 +1719,7 @@ const deserializeAws_restJson1MemberDetail = (output: any, context: __SerdeConte Status: __expectString(output.Status), UpdatedTime: output.UpdatedTime !== undefined && output.UpdatedTime !== null ? new Date(output.UpdatedTime) : undefined, - VolumeUsageInBytes: __expectInt(output.VolumeUsageInBytes), + VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes), VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime !== undefined && output.VolumeUsageUpdatedTime !== null ? new Date(output.VolumeUsageUpdatedTime) diff --git a/clients/client-device-farm/protocols/Aws_json1_1.ts b/clients/client-device-farm/protocols/Aws_json1_1.ts index 9b104d942423a..415203c9b0742 100644 --- a/clients/client-device-farm/protocols/Aws_json1_1.ts +++ b/clients/client-device-farm/protocols/Aws_json1_1.ts @@ -393,9 +393,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -8638,8 +8639,8 @@ const serializeAws_json1_1UpdateVPCEConfigurationRequest = ( const deserializeAws_json1_1AccountSettings = (output: any, context: __SerdeContext): AccountSettings => { return { awsAccountNumber: __expectString(output.awsAccountNumber), - defaultJobTimeoutMinutes: __expectInt(output.defaultJobTimeoutMinutes), - maxJobTimeoutMinutes: __expectInt(output.maxJobTimeoutMinutes), + defaultJobTimeoutMinutes: __expectInt32(output.defaultJobTimeoutMinutes), + maxJobTimeoutMinutes: __expectInt32(output.maxJobTimeoutMinutes), maxSlots: output.maxSlots !== undefined && output.maxSlots !== null ? deserializeAws_json1_1MaxSlotMap(output.maxSlots, context) @@ -8706,20 +8707,20 @@ const deserializeAws_json1_1CannotDeleteException = (output: any, context: __Ser const deserializeAws_json1_1Counters = (output: any, context: __SerdeContext): Counters => { return { - errored: __expectInt(output.errored), - failed: __expectInt(output.failed), - passed: __expectInt(output.passed), - skipped: __expectInt(output.skipped), - stopped: __expectInt(output.stopped), - total: __expectInt(output.total), - warned: __expectInt(output.warned), + errored: __expectInt32(output.errored), + failed: __expectInt32(output.failed), + passed: __expectInt32(output.passed), + skipped: __expectInt32(output.skipped), + stopped: __expectInt32(output.stopped), + total: __expectInt32(output.total), + warned: __expectInt32(output.warned), } as any; }; const deserializeAws_json1_1CPU = (output: any, context: __SerdeContext): CPU => { return { architecture: __expectString(output.architecture), - clock: __limitedParseFloat(output.clock), + clock: __limitedParseDouble(output.clock), frequency: __expectString(output.frequency), } as any; }; @@ -8899,14 +8900,14 @@ const deserializeAws_json1_1Device = (output: any, context: __SerdeContext): Dev fleetName: __expectString(output.fleetName), fleetType: __expectString(output.fleetType), formFactor: __expectString(output.formFactor), - heapSize: __expectInt(output.heapSize), + heapSize: __expectLong(output.heapSize), image: __expectString(output.image), instances: output.instances !== undefined && output.instances !== null ? deserializeAws_json1_1DeviceInstances(output.instances, context) : undefined, manufacturer: __expectString(output.manufacturer), - memory: __expectInt(output.memory), + memory: __expectLong(output.memory), model: __expectString(output.model), modelId: __expectString(output.modelId), name: __expectString(output.name), @@ -8996,9 +8997,9 @@ const deserializeAws_json1_1DeviceInstances = (output: any, context: __SerdeCont const deserializeAws_json1_1DeviceMinutes = (output: any, context: __SerdeContext): DeviceMinutes => { return { - metered: __limitedParseFloat(output.metered), - total: __limitedParseFloat(output.total), - unmetered: __limitedParseFloat(output.unmetered), + metered: __limitedParseDouble(output.metered), + total: __limitedParseDouble(output.total), + unmetered: __limitedParseDouble(output.unmetered), } as any; }; @@ -9006,7 +9007,7 @@ const deserializeAws_json1_1DevicePool = (output: any, context: __SerdeContext): return { arn: __expectString(output.arn), description: __expectString(output.description), - maxDevices: __expectInt(output.maxDevices), + maxDevices: __expectInt32(output.maxDevices), name: __expectString(output.name), rules: output.rules !== undefined && output.rules !== null @@ -9075,8 +9076,8 @@ const deserializeAws_json1_1DeviceSelectionResult = (output: any, context: __Ser output.filters !== undefined && output.filters !== null ? deserializeAws_json1_1DeviceFilters(output.filters, context) : undefined, - matchedDevicesCount: __expectInt(output.matchedDevicesCount), - maxDevices: __expectInt(output.maxDevices), + matchedDevicesCount: __expectInt32(output.matchedDevicesCount), + maxDevices: __expectInt32(output.maxDevices), } as any; }; @@ -9702,8 +9703,8 @@ const deserializeAws_json1_1ListVPCEConfigurationsResult = ( const deserializeAws_json1_1Location = (output: any, context: __SerdeContext): Location => { return { - latitude: __limitedParseFloat(output.latitude), - longitude: __limitedParseFloat(output.longitude), + latitude: __limitedParseDouble(output.latitude), + longitude: __limitedParseDouble(output.longitude), } as any; }; @@ -9714,14 +9715,14 @@ const deserializeAws_json1_1MaxSlotMap = (output: any, context: __SerdeContext): } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; const deserializeAws_json1_1MonetaryAmount = (output: any, context: __SerdeContext): MonetaryAmount => { return { - amount: __limitedParseFloat(output.amount), + amount: __limitedParseDouble(output.amount), currencyCode: __expectString(output.currencyCode), } as any; }; @@ -9730,16 +9731,16 @@ const deserializeAws_json1_1NetworkProfile = (output: any, context: __SerdeConte return { arn: __expectString(output.arn), description: __expectString(output.description), - downlinkBandwidthBits: __expectInt(output.downlinkBandwidthBits), - downlinkDelayMs: __expectInt(output.downlinkDelayMs), - downlinkJitterMs: __expectInt(output.downlinkJitterMs), - downlinkLossPercent: __expectInt(output.downlinkLossPercent), + downlinkBandwidthBits: __expectLong(output.downlinkBandwidthBits), + downlinkDelayMs: __expectLong(output.downlinkDelayMs), + downlinkJitterMs: __expectLong(output.downlinkJitterMs), + downlinkLossPercent: __expectInt32(output.downlinkLossPercent), name: __expectString(output.name), type: __expectString(output.type), - uplinkBandwidthBits: __expectInt(output.uplinkBandwidthBits), - uplinkDelayMs: __expectInt(output.uplinkDelayMs), - uplinkJitterMs: __expectInt(output.uplinkJitterMs), - uplinkLossPercent: __expectInt(output.uplinkLossPercent), + uplinkBandwidthBits: __expectLong(output.uplinkBandwidthBits), + uplinkDelayMs: __expectLong(output.uplinkDelayMs), + uplinkJitterMs: __expectLong(output.uplinkJitterMs), + uplinkLossPercent: __expectInt32(output.uplinkLossPercent), } as any; }; @@ -9818,7 +9819,7 @@ const deserializeAws_json1_1OfferingStatus = (output: any, context: __SerdeConte output.offering !== undefined && output.offering !== null ? deserializeAws_json1_1Offering(output.offering, context) : undefined, - quantity: __expectInt(output.quantity), + quantity: __expectInt32(output.quantity), type: __expectString(output.type), } as any; }; @@ -9929,7 +9930,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr arn: __expectString(output.arn), created: output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined, - defaultJobTimeoutMinutes: __expectInt(output.defaultJobTimeoutMinutes), + defaultJobTimeoutMinutes: __expectInt32(output.defaultJobTimeoutMinutes), name: __expectString(output.name), } as any; }; @@ -9953,7 +9954,7 @@ const deserializeAws_json1_1PurchasedDevicesMap = (output: any, context: __Serde } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {} @@ -10056,8 +10057,8 @@ const deserializeAws_json1_1RenewOfferingResult = (output: any, context: __Serde const deserializeAws_json1_1Resolution = (output: any, context: __SerdeContext): Resolution => { return { - height: __expectInt(output.height), - width: __expectInt(output.width), + height: __expectInt32(output.height), + width: __expectInt32(output.width), } as any; }; @@ -10085,7 +10086,7 @@ const deserializeAws_json1_1Run = (output: any, context: __SerdeContext): Run => appUpload: __expectString(output.appUpload), arn: __expectString(output.arn), billingMethod: __expectString(output.billingMethod), - completedJobs: __expectInt(output.completedJobs), + completedJobs: __expectInt32(output.completedJobs), counters: output.counters !== undefined && output.counters !== null ? deserializeAws_json1_1Counters(output.counters, context) @@ -10105,8 +10106,8 @@ const deserializeAws_json1_1Run = (output: any, context: __SerdeContext): Run => output.deviceSelectionResult !== undefined && output.deviceSelectionResult !== null ? deserializeAws_json1_1DeviceSelectionResult(output.deviceSelectionResult, context) : undefined, - eventCount: __expectInt(output.eventCount), - jobTimeoutMinutes: __expectInt(output.jobTimeoutMinutes), + eventCount: __expectInt32(output.eventCount), + jobTimeoutMinutes: __expectInt32(output.jobTimeoutMinutes), locale: __expectString(output.locale), location: output.location !== undefined && output.location !== null @@ -10126,7 +10127,7 @@ const deserializeAws_json1_1Run = (output: any, context: __SerdeContext): Run => : undefined, result: __expectString(output.result), resultCode: __expectString(output.resultCode), - seed: __expectInt(output.seed), + seed: __expectInt32(output.seed), skipAppResign: __expectBoolean(output.skipAppResign), started: output.started !== undefined && output.started !== null ? new Date(Math.round(output.started * 1000)) : undefined, @@ -10134,7 +10135,7 @@ const deserializeAws_json1_1Run = (output: any, context: __SerdeContext): Run => stopped: output.stopped !== undefined && output.stopped !== null ? new Date(Math.round(output.stopped * 1000)) : undefined, testSpecArn: __expectString(output.testSpecArn), - totalJobs: __expectInt(output.totalJobs), + totalJobs: __expectInt32(output.totalJobs), type: __expectString(output.type), webUrl: __expectString(output.webUrl), } as any; @@ -10356,7 +10357,7 @@ const deserializeAws_json1_1TestGridProjects = (output: any, context: __SerdeCon const deserializeAws_json1_1TestGridSession = (output: any, context: __SerdeContext): TestGridSession => { return { arn: __expectString(output.arn), - billingMinutes: __limitedParseFloat(output.billingMinutes), + billingMinutes: __limitedParseDouble(output.billingMinutes), created: output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined, ended: output.ended !== undefined && output.ended !== null ? new Date(Math.round(output.ended * 1000)) : undefined, @@ -10368,7 +10369,7 @@ const deserializeAws_json1_1TestGridSession = (output: any, context: __SerdeCont const deserializeAws_json1_1TestGridSessionAction = (output: any, context: __SerdeContext): TestGridSessionAction => { return { action: __expectString(output.action), - duration: __expectInt(output.duration), + duration: __expectLong(output.duration), requestMethod: __expectString(output.requestMethod), started: output.started !== undefined && output.started !== null ? new Date(Math.round(output.started * 1000)) : undefined, @@ -10460,8 +10461,8 @@ const deserializeAws_json1_1TooManyTagsException = (output: any, context: __Serd const deserializeAws_json1_1TrialMinutes = (output: any, context: __SerdeContext): TrialMinutes => { return { - remaining: __limitedParseFloat(output.remaining), - total: __limitedParseFloat(output.total), + remaining: __limitedParseDouble(output.remaining), + total: __limitedParseDouble(output.total), } as any; }; diff --git a/clients/client-devops-guru/protocols/Aws_restJson1.ts b/clients/client-devops-guru/protocols/Aws_restJson1.ts index d081cee57efd7..fd9f2cba60db3 100644 --- a/clients/client-devops-guru/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/protocols/Aws_restJson1.ts @@ -129,11 +129,12 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, - strictParseInt as __strictParseInt, + limitedParseDouble as __limitedParseDouble, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -847,16 +848,16 @@ export const deserializeAws_restJson1DescribeAccountHealthCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) { - contents.MetricsAnalyzed = __expectInt(data.MetricsAnalyzed); + contents.MetricsAnalyzed = __expectInt32(data.MetricsAnalyzed); } if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) { - contents.OpenProactiveInsights = __expectInt(data.OpenProactiveInsights); + contents.OpenProactiveInsights = __expectInt32(data.OpenProactiveInsights); } if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) { - contents.OpenReactiveInsights = __expectInt(data.OpenReactiveInsights); + contents.OpenReactiveInsights = __expectInt32(data.OpenReactiveInsights); } if (data.ResourceHours !== undefined && data.ResourceHours !== null) { - contents.ResourceHours = __expectInt(data.ResourceHours); + contents.ResourceHours = __expectLong(data.ResourceHours); } return Promise.resolve(contents); }; @@ -937,13 +938,13 @@ export const deserializeAws_restJson1DescribeAccountOverviewCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.MeanTimeToRecoverInMilliseconds !== undefined && data.MeanTimeToRecoverInMilliseconds !== null) { - contents.MeanTimeToRecoverInMilliseconds = __expectInt(data.MeanTimeToRecoverInMilliseconds); + contents.MeanTimeToRecoverInMilliseconds = __expectLong(data.MeanTimeToRecoverInMilliseconds); } if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) { - contents.ProactiveInsights = __expectInt(data.ProactiveInsights); + contents.ProactiveInsights = __expectInt32(data.ProactiveInsights); } if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) { - contents.ReactiveInsights = __expectInt(data.ReactiveInsights); + contents.ReactiveInsights = __expectInt32(data.ReactiveInsights); } return Promise.resolve(contents); }; @@ -1480,7 +1481,7 @@ export const deserializeAws_restJson1GetCostEstimationCommand = async ( contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context); } if (data.TotalCost !== undefined && data.TotalCost !== null) { - contents.TotalCost = __limitedParseFloat(data.TotalCost); + contents.TotalCost = __limitedParseDouble(data.TotalCost); } return Promise.resolve(contents); }; @@ -2672,7 +2673,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( RetryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.RetryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { @@ -2737,7 +2738,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( ServiceCode: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.RetryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { @@ -3187,7 +3188,7 @@ const deserializeAws_restJson1CloudWatchMetricsDetail = ( : undefined, MetricName: __expectString(output.MetricName), Namespace: __expectString(output.Namespace), - Period: __expectInt(output.Period), + Period: __expectInt32(output.Period), Stat: __expectString(output.Stat), Unit: __expectString(output.Unit), } as any; @@ -3326,9 +3327,9 @@ const deserializeAws_restJson1InsightFeedback = (output: any, context: __SerdeCo const deserializeAws_restJson1InsightHealth = (output: any, context: __SerdeContext): InsightHealth => { return { - MeanTimeToRecoverInMilliseconds: __expectInt(output.MeanTimeToRecoverInMilliseconds), - OpenProactiveInsights: __expectInt(output.OpenProactiveInsights), - OpenReactiveInsights: __expectInt(output.OpenReactiveInsights), + MeanTimeToRecoverInMilliseconds: __expectLong(output.MeanTimeToRecoverInMilliseconds), + OpenProactiveInsights: __expectInt32(output.OpenProactiveInsights), + OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights), } as any; }; @@ -3408,7 +3409,7 @@ const deserializeAws_restJson1ProactiveAnomaly = (output: any, context: __SerdeC : undefined, AssociatedInsightId: __expectString(output.AssociatedInsightId), Id: __expectString(output.Id), - Limit: __limitedParseFloat(output.Limit), + Limit: __limitedParseDouble(output.Limit), PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context) @@ -3445,7 +3446,7 @@ const deserializeAws_restJson1ProactiveAnomalySummary = ( : undefined, AssociatedInsightId: __expectString(output.AssociatedInsightId), Id: __expectString(output.Id), - Limit: __limitedParseFloat(output.Limit), + Limit: __limitedParseDouble(output.Limit), PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context) @@ -3881,8 +3882,8 @@ const deserializeAws_restJson1ServiceHealths = (output: any, context: __SerdeCon const deserializeAws_restJson1ServiceInsightHealth = (output: any, context: __SerdeContext): ServiceInsightHealth => { return { - OpenProactiveInsights: __expectInt(output.OpenProactiveInsights), - OpenReactiveInsights: __expectInt(output.OpenReactiveInsights), + OpenProactiveInsights: __expectInt32(output.OpenProactiveInsights), + OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights), } as any; }; @@ -3911,11 +3912,11 @@ const deserializeAws_restJson1ServiceNames = (output: any, context: __SerdeConte const deserializeAws_restJson1ServiceResourceCost = (output: any, context: __SerdeContext): ServiceResourceCost => { return { - Cost: __limitedParseFloat(output.Cost), - Count: __expectInt(output.Count), + Cost: __limitedParseDouble(output.Cost), + Count: __expectInt32(output.Count), State: __expectString(output.State), Type: __expectString(output.Type), - UnitCost: __limitedParseFloat(output.UnitCost), + UnitCost: __limitedParseDouble(output.UnitCost), } as any; }; diff --git a/clients/client-direct-connect/protocols/Aws_json1_1.ts b/clients/client-direct-connect/protocols/Aws_json1_1.ts index 965ef942c6b46..03005671adfdc 100644 --- a/clients/client-direct-connect/protocols/Aws_json1_1.ts +++ b/clients/client-direct-connect/protocols/Aws_json1_1.ts @@ -309,7 +309,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -5973,7 +5974,7 @@ const deserializeAws_json1_1BGPPeer = (output: any, context: __SerdeContext): BG return { addressFamily: __expectString(output.addressFamily), amazonAddress: __expectString(output.amazonAddress), - asn: __expectInt(output.asn), + asn: __expectInt32(output.asn), authKey: __expectString(output.authKey), awsDeviceV2: __expectString(output.awsDeviceV2), awsLogicalDeviceId: __expectString(output.awsLogicalDeviceId), @@ -6074,7 +6075,7 @@ const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext): output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1TagList(output.tags, context) : undefined, - vlan: __expectInt(output.vlan), + vlan: __expectInt32(output.vlan), } as any; }; @@ -6320,7 +6321,7 @@ const deserializeAws_json1_1DirectConnectClientException = ( const deserializeAws_json1_1DirectConnectGateway = (output: any, context: __SerdeContext): DirectConnectGateway => { return { - amazonSideAsn: __expectInt(output.amazonSideAsn), + amazonSideAsn: __expectLong(output.amazonSideAsn), directConnectGatewayId: __expectString(output.directConnectGatewayId), directConnectGatewayName: __expectString(output.directConnectGatewayName), directConnectGatewayState: __expectString(output.directConnectGatewayState), @@ -6551,8 +6552,8 @@ const deserializeAws_json1_1Lag = (output: any, context: __SerdeContext): Lag => output.macSecKeys !== undefined && output.macSecKeys !== null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined, - minimumLinks: __expectInt(output.minimumLinks), - numberOfConnections: __expectInt(output.numberOfConnections), + minimumLinks: __expectInt32(output.minimumLinks), + numberOfConnections: __expectInt32(output.numberOfConnections), ownerAccount: __expectString(output.ownerAccount), providerName: __expectString(output.providerName), region: __expectString(output.region), @@ -6814,8 +6815,8 @@ const deserializeAws_json1_1VirtualInterface = (output: any, context: __SerdeCon return { addressFamily: __expectString(output.addressFamily), amazonAddress: __expectString(output.amazonAddress), - amazonSideAsn: __expectInt(output.amazonSideAsn), - asn: __expectInt(output.asn), + amazonSideAsn: __expectLong(output.amazonSideAsn), + asn: __expectInt32(output.asn), authKey: __expectString(output.authKey), awsDeviceV2: __expectString(output.awsDeviceV2), awsLogicalDeviceId: __expectString(output.awsLogicalDeviceId), @@ -6829,7 +6830,7 @@ const deserializeAws_json1_1VirtualInterface = (output: any, context: __SerdeCon directConnectGatewayId: __expectString(output.directConnectGatewayId), jumboFrameCapable: __expectBoolean(output.jumboFrameCapable), location: __expectString(output.location), - mtu: __expectInt(output.mtu), + mtu: __expectInt32(output.mtu), ownerAccount: __expectString(output.ownerAccount), region: __expectString(output.region), routeFilterPrefixes: @@ -6845,7 +6846,7 @@ const deserializeAws_json1_1VirtualInterface = (output: any, context: __SerdeCon virtualInterfaceName: __expectString(output.virtualInterfaceName), virtualInterfaceState: __expectString(output.virtualInterfaceState), virtualInterfaceType: __expectString(output.virtualInterfaceType), - vlan: __expectInt(output.vlan), + vlan: __expectInt32(output.vlan), } as any; }; @@ -6886,7 +6887,7 @@ const deserializeAws_json1_1VirtualInterfaceTestHistory = ( ? new Date(Math.round(output.startTime * 1000)) : undefined, status: __expectString(output.status), - testDurationInMinutes: __expectInt(output.testDurationInMinutes), + testDurationInMinutes: __expectInt32(output.testDurationInMinutes), testId: __expectString(output.testId), virtualInterfaceId: __expectString(output.virtualInterfaceId), } as any; diff --git a/clients/client-directory-service/protocols/Aws_json1_1.ts b/clients/client-directory-service/protocols/Aws_json1_1.ts index 84156dc90a144..17f572c72a19e 100644 --- a/clients/client-directory-service/protocols/Aws_json1_1.ts +++ b/clients/client-directory-service/protocols/Aws_json1_1.ts @@ -341,7 +341,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -8773,7 +8773,7 @@ const deserializeAws_json1_1DirectoryDescription = (output: any, context: __Serd ? deserializeAws_json1_1DirectoryConnectSettingsDescription(output.ConnectSettings, context) : undefined, Description: __expectString(output.Description), - DesiredNumberOfDomainControllers: __expectInt(output.DesiredNumberOfDomainControllers), + DesiredNumberOfDomainControllers: __expectInt32(output.DesiredNumberOfDomainControllers), DirectoryId: __expectString(output.DirectoryId), DnsIpAddrs: output.DnsIpAddrs !== undefined && output.DnsIpAddrs !== null @@ -8851,14 +8851,14 @@ const deserializeAws_json1_1DirectoryLimitExceededException = ( const deserializeAws_json1_1DirectoryLimits = (output: any, context: __SerdeContext): DirectoryLimits => { return { - CloudOnlyDirectoriesCurrentCount: __expectInt(output.CloudOnlyDirectoriesCurrentCount), - CloudOnlyDirectoriesLimit: __expectInt(output.CloudOnlyDirectoriesLimit), + CloudOnlyDirectoriesCurrentCount: __expectInt32(output.CloudOnlyDirectoriesCurrentCount), + CloudOnlyDirectoriesLimit: __expectInt32(output.CloudOnlyDirectoriesLimit), CloudOnlyDirectoriesLimitReached: __expectBoolean(output.CloudOnlyDirectoriesLimitReached), - CloudOnlyMicrosoftADCurrentCount: __expectInt(output.CloudOnlyMicrosoftADCurrentCount), - CloudOnlyMicrosoftADLimit: __expectInt(output.CloudOnlyMicrosoftADLimit), + CloudOnlyMicrosoftADCurrentCount: __expectInt32(output.CloudOnlyMicrosoftADCurrentCount), + CloudOnlyMicrosoftADLimit: __expectInt32(output.CloudOnlyMicrosoftADLimit), CloudOnlyMicrosoftADLimitReached: __expectBoolean(output.CloudOnlyMicrosoftADLimitReached), - ConnectedDirectoriesCurrentCount: __expectInt(output.ConnectedDirectoriesCurrentCount), - ConnectedDirectoriesLimit: __expectInt(output.ConnectedDirectoriesLimit), + ConnectedDirectoriesCurrentCount: __expectInt32(output.ConnectedDirectoriesCurrentCount), + ConnectedDirectoriesLimit: __expectInt32(output.ConnectedDirectoriesLimit), ConnectedDirectoriesLimitReached: __expectBoolean(output.ConnectedDirectoriesLimitReached), } as any; }; @@ -9338,13 +9338,13 @@ const deserializeAws_json1_1RadiusSettings = (output: any, context: __SerdeConte return { AuthenticationProtocol: __expectString(output.AuthenticationProtocol), DisplayLabel: __expectString(output.DisplayLabel), - RadiusPort: __expectInt(output.RadiusPort), - RadiusRetries: __expectInt(output.RadiusRetries), + RadiusPort: __expectInt32(output.RadiusPort), + RadiusRetries: __expectInt32(output.RadiusRetries), RadiusServers: output.RadiusServers !== undefined && output.RadiusServers !== null ? deserializeAws_json1_1Servers(output.RadiusServers, context) : undefined, - RadiusTimeout: __expectInt(output.RadiusTimeout), + RadiusTimeout: __expectInt32(output.RadiusTimeout), SharedSecret: __expectString(output.SharedSecret), UseSameUsername: __expectBoolean(output.UseSameUsername), } as any; @@ -9352,7 +9352,7 @@ const deserializeAws_json1_1RadiusSettings = (output: any, context: __SerdeConte const deserializeAws_json1_1RegionDescription = (output: any, context: __SerdeContext): RegionDescription => { return { - DesiredNumberOfDomainControllers: __expectInt(output.DesiredNumberOfDomainControllers), + DesiredNumberOfDomainControllers: __expectInt32(output.DesiredNumberOfDomainControllers), DirectoryId: __expectString(output.DirectoryId), LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null @@ -9581,8 +9581,8 @@ const deserializeAws_json1_1SnapshotLimitExceededException = ( const deserializeAws_json1_1SnapshotLimits = (output: any, context: __SerdeContext): SnapshotLimits => { return { - ManualSnapshotsCurrentCount: __expectInt(output.ManualSnapshotsCurrentCount), - ManualSnapshotsLimit: __expectInt(output.ManualSnapshotsLimit), + ManualSnapshotsCurrentCount: __expectInt32(output.ManualSnapshotsCurrentCount), + ManualSnapshotsLimit: __expectInt32(output.ManualSnapshotsLimit), ManualSnapshotsLimitReached: __expectBoolean(output.ManualSnapshotsLimitReached), } as any; }; diff --git a/clients/client-dlm/protocols/Aws_restJson1.ts b/clients/client-dlm/protocols/Aws_restJson1.ts index fe237dfe7fa50..db499444d3e23 100644 --- a/clients/client-dlm/protocols/Aws_restJson1.ts +++ b/clients/client-dlm/protocols/Aws_restJson1.ts @@ -49,7 +49,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1385,7 +1385,7 @@ const deserializeAws_restJson1AvailabilityZoneList = (output: any, context: __Se const deserializeAws_restJson1CreateRule = (output: any, context: __SerdeContext): CreateRule => { return { CronExpression: __expectString(output.CronExpression), - Interval: __expectInt(output.Interval), + Interval: __expectInt32(output.Interval), IntervalUnit: __expectString(output.IntervalUnit), Location: __expectString(output.Location), Times: @@ -1428,7 +1428,7 @@ const deserializeAws_restJson1CrossRegionCopyRetainRule = ( context: __SerdeContext ): CrossRegionCopyRetainRule => { return { - Interval: __expectInt(output.Interval), + Interval: __expectInt32(output.Interval), IntervalUnit: __expectString(output.IntervalUnit), } as any; }; @@ -1495,8 +1495,8 @@ const deserializeAws_restJson1FastRestoreRule = (output: any, context: __SerdeCo output.AvailabilityZones !== undefined && output.AvailabilityZones !== null ? deserializeAws_restJson1AvailabilityZoneList(output.AvailabilityZones, context) : undefined, - Count: __expectInt(output.Count), - Interval: __expectInt(output.Interval), + Count: __expectInt32(output.Count), + Interval: __expectInt32(output.Interval), IntervalUnit: __expectString(output.IntervalUnit), } as any; }; @@ -1651,8 +1651,8 @@ const deserializeAws_restJson1ResourceTypeValuesList = ( const deserializeAws_restJson1RetainRule = (output: any, context: __SerdeContext): RetainRule => { return { - Count: __expectInt(output.Count), - Interval: __expectInt(output.Interval), + Count: __expectInt32(output.Count), + Interval: __expectInt32(output.Interval), IntervalUnit: __expectString(output.IntervalUnit), } as any; }; @@ -1709,7 +1709,7 @@ const deserializeAws_restJson1ShareRule = (output: any, context: __SerdeContext) output.TargetAccounts !== undefined && output.TargetAccounts !== null ? deserializeAws_restJson1ShareTargetAccountList(output.TargetAccounts, context) : undefined, - UnshareInterval: __expectInt(output.UnshareInterval), + UnshareInterval: __expectInt32(output.UnshareInterval), UnshareIntervalUnit: __expectString(output.UnshareIntervalUnit), } as any; }; diff --git a/clients/client-docdb/protocols/Aws_query.ts b/clients/client-docdb/protocols/Aws_query.ts index 4be42ee9c3172..3bb29b8bee9b7 100644 --- a/clients/client-docdb/protocols/Aws_query.ts +++ b/clients/client-docdb/protocols/Aws_query.ts @@ -370,7 +370,7 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -7993,7 +7993,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB ); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["DBClusterIdentifier"] !== undefined) { contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); @@ -8032,7 +8032,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB contents.LatestRestorableTime = new Date(output["LatestRestorableTime"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["MasterUsername"] !== undefined) { contents.MasterUsername = __expectString(output["MasterUsername"]); @@ -8165,7 +8165,7 @@ const deserializeAws_queryDBClusterMember = (output: any, context: __SerdeContex contents.DBClusterParameterGroupStatus = __expectString(output["DBClusterParameterGroupStatus"]); } if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt(output["PromotionTier"]) as number; + contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; } return contents; }; @@ -8405,7 +8405,7 @@ const deserializeAws_queryDBClusterSnapshot = (output: any, context: __SerdeCont contents.Status = __expectString(output["Status"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["VpcId"] !== undefined) { contents.VpcId = __expectString(output["VpcId"]); @@ -8423,7 +8423,7 @@ const deserializeAws_queryDBClusterSnapshot = (output: any, context: __SerdeCont contents.SnapshotType = __expectString(output["SnapshotType"]); } if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt(output["PercentProgress"]) as number; + contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; } if (output["StorageEncrypted"] !== undefined) { contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); @@ -8695,7 +8695,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output.VpcSecurityGroups === "") { contents.VpcSecurityGroups = []; @@ -8761,7 +8761,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); } if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt(output["PromotionTier"]) as number; + contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; } if (output["DBInstanceArn"] !== undefined) { contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); @@ -9183,7 +9183,7 @@ const deserializeAws_queryEndpoint = (output: any, context: __SerdeContext): End contents.Address = __expectString(output["Address"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["HostedZoneId"] !== undefined) { contents.HostedZoneId = __expectString(output["HostedZoneId"]); @@ -10202,16 +10202,16 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["MasterUserPassword"] !== undefined) { contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["MultiAZ"] !== undefined) { contents.MultiAZ = __parseBoolean(output["MultiAZ"]); @@ -10223,7 +10223,7 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.LicenseModel = __expectString(output["LicenseModel"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output["DBInstanceIdentifier"] !== undefined) { contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); diff --git a/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts b/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts index 4c600c93d0b95..2f52006259731 100644 --- a/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts @@ -29,7 +29,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -802,7 +802,7 @@ const deserializeAws_json1_0StreamRecord = (output: any, context: __SerdeContext ? deserializeAws_json1_0AttributeMap(output.OldImage, context) : undefined, SequenceNumber: __expectString(output.SequenceNumber), - SizeBytes: __expectInt(output.SizeBytes), + SizeBytes: __expectLong(output.SizeBytes), StreamViewType: __expectString(output.StreamViewType), } as any; }; diff --git a/clients/client-dynamodb/protocols/Aws_json1_0.ts b/clients/client-dynamodb/protocols/Aws_json1_0.ts index 3e7b97b893174..dd42bdff519d9 100644 --- a/clients/client-dynamodb/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb/protocols/Aws_json1_0.ts @@ -324,9 +324,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -7697,8 +7698,8 @@ const deserializeAws_json1_0AutoScalingSettingsDescription = ( return { AutoScalingDisabled: __expectBoolean(output.AutoScalingDisabled), AutoScalingRoleArn: __expectString(output.AutoScalingRoleArn), - MaximumUnits: __expectInt(output.MaximumUnits), - MinimumUnits: __expectInt(output.MinimumUnits), + MaximumUnits: __expectLong(output.MaximumUnits), + MinimumUnits: __expectLong(output.MinimumUnits), ScalingPolicies: output.ScalingPolicies !== undefined && output.ScalingPolicies !== null ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context) @@ -7712,9 +7713,9 @@ const deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationD ): AutoScalingTargetTrackingScalingPolicyConfigurationDescription => { return { DisableScaleIn: __expectBoolean(output.DisableScaleIn), - ScaleInCooldown: __expectInt(output.ScaleInCooldown), - ScaleOutCooldown: __expectInt(output.ScaleOutCooldown), - TargetValue: __limitedParseFloat(output.TargetValue), + ScaleInCooldown: __expectInt32(output.ScaleInCooldown), + ScaleOutCooldown: __expectInt32(output.ScaleOutCooldown), + TargetValue: __limitedParseDouble(output.TargetValue), } as any; }; @@ -7747,7 +7748,7 @@ const deserializeAws_json1_0BackupDetails = (output: any, context: __SerdeContex ? new Date(Math.round(output.BackupExpiryDateTime * 1000)) : undefined, BackupName: __expectString(output.BackupName), - BackupSizeBytes: __expectInt(output.BackupSizeBytes), + BackupSizeBytes: __expectLong(output.BackupSizeBytes), BackupStatus: __expectString(output.BackupStatus), BackupType: __expectString(output.BackupType), } as any; @@ -7791,7 +7792,7 @@ const deserializeAws_json1_0BackupSummary = (output: any, context: __SerdeContex ? new Date(Math.round(output.BackupExpiryDateTime * 1000)) : undefined, BackupName: __expectString(output.BackupName), - BackupSizeBytes: __expectInt(output.BackupSizeBytes), + BackupSizeBytes: __expectLong(output.BackupSizeBytes), BackupStatus: __expectString(output.BackupStatus), BackupType: __expectString(output.BackupType), TableArn: __expectString(output.TableArn), @@ -7960,9 +7961,9 @@ const deserializeAws_json1_0CancellationReasonList = (output: any, context: __Se const deserializeAws_json1_0Capacity = (output: any, context: __SerdeContext): Capacity => { return { - CapacityUnits: __limitedParseFloat(output.CapacityUnits), - ReadCapacityUnits: __limitedParseFloat(output.ReadCapacityUnits), - WriteCapacityUnits: __limitedParseFloat(output.WriteCapacityUnits), + CapacityUnits: __limitedParseDouble(output.CapacityUnits), + ReadCapacityUnits: __limitedParseDouble(output.ReadCapacityUnits), + WriteCapacityUnits: __limitedParseDouble(output.WriteCapacityUnits), } as any; }; @@ -7977,7 +7978,7 @@ const deserializeAws_json1_0ConditionalCheckFailedException = ( const deserializeAws_json1_0ConsumedCapacity = (output: any, context: __SerdeContext): ConsumedCapacity => { return { - CapacityUnits: __limitedParseFloat(output.CapacityUnits), + CapacityUnits: __limitedParseDouble(output.CapacityUnits), GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context) @@ -7986,13 +7987,13 @@ const deserializeAws_json1_0ConsumedCapacity = (output: any, context: __SerdeCon output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context) : undefined, - ReadCapacityUnits: __limitedParseFloat(output.ReadCapacityUnits), + ReadCapacityUnits: __limitedParseDouble(output.ReadCapacityUnits), Table: output.Table !== undefined && output.Table !== null ? deserializeAws_json1_0Capacity(output.Table, context) : undefined, TableName: __expectString(output.TableName), - WriteCapacityUnits: __limitedParseFloat(output.WriteCapacityUnits), + WriteCapacityUnits: __limitedParseDouble(output.WriteCapacityUnits), } as any; }; @@ -8241,10 +8242,10 @@ const deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = ( const deserializeAws_json1_0DescribeLimitsOutput = (output: any, context: __SerdeContext): DescribeLimitsOutput => { return { - AccountMaxReadCapacityUnits: __expectInt(output.AccountMaxReadCapacityUnits), - AccountMaxWriteCapacityUnits: __expectInt(output.AccountMaxWriteCapacityUnits), - TableMaxReadCapacityUnits: __expectInt(output.TableMaxReadCapacityUnits), - TableMaxWriteCapacityUnits: __expectInt(output.TableMaxWriteCapacityUnits), + AccountMaxReadCapacityUnits: __expectLong(output.AccountMaxReadCapacityUnits), + AccountMaxWriteCapacityUnits: __expectLong(output.AccountMaxWriteCapacityUnits), + TableMaxReadCapacityUnits: __expectLong(output.TableMaxReadCapacityUnits), + TableMaxWriteCapacityUnits: __expectLong(output.TableMaxWriteCapacityUnits), } as any; }; @@ -8290,7 +8291,7 @@ const deserializeAws_json1_0DuplicateItemException = (output: any, context: __Se const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): Endpoint => { return { Address: __expectString(output.Address), - CachePeriodInMinutes: __expectInt(output.CachePeriodInMinutes), + CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes), } as any; }; @@ -8338,7 +8339,7 @@ const deserializeAws_json1_0ExportConflictException = ( const deserializeAws_json1_0ExportDescription = (output: any, context: __SerdeContext): ExportDescription => { return { - BilledSizeBytes: __expectInt(output.BilledSizeBytes), + BilledSizeBytes: __expectLong(output.BilledSizeBytes), ClientToken: __expectString(output.ClientToken), EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, @@ -8352,7 +8353,7 @@ const deserializeAws_json1_0ExportDescription = (output: any, context: __SerdeCo : undefined, FailureCode: __expectString(output.FailureCode), FailureMessage: __expectString(output.FailureMessage), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectLong(output.ItemCount), S3Bucket: __expectString(output.S3Bucket), S3BucketOwner: __expectString(output.S3BucketOwner), S3Prefix: __expectString(output.S3Prefix), @@ -8449,9 +8450,9 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescription = ( Backfilling: __expectBoolean(output.Backfilling), IndexArn: __expectString(output.IndexArn), IndexName: __expectString(output.IndexName), - IndexSizeBytes: __expectInt(output.IndexSizeBytes), + IndexSizeBytes: __expectLong(output.IndexSizeBytes), IndexStatus: __expectString(output.IndexStatus), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectLong(output.ItemCount), KeySchema: output.KeySchema !== undefined && output.KeySchema !== null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) @@ -8686,7 +8687,7 @@ const deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output: any, cont if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -8916,8 +8917,8 @@ const deserializeAws_json1_0LocalSecondaryIndexDescription = ( return { IndexArn: __expectString(output.IndexArn), IndexName: __expectString(output.IndexName), - IndexSizeBytes: __expectInt(output.IndexSizeBytes), - ItemCount: __expectInt(output.ItemCount), + IndexSizeBytes: __expectLong(output.IndexSizeBytes), + ItemCount: __expectLong(output.ItemCount), KeySchema: output.KeySchema !== undefined && output.KeySchema !== null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) @@ -9060,8 +9061,8 @@ const deserializeAws_json1_0Projection = (output: any, context: __SerdeContext): const deserializeAws_json1_0ProvisionedThroughput = (output: any, context: __SerdeContext): ProvisionedThroughput => { return { - ReadCapacityUnits: __expectInt(output.ReadCapacityUnits), - WriteCapacityUnits: __expectInt(output.WriteCapacityUnits), + ReadCapacityUnits: __expectLong(output.ReadCapacityUnits), + WriteCapacityUnits: __expectLong(output.WriteCapacityUnits), } as any; }; @@ -9078,9 +9079,9 @@ const deserializeAws_json1_0ProvisionedThroughputDescription = ( output.LastIncreaseDateTime !== undefined && output.LastIncreaseDateTime !== null ? new Date(Math.round(output.LastIncreaseDateTime * 1000)) : undefined, - NumberOfDecreasesToday: __expectInt(output.NumberOfDecreasesToday), - ReadCapacityUnits: __expectInt(output.ReadCapacityUnits), - WriteCapacityUnits: __expectInt(output.WriteCapacityUnits), + NumberOfDecreasesToday: __expectLong(output.NumberOfDecreasesToday), + ReadCapacityUnits: __expectLong(output.ReadCapacityUnits), + WriteCapacityUnits: __expectLong(output.WriteCapacityUnits), } as any; }; @@ -9098,7 +9099,7 @@ const deserializeAws_json1_0ProvisionedThroughputOverride = ( context: __SerdeContext ): ProvisionedThroughputOverride => { return { - ReadCapacityUnits: __expectInt(output.ReadCapacityUnits), + ReadCapacityUnits: __expectLong(output.ReadCapacityUnits), } as any; }; @@ -9149,7 +9150,7 @@ const deserializeAws_json1_0QueryOutput = (output: any, context: __SerdeContext) output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : undefined, - Count: __expectInt(output.Count), + Count: __expectInt32(output.Count), Items: output.Items !== undefined && output.Items !== null ? deserializeAws_json1_0ItemList(output.Items, context) @@ -9158,7 +9159,7 @@ const deserializeAws_json1_0QueryOutput = (output: any, context: __SerdeContext) output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined, - ScannedCount: __expectInt(output.ScannedCount), + ScannedCount: __expectInt32(output.ScannedCount), } as any; }; @@ -9339,7 +9340,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = ( context ) : undefined, - ProvisionedReadCapacityUnits: __expectInt(output.ProvisionedReadCapacityUnits), + ProvisionedReadCapacityUnits: __expectLong(output.ProvisionedReadCapacityUnits), ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined && output.ProvisionedWriteCapacityAutoScalingSettings !== null @@ -9348,7 +9349,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = ( context ) : undefined, - ProvisionedWriteCapacityUnits: __expectInt(output.ProvisionedWriteCapacityUnits), + ProvisionedWriteCapacityUnits: __expectLong(output.ProvisionedWriteCapacityUnits), } as any; }; @@ -9411,7 +9412,7 @@ const deserializeAws_json1_0ReplicaSettingsDescription = ( context ) : undefined, - ReplicaProvisionedReadCapacityUnits: __expectInt(output.ReplicaProvisionedReadCapacityUnits), + ReplicaProvisionedReadCapacityUnits: __expectLong(output.ReplicaProvisionedReadCapacityUnits), ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined && output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null @@ -9420,7 +9421,7 @@ const deserializeAws_json1_0ReplicaSettingsDescription = ( context ) : undefined, - ReplicaProvisionedWriteCapacityUnits: __expectInt(output.ReplicaProvisionedWriteCapacityUnits), + ReplicaProvisionedWriteCapacityUnits: __expectLong(output.ReplicaProvisionedWriteCapacityUnits), ReplicaStatus: __expectString(output.ReplicaStatus), } as any; }; @@ -9502,7 +9503,7 @@ const deserializeAws_json1_0ScanOutput = (output: any, context: __SerdeContext): output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : undefined, - Count: __expectInt(output.Count), + Count: __expectInt32(output.Count), Items: output.Items !== undefined && output.Items !== null ? deserializeAws_json1_0ItemList(output.Items, context) @@ -9511,7 +9512,7 @@ const deserializeAws_json1_0ScanOutput = (output: any, context: __SerdeContext): output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined, - ScannedCount: __expectInt(output.ScannedCount), + ScannedCount: __expectInt32(output.ScannedCount), } as any; }; @@ -9533,7 +9534,7 @@ const deserializeAws_json1_0SecondaryIndexesCapacityMap = ( const deserializeAws_json1_0SourceTableDetails = (output: any, context: __SerdeContext): SourceTableDetails => { return { BillingMode: __expectString(output.BillingMode), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectLong(output.ItemCount), KeySchema: output.KeySchema !== undefined && output.KeySchema !== null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) @@ -9549,7 +9550,7 @@ const deserializeAws_json1_0SourceTableDetails = (output: any, context: __SerdeC : undefined, TableId: __expectString(output.TableId), TableName: __expectString(output.TableName), - TableSizeBytes: __expectInt(output.TableSizeBytes), + TableSizeBytes: __expectLong(output.TableSizeBytes), } as any; }; @@ -9657,7 +9658,7 @@ const deserializeAws_json1_0TableDescription = (output: any, context: __SerdeCon ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : undefined, GlobalTableVersion: __expectString(output.GlobalTableVersion), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectLong(output.ItemCount), KeySchema: output.KeySchema !== undefined && output.KeySchema !== null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) @@ -9691,7 +9692,7 @@ const deserializeAws_json1_0TableDescription = (output: any, context: __SerdeCon TableArn: __expectString(output.TableArn), TableId: __expectString(output.TableId), TableName: __expectString(output.TableName), - TableSizeBytes: __expectInt(output.TableSizeBytes), + TableSizeBytes: __expectLong(output.TableSizeBytes), TableStatus: __expectString(output.TableStatus), } as any; }; diff --git a/clients/client-ebs/protocols/Aws_restJson1.ts b/clients/client-ebs/protocols/Aws_restJson1.ts index 83b651a8c7ffa..06a4bb01f51e3 100644 --- a/clients/client-ebs/protocols/Aws_restJson1.ts +++ b/clients/client-ebs/protocols/Aws_restJson1.ts @@ -19,10 +19,11 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -377,7 +378,7 @@ export const deserializeAws_restJson1GetSnapshotBlockCommand = async ( DataLength: undefined, }; if (output.headers["x-amz-data-length"] !== undefined) { - contents.DataLength = __strictParseInt(output.headers["x-amz-data-length"]); + contents.DataLength = __strictParseInt32(output.headers["x-amz-data-length"]); } if (output.headers["x-amz-checksum"] !== undefined) { contents.Checksum = output.headers["x-amz-checksum"]; @@ -484,7 +485,7 @@ export const deserializeAws_restJson1ListChangedBlocksCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BlockSize !== undefined && data.BlockSize !== null) { - contents.BlockSize = __expectInt(data.BlockSize); + contents.BlockSize = __expectInt32(data.BlockSize); } if (data.ChangedBlocks !== undefined && data.ChangedBlocks !== null) { contents.ChangedBlocks = deserializeAws_restJson1ChangedBlocks(data.ChangedBlocks, context); @@ -496,7 +497,7 @@ export const deserializeAws_restJson1ListChangedBlocksCommand = async ( contents.NextToken = __expectString(data.NextToken); } if (data.VolumeSize !== undefined && data.VolumeSize !== null) { - contents.VolumeSize = __expectInt(data.VolumeSize); + contents.VolumeSize = __expectLong(data.VolumeSize); } return Promise.resolve(contents); }; @@ -595,7 +596,7 @@ export const deserializeAws_restJson1ListSnapshotBlocksCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BlockSize !== undefined && data.BlockSize !== null) { - contents.BlockSize = __expectInt(data.BlockSize); + contents.BlockSize = __expectInt32(data.BlockSize); } if (data.Blocks !== undefined && data.Blocks !== null) { contents.Blocks = deserializeAws_restJson1Blocks(data.Blocks, context); @@ -607,7 +608,7 @@ export const deserializeAws_restJson1ListSnapshotBlocksCommand = async ( contents.NextToken = __expectString(data.NextToken); } if (data.VolumeSize !== undefined && data.VolumeSize !== null) { - contents.VolumeSize = __expectInt(data.VolumeSize); + contents.VolumeSize = __expectLong(data.VolumeSize); } return Promise.resolve(contents); }; @@ -810,7 +811,7 @@ export const deserializeAws_restJson1StartSnapshotCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BlockSize !== undefined && data.BlockSize !== null) { - contents.BlockSize = __expectInt(data.BlockSize); + contents.BlockSize = __expectInt32(data.BlockSize); } if (data.Description !== undefined && data.Description !== null) { contents.Description = __expectString(data.Description); @@ -837,7 +838,7 @@ export const deserializeAws_restJson1StartSnapshotCommand = async ( contents.Tags = deserializeAws_restJson1Tags(data.Tags, context); } if (data.VolumeSize !== undefined && data.VolumeSize !== null) { - contents.VolumeSize = __expectInt(data.VolumeSize); + contents.VolumeSize = __expectLong(data.VolumeSize); } return Promise.resolve(contents); }; @@ -1111,7 +1112,7 @@ const serializeAws_restJson1Tags = (input: Tag[], context: __SerdeContext): any const deserializeAws_restJson1Block = (output: any, context: __SerdeContext): Block => { return { - BlockIndex: __expectInt(output.BlockIndex), + BlockIndex: __expectInt32(output.BlockIndex), BlockToken: __expectString(output.BlockToken), } as any; }; @@ -1129,7 +1130,7 @@ const deserializeAws_restJson1Blocks = (output: any, context: __SerdeContext): B const deserializeAws_restJson1ChangedBlock = (output: any, context: __SerdeContext): ChangedBlock => { return { - BlockIndex: __expectInt(output.BlockIndex), + BlockIndex: __expectInt32(output.BlockIndex), FirstBlockToken: __expectString(output.FirstBlockToken), SecondBlockToken: __expectString(output.SecondBlockToken), } as any; diff --git a/clients/client-ec2/protocols/Aws_ec2.ts b/clients/client-ec2/protocols/Aws_ec2.ts index 46a811711dcd5..0e6224a6b7312 100644 --- a/clients/client-ec2/protocols/Aws_ec2.ts +++ b/clients/client-ec2/protocols/Aws_ec2.ts @@ -3011,7 +3011,8 @@ import { parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -50343,7 +50344,7 @@ const deserializeAws_ec2AnalysisAclRule = (output: any, context: __SerdeContext) contents.RuleAction = __expectString(output["ruleAction"]); } if (output["ruleNumber"] !== undefined) { - contents.RuleNumber = __strictParseInt(output["ruleNumber"]) as number; + contents.RuleNumber = __strictParseInt32(output["ruleNumber"]) as number; } return contents; }; @@ -50382,10 +50383,10 @@ const deserializeAws_ec2AnalysisLoadBalancerListener = ( InstancePort: undefined, }; if (output["loadBalancerPort"] !== undefined) { - contents.LoadBalancerPort = __strictParseInt(output["loadBalancerPort"]) as number; + contents.LoadBalancerPort = __strictParseInt32(output["loadBalancerPort"]) as number; } if (output["instancePort"] !== undefined) { - contents.InstancePort = __strictParseInt(output["instancePort"]) as number; + contents.InstancePort = __strictParseInt32(output["instancePort"]) as number; } return contents; }; @@ -50410,7 +50411,7 @@ const deserializeAws_ec2AnalysisLoadBalancerTarget = ( contents.Instance = deserializeAws_ec2AnalysisComponent(output["instance"], context); } if (output["port"] !== undefined) { - contents.Port = __strictParseInt(output["port"]) as number; + contents.Port = __strictParseInt32(output["port"]) as number; } return contents; }; @@ -50968,7 +50969,7 @@ const deserializeAws_ec2AttachNetworkInterfaceResult = ( contents.AttachmentId = __expectString(output["attachmentId"]); } if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt(output["networkCardIndex"]) as number; + contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; } return contents; }; @@ -51209,7 +51210,7 @@ const deserializeAws_ec2AvailableCapacity = (output: any, context: __SerdeContex ); } if (output["availableVCpus"] !== undefined) { - contents.AvailableVCpus = __strictParseInt(output["availableVCpus"]) as number; + contents.AvailableVCpus = __strictParseInt32(output["availableVCpus"]) as number; } return contents; }; @@ -51651,10 +51652,10 @@ const deserializeAws_ec2CapacityReservation = (output: any, context: __SerdeCont contents.Tenancy = __expectString(output["tenancy"]); } if (output["totalInstanceCount"] !== undefined) { - contents.TotalInstanceCount = __strictParseInt(output["totalInstanceCount"]) as number; + contents.TotalInstanceCount = __strictParseInt32(output["totalInstanceCount"]) as number; } if (output["availableInstanceCount"] !== undefined) { - contents.AvailableInstanceCount = __strictParseInt(output["availableInstanceCount"]) as number; + contents.AvailableInstanceCount = __strictParseInt32(output["availableInstanceCount"]) as number; } if (output["ebsOptimized"] !== undefined) { contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); @@ -52222,7 +52223,7 @@ const deserializeAws_ec2ClientVpnEndpoint = (output: any, context: __SerdeContex contents.TransportProtocol = __expectString(output["transportProtocol"]); } if (output["vpnPort"] !== undefined) { - contents.VpnPort = __strictParseInt(output["vpnPort"]) as number; + contents.VpnPort = __strictParseInt32(output["vpnPort"]) as number; } if (output.associatedTargetNetwork === "") { contents.AssociatedTargetNetworks = []; @@ -52634,7 +52635,7 @@ const deserializeAws_ec2CoreCountList = (output: any, context: __SerdeContext): if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; @@ -52644,10 +52645,10 @@ const deserializeAws_ec2CpuOptions = (output: any, context: __SerdeContext): Cpu ThreadsPerCore: undefined, }; if (output["coreCount"] !== undefined) { - contents.CoreCount = __strictParseInt(output["coreCount"]) as number; + contents.CoreCount = __strictParseInt32(output["coreCount"]) as number; } if (output["threadsPerCore"] !== undefined) { - contents.ThreadsPerCore = __strictParseInt(output["threadsPerCore"]) as number; + contents.ThreadsPerCore = __strictParseInt32(output["threadsPerCore"]) as number; } return contents; }; @@ -53920,7 +53921,7 @@ const deserializeAws_ec2DeleteLaunchTemplateVersionsResponseErrorItem = ( contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); } if (output["versionNumber"] !== undefined) { - contents.VersionNumber = __strictParseInt(output["versionNumber"]) as number; + contents.VersionNumber = __strictParseLong(output["versionNumber"]) as number; } if (output["responseError"] !== undefined) { contents.ResponseError = deserializeAws_ec2ResponseError(output["responseError"], context); @@ -53958,7 +53959,7 @@ const deserializeAws_ec2DeleteLaunchTemplateVersionsResponseSuccessItem = ( contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); } if (output["versionNumber"] !== undefined) { - contents.VersionNumber = __strictParseInt(output["versionNumber"]) as number; + contents.VersionNumber = __strictParseLong(output["versionNumber"]) as number; } return contents; }; @@ -54933,7 +54934,7 @@ const deserializeAws_ec2DescribeElasticGpusResult = ( ); } if (output["maxResults"] !== undefined) { - contents.MaxResults = __strictParseInt(output["maxResults"]) as number; + contents.MaxResults = __strictParseInt32(output["maxResults"]) as number; } if (output["nextToken"] !== undefined) { contents.NextToken = __expectString(output["nextToken"]); @@ -57926,7 +57927,7 @@ const deserializeAws_ec2DiskImageDescription = (output: any, context: __SerdeCon contents.ImportManifestUrl = __expectString(output["importManifestUrl"]); } if (output["size"] !== undefined) { - contents.Size = __strictParseInt(output["size"]) as number; + contents.Size = __strictParseLong(output["size"]) as number; } return contents; }; @@ -57943,7 +57944,7 @@ const deserializeAws_ec2DiskImageVolumeDescription = ( contents.Id = __expectString(output["id"]); } if (output["size"] !== undefined) { - contents.Size = __strictParseInt(output["size"]) as number; + contents.Size = __strictParseLong(output["size"]) as number; } return contents; }; @@ -57955,10 +57956,10 @@ const deserializeAws_ec2DiskInfo = (output: any, context: __SerdeContext): DiskI Type: undefined, }; if (output["sizeInGB"] !== undefined) { - contents.SizeInGB = __strictParseInt(output["sizeInGB"]) as number; + contents.SizeInGB = __strictParseLong(output["sizeInGB"]) as number; } if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } if (output["type"] !== undefined) { contents.Type = __expectString(output["type"]); @@ -58018,13 +58019,13 @@ const deserializeAws_ec2EbsBlockDevice = (output: any, context: __SerdeContext): contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); } if (output["iops"] !== undefined) { - contents.Iops = __strictParseInt(output["iops"]) as number; + contents.Iops = __strictParseInt32(output["iops"]) as number; } if (output["snapshotId"] !== undefined) { contents.SnapshotId = __expectString(output["snapshotId"]); } if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt(output["volumeSize"]) as number; + contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; } if (output["volumeType"] !== undefined) { contents.VolumeType = __expectString(output["volumeType"]); @@ -58033,7 +58034,7 @@ const deserializeAws_ec2EbsBlockDevice = (output: any, context: __SerdeContext): contents.KmsKeyId = __expectString(output["KmsKeyId"]); } if (output["throughput"] !== undefined) { - contents.Throughput = __strictParseInt(output["throughput"]) as number; + contents.Throughput = __strictParseInt32(output["throughput"]) as number; } if (output["outpostArn"] !== undefined) { contents.OutpostArn = __expectString(output["outpostArn"]); @@ -58098,22 +58099,22 @@ const deserializeAws_ec2EbsOptimizedInfo = (output: any, context: __SerdeContext MaximumIops: undefined, }; if (output["baselineBandwidthInMbps"] !== undefined) { - contents.BaselineBandwidthInMbps = __strictParseInt(output["baselineBandwidthInMbps"]) as number; + contents.BaselineBandwidthInMbps = __strictParseInt32(output["baselineBandwidthInMbps"]) as number; } if (output["baselineThroughputInMBps"] !== undefined) { contents.BaselineThroughputInMBps = __strictParseFloat(output["baselineThroughputInMBps"]) as number; } if (output["baselineIops"] !== undefined) { - contents.BaselineIops = __strictParseInt(output["baselineIops"]) as number; + contents.BaselineIops = __strictParseInt32(output["baselineIops"]) as number; } if (output["maximumBandwidthInMbps"] !== undefined) { - contents.MaximumBandwidthInMbps = __strictParseInt(output["maximumBandwidthInMbps"]) as number; + contents.MaximumBandwidthInMbps = __strictParseInt32(output["maximumBandwidthInMbps"]) as number; } if (output["maximumThroughputInMBps"] !== undefined) { contents.MaximumThroughputInMBps = __strictParseFloat(output["maximumThroughputInMBps"]) as number; } if (output["maximumIops"] !== undefined) { - contents.MaximumIops = __strictParseInt(output["maximumIops"]) as number; + contents.MaximumIops = __strictParseInt32(output["maximumIops"]) as number; } return contents; }; @@ -58123,7 +58124,7 @@ const deserializeAws_ec2EfaInfo = (output: any, context: __SerdeContext): EfaInf MaximumEfaInterfaces: undefined, }; if (output["maximumEfaInterfaces"] !== undefined) { - contents.MaximumEfaInterfaces = __strictParseInt(output["maximumEfaInterfaces"]) as number; + contents.MaximumEfaInterfaces = __strictParseInt32(output["maximumEfaInterfaces"]) as number; } return contents; }; @@ -58762,7 +58763,7 @@ const deserializeAws_ec2Explanation = (output: any, context: __SerdeContext): Ex ); } if (output["loadBalancerListenerPort"] !== undefined) { - contents.LoadBalancerListenerPort = __strictParseInt(output["loadBalancerListenerPort"]) as number; + contents.LoadBalancerListenerPort = __strictParseInt32(output["loadBalancerListenerPort"]) as number; } if (output["loadBalancerTarget"] !== undefined) { contents.LoadBalancerTarget = deserializeAws_ec2AnalysisLoadBalancerTarget(output["loadBalancerTarget"], context); @@ -58783,7 +58784,7 @@ const deserializeAws_ec2Explanation = (output: any, context: __SerdeContext): Ex ); } if (output["loadBalancerTargetPort"] !== undefined) { - contents.LoadBalancerTargetPort = __strictParseInt(output["loadBalancerTargetPort"]) as number; + contents.LoadBalancerTargetPort = __strictParseInt32(output["loadBalancerTargetPort"]) as number; } if (output["elasticLoadBalancerListener"] !== undefined) { contents.ElasticLoadBalancerListener = deserializeAws_ec2AnalysisComponent( @@ -58807,7 +58808,7 @@ const deserializeAws_ec2Explanation = (output: any, context: __SerdeContext): Ex contents.VpcPeeringConnection = deserializeAws_ec2AnalysisComponent(output["vpcPeeringConnection"], context); } if (output["port"] !== undefined) { - contents.Port = __strictParseInt(output["port"]) as number; + contents.Port = __strictParseInt32(output["port"]) as number; } if (output.portRangeSet === "") { contents.PortRanges = []; @@ -59482,7 +59483,7 @@ const deserializeAws_ec2FlowLog = (output: any, context: __SerdeContext): FlowLo contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); } if (output["maxAggregationInterval"] !== undefined) { - contents.MaxAggregationInterval = __strictParseInt(output["maxAggregationInterval"]) as number; + contents.MaxAggregationInterval = __strictParseInt32(output["maxAggregationInterval"]) as number; } return contents; }; @@ -59512,7 +59513,7 @@ const deserializeAws_ec2FpgaDeviceInfo = (output: any, context: __SerdeContext): contents.Manufacturer = __expectString(output["manufacturer"]); } if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } if (output["memoryInfo"] !== undefined) { contents.MemoryInfo = deserializeAws_ec2FpgaDeviceMemoryInfo(output["memoryInfo"], context); @@ -59536,7 +59537,7 @@ const deserializeAws_ec2FpgaDeviceMemoryInfo = (output: any, context: __SerdeCon SizeInMiB: undefined, }; if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseInt(output["sizeInMiB"]) as number; + contents.SizeInMiB = __strictParseInt32(output["sizeInMiB"]) as number; } return contents; }; @@ -59691,7 +59692,7 @@ const deserializeAws_ec2FpgaInfo = (output: any, context: __SerdeContext): FpgaI contents.Fpgas = deserializeAws_ec2FpgaDeviceInfoList(__getArrayIfSingleItem(output["fpgas"]["item"]), context); } if (output["totalFpgaMemoryInMiB"] !== undefined) { - contents.TotalFpgaMemoryInMiB = __strictParseInt(output["totalFpgaMemoryInMiB"]) as number; + contents.TotalFpgaMemoryInMiB = __strictParseInt32(output["totalFpgaMemoryInMiB"]) as number; } return contents; }; @@ -59761,10 +59762,10 @@ const deserializeAws_ec2GetCapacityReservationUsageResult = ( contents.InstanceType = __expectString(output["instanceType"]); } if (output["totalInstanceCount"] !== undefined) { - contents.TotalInstanceCount = __strictParseInt(output["totalInstanceCount"]) as number; + contents.TotalInstanceCount = __strictParseInt32(output["totalInstanceCount"]) as number; } if (output["availableInstanceCount"] !== undefined) { - contents.AvailableInstanceCount = __strictParseInt(output["availableInstanceCount"]) as number; + contents.AvailableInstanceCount = __strictParseInt32(output["availableInstanceCount"]) as number; } if (output["state"] !== undefined) { contents.State = __expectString(output["state"]); @@ -60285,7 +60286,7 @@ const deserializeAws_ec2GpuDeviceInfo = (output: any, context: __SerdeContext): contents.Manufacturer = __expectString(output["manufacturer"]); } if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } if (output["memoryInfo"] !== undefined) { contents.MemoryInfo = deserializeAws_ec2GpuDeviceMemoryInfo(output["memoryInfo"], context); @@ -60309,7 +60310,7 @@ const deserializeAws_ec2GpuDeviceMemoryInfo = (output: any, context: __SerdeCont SizeInMiB: undefined, }; if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseInt(output["sizeInMiB"]) as number; + contents.SizeInMiB = __strictParseInt32(output["sizeInMiB"]) as number; } return contents; }; @@ -60326,7 +60327,7 @@ const deserializeAws_ec2GpuInfo = (output: any, context: __SerdeContext): GpuInf contents.Gpus = deserializeAws_ec2GpuDeviceInfoList(__getArrayIfSingleItem(output["gpus"]["item"]), context); } if (output["totalGpuMemoryInMiB"] !== undefined) { - contents.TotalGpuMemoryInMiB = __strictParseInt(output["totalGpuMemoryInMiB"]) as number; + contents.TotalGpuMemoryInMiB = __strictParseInt32(output["totalGpuMemoryInMiB"]) as number; } return contents; }; @@ -60583,7 +60584,7 @@ const deserializeAws_ec2HostOffering = (output: any, context: __SerdeContext): H contents.CurrencyCode = __expectString(output["currencyCode"]); } if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt(output["duration"]) as number; + contents.Duration = __strictParseInt32(output["duration"]) as number; } if (output["hourlyPrice"] !== undefined) { contents.HourlyPrice = __expectString(output["hourlyPrice"]); @@ -60623,7 +60624,7 @@ const deserializeAws_ec2HostProperties = (output: any, context: __SerdeContext): TotalVCpus: undefined, }; if (output["cores"] !== undefined) { - contents.Cores = __strictParseInt(output["cores"]) as number; + contents.Cores = __strictParseInt32(output["cores"]) as number; } if (output["instanceType"] !== undefined) { contents.InstanceType = __expectString(output["instanceType"]); @@ -60632,10 +60633,10 @@ const deserializeAws_ec2HostProperties = (output: any, context: __SerdeContext): contents.InstanceFamily = __expectString(output["instanceFamily"]); } if (output["sockets"] !== undefined) { - contents.Sockets = __strictParseInt(output["sockets"]) as number; + contents.Sockets = __strictParseInt32(output["sockets"]) as number; } if (output["totalVCpus"] !== undefined) { - contents.TotalVCpus = __strictParseInt(output["totalVCpus"]) as number; + contents.TotalVCpus = __strictParseInt32(output["totalVCpus"]) as number; } return contents; }; @@ -60658,13 +60659,13 @@ const deserializeAws_ec2HostReservation = (output: any, context: __SerdeContext) Tags: undefined, }; if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } if (output["currencyCode"] !== undefined) { contents.CurrencyCode = __expectString(output["currencyCode"]); } if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt(output["duration"]) as number; + contents.Duration = __strictParseInt32(output["duration"]) as number; } if (output["end"] !== undefined) { contents.End = new Date(output["end"]); @@ -60802,10 +60803,10 @@ const deserializeAws_ec2IcmpTypeCode = (output: any, context: __SerdeContext): I Type: undefined, }; if (output["code"] !== undefined) { - contents.Code = __strictParseInt(output["code"]) as number; + contents.Code = __strictParseInt32(output["code"]) as number; } if (output["type"] !== undefined) { - contents.Type = __strictParseInt(output["type"]) as number; + contents.Type = __strictParseInt32(output["type"]) as number; } return contents; }; @@ -61343,7 +61344,7 @@ const deserializeAws_ec2ImportInstanceVolumeDetailItem = ( contents.AvailabilityZone = __expectString(output["availabilityZone"]); } if (output["bytesConverted"] !== undefined) { - contents.BytesConverted = __strictParseInt(output["bytesConverted"]) as number; + contents.BytesConverted = __strictParseLong(output["bytesConverted"]) as number; } if (output["description"] !== undefined) { contents.Description = __expectString(output["description"]); @@ -61485,7 +61486,7 @@ const deserializeAws_ec2ImportVolumeTaskDetails = (output: any, context: __Serde contents.AvailabilityZone = __expectString(output["availabilityZone"]); } if (output["bytesConverted"] !== undefined) { - contents.BytesConverted = __strictParseInt(output["bytesConverted"]) as number; + contents.BytesConverted = __strictParseLong(output["bytesConverted"]) as number; } if (output["description"] !== undefined) { contents.Description = __expectString(output["description"]); @@ -61522,7 +61523,7 @@ const deserializeAws_ec2InferenceDeviceInfo = (output: any, context: __SerdeCont Manufacturer: undefined, }; if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } if (output["name"] !== undefined) { contents.Name = __expectString(output["name"]); @@ -61608,7 +61609,7 @@ const deserializeAws_ec2Instance = (output: any, context: __SerdeContext): Insta BootMode: undefined, }; if (output["amiLaunchIndex"] !== undefined) { - contents.AmiLaunchIndex = __strictParseInt(output["amiLaunchIndex"]) as number; + contents.AmiLaunchIndex = __strictParseInt32(output["amiLaunchIndex"]) as number; } if (output["imageId"] !== undefined) { contents.ImageId = __expectString(output["imageId"]); @@ -61934,13 +61935,13 @@ const deserializeAws_ec2InstanceCapacity = (output: any, context: __SerdeContext TotalCapacity: undefined, }; if (output["availableCapacity"] !== undefined) { - contents.AvailableCapacity = __strictParseInt(output["availableCapacity"]) as number; + contents.AvailableCapacity = __strictParseInt32(output["availableCapacity"]) as number; } if (output["instanceType"] !== undefined) { contents.InstanceType = __expectString(output["instanceType"]); } if (output["totalCapacity"] !== undefined) { - contents.TotalCapacity = __strictParseInt(output["totalCapacity"]) as number; + contents.TotalCapacity = __strictParseInt32(output["totalCapacity"]) as number; } return contents; }; @@ -61951,7 +61952,7 @@ const deserializeAws_ec2InstanceCount = (output: any, context: __SerdeContext): State: undefined, }; if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt(output["instanceCount"]) as number; + contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; } if (output["state"] !== undefined) { contents.State = __expectString(output["state"]); @@ -62125,13 +62126,13 @@ const deserializeAws_ec2InstanceEventWindowTimeRange = ( contents.StartWeekDay = __expectString(output["startWeekDay"]); } if (output["startHour"] !== undefined) { - contents.StartHour = __strictParseInt(output["startHour"]) as number; + contents.StartHour = __strictParseInt32(output["startHour"]) as number; } if (output["endWeekDay"] !== undefined) { contents.EndWeekDay = __expectString(output["endWeekDay"]); } if (output["endHour"] !== undefined) { - contents.EndHour = __strictParseInt(output["endHour"]) as number; + contents.EndHour = __strictParseInt32(output["endHour"]) as number; } return contents; }; @@ -62305,7 +62306,7 @@ const deserializeAws_ec2InstanceMetadataOptionsResponse = ( contents.HttpTokens = __expectString(output["httpTokens"]); } if (output["httpPutResponseHopLimit"] !== undefined) { - contents.HttpPutResponseHopLimit = __strictParseInt(output["httpPutResponseHopLimit"]) as number; + contents.HttpPutResponseHopLimit = __strictParseInt32(output["httpPutResponseHopLimit"]) as number; } if (output["httpEndpoint"] !== undefined) { contents.HttpEndpoint = __expectString(output["httpEndpoint"]); @@ -62493,13 +62494,13 @@ const deserializeAws_ec2InstanceNetworkInterfaceAttachment = ( contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); } if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt(output["deviceIndex"]) as number; + contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; } if (output["status"] !== undefined) { contents.Status = __expectString(output["status"]); } if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt(output["networkCardIndex"]) as number; + contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; } return contents; }; @@ -62553,7 +62554,7 @@ const deserializeAws_ec2InstanceNetworkInterfaceSpecification = ( contents.Description = __expectString(output["description"]); } if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt(output["deviceIndex"]) as number; + contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; } if (output.SecurityGroupId === "") { contents.Groups = []; @@ -62565,7 +62566,7 @@ const deserializeAws_ec2InstanceNetworkInterfaceSpecification = ( ); } if (output["ipv6AddressCount"] !== undefined) { - contents.Ipv6AddressCount = __strictParseInt(output["ipv6AddressCount"]) as number; + contents.Ipv6AddressCount = __strictParseInt32(output["ipv6AddressCount"]) as number; } if (output.ipv6AddressesSet === "") { contents.Ipv6Addresses = []; @@ -62592,7 +62593,7 @@ const deserializeAws_ec2InstanceNetworkInterfaceSpecification = ( ); } if (output["secondaryPrivateIpAddressCount"] !== undefined) { - contents.SecondaryPrivateIpAddressCount = __strictParseInt(output["secondaryPrivateIpAddressCount"]) as number; + contents.SecondaryPrivateIpAddressCount = __strictParseInt32(output["secondaryPrivateIpAddressCount"]) as number; } if (output["subnetId"] !== undefined) { contents.SubnetId = __expectString(output["subnetId"]); @@ -62604,7 +62605,7 @@ const deserializeAws_ec2InstanceNetworkInterfaceSpecification = ( contents.InterfaceType = __expectString(output["InterfaceType"]); } if (output["NetworkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt(output["NetworkCardIndex"]) as number; + contents.NetworkCardIndex = __strictParseInt32(output["NetworkCardIndex"]) as number; } if (output.Ipv4Prefix === "") { contents.Ipv4Prefixes = []; @@ -62616,7 +62617,7 @@ const deserializeAws_ec2InstanceNetworkInterfaceSpecification = ( ); } if (output["Ipv4PrefixCount"] !== undefined) { - contents.Ipv4PrefixCount = __strictParseInt(output["Ipv4PrefixCount"]) as number; + contents.Ipv4PrefixCount = __strictParseInt32(output["Ipv4PrefixCount"]) as number; } if (output.Ipv6Prefix === "") { contents.Ipv6Prefixes = []; @@ -62628,7 +62629,7 @@ const deserializeAws_ec2InstanceNetworkInterfaceSpecification = ( ); } if (output["Ipv6PrefixCount"] !== undefined) { - contents.Ipv6PrefixCount = __strictParseInt(output["Ipv6PrefixCount"]) as number; + contents.Ipv6PrefixCount = __strictParseInt32(output["Ipv6PrefixCount"]) as number; } return contents; }; @@ -62689,7 +62690,7 @@ const deserializeAws_ec2InstanceState = (output: any, context: __SerdeContext): Name: undefined, }; if (output["code"] !== undefined) { - contents.Code = __strictParseInt(output["code"]) as number; + contents.Code = __strictParseInt32(output["code"]) as number; } if (output["name"] !== undefined) { contents.Name = __expectString(output["name"]); @@ -62874,7 +62875,7 @@ const deserializeAws_ec2InstanceStorageInfo = (output: any, context: __SerdeCont NvmeSupport: undefined, }; if (output["totalSizeInGB"] !== undefined) { - contents.TotalSizeInGB = __strictParseInt(output["totalSizeInGB"]) as number; + contents.TotalSizeInGB = __strictParseLong(output["totalSizeInGB"]) as number; } if (output.disks === "") { contents.Disks = []; @@ -63103,7 +63104,7 @@ const deserializeAws_ec2InstanceUsage = (output: any, context: __SerdeContext): contents.AccountId = __expectString(output["accountId"]); } if (output["usedInstanceCount"] !== undefined) { - contents.UsedInstanceCount = __strictParseInt(output["usedInstanceCount"]) as number; + contents.UsedInstanceCount = __strictParseInt32(output["usedInstanceCount"]) as number; } return contents; }; @@ -63214,7 +63215,7 @@ const deserializeAws_ec2IpPermission = (output: any, context: __SerdeContext): I UserIdGroupPairs: undefined, }; if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt(output["fromPort"]) as number; + contents.FromPort = __strictParseInt32(output["fromPort"]) as number; } if (output["ipProtocol"] !== undefined) { contents.IpProtocol = __expectString(output["ipProtocol"]); @@ -63244,7 +63245,7 @@ const deserializeAws_ec2IpPermission = (output: any, context: __SerdeContext): I ); } if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt(output["toPort"]) as number; + contents.ToPort = __strictParseInt32(output["toPort"]) as number; } if (output.groups === "") { contents.UserIdGroupPairs = []; @@ -63813,10 +63814,10 @@ const deserializeAws_ec2LaunchTemplate = (output: any, context: __SerdeContext): contents.CreatedBy = __expectString(output["createdBy"]); } if (output["defaultVersionNumber"] !== undefined) { - contents.DefaultVersionNumber = __strictParseInt(output["defaultVersionNumber"]) as number; + contents.DefaultVersionNumber = __strictParseLong(output["defaultVersionNumber"]) as number; } if (output["latestVersionNumber"] !== undefined) { - contents.LatestVersionNumber = __strictParseInt(output["latestVersionNumber"]) as number; + contents.LatestVersionNumber = __strictParseLong(output["latestVersionNumber"]) as number; } if (output.tagSet === "") { contents.Tags = []; @@ -63946,10 +63947,10 @@ const deserializeAws_ec2LaunchTemplateCpuOptions = (output: any, context: __Serd ThreadsPerCore: undefined, }; if (output["coreCount"] !== undefined) { - contents.CoreCount = __strictParseInt(output["coreCount"]) as number; + contents.CoreCount = __strictParseInt32(output["coreCount"]) as number; } if (output["threadsPerCore"] !== undefined) { - contents.ThreadsPerCore = __strictParseInt(output["threadsPerCore"]) as number; + contents.ThreadsPerCore = __strictParseInt32(output["threadsPerCore"]) as number; } return contents; }; @@ -63975,7 +63976,7 @@ const deserializeAws_ec2LaunchTemplateEbsBlockDevice = ( contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); } if (output["iops"] !== undefined) { - contents.Iops = __strictParseInt(output["iops"]) as number; + contents.Iops = __strictParseInt32(output["iops"]) as number; } if (output["kmsKeyId"] !== undefined) { contents.KmsKeyId = __expectString(output["kmsKeyId"]); @@ -63984,13 +63985,13 @@ const deserializeAws_ec2LaunchTemplateEbsBlockDevice = ( contents.SnapshotId = __expectString(output["snapshotId"]); } if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt(output["volumeSize"]) as number; + contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; } if (output["volumeType"] !== undefined) { contents.VolumeType = __expectString(output["volumeType"]); } if (output["throughput"] !== undefined) { - contents.Throughput = __strictParseInt(output["throughput"]) as number; + contents.Throughput = __strictParseInt32(output["throughput"]) as number; } return contents; }; @@ -64007,7 +64008,7 @@ const deserializeAws_ec2LaunchTemplateElasticInferenceAcceleratorResponse = ( contents.Type = __expectString(output["type"]); } if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } return contents; }; @@ -64103,7 +64104,7 @@ const deserializeAws_ec2LaunchTemplateInstanceMetadataOptions = ( contents.HttpTokens = __expectString(output["httpTokens"]); } if (output["httpPutResponseHopLimit"] !== undefined) { - contents.HttpPutResponseHopLimit = __strictParseInt(output["httpPutResponseHopLimit"]) as number; + contents.HttpPutResponseHopLimit = __strictParseInt32(output["httpPutResponseHopLimit"]) as number; } if (output["httpEndpoint"] !== undefined) { contents.HttpEndpoint = __expectString(output["httpEndpoint"]); @@ -64149,7 +64150,7 @@ const deserializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecification = ( contents.Description = __expectString(output["description"]); } if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt(output["deviceIndex"]) as number; + contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; } if (output.groupSet === "") { contents.Groups = []; @@ -64164,7 +64165,7 @@ const deserializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecification = ( contents.InterfaceType = __expectString(output["interfaceType"]); } if (output["ipv6AddressCount"] !== undefined) { - contents.Ipv6AddressCount = __strictParseInt(output["ipv6AddressCount"]) as number; + contents.Ipv6AddressCount = __strictParseInt32(output["ipv6AddressCount"]) as number; } if (output.ipv6AddressesSet === "") { contents.Ipv6Addresses = []; @@ -64191,13 +64192,13 @@ const deserializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecification = ( ); } if (output["secondaryPrivateIpAddressCount"] !== undefined) { - contents.SecondaryPrivateIpAddressCount = __strictParseInt(output["secondaryPrivateIpAddressCount"]) as number; + contents.SecondaryPrivateIpAddressCount = __strictParseInt32(output["secondaryPrivateIpAddressCount"]) as number; } if (output["subnetId"] !== undefined) { contents.SubnetId = __expectString(output["subnetId"]); } if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt(output["networkCardIndex"]) as number; + contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; } if (output.ipv4PrefixSet === "") { contents.Ipv4Prefixes = []; @@ -64209,7 +64210,7 @@ const deserializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecification = ( ); } if (output["ipv4PrefixCount"] !== undefined) { - contents.Ipv4PrefixCount = __strictParseInt(output["ipv4PrefixCount"]) as number; + contents.Ipv4PrefixCount = __strictParseInt32(output["ipv4PrefixCount"]) as number; } if (output.ipv6PrefixSet === "") { contents.Ipv6Prefixes = []; @@ -64221,7 +64222,7 @@ const deserializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecification = ( ); } if (output["ipv6PrefixCount"] !== undefined) { - contents.Ipv6PrefixCount = __strictParseInt(output["ipv6PrefixCount"]) as number; + contents.Ipv6PrefixCount = __strictParseInt32(output["ipv6PrefixCount"]) as number; } return contents; }; @@ -64344,7 +64345,7 @@ const deserializeAws_ec2LaunchTemplatePlacement = (output: any, context: __Serde contents.HostResourceGroupArn = __expectString(output["hostResourceGroupArn"]); } if (output["partitionNumber"] !== undefined) { - contents.PartitionNumber = __strictParseInt(output["partitionNumber"]) as number; + contents.PartitionNumber = __strictParseInt32(output["partitionNumber"]) as number; } return contents; }; @@ -64391,7 +64392,7 @@ const deserializeAws_ec2LaunchTemplateSpotMarketOptions = ( contents.SpotInstanceType = __expectString(output["spotInstanceType"]); } if (output["blockDurationMinutes"] !== undefined) { - contents.BlockDurationMinutes = __strictParseInt(output["blockDurationMinutes"]) as number; + contents.BlockDurationMinutes = __strictParseInt32(output["blockDurationMinutes"]) as number; } if (output["validUntil"] !== undefined) { contents.ValidUntil = new Date(output["validUntil"]); @@ -64454,7 +64455,7 @@ const deserializeAws_ec2LaunchTemplateVersion = (output: any, context: __SerdeCo contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); } if (output["versionNumber"] !== undefined) { - contents.VersionNumber = __strictParseInt(output["versionNumber"]) as number; + contents.VersionNumber = __strictParseLong(output["versionNumber"]) as number; } if (output["versionDescription"] !== undefined) { contents.VersionDescription = __expectString(output["versionDescription"]); @@ -64824,7 +64825,7 @@ const deserializeAws_ec2LocalGatewayVirtualInterface = ( contents.LocalGatewayId = __expectString(output["localGatewayId"]); } if (output["vlan"] !== undefined) { - contents.Vlan = __strictParseInt(output["vlan"]) as number; + contents.Vlan = __strictParseInt32(output["vlan"]) as number; } if (output["localAddress"] !== undefined) { contents.LocalAddress = __expectString(output["localAddress"]); @@ -64833,10 +64834,10 @@ const deserializeAws_ec2LocalGatewayVirtualInterface = ( contents.PeerAddress = __expectString(output["peerAddress"]); } if (output["localBgpAsn"] !== undefined) { - contents.LocalBgpAsn = __strictParseInt(output["localBgpAsn"]) as number; + contents.LocalBgpAsn = __strictParseInt32(output["localBgpAsn"]) as number; } if (output["peerBgpAsn"] !== undefined) { - contents.PeerBgpAsn = __strictParseInt(output["peerBgpAsn"]) as number; + contents.PeerBgpAsn = __strictParseInt32(output["peerBgpAsn"]) as number; } if (output["ownerId"] !== undefined) { contents.OwnerId = __expectString(output["ownerId"]); @@ -64962,10 +64963,10 @@ const deserializeAws_ec2ManagedPrefixList = (output: any, context: __SerdeContex contents.PrefixListName = __expectString(output["prefixListName"]); } if (output["maxEntries"] !== undefined) { - contents.MaxEntries = __strictParseInt(output["maxEntries"]) as number; + contents.MaxEntries = __strictParseInt32(output["maxEntries"]) as number; } if (output["version"] !== undefined) { - contents.Version = __strictParseInt(output["version"]) as number; + contents.Version = __strictParseLong(output["version"]) as number; } if (output.tagSet === "") { contents.Tags = []; @@ -64995,7 +64996,7 @@ const deserializeAws_ec2MemoryInfo = (output: any, context: __SerdeContext): Mem SizeInMiB: undefined, }; if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseInt(output["sizeInMiB"]) as number; + contents.SizeInMiB = __strictParseLong(output["sizeInMiB"]) as number; } return contents; }; @@ -65816,7 +65817,7 @@ const deserializeAws_ec2NetworkAclEntry = (output: any, context: __SerdeContext) contents.RuleAction = __expectString(output["ruleAction"]); } if (output["ruleNumber"] !== undefined) { - contents.RuleNumber = __strictParseInt(output["ruleNumber"]) as number; + contents.RuleNumber = __strictParseInt32(output["ruleNumber"]) as number; } return contents; }; @@ -65850,13 +65851,13 @@ const deserializeAws_ec2NetworkCardInfo = (output: any, context: __SerdeContext) MaximumNetworkInterfaces: undefined, }; if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt(output["networkCardIndex"]) as number; + contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; } if (output["networkPerformance"] !== undefined) { contents.NetworkPerformance = __expectString(output["networkPerformance"]); } if (output["maximumNetworkInterfaces"] !== undefined) { - contents.MaximumNetworkInterfaces = __strictParseInt(output["maximumNetworkInterfaces"]) as number; + contents.MaximumNetworkInterfaces = __strictParseInt32(output["maximumNetworkInterfaces"]) as number; } return contents; }; @@ -65890,13 +65891,13 @@ const deserializeAws_ec2NetworkInfo = (output: any, context: __SerdeContext): Ne contents.NetworkPerformance = __expectString(output["networkPerformance"]); } if (output["maximumNetworkInterfaces"] !== undefined) { - contents.MaximumNetworkInterfaces = __strictParseInt(output["maximumNetworkInterfaces"]) as number; + contents.MaximumNetworkInterfaces = __strictParseInt32(output["maximumNetworkInterfaces"]) as number; } if (output["maximumNetworkCards"] !== undefined) { - contents.MaximumNetworkCards = __strictParseInt(output["maximumNetworkCards"]) as number; + contents.MaximumNetworkCards = __strictParseInt32(output["maximumNetworkCards"]) as number; } if (output["defaultNetworkCardIndex"] !== undefined) { - contents.DefaultNetworkCardIndex = __strictParseInt(output["defaultNetworkCardIndex"]) as number; + contents.DefaultNetworkCardIndex = __strictParseInt32(output["defaultNetworkCardIndex"]) as number; } if (output.networkCards === "") { contents.NetworkCards = []; @@ -65908,10 +65909,10 @@ const deserializeAws_ec2NetworkInfo = (output: any, context: __SerdeContext): Ne ); } if (output["ipv4AddressesPerInterface"] !== undefined) { - contents.Ipv4AddressesPerInterface = __strictParseInt(output["ipv4AddressesPerInterface"]) as number; + contents.Ipv4AddressesPerInterface = __strictParseInt32(output["ipv4AddressesPerInterface"]) as number; } if (output["ipv6AddressesPerInterface"] !== undefined) { - contents.Ipv6AddressesPerInterface = __strictParseInt(output["ipv6AddressesPerInterface"]) as number; + contents.Ipv6AddressesPerInterface = __strictParseInt32(output["ipv6AddressesPerInterface"]) as number; } if (output["ipv6Supported"] !== undefined) { contents.Ipv6Supported = __parseBoolean(output["ipv6Supported"]); @@ -66071,7 +66072,7 @@ const deserializeAws_ec2NetworkInsightsPath = (output: any, context: __SerdeCont contents.Protocol = __expectString(output["protocol"]); } if (output["destinationPort"] !== undefined) { - contents.DestinationPort = __strictParseInt(output["destinationPort"]) as number; + contents.DestinationPort = __strictParseInt32(output["destinationPort"]) as number; } if (output.tagSet === "") { contents.Tags = []; @@ -66285,10 +66286,10 @@ const deserializeAws_ec2NetworkInterfaceAttachment = ( contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); } if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt(output["deviceIndex"]) as number; + contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; } if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt(output["networkCardIndex"]) as number; + contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; } if (output["instanceId"] !== undefined) { contents.InstanceId = __expectString(output["instanceId"]); @@ -66450,7 +66451,7 @@ const deserializeAws_ec2OccurrenceDaySet = (output: any, context: __SerdeContext if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; @@ -66479,7 +66480,7 @@ const deserializeAws_ec2OnDemandOptions = (output: any, context: __SerdeContext) contents.SingleAvailabilityZone = __parseBoolean(output["singleAvailabilityZone"]); } if (output["minTargetCapacity"] !== undefined) { - contents.MinTargetCapacity = __strictParseInt(output["minTargetCapacity"]) as number; + contents.MinTargetCapacity = __strictParseInt32(output["minTargetCapacity"]) as number; } if (output["maxTotalPrice"] !== undefined) { contents.MaxTotalPrice = __expectString(output["maxTotalPrice"]); @@ -66502,7 +66503,7 @@ const deserializeAws_ec2PathComponent = (output: any, context: __SerdeContext): Vpc: undefined, }; if (output["sequenceNumber"] !== undefined) { - contents.SequenceNumber = __strictParseInt(output["sequenceNumber"]) as number; + contents.SequenceNumber = __strictParseInt32(output["sequenceNumber"]) as number; } if (output["aclRule"] !== undefined) { contents.AclRule = deserializeAws_ec2AnalysisAclRule(output["aclRule"], context); @@ -66646,7 +66647,7 @@ const deserializeAws_ec2Phase1DHGroupNumbersListValue = ( Value: undefined, }; if (output["value"] !== undefined) { - contents.Value = __strictParseInt(output["value"]) as number; + contents.Value = __strictParseInt32(output["value"]) as number; } return contents; }; @@ -66727,7 +66728,7 @@ const deserializeAws_ec2Phase2DHGroupNumbersListValue = ( Value: undefined, }; if (output["value"] !== undefined) { - contents.Value = __strictParseInt(output["value"]) as number; + contents.Value = __strictParseInt32(output["value"]) as number; } return contents; }; @@ -66807,7 +66808,7 @@ const deserializeAws_ec2Placement = (output: any, context: __SerdeContext): Plac contents.GroupName = __expectString(output["groupName"]); } if (output["partitionNumber"] !== undefined) { - contents.PartitionNumber = __strictParseInt(output["partitionNumber"]) as number; + contents.PartitionNumber = __strictParseInt32(output["partitionNumber"]) as number; } if (output["hostId"] !== undefined) { contents.HostId = __expectString(output["hostId"]); @@ -66843,7 +66844,7 @@ const deserializeAws_ec2PlacementGroup = (output: any, context: __SerdeContext): contents.Strategy = __expectString(output["strategy"]); } if (output["partitionCount"] !== undefined) { - contents.PartitionCount = __strictParseInt(output["partitionCount"]) as number; + contents.PartitionCount = __strictParseInt32(output["partitionCount"]) as number; } if (output["groupId"] !== undefined) { contents.GroupId = __expectString(output["groupId"]); @@ -66935,10 +66936,10 @@ const deserializeAws_ec2PortRange = (output: any, context: __SerdeContext): Port To: undefined, }; if (output["from"] !== undefined) { - contents.From = __strictParseInt(output["from"]) as number; + contents.From = __strictParseInt32(output["from"]) as number; } if (output["to"] !== undefined) { - contents.To = __strictParseInt(output["to"]) as number; + contents.To = __strictParseInt32(output["to"]) as number; } return contents; }; @@ -67089,7 +67090,7 @@ const deserializeAws_ec2PriceSchedule = (output: any, context: __SerdeContext): contents.Price = __strictParseFloat(output["price"]) as number; } if (output["term"] !== undefined) { - contents.Term = __strictParseInt(output["term"]) as number; + contents.Term = __strictParseLong(output["term"]) as number; } return contents; }; @@ -67111,7 +67112,7 @@ const deserializeAws_ec2PricingDetail = (output: any, context: __SerdeContext): Price: undefined, }; if (output["count"] !== undefined) { - contents.Count = __strictParseInt(output["count"]) as number; + contents.Count = __strictParseInt32(output["count"]) as number; } if (output["price"] !== undefined) { contents.Price = __strictParseFloat(output["price"]) as number; @@ -67381,10 +67382,10 @@ const deserializeAws_ec2PublicIpv4Pool = (output: any, context: __SerdeContext): ); } if (output["totalAddressCount"] !== undefined) { - contents.TotalAddressCount = __strictParseInt(output["totalAddressCount"]) as number; + contents.TotalAddressCount = __strictParseInt32(output["totalAddressCount"]) as number; } if (output["totalAvailableAddressCount"] !== undefined) { - contents.TotalAvailableAddressCount = __strictParseInt(output["totalAvailableAddressCount"]) as number; + contents.TotalAvailableAddressCount = __strictParseInt32(output["totalAvailableAddressCount"]) as number; } if (output["networkBorderGroup"] !== undefined) { contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); @@ -67412,10 +67413,10 @@ const deserializeAws_ec2PublicIpv4PoolRange = (output: any, context: __SerdeCont contents.LastAddress = __expectString(output["lastAddress"]); } if (output["addressCount"] !== undefined) { - contents.AddressCount = __strictParseInt(output["addressCount"]) as number; + contents.AddressCount = __strictParseInt32(output["addressCount"]) as number; } if (output["availableAddressCount"] !== undefined) { - contents.AvailableAddressCount = __strictParseInt(output["availableAddressCount"]) as number; + contents.AvailableAddressCount = __strictParseInt32(output["availableAddressCount"]) as number; } return contents; }; @@ -67457,7 +67458,7 @@ const deserializeAws_ec2Purchase = (output: any, context: __SerdeContext): Purch contents.CurrencyCode = __expectString(output["currencyCode"]); } if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt(output["duration"]) as number; + contents.Duration = __strictParseInt32(output["duration"]) as number; } if (output.hostIdSet === "") { contents.HostIdSet = []; @@ -68071,7 +68072,7 @@ const deserializeAws_ec2ReservedInstances = (output: any, context: __SerdeContex contents.AvailabilityZone = __expectString(output["availabilityZone"]); } if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt(output["duration"]) as number; + contents.Duration = __strictParseLong(output["duration"]) as number; } if (output["end"] !== undefined) { contents.End = new Date(output["end"]); @@ -68080,7 +68081,7 @@ const deserializeAws_ec2ReservedInstances = (output: any, context: __SerdeContex contents.FixedPrice = __strictParseFloat(output["fixedPrice"]) as number; } if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt(output["instanceCount"]) as number; + contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; } if (output["instanceType"] !== undefined) { contents.InstanceType = __expectString(output["instanceType"]); @@ -68148,7 +68149,7 @@ const deserializeAws_ec2ReservedInstancesConfiguration = ( contents.AvailabilityZone = __expectString(output["availabilityZone"]); } if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt(output["instanceCount"]) as number; + contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; } if (output["instanceType"] !== undefined) { contents.InstanceType = __expectString(output["instanceType"]); @@ -68388,7 +68389,7 @@ const deserializeAws_ec2ReservedInstancesOffering = ( contents.AvailabilityZone = __expectString(output["availabilityZone"]); } if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt(output["duration"]) as number; + contents.Duration = __strictParseLong(output["duration"]) as number; } if (output["fixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["fixedPrice"]) as number; @@ -69115,7 +69116,7 @@ const deserializeAws_ec2ScheduledInstance = (output: any, context: __SerdeContex contents.HourlyPrice = __expectString(output["hourlyPrice"]); } if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt(output["instanceCount"]) as number; + contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; } if (output["instanceType"] !== undefined) { contents.InstanceType = __expectString(output["instanceType"]); @@ -69139,7 +69140,7 @@ const deserializeAws_ec2ScheduledInstance = (output: any, context: __SerdeContex contents.ScheduledInstanceId = __expectString(output["scheduledInstanceId"]); } if (output["slotDurationInHours"] !== undefined) { - contents.SlotDurationInHours = __strictParseInt(output["slotDurationInHours"]) as number; + contents.SlotDurationInHours = __strictParseInt32(output["slotDurationInHours"]) as number; } if (output["termEndDate"] !== undefined) { contents.TermEndDate = new Date(output["termEndDate"]); @@ -69148,7 +69149,7 @@ const deserializeAws_ec2ScheduledInstance = (output: any, context: __SerdeContex contents.TermStartDate = new Date(output["termStartDate"]); } if (output["totalScheduledInstanceHours"] !== undefined) { - contents.TotalScheduledInstanceHours = __strictParseInt(output["totalScheduledInstanceHours"]) as number; + contents.TotalScheduledInstanceHours = __strictParseInt32(output["totalScheduledInstanceHours"]) as number; } return contents; }; @@ -69176,7 +69177,7 @@ const deserializeAws_ec2ScheduledInstanceAvailability = ( contents.AvailabilityZone = __expectString(output["availabilityZone"]); } if (output["availableInstanceCount"] !== undefined) { - contents.AvailableInstanceCount = __strictParseInt(output["availableInstanceCount"]) as number; + contents.AvailableInstanceCount = __strictParseInt32(output["availableInstanceCount"]) as number; } if (output["firstSlotStartTime"] !== undefined) { contents.FirstSlotStartTime = new Date(output["firstSlotStartTime"]); @@ -69188,10 +69189,10 @@ const deserializeAws_ec2ScheduledInstanceAvailability = ( contents.InstanceType = __expectString(output["instanceType"]); } if (output["maxTermDurationInDays"] !== undefined) { - contents.MaxTermDurationInDays = __strictParseInt(output["maxTermDurationInDays"]) as number; + contents.MaxTermDurationInDays = __strictParseInt32(output["maxTermDurationInDays"]) as number; } if (output["minTermDurationInDays"] !== undefined) { - contents.MinTermDurationInDays = __strictParseInt(output["minTermDurationInDays"]) as number; + contents.MinTermDurationInDays = __strictParseInt32(output["minTermDurationInDays"]) as number; } if (output["networkPlatform"] !== undefined) { contents.NetworkPlatform = __expectString(output["networkPlatform"]); @@ -69206,10 +69207,10 @@ const deserializeAws_ec2ScheduledInstanceAvailability = ( contents.Recurrence = deserializeAws_ec2ScheduledInstanceRecurrence(output["recurrence"], context); } if (output["slotDurationInHours"] !== undefined) { - contents.SlotDurationInHours = __strictParseInt(output["slotDurationInHours"]) as number; + contents.SlotDurationInHours = __strictParseInt32(output["slotDurationInHours"]) as number; } if (output["totalScheduledInstanceHours"] !== undefined) { - contents.TotalScheduledInstanceHours = __strictParseInt(output["totalScheduledInstanceHours"]) as number; + contents.TotalScheduledInstanceHours = __strictParseInt32(output["totalScheduledInstanceHours"]) as number; } return contents; }; @@ -69243,7 +69244,7 @@ const deserializeAws_ec2ScheduledInstanceRecurrence = ( contents.Frequency = __expectString(output["frequency"]); } if (output["interval"] !== undefined) { - contents.Interval = __strictParseInt(output["interval"]) as number; + contents.Interval = __strictParseInt32(output["interval"]) as number; } if (output.occurrenceDaySet === "") { contents.OccurrenceDaySet = []; @@ -69493,10 +69494,10 @@ const deserializeAws_ec2SecurityGroupRule = (output: any, context: __SerdeContex contents.IpProtocol = __expectString(output["ipProtocol"]); } if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt(output["fromPort"]) as number; + contents.FromPort = __strictParseInt32(output["fromPort"]) as number; } if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt(output["toPort"]) as number; + contents.ToPort = __strictParseInt32(output["toPort"]) as number; } if (output["cidrIpv4"] !== undefined) { contents.CidrIpv4 = __expectString(output["cidrIpv4"]); @@ -69807,7 +69808,7 @@ const deserializeAws_ec2Snapshot = (output: any, context: __SerdeContext): Snaps contents.VolumeId = __expectString(output["volumeId"]); } if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt(output["volumeSize"]) as number; + contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; } if (output["ownerAlias"] !== undefined) { contents.OwnerAlias = __expectString(output["ownerAlias"]); @@ -69914,7 +69915,7 @@ const deserializeAws_ec2SnapshotInfo = (output: any, context: __SerdeContext): S contents.State = __expectString(output["state"]); } if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt(output["volumeSize"]) as number; + contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; } if (output["startTime"] !== undefined) { contents.StartTime = new Date(output["startTime"]); @@ -70276,10 +70277,10 @@ const deserializeAws_ec2SpotFleetRequestConfigData = ( contents.SpotPrice = __expectString(output["spotPrice"]); } if (output["targetCapacity"] !== undefined) { - contents.TargetCapacity = __strictParseInt(output["targetCapacity"]) as number; + contents.TargetCapacity = __strictParseInt32(output["targetCapacity"]) as number; } if (output["onDemandTargetCapacity"] !== undefined) { - contents.OnDemandTargetCapacity = __strictParseInt(output["onDemandTargetCapacity"]) as number; + contents.OnDemandTargetCapacity = __strictParseInt32(output["onDemandTargetCapacity"]) as number; } if (output["onDemandMaxTotalPrice"] !== undefined) { contents.OnDemandMaxTotalPrice = __expectString(output["onDemandMaxTotalPrice"]); @@ -70309,7 +70310,7 @@ const deserializeAws_ec2SpotFleetRequestConfigData = ( contents.LoadBalancersConfig = deserializeAws_ec2LoadBalancersConfig(output["loadBalancersConfig"], context); } if (output["instancePoolsToUseCount"] !== undefined) { - contents.InstancePoolsToUseCount = __strictParseInt(output["instancePoolsToUseCount"]) as number; + contents.InstancePoolsToUseCount = __strictParseInt32(output["instancePoolsToUseCount"]) as number; } if (output["context"] !== undefined) { contents.Context = __expectString(output["context"]); @@ -70403,7 +70404,7 @@ const deserializeAws_ec2SpotInstanceRequest = (output: any, context: __SerdeCont contents.AvailabilityZoneGroup = __expectString(output["availabilityZoneGroup"]); } if (output["blockDurationMinutes"] !== undefined) { - contents.BlockDurationMinutes = __strictParseInt(output["blockDurationMinutes"]) as number; + contents.BlockDurationMinutes = __strictParseInt32(output["blockDurationMinutes"]) as number; } if (output["createTime"] !== undefined) { contents.CreateTime = new Date(output["createTime"]); @@ -70539,7 +70540,7 @@ const deserializeAws_ec2SpotOptions = (output: any, context: __SerdeContext): Sp contents.InstanceInterruptionBehavior = __expectString(output["instanceInterruptionBehavior"]); } if (output["instancePoolsToUseCount"] !== undefined) { - contents.InstancePoolsToUseCount = __strictParseInt(output["instancePoolsToUseCount"]) as number; + contents.InstancePoolsToUseCount = __strictParseInt32(output["instancePoolsToUseCount"]) as number; } if (output["singleInstanceType"] !== undefined) { contents.SingleInstanceType = __parseBoolean(output["singleInstanceType"]); @@ -70548,7 +70549,7 @@ const deserializeAws_ec2SpotOptions = (output: any, context: __SerdeContext): Sp contents.SingleAvailabilityZone = __parseBoolean(output["singleAvailabilityZone"]); } if (output["minTargetCapacity"] !== undefined) { - contents.MinTargetCapacity = __strictParseInt(output["minTargetCapacity"]) as number; + contents.MinTargetCapacity = __strictParseInt32(output["minTargetCapacity"]) as number; } if (output["maxTotalPrice"] !== undefined) { contents.MaxTotalPrice = __expectString(output["maxTotalPrice"]); @@ -70621,7 +70622,7 @@ const deserializeAws_ec2StaleIpPermission = (output: any, context: __SerdeContex UserIdGroupPairs: undefined, }; if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt(output["fromPort"]) as number; + contents.FromPort = __strictParseInt32(output["fromPort"]) as number; } if (output["ipProtocol"] !== undefined) { contents.IpProtocol = __expectString(output["ipProtocol"]); @@ -70642,7 +70643,7 @@ const deserializeAws_ec2StaleIpPermission = (output: any, context: __SerdeContex ); } if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt(output["toPort"]) as number; + contents.ToPort = __strictParseInt32(output["toPort"]) as number; } if (output.groups === "") { contents.UserIdGroupPairs = []; @@ -70828,7 +70829,7 @@ const deserializeAws_ec2StoreImageTaskResult = (output: any, context: __SerdeCon contents.S3objectKey = __expectString(output["s3objectKey"]); } if (output["progressPercentage"] !== undefined) { - contents.ProgressPercentage = __strictParseInt(output["progressPercentage"]) as number; + contents.ProgressPercentage = __strictParseInt32(output["progressPercentage"]) as number; } if (output["storeTaskState"] !== undefined) { contents.StoreTaskState = __expectString(output["storeTaskState"]); @@ -70888,7 +70889,7 @@ const deserializeAws_ec2Subnet = (output: any, context: __SerdeContext): Subnet contents.AvailabilityZoneId = __expectString(output["availabilityZoneId"]); } if (output["availableIpAddressCount"] !== undefined) { - contents.AvailableIpAddressCount = __strictParseInt(output["availableIpAddressCount"]) as number; + contents.AvailableIpAddressCount = __strictParseInt32(output["availableIpAddressCount"]) as number; } if (output["cidrBlock"] !== undefined) { contents.CidrBlock = __expectString(output["cidrBlock"]); @@ -71231,13 +71232,13 @@ const deserializeAws_ec2TargetCapacitySpecification = ( DefaultTargetCapacityType: undefined, }; if (output["totalTargetCapacity"] !== undefined) { - contents.TotalTargetCapacity = __strictParseInt(output["totalTargetCapacity"]) as number; + contents.TotalTargetCapacity = __strictParseInt32(output["totalTargetCapacity"]) as number; } if (output["onDemandTargetCapacity"] !== undefined) { - contents.OnDemandTargetCapacity = __strictParseInt(output["onDemandTargetCapacity"]) as number; + contents.OnDemandTargetCapacity = __strictParseInt32(output["onDemandTargetCapacity"]) as number; } if (output["spotTargetCapacity"] !== undefined) { - contents.SpotTargetCapacity = __strictParseInt(output["spotTargetCapacity"]) as number; + contents.SpotTargetCapacity = __strictParseInt32(output["spotTargetCapacity"]) as number; } if (output["defaultTargetCapacityType"] !== undefined) { contents.DefaultTargetCapacityType = __expectString(output["defaultTargetCapacityType"]); @@ -71251,7 +71252,7 @@ const deserializeAws_ec2TargetConfiguration = (output: any, context: __SerdeCont OfferingId: undefined, }; if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt(output["instanceCount"]) as number; + contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; } if (output["offeringId"] !== undefined) { contents.OfferingId = __expectString(output["offeringId"]); @@ -71456,7 +71457,7 @@ const deserializeAws_ec2ThreadsPerCoreList = (output: any, context: __SerdeConte if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; @@ -71535,13 +71536,13 @@ const deserializeAws_ec2TrafficMirrorFilterRule = (output: any, context: __Serde contents.TrafficDirection = __expectString(output["trafficDirection"]); } if (output["ruleNumber"] !== undefined) { - contents.RuleNumber = __strictParseInt(output["ruleNumber"]) as number; + contents.RuleNumber = __strictParseInt32(output["ruleNumber"]) as number; } if (output["ruleAction"] !== undefined) { contents.RuleAction = __expectString(output["ruleAction"]); } if (output["protocol"] !== undefined) { - contents.Protocol = __strictParseInt(output["protocol"]) as number; + contents.Protocol = __strictParseInt32(output["protocol"]) as number; } if (output["destinationPortRange"] !== undefined) { contents.DestinationPortRange = deserializeAws_ec2TrafficMirrorPortRange(output["destinationPortRange"], context); @@ -71606,10 +71607,10 @@ const deserializeAws_ec2TrafficMirrorPortRange = (output: any, context: __SerdeC ToPort: undefined, }; if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt(output["fromPort"]) as number; + contents.FromPort = __strictParseInt32(output["fromPort"]) as number; } if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt(output["toPort"]) as number; + contents.ToPort = __strictParseInt32(output["toPort"]) as number; } return contents; }; @@ -71643,13 +71644,13 @@ const deserializeAws_ec2TrafficMirrorSession = (output: any, context: __SerdeCon contents.OwnerId = __expectString(output["ownerId"]); } if (output["packetLength"] !== undefined) { - contents.PacketLength = __strictParseInt(output["packetLength"]) as number; + contents.PacketLength = __strictParseInt32(output["packetLength"]) as number; } if (output["sessionNumber"] !== undefined) { - contents.SessionNumber = __strictParseInt(output["sessionNumber"]) as number; + contents.SessionNumber = __strictParseInt32(output["sessionNumber"]) as number; } if (output["virtualNetworkId"] !== undefined) { - contents.VirtualNetworkId = __strictParseInt(output["virtualNetworkId"]) as number; + contents.VirtualNetworkId = __strictParseInt32(output["virtualNetworkId"]) as number; } if (output["description"] !== undefined) { contents.Description = __expectString(output["description"]); @@ -71870,10 +71871,10 @@ const deserializeAws_ec2TransitGatewayAttachmentBgpConfiguration = ( BgpStatus: undefined, }; if (output["transitGatewayAsn"] !== undefined) { - contents.TransitGatewayAsn = __strictParseInt(output["transitGatewayAsn"]) as number; + contents.TransitGatewayAsn = __strictParseLong(output["transitGatewayAsn"]) as number; } if (output["peerAsn"] !== undefined) { - contents.PeerAsn = __strictParseInt(output["peerAsn"]) as number; + contents.PeerAsn = __strictParseLong(output["peerAsn"]) as number; } if (output["transitGatewayAddress"] !== undefined) { contents.TransitGatewayAddress = __expectString(output["transitGatewayAddress"]); @@ -72474,7 +72475,7 @@ const deserializeAws_ec2TransitGatewayOptions = (output: any, context: __SerdeCo MulticastSupport: undefined, }; if (output["amazonSideAsn"] !== undefined) { - contents.AmazonSideAsn = __strictParseInt(output["amazonSideAsn"]) as number; + contents.AmazonSideAsn = __strictParseLong(output["amazonSideAsn"]) as number; } if (output.transitGatewayCidrBlocks === "") { contents.TransitGatewayCidrBlocks = []; @@ -72988,10 +72989,10 @@ const deserializeAws_ec2TrunkInterfaceAssociation = ( contents.InterfaceProtocol = __expectString(output["interfaceProtocol"]); } if (output["vlanId"] !== undefined) { - contents.VlanId = __strictParseInt(output["vlanId"]) as number; + contents.VlanId = __strictParseInt32(output["vlanId"]) as number; } if (output["greKey"] !== undefined) { - contents.GreKey = __strictParseInt(output["greKey"]) as number; + contents.GreKey = __strictParseInt32(output["greKey"]) as number; } if (output.tagSet === "") { contents.Tags = []; @@ -73051,22 +73052,22 @@ const deserializeAws_ec2TunnelOption = (output: any, context: __SerdeContext): T contents.PreSharedKey = __expectString(output["preSharedKey"]); } if (output["phase1LifetimeSeconds"] !== undefined) { - contents.Phase1LifetimeSeconds = __strictParseInt(output["phase1LifetimeSeconds"]) as number; + contents.Phase1LifetimeSeconds = __strictParseInt32(output["phase1LifetimeSeconds"]) as number; } if (output["phase2LifetimeSeconds"] !== undefined) { - contents.Phase2LifetimeSeconds = __strictParseInt(output["phase2LifetimeSeconds"]) as number; + contents.Phase2LifetimeSeconds = __strictParseInt32(output["phase2LifetimeSeconds"]) as number; } if (output["rekeyMarginTimeSeconds"] !== undefined) { - contents.RekeyMarginTimeSeconds = __strictParseInt(output["rekeyMarginTimeSeconds"]) as number; + contents.RekeyMarginTimeSeconds = __strictParseInt32(output["rekeyMarginTimeSeconds"]) as number; } if (output["rekeyFuzzPercentage"] !== undefined) { - contents.RekeyFuzzPercentage = __strictParseInt(output["rekeyFuzzPercentage"]) as number; + contents.RekeyFuzzPercentage = __strictParseInt32(output["rekeyFuzzPercentage"]) as number; } if (output["replayWindowSize"] !== undefined) { - contents.ReplayWindowSize = __strictParseInt(output["replayWindowSize"]) as number; + contents.ReplayWindowSize = __strictParseInt32(output["replayWindowSize"]) as number; } if (output["dpdTimeoutSeconds"] !== undefined) { - contents.DpdTimeoutSeconds = __strictParseInt(output["dpdTimeoutSeconds"]) as number; + contents.DpdTimeoutSeconds = __strictParseInt32(output["dpdTimeoutSeconds"]) as number; } if (output["dpdTimeoutAction"] !== undefined) { contents.DpdTimeoutAction = __expectString(output["dpdTimeoutAction"]); @@ -73464,13 +73465,13 @@ const deserializeAws_ec2VCpuInfo = (output: any, context: __SerdeContext): VCpuI ValidThreadsPerCore: undefined, }; if (output["defaultVCpus"] !== undefined) { - contents.DefaultVCpus = __strictParseInt(output["defaultVCpus"]) as number; + contents.DefaultVCpus = __strictParseInt32(output["defaultVCpus"]) as number; } if (output["defaultCores"] !== undefined) { - contents.DefaultCores = __strictParseInt(output["defaultCores"]) as number; + contents.DefaultCores = __strictParseInt32(output["defaultCores"]) as number; } if (output["defaultThreadsPerCore"] !== undefined) { - contents.DefaultThreadsPerCore = __strictParseInt(output["defaultThreadsPerCore"]) as number; + contents.DefaultThreadsPerCore = __strictParseInt32(output["defaultThreadsPerCore"]) as number; } if (output.validCores === "") { contents.ValidCores = []; @@ -73503,7 +73504,7 @@ const deserializeAws_ec2VgwTelemetry = (output: any, context: __SerdeContext): V CertificateArn: undefined, }; if (output["acceptedRouteCount"] !== undefined) { - contents.AcceptedRouteCount = __strictParseInt(output["acceptedRouteCount"]) as number; + contents.AcceptedRouteCount = __strictParseInt32(output["acceptedRouteCount"]) as number; } if (output["lastStatusChange"] !== undefined) { contents.LastStatusChange = new Date(output["lastStatusChange"]); @@ -73592,7 +73593,7 @@ const deserializeAws_ec2Volume = (output: any, context: __SerdeContext): Volume contents.OutpostArn = __expectString(output["outpostArn"]); } if (output["size"] !== undefined) { - contents.Size = __strictParseInt(output["size"]) as number; + contents.Size = __strictParseInt32(output["size"]) as number; } if (output["snapshotId"] !== undefined) { contents.SnapshotId = __expectString(output["snapshotId"]); @@ -73604,7 +73605,7 @@ const deserializeAws_ec2Volume = (output: any, context: __SerdeContext): Volume contents.VolumeId = __expectString(output["volumeId"]); } if (output["iops"] !== undefined) { - contents.Iops = __strictParseInt(output["iops"]) as number; + contents.Iops = __strictParseInt32(output["iops"]) as number; } if (output.tagSet === "") { contents.Tags = []; @@ -73622,7 +73623,7 @@ const deserializeAws_ec2Volume = (output: any, context: __SerdeContext): Volume contents.MultiAttachEnabled = __parseBoolean(output["multiAttachEnabled"]); } if (output["throughput"] !== undefined) { - contents.Throughput = __strictParseInt(output["throughput"]) as number; + contents.Throughput = __strictParseInt32(output["throughput"]) as number; } return contents; }; @@ -73708,37 +73709,37 @@ const deserializeAws_ec2VolumeModification = (output: any, context: __SerdeConte contents.StatusMessage = __expectString(output["statusMessage"]); } if (output["targetSize"] !== undefined) { - contents.TargetSize = __strictParseInt(output["targetSize"]) as number; + contents.TargetSize = __strictParseInt32(output["targetSize"]) as number; } if (output["targetIops"] !== undefined) { - contents.TargetIops = __strictParseInt(output["targetIops"]) as number; + contents.TargetIops = __strictParseInt32(output["targetIops"]) as number; } if (output["targetVolumeType"] !== undefined) { contents.TargetVolumeType = __expectString(output["targetVolumeType"]); } if (output["targetThroughput"] !== undefined) { - contents.TargetThroughput = __strictParseInt(output["targetThroughput"]) as number; + contents.TargetThroughput = __strictParseInt32(output["targetThroughput"]) as number; } if (output["targetMultiAttachEnabled"] !== undefined) { contents.TargetMultiAttachEnabled = __parseBoolean(output["targetMultiAttachEnabled"]); } if (output["originalSize"] !== undefined) { - contents.OriginalSize = __strictParseInt(output["originalSize"]) as number; + contents.OriginalSize = __strictParseInt32(output["originalSize"]) as number; } if (output["originalIops"] !== undefined) { - contents.OriginalIops = __strictParseInt(output["originalIops"]) as number; + contents.OriginalIops = __strictParseInt32(output["originalIops"]) as number; } if (output["originalVolumeType"] !== undefined) { contents.OriginalVolumeType = __expectString(output["originalVolumeType"]); } if (output["originalThroughput"] !== undefined) { - contents.OriginalThroughput = __strictParseInt(output["originalThroughput"]) as number; + contents.OriginalThroughput = __strictParseInt32(output["originalThroughput"]) as number; } if (output["originalMultiAttachEnabled"] !== undefined) { contents.OriginalMultiAttachEnabled = __parseBoolean(output["originalMultiAttachEnabled"]); } if (output["progress"] !== undefined) { - contents.Progress = __strictParseInt(output["progress"]) as number; + contents.Progress = __strictParseLong(output["progress"]) as number; } if (output["startTime"] !== undefined) { contents.StartTime = new Date(output["startTime"]); @@ -74661,7 +74662,7 @@ const deserializeAws_ec2VpnGateway = (output: any, context: __SerdeContext): Vpn contents.VpnGatewayId = __expectString(output["vpnGatewayId"]); } if (output["amazonSideAsn"] !== undefined) { - contents.AmazonSideAsn = __strictParseInt(output["amazonSideAsn"]) as number; + contents.AmazonSideAsn = __strictParseLong(output["amazonSideAsn"]) as number; } if (output.tagSet === "") { contents.Tags = []; diff --git a/clients/client-ecr-public/protocols/Aws_json1_1.ts b/clients/client-ecr-public/protocols/Aws_json1_1.ts index ae1bd53ddb2ed..0765801b594ea 100644 --- a/clients/client-ecr-public/protocols/Aws_json1_1.ts +++ b/clients/client-ecr-public/protocols/Aws_json1_1.ts @@ -150,7 +150,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3289,7 +3289,7 @@ const deserializeAws_json1_1ImageDetail = (output: any, context: __SerdeContext) output.imagePushedAt !== undefined && output.imagePushedAt !== null ? new Date(Math.round(output.imagePushedAt * 1000)) : undefined, - imageSizeInBytes: __expectInt(output.imageSizeInBytes), + imageSizeInBytes: __expectLong(output.imageSizeInBytes), imageTags: output.imageTags !== undefined && output.imageTags !== null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) @@ -3415,7 +3415,7 @@ const deserializeAws_json1_1InitiateLayerUploadResponse = ( context: __SerdeContext ): InitiateLayerUploadResponse => { return { - partSize: __expectInt(output.partSize), + partSize: __expectLong(output.partSize), uploadId: __expectString(output.uploadId), } as any; }; @@ -3431,7 +3431,7 @@ const deserializeAws_json1_1InvalidLayerPartException = ( context: __SerdeContext ): InvalidLayerPartException => { return { - lastValidByteReceived: __expectInt(output.lastValidByteReceived), + lastValidByteReceived: __expectLong(output.lastValidByteReceived), message: __expectString(output.message), registryId: __expectString(output.registryId), repositoryName: __expectString(output.repositoryName), @@ -3461,7 +3461,7 @@ const deserializeAws_json1_1Layer = (output: any, context: __SerdeContext): Laye return { layerAvailability: __expectString(output.layerAvailability), layerDigest: __expectString(output.layerDigest), - layerSize: __expectInt(output.layerSize), + layerSize: __expectLong(output.layerSize), mediaType: __expectString(output.mediaType), } as any; }; @@ -3594,7 +3594,7 @@ const deserializeAws_json1_1ReferencedImageDetail = (output: any, context: __Ser output.imagePushedAt !== undefined && output.imagePushedAt !== null ? new Date(Math.round(output.imagePushedAt * 1000)) : undefined, - imageSizeInBytes: __expectInt(output.imageSizeInBytes), + imageSizeInBytes: __expectLong(output.imageSizeInBytes), } as any; }; @@ -3807,7 +3807,7 @@ const deserializeAws_json1_1UploadLayerPartResponse = ( context: __SerdeContext ): UploadLayerPartResponse => { return { - lastByteReceived: __expectInt(output.lastByteReceived), + lastByteReceived: __expectLong(output.lastByteReceived), registryId: __expectString(output.registryId), repositoryName: __expectString(output.repositoryName), uploadId: __expectString(output.uploadId), diff --git a/clients/client-ecr/protocols/Aws_json1_1.ts b/clients/client-ecr/protocols/Aws_json1_1.ts index cbcf3822be125..65e800030d0f2 100644 --- a/clients/client-ecr/protocols/Aws_json1_1.ts +++ b/clients/client-ecr/protocols/Aws_json1_1.ts @@ -215,7 +215,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -4667,7 +4668,7 @@ const deserializeAws_json1_1FindingSeverityCounts = ( } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {} @@ -4792,7 +4793,7 @@ const deserializeAws_json1_1ImageDetail = (output: any, context: __SerdeContext) output.imageScanStatus !== undefined && output.imageScanStatus !== null ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context) : undefined, - imageSizeInBytes: __expectInt(output.imageSizeInBytes), + imageSizeInBytes: __expectLong(output.imageSizeInBytes), imageTags: output.imageTags !== undefined && output.imageTags !== null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) @@ -4985,7 +4986,7 @@ const deserializeAws_json1_1InitiateLayerUploadResponse = ( context: __SerdeContext ): InitiateLayerUploadResponse => { return { - partSize: __expectInt(output.partSize), + partSize: __expectLong(output.partSize), uploadId: __expectString(output.uploadId), } as any; }; @@ -5001,7 +5002,7 @@ const deserializeAws_json1_1InvalidLayerPartException = ( context: __SerdeContext ): InvalidLayerPartException => { return { - lastValidByteReceived: __expectInt(output.lastValidByteReceived), + lastValidByteReceived: __expectLong(output.lastValidByteReceived), message: __expectString(output.message), registryId: __expectString(output.registryId), repositoryName: __expectString(output.repositoryName), @@ -5038,7 +5039,7 @@ const deserializeAws_json1_1Layer = (output: any, context: __SerdeContext): Laye return { layerAvailability: __expectString(output.layerAvailability), layerDigest: __expectString(output.layerDigest), - layerSize: __expectInt(output.layerSize), + layerSize: __expectLong(output.layerSize), mediaType: __expectString(output.mediaType), } as any; }; @@ -5145,7 +5146,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResult = ( output.action !== undefined && output.action !== null ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context) : undefined, - appliedRulePriority: __expectInt(output.appliedRulePriority), + appliedRulePriority: __expectInt32(output.appliedRulePriority), imageDigest: __expectString(output.imageDigest), imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null @@ -5177,7 +5178,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewSummary = ( context: __SerdeContext ): LifecyclePolicyPreviewSummary => { return { - expiringImageTotalCount: __expectInt(output.expiringImageTotalCount), + expiringImageTotalCount: __expectInt32(output.expiringImageTotalCount), } as any; }; @@ -5521,7 +5522,7 @@ const deserializeAws_json1_1UploadLayerPartResponse = ( context: __SerdeContext ): UploadLayerPartResponse => { return { - lastByteReceived: __expectInt(output.lastByteReceived), + lastByteReceived: __expectLong(output.lastByteReceived), registryId: __expectString(output.registryId), repositoryName: __expectString(output.repositoryName), uploadId: __expectString(output.uploadId), diff --git a/clients/client-ecs/protocols/Aws_json1_1.ts b/clients/client-ecs/protocols/Aws_json1_1.ts index 227901154fbaf..683fc74e0f416 100644 --- a/clients/client-ecs/protocols/Aws_json1_1.ts +++ b/clients/client-ecs/protocols/Aws_json1_1.ts @@ -347,9 +347,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -7998,9 +7999,9 @@ const deserializeAws_json1_1CapacityProviderStrategyItem = ( context: __SerdeContext ): CapacityProviderStrategyItem => { return { - base: __expectInt(output.base), + base: __expectInt32(output.base), capacityProvider: __expectString(output.capacityProvider), - weight: __expectInt(output.weight), + weight: __expectInt32(output.weight), } as any; }; @@ -8012,7 +8013,7 @@ const deserializeAws_json1_1ClientException = (output: any, context: __SerdeCont const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cluster => { return { - activeServicesCount: __expectInt(output.activeServicesCount), + activeServicesCount: __expectInt32(output.activeServicesCount), attachments: output.attachments !== undefined && output.attachments !== null ? deserializeAws_json1_1Attachments(output.attachments, context) @@ -8032,9 +8033,9 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl output.defaultCapacityProviderStrategy !== undefined && output.defaultCapacityProviderStrategy !== null ? deserializeAws_json1_1CapacityProviderStrategy(output.defaultCapacityProviderStrategy, context) : undefined, - pendingTasksCount: __expectInt(output.pendingTasksCount), - registeredContainerInstancesCount: __expectInt(output.registeredContainerInstancesCount), - runningTasksCount: __expectInt(output.runningTasksCount), + pendingTasksCount: __expectInt32(output.pendingTasksCount), + registeredContainerInstancesCount: __expectInt32(output.registeredContainerInstancesCount), + runningTasksCount: __expectInt32(output.runningTasksCount), settings: output.settings !== undefined && output.settings !== null ? deserializeAws_json1_1ClusterSettings(output.settings, context) @@ -8138,7 +8139,7 @@ const deserializeAws_json1_1Container = (output: any, context: __SerdeContext): return { containerArn: __expectString(output.containerArn), cpu: __expectString(output.cpu), - exitCode: __expectInt(output.exitCode), + exitCode: __expectInt32(output.exitCode), gpuIds: output.gpuIds !== undefined && output.gpuIds !== null ? deserializeAws_json1_1GpuIds(output.gpuIds, context) @@ -8174,7 +8175,7 @@ const deserializeAws_json1_1ContainerDefinition = (output: any, context: __Serde output.command !== undefined && output.command !== null ? deserializeAws_json1_1StringList(output.command, context) : undefined, - cpu: __expectInt(output.cpu), + cpu: __expectInt32(output.cpu), dependsOn: output.dependsOn !== undefined && output.dependsOn !== null ? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context) @@ -8236,8 +8237,8 @@ const deserializeAws_json1_1ContainerDefinition = (output: any, context: __Serde output.logConfiguration !== undefined && output.logConfiguration !== null ? deserializeAws_json1_1LogConfiguration(output.logConfiguration, context) : undefined, - memory: __expectInt(output.memory), - memoryReservation: __expectInt(output.memoryReservation), + memory: __expectInt32(output.memory), + memoryReservation: __expectInt32(output.memoryReservation), mountPoints: output.mountPoints !== undefined && output.mountPoints !== null ? deserializeAws_json1_1MountPointList(output.mountPoints, context) @@ -8262,8 +8263,8 @@ const deserializeAws_json1_1ContainerDefinition = (output: any, context: __Serde output.secrets !== undefined && output.secrets !== null ? deserializeAws_json1_1SecretList(output.secrets, context) : undefined, - startTimeout: __expectInt(output.startTimeout), - stopTimeout: __expectInt(output.stopTimeout), + startTimeout: __expectInt32(output.startTimeout), + stopTimeout: __expectInt32(output.stopTimeout), systemControls: output.systemControls !== undefined && output.systemControls !== null ? deserializeAws_json1_1SystemControls(output.systemControls, context) @@ -8325,7 +8326,7 @@ const deserializeAws_json1_1ContainerInstance = (output: any, context: __SerdeCo capacityProviderName: __expectString(output.capacityProviderName), containerInstanceArn: __expectString(output.containerInstanceArn), ec2InstanceId: __expectString(output.ec2InstanceId), - pendingTasksCount: __expectInt(output.pendingTasksCount), + pendingTasksCount: __expectInt32(output.pendingTasksCount), registeredAt: output.registeredAt !== undefined && output.registeredAt !== null ? new Date(Math.round(output.registeredAt * 1000)) @@ -8338,12 +8339,12 @@ const deserializeAws_json1_1ContainerInstance = (output: any, context: __SerdeCo output.remainingResources !== undefined && output.remainingResources !== null ? deserializeAws_json1_1Resources(output.remainingResources, context) : undefined, - runningTasksCount: __expectInt(output.runningTasksCount), + runningTasksCount: __expectInt32(output.runningTasksCount), status: __expectString(output.status), statusReason: __expectString(output.statusReason), tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined, - version: __expectInt(output.version), + version: __expectLong(output.version), versionInfo: output.versionInfo !== undefined && output.versionInfo !== null ? deserializeAws_json1_1VersionInfo(output.versionInfo, context) @@ -8368,7 +8369,7 @@ const deserializeAws_json1_1ContainerOverride = (output: any, context: __SerdeCo output.command !== undefined && output.command !== null ? deserializeAws_json1_1StringList(output.command, context) : undefined, - cpu: __expectInt(output.cpu), + cpu: __expectInt32(output.cpu), environment: output.environment !== undefined && output.environment !== null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) @@ -8377,8 +8378,8 @@ const deserializeAws_json1_1ContainerOverride = (output: any, context: __SerdeCo output.environmentFiles !== undefined && output.environmentFiles !== null ? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context) : undefined, - memory: __expectInt(output.memory), - memoryReservation: __expectInt(output.memoryReservation), + memory: __expectInt32(output.memory), + memoryReservation: __expectInt32(output.memoryReservation), name: __expectString(output.name), resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null @@ -8521,19 +8522,19 @@ const deserializeAws_json1_1Deployment = (output: any, context: __SerdeContext): output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - desiredCount: __expectInt(output.desiredCount), - failedTasks: __expectInt(output.failedTasks), + desiredCount: __expectInt32(output.desiredCount), + failedTasks: __expectInt32(output.failedTasks), id: __expectString(output.id), launchType: __expectString(output.launchType), networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context) : undefined, - pendingCount: __expectInt(output.pendingCount), + pendingCount: __expectInt32(output.pendingCount), platformVersion: __expectString(output.platformVersion), rolloutState: __expectString(output.rolloutState), rolloutStateReason: __expectString(output.rolloutStateReason), - runningCount: __expectInt(output.runningCount), + runningCount: __expectInt32(output.runningCount), status: __expectString(output.status), taskDefinition: __expectString(output.taskDefinition), updatedAt: @@ -8562,8 +8563,8 @@ const deserializeAws_json1_1DeploymentConfiguration = ( output.deploymentCircuitBreaker !== undefined && output.deploymentCircuitBreaker !== null ? deserializeAws_json1_1DeploymentCircuitBreaker(output.deploymentCircuitBreaker, context) : undefined, - maximumPercent: __expectInt(output.maximumPercent), - minimumHealthyPercent: __expectInt(output.minimumHealthyPercent), + maximumPercent: __expectInt32(output.maximumPercent), + minimumHealthyPercent: __expectInt32(output.minimumHealthyPercent), } as any; }; @@ -8809,7 +8810,7 @@ const deserializeAws_json1_1EFSVolumeConfiguration = (output: any, context: __Se fileSystemId: __expectString(output.fileSystemId), rootDirectory: __expectString(output.rootDirectory), transitEncryption: __expectString(output.transitEncryption), - transitEncryptionPort: __expectInt(output.transitEncryptionPort), + transitEncryptionPort: __expectInt32(output.transitEncryptionPort), } as any; }; @@ -8844,7 +8845,7 @@ const deserializeAws_json1_1EnvironmentVariables = (output: any, context: __Serd const deserializeAws_json1_1EphemeralStorage = (output: any, context: __SerdeContext): EphemeralStorage => { return { - sizeInGiB: __expectInt(output.sizeInGiB), + sizeInGiB: __expectInt32(output.sizeInGiB), } as any; }; @@ -8974,10 +8975,10 @@ const deserializeAws_json1_1HealthCheck = (output: any, context: __SerdeContext) output.command !== undefined && output.command !== null ? deserializeAws_json1_1StringList(output.command, context) : undefined, - interval: __expectInt(output.interval), - retries: __expectInt(output.retries), - startPeriod: __expectInt(output.startPeriod), - timeout: __expectInt(output.timeout), + interval: __expectInt32(output.interval), + retries: __expectInt32(output.retries), + startPeriod: __expectInt32(output.startPeriod), + timeout: __expectInt32(output.timeout), } as any; }; @@ -9093,9 +9094,9 @@ const deserializeAws_json1_1LinuxParameters = (output: any, context: __SerdeCont ? deserializeAws_json1_1DevicesList(output.devices, context) : undefined, initProcessEnabled: __expectBoolean(output.initProcessEnabled), - maxSwap: __expectInt(output.maxSwap), - sharedMemorySize: __expectInt(output.sharedMemorySize), - swappiness: __expectInt(output.swappiness), + maxSwap: __expectInt32(output.maxSwap), + sharedMemorySize: __expectInt32(output.sharedMemorySize), + swappiness: __expectInt32(output.swappiness), tmpfs: output.tmpfs !== undefined && output.tmpfs !== null ? deserializeAws_json1_1TmpfsList(output.tmpfs, context) @@ -9208,7 +9209,7 @@ const deserializeAws_json1_1ListTasksResponse = (output: any, context: __SerdeCo const deserializeAws_json1_1LoadBalancer = (output: any, context: __SerdeContext): LoadBalancer => { return { containerName: __expectString(output.containerName), - containerPort: __expectInt(output.containerPort), + containerPort: __expectInt32(output.containerPort), loadBalancerName: __expectString(output.loadBalancerName), targetGroupArn: __expectString(output.targetGroupArn), } as any; @@ -9279,11 +9280,11 @@ const deserializeAws_json1_1ManagedAgents = (output: any, context: __SerdeContex const deserializeAws_json1_1ManagedScaling = (output: any, context: __SerdeContext): ManagedScaling => { return { - instanceWarmupPeriod: __expectInt(output.instanceWarmupPeriod), - maximumScalingStepSize: __expectInt(output.maximumScalingStepSize), - minimumScalingStepSize: __expectInt(output.minimumScalingStepSize), + instanceWarmupPeriod: __expectInt32(output.instanceWarmupPeriod), + maximumScalingStepSize: __expectInt32(output.maximumScalingStepSize), + minimumScalingStepSize: __expectInt32(output.minimumScalingStepSize), status: __expectString(output.status), - targetCapacity: __expectInt(output.targetCapacity), + targetCapacity: __expectInt32(output.targetCapacity), } as any; }; @@ -9318,8 +9319,8 @@ const deserializeAws_json1_1MountPointList = (output: any, context: __SerdeConte const deserializeAws_json1_1NetworkBinding = (output: any, context: __SerdeContext): NetworkBinding => { return { bindIP: __expectString(output.bindIP), - containerPort: __expectInt(output.containerPort), - hostPort: __expectInt(output.hostPort), + containerPort: __expectInt32(output.containerPort), + hostPort: __expectInt32(output.hostPort), protocol: __expectString(output.protocol), } as any; }; @@ -9428,8 +9429,8 @@ const deserializeAws_json1_1PlatformUnknownException = ( const deserializeAws_json1_1PortMapping = (output: any, context: __SerdeContext): PortMapping => { return { - containerPort: __expectInt(output.containerPort), - hostPort: __expectInt(output.hostPort), + containerPort: __expectInt32(output.containerPort), + hostPort: __expectInt32(output.hostPort), protocol: __expectString(output.protocol), } as any; }; @@ -9557,9 +9558,9 @@ const deserializeAws_json1_1RequiresAttributes = (output: any, context: __SerdeC const deserializeAws_json1_1Resource = (output: any, context: __SerdeContext): Resource => { return { - doubleValue: __limitedParseFloat(output.doubleValue), - integerValue: __expectInt(output.integerValue), - longValue: __expectInt(output.longValue), + doubleValue: __limitedParseDouble(output.doubleValue), + integerValue: __expectInt32(output.integerValue), + longValue: __expectLong(output.longValue), name: __expectString(output.name), stringSetValue: output.stringSetValue !== undefined && output.stringSetValue !== null @@ -9629,7 +9630,7 @@ const deserializeAws_json1_1RunTaskResponse = (output: any, context: __SerdeCont const deserializeAws_json1_1Scale = (output: any, context: __SerdeContext): Scale => { return { unit: __expectString(output.unit), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -9681,14 +9682,14 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se output.deployments !== undefined && output.deployments !== null ? deserializeAws_json1_1Deployments(output.deployments, context) : undefined, - desiredCount: __expectInt(output.desiredCount), + desiredCount: __expectInt32(output.desiredCount), enableECSManagedTags: __expectBoolean(output.enableECSManagedTags), enableExecuteCommand: __expectBoolean(output.enableExecuteCommand), events: output.events !== undefined && output.events !== null ? deserializeAws_json1_1ServiceEvents(output.events, context) : undefined, - healthCheckGracePeriodSeconds: __expectInt(output.healthCheckGracePeriodSeconds), + healthCheckGracePeriodSeconds: __expectInt32(output.healthCheckGracePeriodSeconds), launchType: __expectString(output.launchType), loadBalancers: output.loadBalancers !== undefined && output.loadBalancers !== null @@ -9698,7 +9699,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se output.networkConfiguration !== undefined && output.networkConfiguration !== null ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context) : undefined, - pendingCount: __expectInt(output.pendingCount), + pendingCount: __expectInt32(output.pendingCount), placementConstraints: output.placementConstraints !== undefined && output.placementConstraints !== null ? deserializeAws_json1_1PlacementConstraints(output.placementConstraints, context) @@ -9710,7 +9711,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se platformVersion: __expectString(output.platformVersion), propagateTags: __expectString(output.propagateTags), roleArn: __expectString(output.roleArn), - runningCount: __expectInt(output.runningCount), + runningCount: __expectInt32(output.runningCount), schedulingStrategy: __expectString(output.schedulingStrategy), serviceArn: __expectString(output.serviceArn), serviceName: __expectString(output.serviceName), @@ -9783,8 +9784,8 @@ const deserializeAws_json1_1ServiceRegistries = (output: any, context: __SerdeCo const deserializeAws_json1_1ServiceRegistry = (output: any, context: __SerdeContext): ServiceRegistry => { return { containerName: __expectString(output.containerName), - containerPort: __expectInt(output.containerPort), - port: __expectInt(output.port), + containerPort: __expectInt32(output.containerPort), + port: __expectInt32(output.port), registryArn: __expectString(output.registryArn), } as any; }; @@ -10045,7 +10046,7 @@ const deserializeAws_json1_1Task = (output: any, context: __SerdeContext): Task output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined, taskArn: __expectString(output.taskArn), taskDefinitionArn: __expectString(output.taskDefinitionArn), - version: __expectInt(output.version), + version: __expectLong(output.version), } as any; }; @@ -10099,7 +10100,7 @@ const deserializeAws_json1_1TaskDefinition = (output: any, context: __SerdeConte output.requiresCompatibilities !== undefined && output.requiresCompatibilities !== null ? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context) : undefined, - revision: __expectInt(output.revision), + revision: __expectInt32(output.revision), status: __expectString(output.status), taskDefinitionArn: __expectString(output.taskDefinitionArn), taskRoleArn: __expectString(output.taskRoleArn), @@ -10173,7 +10174,7 @@ const deserializeAws_json1_1TaskSet = (output: any, context: __SerdeContext): Ta ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context) : undefined, clusterArn: __expectString(output.clusterArn), - computedDesiredCount: __expectInt(output.computedDesiredCount), + computedDesiredCount: __expectInt32(output.computedDesiredCount), createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) @@ -10189,9 +10190,9 @@ const deserializeAws_json1_1TaskSet = (output: any, context: __SerdeContext): Ta output.networkConfiguration !== undefined && output.networkConfiguration !== null ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context) : undefined, - pendingCount: __expectInt(output.pendingCount), + pendingCount: __expectInt32(output.pendingCount), platformVersion: __expectString(output.platformVersion), - runningCount: __expectInt(output.runningCount), + runningCount: __expectInt32(output.runningCount), scale: output.scale !== undefined && output.scale !== null ? deserializeAws_json1_1Scale(output.scale, context) @@ -10246,7 +10247,7 @@ const deserializeAws_json1_1Tmpfs = (output: any, context: __SerdeContext): Tmpf output.mountOptions !== undefined && output.mountOptions !== null ? deserializeAws_json1_1StringList(output.mountOptions, context) : undefined, - size: __expectInt(output.size), + size: __expectInt32(output.size), } as any; }; @@ -10263,9 +10264,9 @@ const deserializeAws_json1_1TmpfsList = (output: any, context: __SerdeContext): const deserializeAws_json1_1Ulimit = (output: any, context: __SerdeContext): Ulimit => { return { - hardLimit: __expectInt(output.hardLimit), + hardLimit: __expectInt32(output.hardLimit), name: __expectString(output.name), - softLimit: __expectInt(output.softLimit), + softLimit: __expectInt32(output.softLimit), } as any; }; diff --git a/clients/client-efs/protocols/Aws_restJson1.ts b/clients/client-efs/protocols/Aws_restJson1.ts index 272f341b5bbeb..91bd6bb1e8003 100644 --- a/clients/client-efs/protocols/Aws_restJson1.ts +++ b/clients/client-efs/protocols/Aws_restJson1.ts @@ -112,10 +112,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -1183,7 +1184,7 @@ export const deserializeAws_restJson1CreateFileSystemCommand = async ( contents.Name = __expectString(data.Name); } if (data.NumberOfMountTargets !== undefined && data.NumberOfMountTargets !== null) { - contents.NumberOfMountTargets = __expectInt(data.NumberOfMountTargets); + contents.NumberOfMountTargets = __expectInt32(data.NumberOfMountTargets); } if (data.OwnerId !== undefined && data.OwnerId !== null) { contents.OwnerId = __expectString(data.OwnerId); @@ -1192,7 +1193,7 @@ export const deserializeAws_restJson1CreateFileSystemCommand = async ( contents.PerformanceMode = __expectString(data.PerformanceMode); } if (data.ProvisionedThroughputInMibps !== undefined && data.ProvisionedThroughputInMibps !== null) { - contents.ProvisionedThroughputInMibps = __limitedParseFloat(data.ProvisionedThroughputInMibps); + contents.ProvisionedThroughputInMibps = __limitedParseDouble(data.ProvisionedThroughputInMibps); } if (data.SizeInBytes !== undefined && data.SizeInBytes !== null) { contents.SizeInBytes = deserializeAws_restJson1FileSystemSize(data.SizeInBytes, context); @@ -3290,7 +3291,7 @@ export const deserializeAws_restJson1UpdateFileSystemCommand = async ( contents.Name = __expectString(data.Name); } if (data.NumberOfMountTargets !== undefined && data.NumberOfMountTargets !== null) { - contents.NumberOfMountTargets = __expectInt(data.NumberOfMountTargets); + contents.NumberOfMountTargets = __expectInt32(data.NumberOfMountTargets); } if (data.OwnerId !== undefined && data.OwnerId !== null) { contents.OwnerId = __expectString(data.OwnerId); @@ -3299,7 +3300,7 @@ export const deserializeAws_restJson1UpdateFileSystemCommand = async ( contents.PerformanceMode = __expectString(data.PerformanceMode); } if (data.ProvisionedThroughputInMibps !== undefined && data.ProvisionedThroughputInMibps !== null) { - contents.ProvisionedThroughputInMibps = __limitedParseFloat(data.ProvisionedThroughputInMibps); + contents.ProvisionedThroughputInMibps = __limitedParseDouble(data.ProvisionedThroughputInMibps); } if (data.SizeInBytes !== undefined && data.SizeInBytes !== null) { contents.SizeInBytes = deserializeAws_restJson1FileSystemSize(data.SizeInBytes, context); @@ -4145,8 +4146,8 @@ const deserializeAws_restJson1BackupPolicy = (output: any, context: __SerdeConte const deserializeAws_restJson1CreationInfo = (output: any, context: __SerdeContext): CreationInfo => { return { - OwnerGid: __expectInt(output.OwnerGid), - OwnerUid: __expectInt(output.OwnerUid), + OwnerGid: __expectLong(output.OwnerGid), + OwnerUid: __expectLong(output.OwnerUid), Permissions: __expectString(output.Permissions), } as any; }; @@ -4166,10 +4167,10 @@ const deserializeAws_restJson1FileSystemDescription = (output: any, context: __S KmsKeyId: __expectString(output.KmsKeyId), LifeCycleState: __expectString(output.LifeCycleState), Name: __expectString(output.Name), - NumberOfMountTargets: __expectInt(output.NumberOfMountTargets), + NumberOfMountTargets: __expectInt32(output.NumberOfMountTargets), OwnerId: __expectString(output.OwnerId), PerformanceMode: __expectString(output.PerformanceMode), - ProvisionedThroughputInMibps: __limitedParseFloat(output.ProvisionedThroughputInMibps), + ProvisionedThroughputInMibps: __limitedParseDouble(output.ProvisionedThroughputInMibps), SizeInBytes: output.SizeInBytes !== undefined && output.SizeInBytes !== null ? deserializeAws_restJson1FileSystemSize(output.SizeInBytes, context) @@ -4202,9 +4203,9 @@ const deserializeAws_restJson1FileSystemSize = (output: any, context: __SerdeCon output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Value: __expectInt(output.Value), - ValueInIA: __expectInt(output.ValueInIA), - ValueInStandard: __expectInt(output.ValueInStandard), + Value: __expectLong(output.Value), + ValueInIA: __expectLong(output.ValueInIA), + ValueInStandard: __expectLong(output.ValueInStandard), } as any; }; @@ -4259,12 +4260,12 @@ const deserializeAws_restJson1MountTargetDescriptions = ( const deserializeAws_restJson1PosixUser = (output: any, context: __SerdeContext): PosixUser => { return { - Gid: __expectInt(output.Gid), + Gid: __expectLong(output.Gid), SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null ? deserializeAws_restJson1SecondaryGids(output.SecondaryGids, context) : undefined, - Uid: __expectInt(output.Uid), + Uid: __expectLong(output.Uid), } as any; }; @@ -4306,7 +4307,7 @@ const deserializeAws_restJson1SecondaryGids = (output: any, context: __SerdeCont if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectLong(entry) as any; }); }; diff --git a/clients/client-eks/protocols/Aws_restJson1.ts b/clients/client-eks/protocols/Aws_restJson1.ts index 74a78c593293e..1785495dd7cd2 100644 --- a/clients/client-eks/protocols/Aws_restJson1.ts +++ b/clients/client-eks/protocols/Aws_restJson1.ts @@ -131,7 +131,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -5208,7 +5208,7 @@ const deserializeAws_restJson1Nodegroup = (output: any, context: __SerdeContext) output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - diskSize: __expectInt(output.diskSize), + diskSize: __expectInt32(output.diskSize), health: output.health !== undefined && output.health !== null ? deserializeAws_restJson1NodegroupHealth(output.health, context) @@ -5290,16 +5290,16 @@ const deserializeAws_restJson1NodegroupScalingConfig = ( context: __SerdeContext ): NodegroupScalingConfig => { return { - desiredSize: __expectInt(output.desiredSize), - maxSize: __expectInt(output.maxSize), - minSize: __expectInt(output.minSize), + desiredSize: __expectInt32(output.desiredSize), + maxSize: __expectInt32(output.maxSize), + minSize: __expectInt32(output.minSize), } as any; }; const deserializeAws_restJson1NodegroupUpdateConfig = (output: any, context: __SerdeContext): NodegroupUpdateConfig => { return { - maxUnavailable: __expectInt(output.maxUnavailable), - maxUnavailablePercentage: __expectInt(output.maxUnavailablePercentage), + maxUnavailable: __expectInt32(output.maxUnavailable), + maxUnavailablePercentage: __expectInt32(output.maxUnavailablePercentage), } as any; }; diff --git a/clients/client-elastic-beanstalk/protocols/Aws_query.ts b/clients/client-elastic-beanstalk/protocols/Aws_query.ts index a18f4ddb01752..68e16a8da6e5b 100644 --- a/clients/client-elastic-beanstalk/protocols/Aws_query.ts +++ b/clients/client-elastic-beanstalk/protocols/Aws_query.ts @@ -319,7 +319,8 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -5572,10 +5573,10 @@ const deserializeAws_queryApplicationMetrics = (output: any, context: __SerdeCon Latency: undefined, }; if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["RequestCount"] !== undefined) { - contents.RequestCount = __strictParseInt(output["RequestCount"]) as number; + contents.RequestCount = __strictParseInt32(output["RequestCount"]) as number; } if (output["StatusCodes"] !== undefined) { contents.StatusCodes = deserializeAws_queryStatusCodes(output["StatusCodes"], context); @@ -5915,13 +5916,13 @@ const deserializeAws_queryConfigurationOptionDescription = ( ); } if (output["MinValue"] !== undefined) { - contents.MinValue = __strictParseInt(output["MinValue"]) as number; + contents.MinValue = __strictParseInt32(output["MinValue"]) as number; } if (output["MaxValue"] !== undefined) { - contents.MaxValue = __strictParseInt(output["MaxValue"]) as number; + contents.MaxValue = __strictParseInt32(output["MaxValue"]) as number; } if (output["MaxLength"] !== undefined) { - contents.MaxLength = __strictParseInt(output["MaxLength"]) as number; + contents.MaxLength = __strictParseInt32(output["MaxLength"]) as number; } if (output["Regex"] !== undefined) { contents.Regex = deserializeAws_queryOptionRestrictionRegex(output["Regex"], context); @@ -6255,7 +6256,7 @@ const deserializeAws_queryDeployment = (output: any, context: __SerdeContext): D contents.VersionLabel = __expectString(output["VersionLabel"]); } if (output["DeploymentId"] !== undefined) { - contents.DeploymentId = __strictParseInt(output["DeploymentId"]) as number; + contents.DeploymentId = __strictParseLong(output["DeploymentId"]) as number; } if (output["Status"] !== undefined) { contents.Status = __expectString(output["Status"]); @@ -6851,28 +6852,28 @@ const deserializeAws_queryInstanceHealthSummary = (output: any, context: __Serde Severe: undefined, }; if (output["NoData"] !== undefined) { - contents.NoData = __strictParseInt(output["NoData"]) as number; + contents.NoData = __strictParseInt32(output["NoData"]) as number; } if (output["Unknown"] !== undefined) { - contents.Unknown = __strictParseInt(output["Unknown"]) as number; + contents.Unknown = __strictParseInt32(output["Unknown"]) as number; } if (output["Pending"] !== undefined) { - contents.Pending = __strictParseInt(output["Pending"]) as number; + contents.Pending = __strictParseInt32(output["Pending"]) as number; } if (output["Ok"] !== undefined) { - contents.Ok = __strictParseInt(output["Ok"]) as number; + contents.Ok = __strictParseInt32(output["Ok"]) as number; } if (output["Info"] !== undefined) { - contents.Info = __strictParseInt(output["Info"]) as number; + contents.Info = __strictParseInt32(output["Info"]) as number; } if (output["Warning"] !== undefined) { - contents.Warning = __strictParseInt(output["Warning"]) as number; + contents.Warning = __strictParseInt32(output["Warning"]) as number; } if (output["Degraded"] !== undefined) { - contents.Degraded = __strictParseInt(output["Degraded"]) as number; + contents.Degraded = __strictParseInt32(output["Degraded"]) as number; } if (output["Severe"] !== undefined) { - contents.Severe = __strictParseInt(output["Severe"]) as number; + contents.Severe = __strictParseInt32(output["Severe"]) as number; } return contents; }; @@ -7029,7 +7030,7 @@ const deserializeAws_queryListener = (output: any, context: __SerdeContext): Lis contents.Protocol = __expectString(output["Protocol"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } return contents; }; @@ -7265,7 +7266,7 @@ const deserializeAws_queryMaxAgeRule = (output: any, context: __SerdeContext): M contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["MaxAgeInDays"] !== undefined) { - contents.MaxAgeInDays = __strictParseInt(output["MaxAgeInDays"]) as number; + contents.MaxAgeInDays = __strictParseInt32(output["MaxAgeInDays"]) as number; } if (output["DeleteSourceFromS3"] !== undefined) { contents.DeleteSourceFromS3 = __parseBoolean(output["DeleteSourceFromS3"]); @@ -7283,7 +7284,7 @@ const deserializeAws_queryMaxCountRule = (output: any, context: __SerdeContext): contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["MaxCount"] !== undefined) { - contents.MaxCount = __strictParseInt(output["MaxCount"]) as number; + contents.MaxCount = __strictParseInt32(output["MaxCount"]) as number; } if (output["DeleteSourceFromS3"] !== undefined) { contents.DeleteSourceFromS3 = __parseBoolean(output["DeleteSourceFromS3"]); @@ -7336,7 +7337,7 @@ const deserializeAws_queryPlatformBranchSummary = (output: any, context: __Serde contents.LifecycleState = __expectString(output["LifecycleState"]); } if (output["BranchOrder"] !== undefined) { - contents.BranchOrder = __strictParseInt(output["BranchOrder"]) as number; + contents.BranchOrder = __strictParseInt32(output["BranchOrder"]) as number; } if (output.SupportedTierList === "") { contents.SupportedTierList = []; @@ -7673,7 +7674,7 @@ const deserializeAws_queryResourceQuota = (output: any, context: __SerdeContext) Maximum: undefined, }; if (output["Maximum"] !== undefined) { - contents.Maximum = __strictParseInt(output["Maximum"]) as number; + contents.Maximum = __strictParseInt32(output["Maximum"]) as number; } return contents; }; @@ -7924,16 +7925,16 @@ const deserializeAws_queryStatusCodes = (output: any, context: __SerdeContext): Status5xx: undefined, }; if (output["Status2xx"] !== undefined) { - contents.Status2xx = __strictParseInt(output["Status2xx"]) as number; + contents.Status2xx = __strictParseInt32(output["Status2xx"]) as number; } if (output["Status3xx"] !== undefined) { - contents.Status3xx = __strictParseInt(output["Status3xx"]) as number; + contents.Status3xx = __strictParseInt32(output["Status3xx"]) as number; } if (output["Status4xx"] !== undefined) { - contents.Status4xx = __strictParseInt(output["Status4xx"]) as number; + contents.Status4xx = __strictParseInt32(output["Status4xx"]) as number; } if (output["Status5xx"] !== undefined) { - contents.Status5xx = __strictParseInt(output["Status5xx"]) as number; + contents.Status5xx = __strictParseInt32(output["Status5xx"]) as number; } return contents; }; diff --git a/clients/client-elastic-inference/protocols/Aws_restJson1.ts b/clients/client-elastic-inference/protocols/Aws_restJson1.ts index 2b38aca35c3ce..2edc23b4ae6a1 100644 --- a/clients/client-elastic-inference/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-inference/protocols/Aws_restJson1.ts @@ -30,7 +30,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -834,13 +834,13 @@ const deserializeAws_restJson1ElasticInferenceAcceleratorSet = ( const deserializeAws_restJson1KeyValuePair = (output: any, context: __SerdeContext): KeyValuePair => { return { key: __expectString(output.key), - value: __expectInt(output.value), + value: __expectInt32(output.value), } as any; }; const deserializeAws_restJson1MemoryInfo = (output: any, context: __SerdeContext): MemoryInfo => { return { - sizeInMiB: __expectInt(output.sizeInMiB), + sizeInMiB: __expectInt32(output.sizeInMiB), } as any; }; diff --git a/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts b/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts index b801312f50c91..7a6c6c3a6bffe 100644 --- a/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts @@ -219,7 +219,8 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -5676,7 +5677,7 @@ const deserializeAws_queryAction = (output: any, context: __SerdeContext): Actio ); } if (output["Order"] !== undefined) { - contents.Order = __strictParseInt(output["Order"]) as number; + contents.Order = __strictParseInt32(output["Order"]) as number; } if (output["RedirectConfig"] !== undefined) { contents.RedirectConfig = deserializeAws_queryRedirectActionConfig(output["RedirectConfig"], context); @@ -5810,7 +5811,7 @@ const deserializeAws_queryAuthenticateCognitoActionConfig = ( contents.Scope = __expectString(output["Scope"]); } if (output["SessionTimeout"] !== undefined) { - contents.SessionTimeout = __strictParseInt(output["SessionTimeout"]) as number; + contents.SessionTimeout = __strictParseLong(output["SessionTimeout"]) as number; } if (output.AuthenticationRequestExtraParams === "") { contents.AuthenticationRequestExtraParams = {}; @@ -5889,7 +5890,7 @@ const deserializeAws_queryAuthenticateOidcActionConfig = ( contents.Scope = __expectString(output["Scope"]); } if (output["SessionTimeout"] !== undefined) { - contents.SessionTimeout = __strictParseInt(output["SessionTimeout"]) as number; + contents.SessionTimeout = __strictParseLong(output["SessionTimeout"]) as number; } if (output.AuthenticationRequestExtraParams === "") { contents.AuthenticationRequestExtraParams = {}; @@ -6012,7 +6013,7 @@ const deserializeAws_queryCipher = (output: any, context: __SerdeContext): Ciphe contents.Name = __expectString(output["Name"]); } if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt(output["Priority"]) as number; + contents.Priority = __strictParseInt32(output["Priority"]) as number; } return contents; }; @@ -6622,7 +6623,7 @@ const deserializeAws_queryListener = (output: any, context: __SerdeContext): Lis contents.LoadBalancerArn = __expectString(output["LoadBalancerArn"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["Protocol"] !== undefined) { contents.Protocol = __expectString(output["Protocol"]); @@ -7439,7 +7440,7 @@ const deserializeAws_queryTargetDescription = (output: any, context: __SerdeCont contents.Id = __expectString(output["Id"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["AvailabilityZone"] !== undefined) { contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); @@ -7477,7 +7478,7 @@ const deserializeAws_queryTargetGroup = (output: any, context: __SerdeContext): contents.Protocol = __expectString(output["Protocol"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["VpcId"] !== undefined) { contents.VpcId = __expectString(output["VpcId"]); @@ -7492,16 +7493,16 @@ const deserializeAws_queryTargetGroup = (output: any, context: __SerdeContext): contents.HealthCheckEnabled = __parseBoolean(output["HealthCheckEnabled"]); } if (output["HealthCheckIntervalSeconds"] !== undefined) { - contents.HealthCheckIntervalSeconds = __strictParseInt(output["HealthCheckIntervalSeconds"]) as number; + contents.HealthCheckIntervalSeconds = __strictParseInt32(output["HealthCheckIntervalSeconds"]) as number; } if (output["HealthCheckTimeoutSeconds"] !== undefined) { - contents.HealthCheckTimeoutSeconds = __strictParseInt(output["HealthCheckTimeoutSeconds"]) as number; + contents.HealthCheckTimeoutSeconds = __strictParseInt32(output["HealthCheckTimeoutSeconds"]) as number; } if (output["HealthyThresholdCount"] !== undefined) { - contents.HealthyThresholdCount = __strictParseInt(output["HealthyThresholdCount"]) as number; + contents.HealthyThresholdCount = __strictParseInt32(output["HealthyThresholdCount"]) as number; } if (output["UnhealthyThresholdCount"] !== undefined) { - contents.UnhealthyThresholdCount = __strictParseInt(output["UnhealthyThresholdCount"]) as number; + contents.UnhealthyThresholdCount = __strictParseInt32(output["UnhealthyThresholdCount"]) as number; } if (output["HealthCheckPath"] !== undefined) { contents.HealthCheckPath = __expectString(output["HealthCheckPath"]); @@ -7612,7 +7613,7 @@ const deserializeAws_queryTargetGroupStickinessConfig = ( contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["DurationSeconds"] !== undefined) { - contents.DurationSeconds = __strictParseInt(output["DurationSeconds"]) as number; + contents.DurationSeconds = __strictParseInt32(output["DurationSeconds"]) as number; } return contents; }; @@ -7626,7 +7627,7 @@ const deserializeAws_queryTargetGroupTuple = (output: any, context: __SerdeConte contents.TargetGroupArn = __expectString(output["TargetGroupArn"]); } if (output["Weight"] !== undefined) { - contents.Weight = __strictParseInt(output["Weight"]) as number; + contents.Weight = __strictParseInt32(output["Weight"]) as number; } return contents; }; diff --git a/clients/client-elastic-load-balancing/protocols/Aws_query.ts b/clients/client-elastic-load-balancing/protocols/Aws_query.ts index 9a03812c9c00e..7d5148d6bebad 100644 --- a/clients/client-elastic-load-balancing/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing/protocols/Aws_query.ts @@ -214,7 +214,8 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3925,7 +3926,7 @@ const deserializeAws_queryAccessLog = (output: any, context: __SerdeContext): Ac contents.S3BucketName = __expectString(output["S3BucketName"]); } if (output["EmitInterval"] !== undefined) { - contents.EmitInterval = __strictParseInt(output["EmitInterval"]) as number; + contents.EmitInterval = __strictParseInt32(output["EmitInterval"]) as number; } if (output["S3BucketPrefix"] !== undefined) { contents.S3BucketPrefix = __expectString(output["S3BucketPrefix"]); @@ -4081,7 +4082,7 @@ const deserializeAws_queryBackendServerDescription = ( PolicyNames: undefined, }; if (output["InstancePort"] !== undefined) { - contents.InstancePort = __strictParseInt(output["InstancePort"]) as number; + contents.InstancePort = __strictParseInt32(output["InstancePort"]) as number; } if (output.PolicyNames === "") { contents.PolicyNames = []; @@ -4144,7 +4145,7 @@ const deserializeAws_queryConnectionDraining = (output: any, context: __SerdeCon contents.Enabled = __parseBoolean(output["Enabled"]); } if (output["Timeout"] !== undefined) { - contents.Timeout = __strictParseInt(output["Timeout"]) as number; + contents.Timeout = __strictParseInt32(output["Timeout"]) as number; } return contents; }; @@ -4154,7 +4155,7 @@ const deserializeAws_queryConnectionSettings = (output: any, context: __SerdeCon IdleTimeout: undefined, }; if (output["IdleTimeout"] !== undefined) { - contents.IdleTimeout = __strictParseInt(output["IdleTimeout"]) as number; + contents.IdleTimeout = __strictParseInt32(output["IdleTimeout"]) as number; } return contents; }; @@ -4473,16 +4474,16 @@ const deserializeAws_queryHealthCheck = (output: any, context: __SerdeContext): contents.Target = __expectString(output["Target"]); } if (output["Interval"] !== undefined) { - contents.Interval = __strictParseInt(output["Interval"]) as number; + contents.Interval = __strictParseInt32(output["Interval"]) as number; } if (output["Timeout"] !== undefined) { - contents.Timeout = __strictParseInt(output["Timeout"]) as number; + contents.Timeout = __strictParseInt32(output["Timeout"]) as number; } if (output["UnhealthyThreshold"] !== undefined) { - contents.UnhealthyThreshold = __strictParseInt(output["UnhealthyThreshold"]) as number; + contents.UnhealthyThreshold = __strictParseInt32(output["UnhealthyThreshold"]) as number; } if (output["HealthyThreshold"] !== undefined) { - contents.HealthyThreshold = __strictParseInt(output["HealthyThreshold"]) as number; + contents.HealthyThreshold = __strictParseInt32(output["HealthyThreshold"]) as number; } return contents; }; @@ -4626,7 +4627,7 @@ const deserializeAws_queryLBCookieStickinessPolicy = ( contents.PolicyName = __expectString(output["PolicyName"]); } if (output["CookieExpirationPeriod"] !== undefined) { - contents.CookieExpirationPeriod = __strictParseInt(output["CookieExpirationPeriod"]) as number; + contents.CookieExpirationPeriod = __strictParseLong(output["CookieExpirationPeriod"]) as number; } return contents; }; @@ -4668,13 +4669,13 @@ const deserializeAws_queryListener = (output: any, context: __SerdeContext): Lis contents.Protocol = __expectString(output["Protocol"]); } if (output["LoadBalancerPort"] !== undefined) { - contents.LoadBalancerPort = __strictParseInt(output["LoadBalancerPort"]) as number; + contents.LoadBalancerPort = __strictParseInt32(output["LoadBalancerPort"]) as number; } if (output["InstanceProtocol"] !== undefined) { contents.InstanceProtocol = __expectString(output["InstanceProtocol"]); } if (output["InstancePort"] !== undefined) { - contents.InstancePort = __strictParseInt(output["InstancePort"]) as number; + contents.InstancePort = __strictParseInt32(output["InstancePort"]) as number; } if (output["SSLCertificateId"] !== undefined) { contents.SSLCertificateId = __expectString(output["SSLCertificateId"]); diff --git a/clients/client-elastic-transcoder/protocols/Aws_restJson1.ts b/clients/client-elastic-transcoder/protocols/Aws_restJson1.ts index 119e09f470c01..29bd69b44ca98 100644 --- a/clients/client-elastic-transcoder/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-transcoder/protocols/Aws_restJson1.ts @@ -63,7 +63,8 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2910,11 +2911,11 @@ const deserializeAws_restJson1Composition = (output: any, context: __SerdeContex const deserializeAws_restJson1DetectedProperties = (output: any, context: __SerdeContext): DetectedProperties => { return { - DurationMillis: __expectInt(output.DurationMillis), - FileSize: __expectInt(output.FileSize), + DurationMillis: __expectLong(output.DurationMillis), + FileSize: __expectLong(output.FileSize), FrameRate: __expectString(output.FrameRate), - Height: __expectInt(output.Height), - Width: __expectInt(output.Width), + Height: __expectInt32(output.Height), + Width: __expectInt32(output.Width), } as any; }; @@ -3060,15 +3061,15 @@ const deserializeAws_restJson1JobOutput = (output: any, context: __SerdeContext) output.Composition !== undefined && output.Composition !== null ? deserializeAws_restJson1Composition(output.Composition, context) : undefined, - Duration: __expectInt(output.Duration), - DurationMillis: __expectInt(output.DurationMillis), + Duration: __expectLong(output.Duration), + DurationMillis: __expectLong(output.DurationMillis), Encryption: output.Encryption !== undefined && output.Encryption !== null ? deserializeAws_restJson1Encryption(output.Encryption, context) : undefined, - FileSize: __expectInt(output.FileSize), + FileSize: __expectLong(output.FileSize), FrameRate: __expectString(output.FrameRate), - Height: __expectInt(output.Height), + Height: __expectInt32(output.Height), Id: __expectString(output.Id), Key: __expectString(output.Key), PresetId: __expectString(output.PresetId), @@ -3085,7 +3086,7 @@ const deserializeAws_restJson1JobOutput = (output: any, context: __SerdeContext) output.Watermarks !== undefined && output.Watermarks !== null ? deserializeAws_restJson1JobWatermarks(output.Watermarks, context) : undefined, - Width: __expectInt(output.Width), + Width: __expectInt32(output.Width), } as any; }; @@ -3347,9 +3348,9 @@ const deserializeAws_restJson1TimeSpan = (output: any, context: __SerdeContext): const deserializeAws_restJson1Timing = (output: any, context: __SerdeContext): Timing => { return { - FinishTimeMillis: __expectInt(output.FinishTimeMillis), - StartTimeMillis: __expectInt(output.StartTimeMillis), - SubmitTimeMillis: __expectInt(output.SubmitTimeMillis), + FinishTimeMillis: __expectLong(output.FinishTimeMillis), + StartTimeMillis: __expectLong(output.StartTimeMillis), + SubmitTimeMillis: __expectLong(output.SubmitTimeMillis), } as any; }; diff --git a/clients/client-elasticache/protocols/Aws_query.ts b/clients/client-elasticache/protocols/Aws_query.ts index 51f41ecc682d0..0120e77645b83 100644 --- a/clients/client-elasticache/protocols/Aws_query.ts +++ b/clients/client-elasticache/protocols/Aws_query.ts @@ -454,7 +454,7 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -10783,7 +10783,7 @@ const deserializeAws_queryAuthentication = (output: any, context: __SerdeContext contents.Type = __expectString(output["Type"]); } if (output["PasswordCount"] !== undefined) { - contents.PasswordCount = __strictParseInt(output["PasswordCount"]) as number; + contents.PasswordCount = __strictParseInt32(output["PasswordCount"]) as number; } return contents; }; @@ -10903,7 +10903,7 @@ const deserializeAws_queryCacheCluster = (output: any, context: __SerdeContext): contents.CacheClusterStatus = __expectString(output["CacheClusterStatus"]); } if (output["NumCacheNodes"] !== undefined) { - contents.NumCacheNodes = __strictParseInt(output["NumCacheNodes"]) as number; + contents.NumCacheNodes = __strictParseInt32(output["NumCacheNodes"]) as number; } if (output["PreferredAvailabilityZone"] !== undefined) { contents.PreferredAvailabilityZone = __expectString(output["PreferredAvailabilityZone"]); @@ -10975,7 +10975,7 @@ const deserializeAws_queryCacheCluster = (output: any, context: __SerdeContext): contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); } if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt(output["SnapshotRetentionLimit"]) as number; + contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; } if (output["SnapshotWindow"] !== undefined) { contents.SnapshotWindow = __expectString(output["SnapshotWindow"]); @@ -12224,7 +12224,7 @@ const deserializeAws_queryEndpoint = (output: any, context: __SerdeContext): End contents.Address = __expectString(output["Address"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } return contents; }; @@ -12920,7 +12920,7 @@ const deserializeAws_queryNodeGroupConfiguration = (output: any, context: __Serd contents.Slots = __expectString(output["Slots"]); } if (output["ReplicaCount"] !== undefined) { - contents.ReplicaCount = __strictParseInt(output["ReplicaCount"]) as number; + contents.ReplicaCount = __strictParseInt32(output["ReplicaCount"]) as number; } if (output["PrimaryAvailabilityZone"] !== undefined) { contents.PrimaryAvailabilityZone = __expectString(output["PrimaryAvailabilityZone"]); @@ -13348,7 +13348,7 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde LogDeliveryConfigurations: undefined, }; if (output["NumCacheNodes"] !== undefined) { - contents.NumCacheNodes = __strictParseInt(output["NumCacheNodes"]) as number; + contents.NumCacheNodes = __strictParseInt32(output["NumCacheNodes"]) as number; } if (output.CacheNodeIdsToRemove === "") { contents.CacheNodeIdsToRemove = []; @@ -13566,7 +13566,7 @@ const deserializeAws_queryReplicationGroup = (output: any, context: __SerdeConte contents.ConfigurationEndpoint = deserializeAws_queryEndpoint(output["ConfigurationEndpoint"], context); } if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt(output["SnapshotRetentionLimit"]) as number; + contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; } if (output["SnapshotWindow"] !== undefined) { contents.SnapshotWindow = __expectString(output["SnapshotWindow"]); @@ -13799,7 +13799,7 @@ const deserializeAws_queryReservedCacheNode = (output: any, context: __SerdeCont contents.StartTime = new Date(output["StartTime"]); } if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["FixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; @@ -13808,7 +13808,7 @@ const deserializeAws_queryReservedCacheNode = (output: any, context: __SerdeCont contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; } if (output["CacheNodeCount"] !== undefined) { - contents.CacheNodeCount = __strictParseInt(output["CacheNodeCount"]) as number; + contents.CacheNodeCount = __strictParseInt32(output["CacheNodeCount"]) as number; } if (output["ProductDescription"] !== undefined) { contents.ProductDescription = __expectString(output["ProductDescription"]); @@ -13928,7 +13928,7 @@ const deserializeAws_queryReservedCacheNodesOffering = ( contents.CacheNodeType = __expectString(output["CacheNodeType"]); } if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["FixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; @@ -14237,7 +14237,7 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna contents.EngineVersion = __expectString(output["EngineVersion"]); } if (output["NumCacheNodes"] !== undefined) { - contents.NumCacheNodes = __strictParseInt(output["NumCacheNodes"]) as number; + contents.NumCacheNodes = __strictParseInt32(output["NumCacheNodes"]) as number; } if (output["PreferredAvailabilityZone"] !== undefined) { contents.PreferredAvailabilityZone = __expectString(output["PreferredAvailabilityZone"]); @@ -14255,7 +14255,7 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna contents.TopicArn = __expectString(output["TopicArn"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["CacheParameterGroupName"] !== undefined) { contents.CacheParameterGroupName = __expectString(output["CacheParameterGroupName"]); @@ -14270,13 +14270,13 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); } if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt(output["SnapshotRetentionLimit"]) as number; + contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; } if (output["SnapshotWindow"] !== undefined) { contents.SnapshotWindow = __expectString(output["SnapshotWindow"]); } if (output["NumNodeGroups"] !== undefined) { - contents.NumNodeGroups = __strictParseInt(output["NumNodeGroups"]) as number; + contents.NumNodeGroups = __strictParseInt32(output["NumNodeGroups"]) as number; } if (output["AutomaticFailover"] !== undefined) { contents.AutomaticFailover = __expectString(output["AutomaticFailover"]); diff --git a/clients/client-elasticsearch-service/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/protocols/Aws_restJson1.ts index 63fd904efeedb..dd12d6ec6b7e5 100644 --- a/clients/client-elasticsearch-service/protocols/Aws_restJson1.ts +++ b/clients/client-elasticsearch-service/protocols/Aws_restJson1.ts @@ -211,10 +211,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -5687,7 +5688,7 @@ const deserializeAws_restJson1AutoTuneStatus = (output: any, context: __SerdeCon output.UpdateDate !== undefined && output.UpdateDate !== null ? new Date(Math.round(output.UpdateDate * 1000)) : undefined, - UpdateVersion: __expectInt(output.UpdateVersion), + UpdateVersion: __expectInt32(output.UpdateVersion), } as any; }; @@ -5831,15 +5832,15 @@ const deserializeAws_restJson1DomainPackageDetailsList = ( const deserializeAws_restJson1Duration = (output: any, context: __SerdeContext): Duration => { return { Unit: __expectString(output.Unit), - Value: __expectInt(output.Value), + Value: __expectLong(output.Value), } as any; }; const deserializeAws_restJson1EBSOptions = (output: any, context: __SerdeContext): EBSOptions => { return { EBSEnabled: __expectBoolean(output.EBSEnabled), - Iops: __expectInt(output.Iops), - VolumeSize: __expectInt(output.VolumeSize), + Iops: __expectInt32(output.Iops), + VolumeSize: __expectInt32(output.VolumeSize), VolumeType: __expectString(output.VolumeType), } as any; }; @@ -5866,12 +5867,12 @@ const deserializeAws_restJson1ElasticsearchClusterConfig = ( output.ColdStorageOptions !== undefined && output.ColdStorageOptions !== null ? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context) : undefined, - DedicatedMasterCount: __expectInt(output.DedicatedMasterCount), + DedicatedMasterCount: __expectInt32(output.DedicatedMasterCount), DedicatedMasterEnabled: __expectBoolean(output.DedicatedMasterEnabled), DedicatedMasterType: __expectString(output.DedicatedMasterType), - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceType: __expectString(output.InstanceType), - WarmCount: __expectInt(output.WarmCount), + WarmCount: __expectInt32(output.WarmCount), WarmEnabled: __expectBoolean(output.WarmEnabled), WarmType: __expectString(output.WarmType), ZoneAwarenessConfig: @@ -6180,8 +6181,8 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = ( const deserializeAws_restJson1InstanceCountLimits = (output: any, context: __SerdeContext): InstanceCountLimits => { return { - MaximumInstanceCount: __expectInt(output.MaximumInstanceCount), - MinimumInstanceCount: __expectInt(output.MinimumInstanceCount), + MaximumInstanceCount: __expectInt32(output.MaximumInstanceCount), + MinimumInstanceCount: __expectInt32(output.MinimumInstanceCount), } as any; }; @@ -6323,7 +6324,7 @@ const deserializeAws_restJson1OptionStatus = (output: any, context: __SerdeConte output.UpdateDate !== undefined && output.UpdateDate !== null ? new Date(Math.round(output.UpdateDate * 1000)) : undefined, - UpdateVersion: __expectInt(output.UpdateVersion), + UpdateVersion: __expectInt32(output.UpdateVersion), } as any; }; @@ -6434,7 +6435,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = ( const deserializeAws_restJson1RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { return { - RecurringChargeAmount: __limitedParseFloat(output.RecurringChargeAmount), + RecurringChargeAmount: __limitedParseDouble(output.RecurringChargeAmount), RecurringChargeFrequency: __expectString(output.RecurringChargeFrequency), } as any; }; @@ -6456,10 +6457,10 @@ const deserializeAws_restJson1ReservedElasticsearchInstance = ( ): ReservedElasticsearchInstance => { return { CurrencyCode: __expectString(output.CurrencyCode), - Duration: __expectInt(output.Duration), - ElasticsearchInstanceCount: __expectInt(output.ElasticsearchInstanceCount), + Duration: __expectInt32(output.Duration), + ElasticsearchInstanceCount: __expectInt32(output.ElasticsearchInstanceCount), ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType), - FixedPrice: __limitedParseFloat(output.FixedPrice), + FixedPrice: __limitedParseDouble(output.FixedPrice), PaymentOption: __expectString(output.PaymentOption), RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null @@ -6473,7 +6474,7 @@ const deserializeAws_restJson1ReservedElasticsearchInstance = ( ? new Date(Math.round(output.StartTime * 1000)) : undefined, State: __expectString(output.State), - UsagePrice: __limitedParseFloat(output.UsagePrice), + UsagePrice: __limitedParseDouble(output.UsagePrice), } as any; }; @@ -6497,16 +6498,16 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceOffering = ( ): ReservedElasticsearchInstanceOffering => { return { CurrencyCode: __expectString(output.CurrencyCode), - Duration: __expectInt(output.Duration), + Duration: __expectInt32(output.Duration), ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType), - FixedPrice: __limitedParseFloat(output.FixedPrice), + FixedPrice: __limitedParseDouble(output.FixedPrice), PaymentOption: __expectString(output.PaymentOption), RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context) : undefined, ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId), - UsagePrice: __limitedParseFloat(output.UsagePrice), + UsagePrice: __limitedParseDouble(output.UsagePrice), } as any; }; @@ -6539,7 +6540,7 @@ const deserializeAws_restJson1SAMLOptionsOutput = (output: any, context: __Serde ? deserializeAws_restJson1SAMLIdp(output.Idp, context) : undefined, RolesKey: __expectString(output.RolesKey), - SessionTimeoutMinutes: __expectInt(output.SessionTimeoutMinutes), + SessionTimeoutMinutes: __expectInt32(output.SessionTimeoutMinutes), SubjectKey: __expectString(output.SubjectKey), } as any; }; @@ -6577,7 +6578,7 @@ const deserializeAws_restJson1ServiceSoftwareOptions = ( const deserializeAws_restJson1SnapshotOptions = (output: any, context: __SerdeContext): SnapshotOptions => { return { - AutomatedSnapshotStartHour: __expectInt(output.AutomatedSnapshotStartHour), + AutomatedSnapshotStartHour: __expectInt32(output.AutomatedSnapshotStartHour), } as any; }; @@ -6698,7 +6699,7 @@ const deserializeAws_restJson1UpgradeStepItem = (output: any, context: __SerdeCo output.Issues !== undefined && output.Issues !== null ? deserializeAws_restJson1Issues(output.Issues, context) : undefined, - ProgressPercent: __limitedParseFloat(output.ProgressPercent), + ProgressPercent: __limitedParseDouble(output.ProgressPercent), UpgradeStep: __expectString(output.UpgradeStep), UpgradeStepStatus: __expectString(output.UpgradeStepStatus), } as any; @@ -6748,7 +6749,7 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output: any, context: __Se const deserializeAws_restJson1ZoneAwarenessConfig = (output: any, context: __SerdeContext): ZoneAwarenessConfig => { return { - AvailabilityZoneCount: __expectInt(output.AvailabilityZoneCount), + AvailabilityZoneCount: __expectInt32(output.AvailabilityZoneCount), } as any; }; diff --git a/clients/client-emr/protocols/Aws_json1_1.ts b/clients/client-emr/protocols/Aws_json1_1.ts index 584bbb4a32902..884e184403fe2 100644 --- a/clients/client-emr/protocols/Aws_json1_1.ts +++ b/clients/client-emr/protocols/Aws_json1_1.ts @@ -315,9 +315,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -5613,12 +5614,12 @@ const deserializeAws_json1_1CloudWatchAlarmDefinition = ( output.Dimensions !== undefined && output.Dimensions !== null ? deserializeAws_json1_1MetricDimensionList(output.Dimensions, context) : undefined, - EvaluationPeriods: __expectInt(output.EvaluationPeriods), + EvaluationPeriods: __expectInt32(output.EvaluationPeriods), MetricName: __expectString(output.MetricName), Namespace: __expectString(output.Namespace), - Period: __expectInt(output.Period), + Period: __expectInt32(output.Period), Statistic: __expectString(output.Statistic), - Threshold: __limitedParseFloat(output.Threshold), + Threshold: __limitedParseDouble(output.Threshold), Unit: __expectString(output.Unit), } as any; }; @@ -5637,7 +5638,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl ? deserializeAws_json1_1ConfigurationList(output.Configurations, context) : undefined, CustomAmiId: __expectString(output.CustomAmiId), - EbsRootVolumeSize: __expectInt(output.EbsRootVolumeSize), + EbsRootVolumeSize: __expectInt32(output.EbsRootVolumeSize), Ec2InstanceAttributes: output.Ec2InstanceAttributes !== undefined && output.Ec2InstanceAttributes !== null ? deserializeAws_json1_1Ec2InstanceAttributes(output.Ec2InstanceAttributes, context) @@ -5652,7 +5653,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl LogUri: __expectString(output.LogUri), MasterPublicDnsName: __expectString(output.MasterPublicDnsName), Name: __expectString(output.Name), - NormalizedInstanceHours: __expectInt(output.NormalizedInstanceHours), + NormalizedInstanceHours: __expectInt32(output.NormalizedInstanceHours), OutpostArn: __expectString(output.OutpostArn), PlacementGroups: output.PlacementGroups !== undefined && output.PlacementGroups !== null @@ -5669,7 +5670,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl output.Status !== undefined && output.Status !== null ? deserializeAws_json1_1ClusterStatus(output.Status, context) : undefined, - StepConcurrencyLevel: __expectInt(output.StepConcurrencyLevel), + StepConcurrencyLevel: __expectInt32(output.StepConcurrencyLevel), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) @@ -5708,7 +5709,7 @@ const deserializeAws_json1_1ClusterSummary = (output: any, context: __SerdeConte ClusterArn: __expectString(output.ClusterArn), Id: __expectString(output.Id), Name: __expectString(output.Name), - NormalizedInstanceHours: __expectInt(output.NormalizedInstanceHours), + NormalizedInstanceHours: __expectInt32(output.NormalizedInstanceHours), OutpostArn: __expectString(output.OutpostArn), Status: output.Status !== undefined && output.Status !== null @@ -5769,10 +5770,10 @@ const deserializeAws_json1_1CommandList = (output: any, context: __SerdeContext) const deserializeAws_json1_1ComputeLimits = (output: any, context: __SerdeContext): ComputeLimits => { return { - MaximumCapacityUnits: __expectInt(output.MaximumCapacityUnits), - MaximumCoreCapacityUnits: __expectInt(output.MaximumCoreCapacityUnits), - MaximumOnDemandCapacityUnits: __expectInt(output.MaximumOnDemandCapacityUnits), - MinimumCapacityUnits: __expectInt(output.MinimumCapacityUnits), + MaximumCapacityUnits: __expectInt32(output.MaximumCapacityUnits), + MaximumCoreCapacityUnits: __expectInt32(output.MaximumCoreCapacityUnits), + MaximumOnDemandCapacityUnits: __expectInt32(output.MaximumOnDemandCapacityUnits), + MinimumCapacityUnits: __expectInt32(output.MinimumCapacityUnits), UnitType: __expectString(output.UnitType), } as any; }; @@ -6107,14 +6108,14 @@ const deserializeAws_json1_1InstanceFleet = (output: any, context: __SerdeContex ? deserializeAws_json1_1InstanceFleetProvisioningSpecifications(output.LaunchSpecifications, context) : undefined, Name: __expectString(output.Name), - ProvisionedOnDemandCapacity: __expectInt(output.ProvisionedOnDemandCapacity), - ProvisionedSpotCapacity: __expectInt(output.ProvisionedSpotCapacity), + ProvisionedOnDemandCapacity: __expectInt32(output.ProvisionedOnDemandCapacity), + ProvisionedSpotCapacity: __expectInt32(output.ProvisionedSpotCapacity), Status: output.Status !== undefined && output.Status !== null ? deserializeAws_json1_1InstanceFleetStatus(output.Status, context) : undefined, - TargetOnDemandCapacity: __expectInt(output.TargetOnDemandCapacity), - TargetSpotCapacity: __expectInt(output.TargetSpotCapacity), + TargetOnDemandCapacity: __expectInt32(output.TargetOnDemandCapacity), + TargetSpotCapacity: __expectInt32(output.TargetSpotCapacity), } as any; }; @@ -6197,7 +6198,7 @@ const deserializeAws_json1_1InstanceGroup = (output: any, context: __SerdeContex output.Configurations !== undefined && output.Configurations !== null ? deserializeAws_json1_1ConfigurationList(output.Configurations, context) : undefined, - ConfigurationsVersion: __expectInt(output.ConfigurationsVersion), + ConfigurationsVersion: __expectLong(output.ConfigurationsVersion), CustomAmiId: __expectString(output.CustomAmiId), EbsBlockDevices: output.EbsBlockDevices !== undefined && output.EbsBlockDevices !== null @@ -6212,11 +6213,11 @@ const deserializeAws_json1_1InstanceGroup = (output: any, context: __SerdeContex output.LastSuccessfullyAppliedConfigurations !== null ? deserializeAws_json1_1ConfigurationList(output.LastSuccessfullyAppliedConfigurations, context) : undefined, - LastSuccessfullyAppliedConfigurationsVersion: __expectInt(output.LastSuccessfullyAppliedConfigurationsVersion), + LastSuccessfullyAppliedConfigurationsVersion: __expectLong(output.LastSuccessfullyAppliedConfigurationsVersion), Market: __expectString(output.Market), Name: __expectString(output.Name), - RequestedInstanceCount: __expectInt(output.RequestedInstanceCount), - RunningInstanceCount: __expectInt(output.RunningInstanceCount), + RequestedInstanceCount: __expectInt32(output.RequestedInstanceCount), + RunningInstanceCount: __expectInt32(output.RunningInstanceCount), ShrinkPolicy: output.ShrinkPolicy !== undefined && output.ShrinkPolicy !== null ? deserializeAws_json1_1ShrinkPolicy(output.ShrinkPolicy, context) @@ -6241,9 +6242,9 @@ const deserializeAws_json1_1InstanceGroupDetail = (output: any, context: __Serde ? new Date(Math.round(output.EndDateTime * 1000)) : undefined, InstanceGroupId: __expectString(output.InstanceGroupId), - InstanceRequestCount: __expectInt(output.InstanceRequestCount), + InstanceRequestCount: __expectInt32(output.InstanceRequestCount), InstanceRole: __expectString(output.InstanceRole), - InstanceRunningCount: __expectInt(output.InstanceRunningCount), + InstanceRunningCount: __expectInt32(output.InstanceRunningCount), InstanceType: __expectString(output.InstanceType), LastStateChangeReason: __expectString(output.LastStateChangeReason), Market: __expectString(output.Market), @@ -6347,7 +6348,7 @@ const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext const deserializeAws_json1_1InstanceResizePolicy = (output: any, context: __SerdeContext): InstanceResizePolicy => { return { - InstanceTerminationTimeout: __expectInt(output.InstanceTerminationTimeout), + InstanceTerminationTimeout: __expectInt32(output.InstanceTerminationTimeout), InstancesToProtect: output.InstancesToProtect !== undefined && output.InstancesToProtect !== null ? deserializeAws_json1_1EC2InstanceIdsList(output.InstancesToProtect, context) @@ -6406,7 +6407,7 @@ const deserializeAws_json1_1InstanceTypeSpecification = ( ): InstanceTypeSpecification => { return { BidPrice: __expectString(output.BidPrice), - BidPriceAsPercentageOfOnDemandPrice: __limitedParseFloat(output.BidPriceAsPercentageOfOnDemandPrice), + BidPriceAsPercentageOfOnDemandPrice: __limitedParseDouble(output.BidPriceAsPercentageOfOnDemandPrice), Configurations: output.Configurations !== undefined && output.Configurations !== null ? deserializeAws_json1_1ConfigurationList(output.Configurations, context) @@ -6418,7 +6419,7 @@ const deserializeAws_json1_1InstanceTypeSpecification = ( : undefined, EbsOptimized: __expectBoolean(output.EbsOptimized), InstanceType: __expectString(output.InstanceType), - WeightedCapacity: __expectInt(output.WeightedCapacity), + WeightedCapacity: __expectInt32(output.WeightedCapacity), } as any; }; @@ -6536,7 +6537,7 @@ const deserializeAws_json1_1JobFlowInstancesDetail = (output: any, context: __Se Ec2KeyName: __expectString(output.Ec2KeyName), Ec2SubnetId: __expectString(output.Ec2SubnetId), HadoopVersion: __expectString(output.HadoopVersion), - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceGroups: output.InstanceGroups !== undefined && output.InstanceGroups !== null ? deserializeAws_json1_1InstanceGroupDetailList(output.InstanceGroups, context) @@ -6545,7 +6546,7 @@ const deserializeAws_json1_1JobFlowInstancesDetail = (output: any, context: __Se MasterInstanceId: __expectString(output.MasterInstanceId), MasterInstanceType: __expectString(output.MasterInstanceType), MasterPublicDnsName: __expectString(output.MasterPublicDnsName), - NormalizedInstanceHours: __expectInt(output.NormalizedInstanceHours), + NormalizedInstanceHours: __expectInt32(output.NormalizedInstanceHours), Placement: output.Placement !== undefined && output.Placement !== null ? deserializeAws_json1_1PlacementType(output.Placement, context) @@ -6743,7 +6744,7 @@ const deserializeAws_json1_1MetricDimensionList = (output: any, context: __Serde const deserializeAws_json1_1ModifyClusterOutput = (output: any, context: __SerdeContext): ModifyClusterOutput => { return { - StepConcurrencyLevel: __expectInt(output.StepConcurrencyLevel), + StepConcurrencyLevel: __expectInt32(output.StepConcurrencyLevel), } as any; }; @@ -6864,8 +6865,8 @@ const deserializeAws_json1_1PlacementType = (output: any, context: __SerdeContex const deserializeAws_json1_1PortRange = (output: any, context: __SerdeContext): PortRange => { return { - MaxRange: __expectInt(output.MaxRange), - MinRange: __expectInt(output.MinRange), + MaxRange: __expectInt32(output.MaxRange), + MinRange: __expectInt32(output.MinRange), } as any; }; @@ -6946,8 +6947,8 @@ const deserializeAws_json1_1ScalingAction = (output: any, context: __SerdeContex const deserializeAws_json1_1ScalingConstraints = (output: any, context: __SerdeContext): ScalingConstraints => { return { - MaxCapacity: __expectInt(output.MaxCapacity), - MinCapacity: __expectInt(output.MinCapacity), + MaxCapacity: __expectInt32(output.MaxCapacity), + MinCapacity: __expectInt32(output.MinCapacity), } as any; }; @@ -7074,7 +7075,7 @@ const deserializeAws_json1_1SessionMappingSummaryList = ( const deserializeAws_json1_1ShrinkPolicy = (output: any, context: __SerdeContext): ShrinkPolicy => { return { - DecommissionTimeout: __expectInt(output.DecommissionTimeout), + DecommissionTimeout: __expectInt32(output.DecommissionTimeout), InstanceResizePolicy: output.InstanceResizePolicy !== undefined && output.InstanceResizePolicy !== null ? deserializeAws_json1_1InstanceResizePolicy(output.InstanceResizePolicy, context) @@ -7088,8 +7089,8 @@ const deserializeAws_json1_1SimpleScalingPolicyConfiguration = ( ): SimpleScalingPolicyConfiguration => { return { AdjustmentType: __expectString(output.AdjustmentType), - CoolDown: __expectInt(output.CoolDown), - ScalingAdjustment: __expectInt(output.ScalingAdjustment), + CoolDown: __expectInt32(output.CoolDown), + ScalingAdjustment: __expectInt32(output.ScalingAdjustment), } as any; }; @@ -7120,9 +7121,9 @@ const deserializeAws_json1_1SpotProvisioningSpecification = ( ): SpotProvisioningSpecification => { return { AllocationStrategy: __expectString(output.AllocationStrategy), - BlockDurationMinutes: __expectInt(output.BlockDurationMinutes), + BlockDurationMinutes: __expectInt32(output.BlockDurationMinutes), TimeoutAction: __expectString(output.TimeoutAction), - TimeoutDurationMinutes: __expectInt(output.TimeoutDurationMinutes), + TimeoutDurationMinutes: __expectInt32(output.TimeoutDurationMinutes), } as any; }; @@ -7407,8 +7408,8 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta const deserializeAws_json1_1VolumeSpecification = (output: any, context: __SerdeContext): VolumeSpecification => { return { - Iops: __expectInt(output.Iops), - SizeInGB: __expectInt(output.SizeInGB), + Iops: __expectInt32(output.Iops), + SizeInGB: __expectInt32(output.SizeInGB), VolumeType: __expectString(output.VolumeType), } as any; }; diff --git a/clients/client-eventbridge/protocols/Aws_json1_1.ts b/clients/client-eventbridge/protocols/Aws_json1_1.ts index f5c0d69bdd3bd..08740b4b72f29 100644 --- a/clients/client-eventbridge/protocols/Aws_json1_1.ts +++ b/clients/client-eventbridge/protocols/Aws_json1_1.ts @@ -264,7 +264,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -6033,7 +6034,7 @@ const deserializeAws_json1_1ApiDestination = (output: any, context: __SerdeConte : undefined, HttpMethod: __expectString(output.HttpMethod), InvocationEndpoint: __expectString(output.InvocationEndpoint), - InvocationRateLimitPerSecond: __expectInt(output.InvocationRateLimitPerSecond), + InvocationRateLimitPerSecond: __expectInt32(output.InvocationRateLimitPerSecond), LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) @@ -6060,10 +6061,10 @@ const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Ar output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, - EventCount: __expectInt(output.EventCount), + EventCount: __expectLong(output.EventCount), EventSourceArn: __expectString(output.EventSourceArn), - RetentionDays: __expectInt(output.RetentionDays), - SizeBytes: __expectInt(output.SizeBytes), + RetentionDays: __expectInt32(output.RetentionDays), + SizeBytes: __expectLong(output.SizeBytes), State: __expectString(output.State), StateReason: __expectString(output.StateReason), } as any; @@ -6096,7 +6097,7 @@ const deserializeAws_json1_1AwsVpcConfiguration = (output: any, context: __Serde const deserializeAws_json1_1BatchArrayProperties = (output: any, context: __SerdeContext): BatchArrayProperties => { return { - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), } as any; }; @@ -6117,7 +6118,7 @@ const deserializeAws_json1_1BatchParameters = (output: any, context: __SerdeCont const deserializeAws_json1_1BatchRetryStrategy = (output: any, context: __SerdeContext): BatchRetryStrategy => { return { - Attempts: __expectInt(output.Attempts), + Attempts: __expectInt32(output.Attempts), } as any; }; @@ -6148,9 +6149,9 @@ const deserializeAws_json1_1CapacityProviderStrategyItem = ( context: __SerdeContext ): CapacityProviderStrategyItem => { return { - base: __expectInt(output.base), + base: __expectInt32(output.base), capacityProvider: __expectString(output.capacityProvider), - weight: __expectInt(output.weight), + weight: __expectInt32(output.weight), } as any; }; @@ -6499,7 +6500,7 @@ const deserializeAws_json1_1DescribeApiDestinationResponse = ( Description: __expectString(output.Description), HttpMethod: __expectString(output.HttpMethod), InvocationEndpoint: __expectString(output.InvocationEndpoint), - InvocationRateLimitPerSecond: __expectInt(output.InvocationRateLimitPerSecond), + InvocationRateLimitPerSecond: __expectInt32(output.InvocationRateLimitPerSecond), LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) @@ -6520,11 +6521,11 @@ const deserializeAws_json1_1DescribeArchiveResponse = ( ? new Date(Math.round(output.CreationTime * 1000)) : undefined, Description: __expectString(output.Description), - EventCount: __expectInt(output.EventCount), + EventCount: __expectLong(output.EventCount), EventPattern: __expectString(output.EventPattern), EventSourceArn: __expectString(output.EventSourceArn), - RetentionDays: __expectInt(output.RetentionDays), - SizeBytes: __expectInt(output.SizeBytes), + RetentionDays: __expectInt32(output.RetentionDays), + SizeBytes: __expectLong(output.SizeBytes), State: __expectString(output.State), StateReason: __expectString(output.StateReason), } as any; @@ -6681,7 +6682,7 @@ const deserializeAws_json1_1EcsParameters = (output: any, context: __SerdeContex output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, - TaskCount: __expectInt(output.TaskCount), + TaskCount: __expectInt32(output.TaskCount), TaskDefinitionArn: __expectString(output.TaskDefinitionArn), } as any; }; @@ -7090,7 +7091,7 @@ const deserializeAws_json1_1PutEventsResponse = (output: any, context: __SerdeCo output.Entries !== undefined && output.Entries !== null ? deserializeAws_json1_1PutEventsResultEntryList(output.Entries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7125,7 +7126,7 @@ const deserializeAws_json1_1PutPartnerEventsResponse = ( output.Entries !== undefined && output.Entries !== null ? deserializeAws_json1_1PutPartnerEventsResultEntryList(output.Entries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7166,7 +7167,7 @@ const deserializeAws_json1_1PutTargetsResponse = (output: any, context: __SerdeC output.FailedEntries !== undefined && output.FailedEntries !== null ? deserializeAws_json1_1PutTargetsResultEntryList(output.FailedEntries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7224,7 +7225,7 @@ const deserializeAws_json1_1RemoveTargetsResponse = (output: any, context: __Ser output.FailedEntries !== undefined && output.FailedEntries !== null ? deserializeAws_json1_1RemoveTargetsResultEntryList(output.FailedEntries, context) : undefined, - FailedEntryCount: __expectInt(output.FailedEntryCount), + FailedEntryCount: __expectInt32(output.FailedEntryCount), } as any; }; @@ -7334,8 +7335,8 @@ const deserializeAws_json1_1ResourceNotFoundException = ( const deserializeAws_json1_1RetryPolicy = (output: any, context: __SerdeContext): RetryPolicy => { return { - MaximumEventAgeInSeconds: __expectInt(output.MaximumEventAgeInSeconds), - MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts), + MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds), + MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts), } as any; }; diff --git a/clients/client-finspace-data/protocols/Aws_restJson1.ts b/clients/client-finspace-data/protocols/Aws_restJson1.ts index 8a6e807b55bcd..39f705086846a 100644 --- a/clients/client-finspace-data/protocols/Aws_restJson1.ts +++ b/clients/client-finspace-data/protocols/Aws_restJson1.ts @@ -16,7 +16,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -223,7 +223,7 @@ export const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = a contents.credentials = deserializeAws_restJson1Credentials(data.credentials, context); } if (data.durationInMinutes !== undefined && data.durationInMinutes !== null) { - contents.durationInMinutes = __expectInt(data.durationInMinutes); + contents.durationInMinutes = __expectLong(data.durationInMinutes); } return Promise.resolve(contents); }; diff --git a/clients/client-firehose/protocols/Aws_json1_1.ts b/clients/client-firehose/protocols/Aws_json1_1.ts index 79f7e53a31b48..60d30505a0bda 100644 --- a/clients/client-firehose/protocols/Aws_json1_1.ts +++ b/clients/client-firehose/protocols/Aws_json1_1.ts @@ -129,9 +129,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -2409,8 +2409,8 @@ const serializeAws_json1_1VpcConfiguration = (input: VpcConfiguration, context: const deserializeAws_json1_1BufferingHints = (output: any, context: __SerdeContext): BufferingHints => { return { - IntervalInSeconds: __expectInt(output.IntervalInSeconds), - SizeInMBs: __expectInt(output.SizeInMBs), + IntervalInSeconds: __expectInt32(output.IntervalInSeconds), + SizeInMBs: __expectInt32(output.SizeInMBs), } as any; }; @@ -2636,8 +2636,8 @@ const deserializeAws_json1_1ElasticsearchBufferingHints = ( context: __SerdeContext ): ElasticsearchBufferingHints => { return { - IntervalInSeconds: __expectInt(output.IntervalInSeconds), - SizeInMBs: __expectInt(output.SizeInMBs), + IntervalInSeconds: __expectInt32(output.IntervalInSeconds), + SizeInMBs: __expectInt32(output.SizeInMBs), } as any; }; @@ -2685,7 +2685,7 @@ const deserializeAws_json1_1ElasticsearchRetryOptions = ( context: __SerdeContext ): ElasticsearchRetryOptions => { return { - DurationInSeconds: __expectInt(output.DurationInSeconds), + DurationInSeconds: __expectInt32(output.DurationInSeconds), } as any; }; @@ -2761,8 +2761,8 @@ const deserializeAws_json1_1HttpEndpointBufferingHints = ( context: __SerdeContext ): HttpEndpointBufferingHints => { return { - IntervalInSeconds: __expectInt(output.IntervalInSeconds), - SizeInMBs: __expectInt(output.SizeInMBs), + IntervalInSeconds: __expectInt32(output.IntervalInSeconds), + SizeInMBs: __expectInt32(output.SizeInMBs), } as any; }; @@ -2856,7 +2856,7 @@ const deserializeAws_json1_1HttpEndpointRetryOptions = ( context: __SerdeContext ): HttpEndpointRetryOptions => { return { - DurationInSeconds: __expectInt(output.DurationInSeconds), + DurationInSeconds: __expectInt32(output.DurationInSeconds), } as any; }; @@ -2992,19 +2992,19 @@ const deserializeAws_json1_1OpenXJsonSerDe = (output: any, context: __SerdeConte const deserializeAws_json1_1OrcSerDe = (output: any, context: __SerdeContext): OrcSerDe => { return { - BlockSizeBytes: __expectInt(output.BlockSizeBytes), + BlockSizeBytes: __expectInt32(output.BlockSizeBytes), BloomFilterColumns: output.BloomFilterColumns !== undefined && output.BloomFilterColumns !== null ? deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(output.BloomFilterColumns, context) : undefined, - BloomFilterFalsePositiveProbability: __limitedParseFloat(output.BloomFilterFalsePositiveProbability), + BloomFilterFalsePositiveProbability: __limitedParseDouble(output.BloomFilterFalsePositiveProbability), Compression: __expectString(output.Compression), - DictionaryKeyThreshold: __limitedParseFloat(output.DictionaryKeyThreshold), + DictionaryKeyThreshold: __limitedParseDouble(output.DictionaryKeyThreshold), EnablePadding: __expectBoolean(output.EnablePadding), FormatVersion: __expectString(output.FormatVersion), - PaddingTolerance: __limitedParseFloat(output.PaddingTolerance), - RowIndexStride: __expectInt(output.RowIndexStride), - StripeSizeBytes: __expectInt(output.StripeSizeBytes), + PaddingTolerance: __limitedParseDouble(output.PaddingTolerance), + RowIndexStride: __expectInt32(output.RowIndexStride), + StripeSizeBytes: __expectInt32(output.StripeSizeBytes), } as any; }; @@ -3022,11 +3022,11 @@ const deserializeAws_json1_1OutputFormatConfiguration = ( const deserializeAws_json1_1ParquetSerDe = (output: any, context: __SerdeContext): ParquetSerDe => { return { - BlockSizeBytes: __expectInt(output.BlockSizeBytes), + BlockSizeBytes: __expectInt32(output.BlockSizeBytes), Compression: __expectString(output.Compression), EnableDictionaryCompression: __expectBoolean(output.EnableDictionaryCompression), - MaxPaddingBytes: __expectInt(output.MaxPaddingBytes), - PageSizeBytes: __expectInt(output.PageSizeBytes), + MaxPaddingBytes: __expectInt32(output.MaxPaddingBytes), + PageSizeBytes: __expectInt32(output.PageSizeBytes), WriterVersion: __expectString(output.WriterVersion), } as any; }; @@ -3086,7 +3086,7 @@ const deserializeAws_json1_1ProcessorParameterList = (output: any, context: __Se const deserializeAws_json1_1PutRecordBatchOutput = (output: any, context: __SerdeContext): PutRecordBatchOutput => { return { Encrypted: __expectBoolean(output.Encrypted), - FailedPutCount: __expectInt(output.FailedPutCount), + FailedPutCount: __expectInt32(output.FailedPutCount), RequestResponses: output.RequestResponses !== undefined && output.RequestResponses !== null ? deserializeAws_json1_1PutRecordBatchResponseEntryList(output.RequestResponses, context) @@ -3164,7 +3164,7 @@ const deserializeAws_json1_1RedshiftDestinationDescription = ( const deserializeAws_json1_1RedshiftRetryOptions = (output: any, context: __SerdeContext): RedshiftRetryOptions => { return { - DurationInSeconds: __expectInt(output.DurationInSeconds), + DurationInSeconds: __expectInt32(output.DurationInSeconds), } as any; }; @@ -3270,7 +3270,7 @@ const deserializeAws_json1_1SplunkDestinationDescription = ( output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, - HECAcknowledgmentTimeoutInSeconds: __expectInt(output.HECAcknowledgmentTimeoutInSeconds), + HECAcknowledgmentTimeoutInSeconds: __expectInt32(output.HECAcknowledgmentTimeoutInSeconds), HECEndpoint: __expectString(output.HECEndpoint), HECEndpointType: __expectString(output.HECEndpointType), HECToken: __expectString(output.HECToken), @@ -3292,7 +3292,7 @@ const deserializeAws_json1_1SplunkDestinationDescription = ( const deserializeAws_json1_1SplunkRetryOptions = (output: any, context: __SerdeContext): SplunkRetryOptions => { return { - DurationInSeconds: __expectInt(output.DurationInSeconds), + DurationInSeconds: __expectInt32(output.DurationInSeconds), } as any; }; diff --git a/clients/client-fms/protocols/Aws_json1_1.ts b/clients/client-fms/protocols/Aws_json1_1.ts index 83141bcd2e5cd..a9ade6b92b99e 100644 --- a/clients/client-fms/protocols/Aws_json1_1.ts +++ b/clients/client-fms/protocols/Aws_json1_1.ts @@ -167,7 +167,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3009,7 +3010,7 @@ const deserializeAws_json1_1ActionTarget = (output: any, context: __SerdeContext const deserializeAws_json1_1App = (output: any, context: __SerdeContext): App => { return { AppName: __expectString(output.AppName), - Port: __expectInt(output.Port), + Port: __expectLong(output.Port), Protocol: __expectString(output.Protocol), } as any; }; @@ -3194,7 +3195,7 @@ const deserializeAws_json1_1DnsRuleGroupLimitExceededViolation = ( context: __SerdeContext ): DnsRuleGroupLimitExceededViolation => { return { - NumberOfRuleGroupsAlreadyAssociated: __expectInt(output.NumberOfRuleGroupsAlreadyAssociated), + NumberOfRuleGroupsAlreadyAssociated: __expectInt32(output.NumberOfRuleGroupsAlreadyAssociated), ViolationTarget: __expectString(output.ViolationTarget), ViolationTargetDescription: __expectString(output.ViolationTargetDescription), } as any; @@ -3207,7 +3208,7 @@ const deserializeAws_json1_1DnsRuleGroupPriorities = (output: any, context: __Se if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -3217,7 +3218,7 @@ const deserializeAws_json1_1DnsRuleGroupPriorityConflictViolation = ( ): DnsRuleGroupPriorityConflictViolation => { return { ConflictingPolicyId: __expectString(output.ConflictingPolicyId), - ConflictingPriority: __expectInt(output.ConflictingPriority), + ConflictingPriority: __expectInt32(output.ConflictingPriority), UnavailablePriorities: output.UnavailablePriorities !== undefined && output.UnavailablePriorities !== null ? deserializeAws_json1_1DnsRuleGroupPriorities(output.UnavailablePriorities, context) @@ -3350,7 +3351,7 @@ const deserializeAws_json1_1EvaluationResult = (output: any, context: __SerdeCon return { ComplianceStatus: __expectString(output.ComplianceStatus), EvaluationLimitExceeded: __expectBoolean(output.EvaluationLimitExceeded), - ViolatorCount: __expectInt(output.ViolatorCount), + ViolatorCount: __expectLong(output.ViolatorCount), } as any; }; @@ -4205,7 +4206,7 @@ const deserializeAws_json1_1RemediationActionWithOrder = ( context: __SerdeContext ): RemediationActionWithOrder => { return { - Order: __expectInt(output.Order), + Order: __expectInt32(output.Order), RemediationAction: output.RemediationAction !== undefined && output.RemediationAction !== null ? deserializeAws_json1_1RemediationAction(output.RemediationAction, context) @@ -4444,12 +4445,12 @@ const deserializeAws_json1_1SecurityGroupRuleDescription = ( context: __SerdeContext ): SecurityGroupRuleDescription => { return { - FromPort: __expectInt(output.FromPort), + FromPort: __expectLong(output.FromPort), IPV4Range: __expectString(output.IPV4Range), IPV6Range: __expectString(output.IPV6Range), PrefixListId: __expectString(output.PrefixListId), Protocol: __expectString(output.Protocol), - ToPort: __expectInt(output.ToPort), + ToPort: __expectLong(output.ToPort), } as any; }; @@ -4483,7 +4484,7 @@ const deserializeAws_json1_1StatefulRuleGroupList = (output: any, context: __Ser const deserializeAws_json1_1StatelessRuleGroup = (output: any, context: __SerdeContext): StatelessRuleGroup => { return { - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), ResourceId: __expectString(output.ResourceId), RuleGroupName: __expectString(output.RuleGroupName), } as any; diff --git a/clients/client-forecast/protocols/Aws_json1_1.ts b/clients/client-forecast/protocols/Aws_json1_1.ts index 5ec3d17c1fe4f..7f2bdc72efecb 100644 --- a/clients/client-forecast/protocols/Aws_json1_1.ts +++ b/clients/client-forecast/protocols/Aws_json1_1.ts @@ -182,9 +182,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -3926,8 +3927,8 @@ const deserializeAws_json1_1ContinuousParameterRange = ( context: __SerdeContext ): ContinuousParameterRange => { return { - MaxValue: __limitedParseFloat(output.MaxValue), - MinValue: __limitedParseFloat(output.MinValue), + MaxValue: __limitedParseDouble(output.MaxValue), + MinValue: __limitedParseDouble(output.MinValue), Name: __expectString(output.Name), ScalingType: __expectString(output.ScalingType), } as any; @@ -4144,7 +4145,7 @@ const deserializeAws_json1_1DescribeDatasetImportJobResponse = ( output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, - DataSize: __limitedParseFloat(output.DataSize), + DataSize: __limitedParseDouble(output.DataSize), DataSource: output.DataSource !== undefined && output.DataSource !== null ? deserializeAws_json1_1DataSource(output.DataSource, context) @@ -4152,7 +4153,7 @@ const deserializeAws_json1_1DescribeDatasetImportJobResponse = ( DatasetArn: __expectString(output.DatasetArn), DatasetImportJobArn: __expectString(output.DatasetImportJobArn), DatasetImportJobName: __expectString(output.DatasetImportJobName), - EstimatedTimeRemainingInMinutes: __expectInt(output.EstimatedTimeRemainingInMinutes), + EstimatedTimeRemainingInMinutes: __expectLong(output.EstimatedTimeRemainingInMinutes), FieldStatistics: output.FieldStatistics !== undefined && output.FieldStatistics !== null ? deserializeAws_json1_1FieldStatistics(output.FieldStatistics, context) @@ -4235,7 +4236,7 @@ const deserializeAws_json1_1DescribeForecastResponse = ( ? new Date(Math.round(output.CreationTime * 1000)) : undefined, DatasetGroupArn: __expectString(output.DatasetGroupArn), - EstimatedTimeRemainingInMinutes: __expectInt(output.EstimatedTimeRemainingInMinutes), + EstimatedTimeRemainingInMinutes: __expectLong(output.EstimatedTimeRemainingInMinutes), ForecastArn: __expectString(output.ForecastArn), ForecastName: __expectString(output.ForecastName), ForecastTypes: @@ -4300,7 +4301,7 @@ const deserializeAws_json1_1DescribePredictorResponse = ( output.EncryptionConfig !== undefined && output.EncryptionConfig !== null ? deserializeAws_json1_1EncryptionConfig(output.EncryptionConfig, context) : undefined, - EstimatedTimeRemainingInMinutes: __expectInt(output.EstimatedTimeRemainingInMinutes), + EstimatedTimeRemainingInMinutes: __expectLong(output.EstimatedTimeRemainingInMinutes), EvaluationParameters: output.EvaluationParameters !== undefined && output.EvaluationParameters !== null ? deserializeAws_json1_1EvaluationParameters(output.EvaluationParameters, context) @@ -4309,7 +4310,7 @@ const deserializeAws_json1_1DescribePredictorResponse = ( output.FeaturizationConfig !== undefined && output.FeaturizationConfig !== null ? deserializeAws_json1_1FeaturizationConfig(output.FeaturizationConfig, context) : undefined, - ForecastHorizon: __expectInt(output.ForecastHorizon), + ForecastHorizon: __expectInt32(output.ForecastHorizon), ForecastTypes: output.ForecastTypes !== undefined && output.ForecastTypes !== null ? deserializeAws_json1_1ForecastTypes(output.ForecastTypes, context) @@ -4353,8 +4354,8 @@ const deserializeAws_json1_1EncryptionConfig = (output: any, context: __SerdeCon const deserializeAws_json1_1ErrorMetric = (output: any, context: __SerdeContext): ErrorMetric => { return { ForecastType: __expectString(output.ForecastType), - RMSE: __limitedParseFloat(output.RMSE), - WAPE: __limitedParseFloat(output.WAPE), + RMSE: __limitedParseDouble(output.RMSE), + WAPE: __limitedParseDouble(output.WAPE), } as any; }; @@ -4371,8 +4372,8 @@ const deserializeAws_json1_1ErrorMetrics = (output: any, context: __SerdeContext const deserializeAws_json1_1EvaluationParameters = (output: any, context: __SerdeContext): EvaluationParameters => { return { - BackTestWindowOffset: __expectInt(output.BackTestWindowOffset), - NumberOfBacktestWindows: __expectInt(output.NumberOfBacktestWindows), + BackTestWindowOffset: __expectInt32(output.BackTestWindowOffset), + NumberOfBacktestWindows: __expectInt32(output.NumberOfBacktestWindows), } as any; }; @@ -4593,8 +4594,8 @@ const deserializeAws_json1_1InputDataConfig = (output: any, context: __SerdeCont const deserializeAws_json1_1IntegerParameterRange = (output: any, context: __SerdeContext): IntegerParameterRange => { return { - MaxValue: __expectInt(output.MaxValue), - MinValue: __expectInt(output.MinValue), + MaxValue: __expectInt32(output.MaxValue), + MinValue: __expectInt32(output.MinValue), Name: __expectString(output.Name), ScalingType: __expectString(output.ScalingType), } as any; @@ -4733,7 +4734,7 @@ const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): Me output.ErrorMetrics !== undefined && output.ErrorMetrics !== null ? deserializeAws_json1_1ErrorMetrics(output.ErrorMetrics, context) : undefined, - RMSE: __limitedParseFloat(output.RMSE), + RMSE: __limitedParseDouble(output.RMSE), WeightedQuantileLosses: output.WeightedQuantileLosses !== undefined && output.WeightedQuantileLosses !== null ? deserializeAws_json1_1WeightedQuantileLosses(output.WeightedQuantileLosses, context) @@ -4930,18 +4931,18 @@ const deserializeAws_json1_1SchemaAttributes = (output: any, context: __SerdeCon const deserializeAws_json1_1Statistics = (output: any, context: __SerdeContext): Statistics => { return { - Avg: __limitedParseFloat(output.Avg), - Count: __expectInt(output.Count), - CountDistinct: __expectInt(output.CountDistinct), - CountDistinctLong: __expectInt(output.CountDistinctLong), - CountLong: __expectInt(output.CountLong), - CountNan: __expectInt(output.CountNan), - CountNanLong: __expectInt(output.CountNanLong), - CountNull: __expectInt(output.CountNull), - CountNullLong: __expectInt(output.CountNullLong), + Avg: __limitedParseDouble(output.Avg), + Count: __expectInt32(output.Count), + CountDistinct: __expectInt32(output.CountDistinct), + CountDistinctLong: __expectLong(output.CountDistinctLong), + CountLong: __expectLong(output.CountLong), + CountNan: __expectInt32(output.CountNan), + CountNanLong: __expectLong(output.CountNanLong), + CountNull: __expectInt32(output.CountNull), + CountNullLong: __expectLong(output.CountNullLong), Max: __expectString(output.Max), Min: __expectString(output.Min), - Stddev: __limitedParseFloat(output.Stddev), + Stddev: __limitedParseDouble(output.Stddev), } as any; }; @@ -5058,8 +5059,8 @@ const deserializeAws_json1_1Values = (output: any, context: __SerdeContext): str const deserializeAws_json1_1WeightedQuantileLoss = (output: any, context: __SerdeContext): WeightedQuantileLoss => { return { - LossValue: __limitedParseFloat(output.LossValue), - Quantile: __limitedParseFloat(output.Quantile), + LossValue: __limitedParseDouble(output.LossValue), + Quantile: __limitedParseDouble(output.Quantile), } as any; }; @@ -5077,7 +5078,7 @@ const deserializeAws_json1_1WeightedQuantileLosses = (output: any, context: __Se const deserializeAws_json1_1WindowSummary = (output: any, context: __SerdeContext): WindowSummary => { return { EvaluationType: __expectString(output.EvaluationType), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectInt32(output.ItemCount), Metrics: output.Metrics !== undefined && output.Metrics !== null ? deserializeAws_json1_1Metrics(output.Metrics, context) diff --git a/clients/client-forecastquery/protocols/Aws_json1_1.ts b/clients/client-forecastquery/protocols/Aws_json1_1.ts index 9a401f3f5d05a..9648a0583e7f8 100644 --- a/clients/client-forecastquery/protocols/Aws_json1_1.ts +++ b/clients/client-forecastquery/protocols/Aws_json1_1.ts @@ -11,7 +11,7 @@ import { ResourceNotFoundException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectString as __expectString, limitedParseFloat as __limitedParseFloat } from "@aws-sdk/smithy-client"; +import { expectString as __expectString, limitedParseDouble as __limitedParseDouble } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -221,7 +221,7 @@ const serializeAws_json1_1QueryForecastRequest = (input: QueryForecastRequest, c const deserializeAws_json1_1DataPoint = (output: any, context: __SerdeContext): DataPoint => { return { Timestamp: __expectString(output.Timestamp), - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; diff --git a/clients/client-frauddetector/protocols/Aws_json1_1.ts b/clients/client-frauddetector/protocols/Aws_json1_1.ts index b80babefdc60c..cf507e47fef59 100644 --- a/clients/client-frauddetector/protocols/Aws_json1_1.ts +++ b/clients/client-frauddetector/protocols/Aws_json1_1.ts @@ -263,9 +263,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -6544,7 +6544,7 @@ const deserializeAws_json1_1BatchCreateVariableError = ( context: __SerdeContext ): BatchCreateVariableError => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), name: __expectString(output.name), } as any; @@ -6578,7 +6578,7 @@ const deserializeAws_json1_1BatchCreateVariableResult = ( const deserializeAws_json1_1BatchGetVariableError = (output: any, context: __SerdeContext): BatchGetVariableError => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), name: __expectString(output.name), } as any; @@ -6624,10 +6624,10 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont jobId: __expectString(output.jobId), lastHeartbeatTime: __expectString(output.lastHeartbeatTime), outputPath: __expectString(output.outputPath), - processedRecordsCount: __expectInt(output.processedRecordsCount), + processedRecordsCount: __expectInt32(output.processedRecordsCount), startTime: __expectString(output.startTime), status: __expectString(output.status), - totalRecordsCount: __expectInt(output.totalRecordsCount), + totalRecordsCount: __expectInt32(output.totalRecordsCount), } as any; }; @@ -7323,7 +7323,7 @@ const deserializeAws_json1_1ListTagsForResourceResult = ( const deserializeAws_json1_1LogitMetric = (output: any, context: __SerdeContext): LogitMetric => { return { - variableImportance: __limitedParseFloat(output.variableImportance), + variableImportance: __limitedParseFloat32(output.variableImportance), variableName: __expectString(output.variableName), variableType: __expectString(output.variableType), } as any; @@ -7331,10 +7331,10 @@ const deserializeAws_json1_1LogitMetric = (output: any, context: __SerdeContext) const deserializeAws_json1_1MetricDataPoint = (output: any, context: __SerdeContext): MetricDataPoint => { return { - fpr: __limitedParseFloat(output.fpr), - precision: __limitedParseFloat(output.precision), - threshold: __limitedParseFloat(output.threshold), - tpr: __limitedParseFloat(output.tpr), + fpr: __limitedParseFloat32(output.fpr), + precision: __limitedParseFloat32(output.precision), + threshold: __limitedParseFloat32(output.threshold), + tpr: __limitedParseFloat32(output.tpr), } as any; }; @@ -7409,7 +7409,7 @@ const deserializeAws_json1_1ModelPredictionMap = (output: any, context: __SerdeC } return { ...acc, - [key]: __limitedParseFloat(value) as any, + [key]: __limitedParseFloat32(value) as any, }; }, {}); }; @@ -7645,7 +7645,7 @@ const deserializeAws_json1_1TrainingDataSchema = (output: any, context: __SerdeC const deserializeAws_json1_1TrainingMetrics = (output: any, context: __SerdeContext): TrainingMetrics => { return { - auc: __limitedParseFloat(output.auc), + auc: __limitedParseFloat32(output.auc), metricDataPoints: output.metricDataPoints !== undefined && output.metricDataPoints !== null ? deserializeAws_json1_1metricDataPointsList(output.metricDataPoints, context) diff --git a/clients/client-fsx/protocols/Aws_json1_1.ts b/clients/client-fsx/protocols/Aws_json1_1.ts index 99ab90be0afec..a838674bee5d3 100644 --- a/clients/client-fsx/protocols/Aws_json1_1.ts +++ b/clients/client-fsx/protocols/Aws_json1_1.ts @@ -144,7 +144,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3136,7 +3137,7 @@ const deserializeAws_json1_1AdministrativeAction = (output: any, context: __Serd output.FailureDetails !== undefined && output.FailureDetails !== null ? deserializeAws_json1_1AdministrativeActionFailureDetails(output.FailureDetails, context) : undefined, - ProgressPercent: __expectInt(output.ProgressPercent), + ProgressPercent: __expectInt32(output.ProgressPercent), RequestTime: output.RequestTime !== undefined && output.RequestTime !== null ? new Date(Math.round(output.RequestTime * 1000)) @@ -3221,7 +3222,7 @@ const deserializeAws_json1_1Backup = (output: any, context: __SerdeContext): Bac KmsKeyId: __expectString(output.KmsKeyId), Lifecycle: __expectString(output.Lifecycle), OwnerId: __expectString(output.OwnerId), - ProgressPercent: __expectInt(output.ProgressPercent), + ProgressPercent: __expectInt32(output.ProgressPercent), ResourceARN: __expectString(output.ResourceARN), SourceBackupId: __expectString(output.SourceBackupId), SourceBackupRegion: __expectString(output.SourceBackupRegion), @@ -3365,7 +3366,7 @@ const deserializeAws_json1_1DataRepositoryConfiguration = ( ? deserializeAws_json1_1DataRepositoryFailureDetails(output.FailureDetails, context) : undefined, ImportPath: __expectString(output.ImportPath), - ImportedFileChunkSize: __expectInt(output.ImportedFileChunkSize), + ImportedFileChunkSize: __expectInt32(output.ImportedFileChunkSize), Lifecycle: __expectString(output.Lifecycle), } as any; }; @@ -3480,13 +3481,13 @@ const deserializeAws_json1_1DataRepositoryTaskStatus = ( context: __SerdeContext ): DataRepositoryTaskStatus => { return { - FailedCount: __expectInt(output.FailedCount), + FailedCount: __expectLong(output.FailedCount), LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null ? new Date(Math.round(output.LastUpdatedTime * 1000)) : undefined, - SucceededCount: __expectInt(output.SucceededCount), - TotalCount: __expectInt(output.TotalCount), + SucceededCount: __expectLong(output.SucceededCount), + TotalCount: __expectLong(output.TotalCount), } as any; }; @@ -3645,7 +3646,7 @@ const deserializeAws_json1_1FileSystem = (output: any, context: __SerdeContext): : undefined, OwnerId: __expectString(output.OwnerId), ResourceARN: __expectString(output.ResourceARN), - StorageCapacity: __expectInt(output.StorageCapacity), + StorageCapacity: __expectInt32(output.StorageCapacity), StorageType: __expectString(output.StorageType), SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null @@ -3792,7 +3793,7 @@ const deserializeAws_json1_1LustreFileSystemConfiguration = ( context: __SerdeContext ): LustreFileSystemConfiguration => { return { - AutomaticBackupRetentionDays: __expectInt(output.AutomaticBackupRetentionDays), + AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays), CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups), DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime), DataCompressionType: __expectString(output.DataCompressionType), @@ -3803,7 +3804,7 @@ const deserializeAws_json1_1LustreFileSystemConfiguration = ( DeploymentType: __expectString(output.DeploymentType), DriveCacheType: __expectString(output.DriveCacheType), MountName: __expectString(output.MountName), - PerUnitStorageThroughput: __expectInt(output.PerUnitStorageThroughput), + PerUnitStorageThroughput: __expectInt32(output.PerUnitStorageThroughput), WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime), } as any; }; @@ -3968,7 +3969,7 @@ const deserializeAws_json1_1WindowsFileSystemConfiguration = ( output.AuditLogConfiguration !== undefined && output.AuditLogConfiguration !== null ? deserializeAws_json1_1WindowsAuditLogConfiguration(output.AuditLogConfiguration, context) : undefined, - AutomaticBackupRetentionDays: __expectInt(output.AutomaticBackupRetentionDays), + AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays), CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups), DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime), DeploymentType: __expectString(output.DeploymentType), @@ -3987,7 +3988,7 @@ const deserializeAws_json1_1WindowsFileSystemConfiguration = ( context ) : undefined, - ThroughputCapacity: __expectInt(output.ThroughputCapacity), + ThroughputCapacity: __expectInt32(output.ThroughputCapacity), WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime), } as any; }; diff --git a/clients/client-gamelift/protocols/Aws_json1_1.ts b/clients/client-gamelift/protocols/Aws_json1_1.ts index 0143b9115ce79..f735e4b477b69 100644 --- a/clients/client-gamelift/protocols/Aws_json1_1.ts +++ b/clients/client-gamelift/protocols/Aws_json1_1.ts @@ -527,9 +527,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -11586,7 +11588,7 @@ const deserializeAws_json1_1AliasList = (output: any, context: __SerdeContext): const deserializeAws_json1_1AttributeValue = (output: any, context: __SerdeContext): AttributeValue => { return { - N: __limitedParseFloat(output.N), + N: __limitedParseDouble(output.N), S: __expectString(output.S), SDM: output.SDM !== undefined && output.SDM !== null @@ -11615,7 +11617,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil : undefined, Name: __expectString(output.Name), OperatingSystem: __expectString(output.OperatingSystem), - SizeOnDisk: __expectInt(output.SizeOnDisk), + SizeOnDisk: __expectLong(output.SizeOnDisk), Status: __expectString(output.Status), Version: __expectString(output.Version), } as any; @@ -12231,21 +12233,21 @@ const deserializeAws_json1_1DescribeVpcPeeringConnectionsOutput = ( const deserializeAws_json1_1EC2InstanceCounts = (output: any, context: __SerdeContext): EC2InstanceCounts => { return { - ACTIVE: __expectInt(output.ACTIVE), - DESIRED: __expectInt(output.DESIRED), - IDLE: __expectInt(output.IDLE), - MAXIMUM: __expectInt(output.MAXIMUM), - MINIMUM: __expectInt(output.MINIMUM), - PENDING: __expectInt(output.PENDING), - TERMINATING: __expectInt(output.TERMINATING), + ACTIVE: __expectInt32(output.ACTIVE), + DESIRED: __expectInt32(output.DESIRED), + IDLE: __expectInt32(output.IDLE), + MAXIMUM: __expectInt32(output.MAXIMUM), + MINIMUM: __expectInt32(output.MINIMUM), + PENDING: __expectInt32(output.PENDING), + TERMINATING: __expectInt32(output.TERMINATING), } as any; }; const deserializeAws_json1_1EC2InstanceLimit = (output: any, context: __SerdeContext): EC2InstanceLimit => { return { - CurrentInstances: __expectInt(output.CurrentInstances), + CurrentInstances: __expectInt32(output.CurrentInstances), EC2InstanceType: __expectString(output.EC2InstanceType), - InstanceLimit: __expectInt(output.InstanceLimit), + InstanceLimit: __expectInt32(output.InstanceLimit), Location: __expectString(output.Location), } as any; }; @@ -12412,13 +12414,13 @@ const deserializeAws_json1_1FleetIdList = (output: any, context: __SerdeContext) const deserializeAws_json1_1FleetUtilization = (output: any, context: __SerdeContext): FleetUtilization => { return { - ActiveGameSessionCount: __expectInt(output.ActiveGameSessionCount), - ActiveServerProcessCount: __expectInt(output.ActiveServerProcessCount), - CurrentPlayerSessionCount: __expectInt(output.CurrentPlayerSessionCount), + ActiveGameSessionCount: __expectInt32(output.ActiveGameSessionCount), + ActiveServerProcessCount: __expectInt32(output.ActiveServerProcessCount), + CurrentPlayerSessionCount: __expectInt32(output.CurrentPlayerSessionCount), FleetArn: __expectString(output.FleetArn), FleetId: __expectString(output.FleetId), Location: __expectString(output.Location), - MaximumPlayerSessionCount: __expectInt(output.MaximumPlayerSessionCount), + MaximumPlayerSessionCount: __expectInt32(output.MaximumPlayerSessionCount), } as any; }; @@ -12568,7 +12570,7 @@ const deserializeAws_json1_1GameSession = (output: any, context: __SerdeContext) ? new Date(Math.round(output.CreationTime * 1000)) : undefined, CreatorId: __expectString(output.CreatorId), - CurrentPlayerSessionCount: __expectInt(output.CurrentPlayerSessionCount), + CurrentPlayerSessionCount: __expectInt32(output.CurrentPlayerSessionCount), DnsName: __expectString(output.DnsName), FleetArn: __expectString(output.FleetArn), FleetId: __expectString(output.FleetId), @@ -12581,10 +12583,10 @@ const deserializeAws_json1_1GameSession = (output: any, context: __SerdeContext) IpAddress: __expectString(output.IpAddress), Location: __expectString(output.Location), MatchmakerData: __expectString(output.MatchmakerData), - MaximumPlayerSessionCount: __expectInt(output.MaximumPlayerSessionCount), + MaximumPlayerSessionCount: __expectInt32(output.MaximumPlayerSessionCount), Name: __expectString(output.Name), PlayerSessionCreationPolicy: __expectString(output.PlayerSessionCreationPolicy), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), Status: __expectString(output.Status), StatusReason: __expectString(output.StatusReason), TerminationTime: @@ -12606,7 +12608,7 @@ const deserializeAws_json1_1GameSessionConnectionInfo = ( output.MatchedPlayerSessions !== undefined && output.MatchedPlayerSessions !== null ? deserializeAws_json1_1MatchedPlayerSessionList(output.MatchedPlayerSessions, context) : undefined, - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -12668,7 +12670,7 @@ const deserializeAws_json1_1GameSessionPlacement = (output: any, context: __Serd GameSessionRegion: __expectString(output.GameSessionRegion), IpAddress: __expectString(output.IpAddress), MatchmakerData: __expectString(output.MatchmakerData), - MaximumPlayerSessionCount: __expectInt(output.MaximumPlayerSessionCount), + MaximumPlayerSessionCount: __expectInt32(output.MaximumPlayerSessionCount), PlacedPlayerSessions: output.PlacedPlayerSessions !== undefined && output.PlacedPlayerSessions !== null ? deserializeAws_json1_1PlacedPlayerSessionList(output.PlacedPlayerSessions, context) @@ -12678,7 +12680,7 @@ const deserializeAws_json1_1GameSessionPlacement = (output: any, context: __Serd output.PlayerLatencies !== undefined && output.PlayerLatencies !== null ? deserializeAws_json1_1PlayerLatencyList(output.PlayerLatencies, context) : undefined, - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(Math.round(output.StartTime * 1000)) @@ -12709,7 +12711,7 @@ const deserializeAws_json1_1GameSessionQueue = (output: any, context: __SerdeCon output.PriorityConfiguration !== undefined && output.PriorityConfiguration !== null ? deserializeAws_json1_1PriorityConfiguration(output.PriorityConfiguration, context) : undefined, - TimeoutInSeconds: __expectInt(output.TimeoutInSeconds), + TimeoutInSeconds: __expectInt32(output.TimeoutInSeconds), } as any; }; @@ -12882,10 +12884,10 @@ const deserializeAws_json1_1InvalidRequestException = ( const deserializeAws_json1_1IpPermission = (output: any, context: __SerdeContext): IpPermission => { return { - FromPort: __expectInt(output.FromPort), + FromPort: __expectInt32(output.FromPort), IpRange: __expectString(output.IpRange), Protocol: __expectString(output.Protocol), - ToPort: __expectInt(output.ToPort), + ToPort: __expectInt32(output.ToPort), } as any; }; @@ -12907,7 +12909,7 @@ const deserializeAws_json1_1LatencyMap = (output: any, context: __SerdeContext): } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -13074,8 +13076,8 @@ const deserializeAws_json1_1MatchmakingConfiguration = ( ): MatchmakingConfiguration => { return { AcceptanceRequired: __expectBoolean(output.AcceptanceRequired), - AcceptanceTimeoutSeconds: __expectInt(output.AcceptanceTimeoutSeconds), - AdditionalPlayerCount: __expectInt(output.AdditionalPlayerCount), + AcceptanceTimeoutSeconds: __expectInt32(output.AcceptanceTimeoutSeconds), + AdditionalPlayerCount: __expectInt32(output.AdditionalPlayerCount), BackfillMode: __expectString(output.BackfillMode), ConfigurationArn: __expectString(output.ConfigurationArn), CreationTime: @@ -13096,7 +13098,7 @@ const deserializeAws_json1_1MatchmakingConfiguration = ( : undefined, Name: __expectString(output.Name), NotificationTarget: __expectString(output.NotificationTarget), - RequestTimeoutSeconds: __expectInt(output.RequestTimeoutSeconds), + RequestTimeoutSeconds: __expectInt32(output.RequestTimeoutSeconds), RuleSetArn: __expectString(output.RuleSetArn), RuleSetName: __expectString(output.RuleSetName), } as any; @@ -13145,7 +13147,7 @@ const deserializeAws_json1_1MatchmakingTicket = (output: any, context: __SerdeCo ConfigurationName: __expectString(output.ConfigurationName), EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, - EstimatedWaitTime: __expectInt(output.EstimatedWaitTime), + EstimatedWaitTime: __expectInt32(output.EstimatedWaitTime), GameSessionConnectionInfo: output.GameSessionConnectionInfo !== undefined && output.GameSessionConnectionInfo !== null ? deserializeAws_json1_1GameSessionConnectionInfo(output.GameSessionConnectionInfo, context) @@ -13249,7 +13251,7 @@ const deserializeAws_json1_1PlayerAttributeMap = ( const deserializeAws_json1_1PlayerLatency = (output: any, context: __SerdeContext): PlayerLatency => { return { - LatencyInMilliseconds: __limitedParseFloat(output.LatencyInMilliseconds), + LatencyInMilliseconds: __limitedParseFloat32(output.LatencyInMilliseconds), PlayerId: __expectString(output.PlayerId), RegionIdentifier: __expectString(output.RegionIdentifier), } as any; @@ -13268,8 +13270,8 @@ const deserializeAws_json1_1PlayerLatencyList = (output: any, context: __SerdeCo const deserializeAws_json1_1PlayerLatencyPolicy = (output: any, context: __SerdeContext): PlayerLatencyPolicy => { return { - MaximumIndividualPlayerLatencyMilliseconds: __expectInt(output.MaximumIndividualPlayerLatencyMilliseconds), - PolicyDurationSeconds: __expectInt(output.PolicyDurationSeconds), + MaximumIndividualPlayerLatencyMilliseconds: __expectInt32(output.MaximumIndividualPlayerLatencyMilliseconds), + PolicyDurationSeconds: __expectInt32(output.PolicyDurationSeconds), } as any; }; @@ -13309,7 +13311,7 @@ const deserializeAws_json1_1PlayerSession = (output: any, context: __SerdeContex PlayerData: __expectString(output.PlayerData), PlayerId: __expectString(output.PlayerId), PlayerSessionId: __expectString(output.PlayerSessionId), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), Status: __expectString(output.Status), TerminationTime: output.TerminationTime !== undefined && output.TerminationTime !== null @@ -13410,8 +13412,8 @@ const deserializeAws_json1_1ResourceCreationLimitPolicy = ( context: __SerdeContext ): ResourceCreationLimitPolicy => { return { - NewGameSessionsPerCreator: __expectInt(output.NewGameSessionsPerCreator), - PolicyPeriodInMinutes: __expectInt(output.PolicyPeriodInMinutes), + NewGameSessionsPerCreator: __expectInt32(output.NewGameSessionsPerCreator), + PolicyPeriodInMinutes: __expectInt32(output.PolicyPeriodInMinutes), } as any; }; @@ -13437,8 +13439,8 @@ const deserializeAws_json1_1RoutingStrategy = (output: any, context: __SerdeCont const deserializeAws_json1_1RuntimeConfiguration = (output: any, context: __SerdeContext): RuntimeConfiguration => { return { - GameSessionActivationTimeoutSeconds: __expectInt(output.GameSessionActivationTimeoutSeconds), - MaxConcurrentGameSessionActivations: __expectInt(output.MaxConcurrentGameSessionActivations), + GameSessionActivationTimeoutSeconds: __expectInt32(output.GameSessionActivationTimeoutSeconds), + MaxConcurrentGameSessionActivations: __expectInt32(output.MaxConcurrentGameSessionActivations), ServerProcesses: output.ServerProcesses !== undefined && output.ServerProcesses !== null ? deserializeAws_json1_1ServerProcessList(output.ServerProcesses, context) @@ -13458,21 +13460,21 @@ const deserializeAws_json1_1S3Location = (output: any, context: __SerdeContext): const deserializeAws_json1_1ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy => { return { ComparisonOperator: __expectString(output.ComparisonOperator), - EvaluationPeriods: __expectInt(output.EvaluationPeriods), + EvaluationPeriods: __expectInt32(output.EvaluationPeriods), FleetArn: __expectString(output.FleetArn), FleetId: __expectString(output.FleetId), Location: __expectString(output.Location), MetricName: __expectString(output.MetricName), Name: __expectString(output.Name), PolicyType: __expectString(output.PolicyType), - ScalingAdjustment: __expectInt(output.ScalingAdjustment), + ScalingAdjustment: __expectInt32(output.ScalingAdjustment), ScalingAdjustmentType: __expectString(output.ScalingAdjustmentType), Status: __expectString(output.Status), TargetConfiguration: output.TargetConfiguration !== undefined && output.TargetConfiguration !== null ? deserializeAws_json1_1TargetConfiguration(output.TargetConfiguration, context) : undefined, - Threshold: __limitedParseFloat(output.Threshold), + Threshold: __limitedParseDouble(output.Threshold), UpdateStatus: __expectString(output.UpdateStatus), } as any; }; @@ -13497,7 +13499,7 @@ const deserializeAws_json1_1Script = (output: any, context: __SerdeContext): Scr Name: __expectString(output.Name), ScriptArn: __expectString(output.ScriptArn), ScriptId: __expectString(output.ScriptId), - SizeOnDisk: __expectInt(output.SizeOnDisk), + SizeOnDisk: __expectLong(output.SizeOnDisk), StorageLocation: output.StorageLocation !== undefined && output.StorageLocation !== null ? deserializeAws_json1_1S3Location(output.StorageLocation, context) @@ -13532,7 +13534,7 @@ const deserializeAws_json1_1SearchGameSessionsOutput = ( const deserializeAws_json1_1ServerProcess = (output: any, context: __SerdeContext): ServerProcess => { return { - ConcurrentExecutions: __expectInt(output.ConcurrentExecutions), + ConcurrentExecutions: __expectInt32(output.ConcurrentExecutions), LaunchPath: __expectString(output.LaunchPath), Parameters: __expectString(output.Parameters), } as any; @@ -13622,7 +13624,7 @@ const deserializeAws_json1_1StringDoubleMap = (output: any, context: __SerdeCont } return { ...acc, - [key]: __limitedParseFloat(value) as any, + [key]: __limitedParseDouble(value) as any, }; }, {}); }; @@ -13680,7 +13682,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde const deserializeAws_json1_1TargetConfiguration = (output: any, context: __SerdeContext): TargetConfiguration => { return { - TargetValue: __limitedParseFloat(output.TargetValue), + TargetValue: __limitedParseDouble(output.TargetValue), } as any; }; diff --git a/clients/client-glacier/protocols/Aws_restJson1.ts b/clients/client-glacier/protocols/Aws_restJson1.ts index 41c803e2ad588..4288e5b29b32d 100644 --- a/clients/client-glacier/protocols/Aws_restJson1.ts +++ b/clients/client-glacier/protocols/Aws_restJson1.ts @@ -115,7 +115,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2351,7 +2351,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async ( contents.ArchiveSHA256TreeHash = __expectString(data.ArchiveSHA256TreeHash); } if (data.ArchiveSizeInBytes !== undefined && data.ArchiveSizeInBytes !== null) { - contents.ArchiveSizeInBytes = __expectInt(data.ArchiveSizeInBytes); + contents.ArchiveSizeInBytes = __expectLong(data.ArchiveSizeInBytes); } if (data.Completed !== undefined && data.Completed !== null) { contents.Completed = __expectBoolean(data.Completed); @@ -2369,7 +2369,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async ( ); } if (data.InventorySizeInBytes !== undefined && data.InventorySizeInBytes !== null) { - contents.InventorySizeInBytes = __expectInt(data.InventorySizeInBytes); + contents.InventorySizeInBytes = __expectLong(data.InventorySizeInBytes); } if (data.JobDescription !== undefined && data.JobDescription !== null) { contents.JobDescription = __expectString(data.JobDescription); @@ -2495,10 +2495,10 @@ export const deserializeAws_restJson1DescribeVaultCommand = async ( contents.LastInventoryDate = __expectString(data.LastInventoryDate); } if (data.NumberOfArchives !== undefined && data.NumberOfArchives !== null) { - contents.NumberOfArchives = __expectInt(data.NumberOfArchives); + contents.NumberOfArchives = __expectLong(data.NumberOfArchives); } if (data.SizeInBytes !== undefined && data.SizeInBytes !== null) { - contents.SizeInBytes = __expectInt(data.SizeInBytes); + contents.SizeInBytes = __expectLong(data.SizeInBytes); } if (data.VaultARN !== undefined && data.VaultARN !== null) { contents.VaultARN = __expectString(data.VaultARN); @@ -3449,7 +3449,7 @@ export const deserializeAws_restJson1ListPartsCommand = async ( contents.MultipartUploadId = __expectString(data.MultipartUploadId); } if (data.PartSizeInBytes !== undefined && data.PartSizeInBytes !== null) { - contents.PartSizeInBytes = __expectInt(data.PartSizeInBytes); + contents.PartSizeInBytes = __expectLong(data.PartSizeInBytes); } if (data.Parts !== undefined && data.Parts !== null) { contents.Parts = deserializeAws_restJson1PartList(data.Parts, context); @@ -4808,7 +4808,7 @@ const deserializeAws_restJson1DataRetrievalPolicy = (output: any, context: __Ser const deserializeAws_restJson1DataRetrievalRule = (output: any, context: __SerdeContext): DataRetrievalRule => { return { - BytesPerHour: __expectInt(output.BytesPerHour), + BytesPerHour: __expectLong(output.BytesPerHour), Strategy: __expectString(output.Strategy), } as any; }; @@ -4828,8 +4828,8 @@ const deserializeAws_restJson1DescribeVaultOutput = (output: any, context: __Ser return { CreationDate: __expectString(output.CreationDate), LastInventoryDate: __expectString(output.LastInventoryDate), - NumberOfArchives: __expectInt(output.NumberOfArchives), - SizeInBytes: __expectInt(output.SizeInBytes), + NumberOfArchives: __expectLong(output.NumberOfArchives), + SizeInBytes: __expectLong(output.SizeInBytes), VaultARN: __expectString(output.VaultARN), VaultName: __expectString(output.VaultName), } as any; @@ -4848,7 +4848,7 @@ const deserializeAws_restJson1GlacierJobDescription = (output: any, context: __S Action: __expectString(output.Action), ArchiveId: __expectString(output.ArchiveId), ArchiveSHA256TreeHash: __expectString(output.ArchiveSHA256TreeHash), - ArchiveSizeInBytes: __expectInt(output.ArchiveSizeInBytes), + ArchiveSizeInBytes: __expectLong(output.ArchiveSizeInBytes), Completed: __expectBoolean(output.Completed), CompletionDate: __expectString(output.CompletionDate), CreationDate: __expectString(output.CreationDate), @@ -4856,7 +4856,7 @@ const deserializeAws_restJson1GlacierJobDescription = (output: any, context: __S output.InventoryRetrievalParameters !== undefined && output.InventoryRetrievalParameters !== null ? deserializeAws_restJson1InventoryRetrievalJobDescription(output.InventoryRetrievalParameters, context) : undefined, - InventorySizeInBytes: __expectInt(output.InventorySizeInBytes), + InventorySizeInBytes: __expectLong(output.InventorySizeInBytes), JobDescription: __expectString(output.JobDescription), JobId: __expectString(output.JobId), JobOutputPath: __expectString(output.JobOutputPath), @@ -5072,7 +5072,7 @@ const deserializeAws_restJson1UploadListElement = (output: any, context: __Serde ArchiveDescription: __expectString(output.ArchiveDescription), CreationDate: __expectString(output.CreationDate), MultipartUploadId: __expectString(output.MultipartUploadId), - PartSizeInBytes: __expectInt(output.PartSizeInBytes), + PartSizeInBytes: __expectLong(output.PartSizeInBytes), VaultARN: __expectString(output.VaultARN), } as any; }; diff --git a/clients/client-global-accelerator/protocols/Aws_json1_1.ts b/clients/client-global-accelerator/protocols/Aws_json1_1.ts index d36efa05804ca..c37874be58697 100644 --- a/clients/client-global-accelerator/protocols/Aws_json1_1.ts +++ b/clients/client-global-accelerator/protocols/Aws_json1_1.ts @@ -272,9 +272,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -5893,12 +5893,12 @@ const deserializeAws_json1_1CustomRoutingDestinationDescription = ( context: __SerdeContext ): CustomRoutingDestinationDescription => { return { - FromPort: __expectInt(output.FromPort), + FromPort: __expectInt32(output.FromPort), Protocols: output.Protocols !== undefined && output.Protocols !== null ? deserializeAws_json1_1Protocols(output.Protocols, context) : undefined, - ToPort: __expectInt(output.ToPort), + ToPort: __expectInt32(output.ToPort), } as any; }; @@ -6165,7 +6165,7 @@ const deserializeAws_json1_1EndpointDescription = (output: any, context: __Serde EndpointId: __expectString(output.EndpointId), HealthReason: __expectString(output.HealthReason), HealthState: __expectString(output.HealthState), - Weight: __expectInt(output.Weight), + Weight: __expectInt32(output.Weight), } as any; }; @@ -6188,16 +6188,16 @@ const deserializeAws_json1_1EndpointGroup = (output: any, context: __SerdeContex : undefined, EndpointGroupArn: __expectString(output.EndpointGroupArn), EndpointGroupRegion: __expectString(output.EndpointGroupRegion), - HealthCheckIntervalSeconds: __expectInt(output.HealthCheckIntervalSeconds), + HealthCheckIntervalSeconds: __expectInt32(output.HealthCheckIntervalSeconds), HealthCheckPath: __expectString(output.HealthCheckPath), - HealthCheckPort: __expectInt(output.HealthCheckPort), + HealthCheckPort: __expectInt32(output.HealthCheckPort), HealthCheckProtocol: __expectString(output.HealthCheckProtocol), PortOverrides: output.PortOverrides !== undefined && output.PortOverrides !== null ? deserializeAws_json1_1PortOverrides(output.PortOverrides, context) : undefined, - ThresholdCount: __expectInt(output.ThresholdCount), - TrafficDialPercentage: __limitedParseFloat(output.TrafficDialPercentage), + ThresholdCount: __expectInt32(output.ThresholdCount), + TrafficDialPercentage: __limitedParseFloat32(output.TrafficDialPercentage), } as any; }; @@ -6477,7 +6477,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( const deserializeAws_json1_1PortMapping = (output: any, context: __SerdeContext): PortMapping => { return { - AcceleratorPort: __expectInt(output.AcceleratorPort), + AcceleratorPort: __expectInt32(output.AcceleratorPort), DestinationSocketAddress: output.DestinationSocketAddress !== undefined && output.DestinationSocketAddress !== null ? deserializeAws_json1_1SocketAddress(output.DestinationSocketAddress, context) @@ -6505,8 +6505,8 @@ const deserializeAws_json1_1PortMappings = (output: any, context: __SerdeContext const deserializeAws_json1_1PortOverride = (output: any, context: __SerdeContext): PortOverride => { return { - EndpointPort: __expectInt(output.EndpointPort), - ListenerPort: __expectInt(output.ListenerPort), + EndpointPort: __expectInt32(output.EndpointPort), + ListenerPort: __expectInt32(output.ListenerPort), } as any; }; @@ -6523,8 +6523,8 @@ const deserializeAws_json1_1PortOverrides = (output: any, context: __SerdeContex const deserializeAws_json1_1PortRange = (output: any, context: __SerdeContext): PortRange => { return { - FromPort: __expectInt(output.FromPort), - ToPort: __expectInt(output.ToPort), + FromPort: __expectInt32(output.FromPort), + ToPort: __expectInt32(output.ToPort), } as any; }; @@ -6565,7 +6565,7 @@ const deserializeAws_json1_1ProvisionByoipCidrResponse = ( const deserializeAws_json1_1SocketAddress = (output: any, context: __SerdeContext): SocketAddress => { return { IpAddress: __expectString(output.IpAddress), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; diff --git a/clients/client-glue/protocols/Aws_json1_1.ts b/clients/client-glue/protocols/Aws_json1_1.ts index e2ddd1d2706a2..e09f4b8b025ca 100644 --- a/clients/client-glue/protocols/Aws_json1_1.ts +++ b/clients/client-glue/protocols/Aws_json1_1.ts @@ -797,9 +797,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -19549,7 +19550,7 @@ const deserializeAws_json1_1Action = (output: any, context: __SerdeContext): Act ? deserializeAws_json1_1NotificationProperty(output.NotificationProperty, context) : undefined, SecurityConfiguration: __expectString(output.SecurityConfiguration), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), } as any; }; @@ -19888,9 +19889,9 @@ const deserializeAws_json1_1BinaryColumnStatisticsData = ( context: __SerdeContext ): BinaryColumnStatisticsData => { return { - AverageLength: __limitedParseFloat(output.AverageLength), - MaximumLength: __expectInt(output.MaximumLength), - NumberOfNulls: __expectInt(output.NumberOfNulls), + AverageLength: __limitedParseDouble(output.AverageLength), + MaximumLength: __expectLong(output.MaximumLength), + NumberOfNulls: __expectLong(output.NumberOfNulls), } as any; }; @@ -19899,9 +19900,9 @@ const deserializeAws_json1_1BooleanColumnStatisticsData = ( context: __SerdeContext ): BooleanColumnStatisticsData => { return { - NumberOfFalses: __expectInt(output.NumberOfFalses), - NumberOfNulls: __expectInt(output.NumberOfNulls), - NumberOfTrues: __expectInt(output.NumberOfTrues), + NumberOfFalses: __expectLong(output.NumberOfFalses), + NumberOfNulls: __expectLong(output.NumberOfNulls), + NumberOfTrues: __expectLong(output.NumberOfTrues), } as any; }; @@ -20045,7 +20046,7 @@ const deserializeAws_json1_1CodeGenNode = (output: any, context: __SerdeContext) ? deserializeAws_json1_1CodeGenNodeArgs(output.Args, context) : undefined, Id: __expectString(output.Id), - LineNumber: __expectInt(output.LineNumber), + LineNumber: __expectInt32(output.LineNumber), NodeType: __expectString(output.NodeType), } as any; }; @@ -20105,7 +20106,7 @@ const deserializeAws_json1_1ColumnErrors = (output: any, context: __SerdeContext const deserializeAws_json1_1ColumnImportance = (output: any, context: __SerdeContext): ColumnImportance => { return { ColumnName: __expectString(output.ColumnName), - Importance: __limitedParseFloat(output.Importance), + Importance: __limitedParseDouble(output.Importance), } as any; }; @@ -20285,10 +20286,10 @@ const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeCo const deserializeAws_json1_1ConfusionMatrix = (output: any, context: __SerdeContext): ConfusionMatrix => { return { - NumFalseNegatives: __expectInt(output.NumFalseNegatives), - NumFalsePositives: __expectInt(output.NumFalsePositives), - NumTrueNegatives: __expectInt(output.NumTrueNegatives), - NumTruePositives: __expectInt(output.NumTruePositives), + NumFalseNegatives: __expectLong(output.NumFalseNegatives), + NumFalsePositives: __expectLong(output.NumFalsePositives), + NumTrueNegatives: __expectLong(output.NumTrueNegatives), + NumTruePositives: __expectLong(output.NumTruePositives), } as any; }; @@ -20393,7 +20394,7 @@ const deserializeAws_json1_1Crawler = (output: any, context: __SerdeContext): Cr ? deserializeAws_json1_1ClassifierNameList(output.Classifiers, context) : undefined, Configuration: __expectString(output.Configuration), - CrawlElapsedTime: __expectInt(output.CrawlElapsedTime), + CrawlElapsedTime: __expectLong(output.CrawlElapsedTime), CrawlerSecurityConfiguration: __expectString(output.CrawlerSecurityConfiguration), CreationTime: output.CreationTime !== undefined && output.CreationTime !== null @@ -20433,7 +20434,7 @@ const deserializeAws_json1_1Crawler = (output: any, context: __SerdeContext): Cr output.Targets !== undefined && output.Targets !== null ? deserializeAws_json1_1CrawlerTargets(output.Targets, context) : undefined, - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -20451,13 +20452,13 @@ const deserializeAws_json1_1CrawlerList = (output: any, context: __SerdeContext) const deserializeAws_json1_1CrawlerMetrics = (output: any, context: __SerdeContext): CrawlerMetrics => { return { CrawlerName: __expectString(output.CrawlerName), - LastRuntimeSeconds: __limitedParseFloat(output.LastRuntimeSeconds), - MedianRuntimeSeconds: __limitedParseFloat(output.MedianRuntimeSeconds), + LastRuntimeSeconds: __limitedParseDouble(output.LastRuntimeSeconds), + MedianRuntimeSeconds: __limitedParseDouble(output.MedianRuntimeSeconds), StillEstimating: __expectBoolean(output.StillEstimating), - TablesCreated: __expectInt(output.TablesCreated), - TablesDeleted: __expectInt(output.TablesDeleted), - TablesUpdated: __expectInt(output.TablesUpdated), - TimeLeftSeconds: __limitedParseFloat(output.TimeLeftSeconds), + TablesCreated: __expectInt32(output.TablesCreated), + TablesDeleted: __expectInt32(output.TablesDeleted), + TablesUpdated: __expectInt32(output.TablesUpdated), + TimeLeftSeconds: __limitedParseDouble(output.TimeLeftSeconds), } as any; }; @@ -20596,8 +20597,8 @@ const deserializeAws_json1_1CreateDevEndpointResponse = ( ExtraPythonLibsS3Path: __expectString(output.ExtraPythonLibsS3Path), FailureReason: __expectString(output.FailureReason), GlueVersion: __expectString(output.GlueVersion), - NumberOfNodes: __expectInt(output.NumberOfNodes), - NumberOfWorkers: __expectInt(output.NumberOfWorkers), + NumberOfNodes: __expectInt32(output.NumberOfNodes), + NumberOfWorkers: __expectInt32(output.NumberOfWorkers), RoleArn: __expectString(output.RoleArn), SecurityConfiguration: __expectString(output.SecurityConfiguration), SecurityGroupIds: @@ -20609,7 +20610,7 @@ const deserializeAws_json1_1CreateDevEndpointResponse = ( VpcId: __expectString(output.VpcId), WorkerType: __expectString(output.WorkerType), YarnEndpointAddress: __expectString(output.YarnEndpointAddress), - ZeppelinRemoteSparkInterpreterPort: __expectInt(output.ZeppelinRemoteSparkInterpreterPort), + ZeppelinRemoteSparkInterpreterPort: __expectInt32(output.ZeppelinRemoteSparkInterpreterPort), } as any; }; @@ -20659,12 +20660,12 @@ const deserializeAws_json1_1CreateSchemaResponse = (output: any, context: __Serd Compatibility: __expectString(output.Compatibility), DataFormat: __expectString(output.DataFormat), Description: __expectString(output.Description), - LatestSchemaVersion: __expectInt(output.LatestSchemaVersion), - NextSchemaVersion: __expectInt(output.NextSchemaVersion), + LatestSchemaVersion: __expectLong(output.LatestSchemaVersion), + NextSchemaVersion: __expectLong(output.NextSchemaVersion), RegistryArn: __expectString(output.RegistryArn), RegistryName: __expectString(output.RegistryName), SchemaArn: __expectString(output.SchemaArn), - SchemaCheckpoint: __expectInt(output.SchemaCheckpoint), + SchemaCheckpoint: __expectLong(output.SchemaCheckpoint), SchemaName: __expectString(output.SchemaName), SchemaStatus: __expectString(output.SchemaStatus), SchemaVersionId: __expectString(output.SchemaVersionId), @@ -20739,7 +20740,7 @@ const deserializeAws_json1_1CsvClassifier = (output: any, context: __SerdeContex : undefined, Name: __expectString(output.Name), QuoteSymbol: __expectString(output.QuoteSymbol), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -20854,8 +20855,8 @@ const deserializeAws_json1_1DateColumnStatisticsData = ( output.MinimumValue !== undefined && output.MinimumValue !== null ? new Date(Math.round(output.MinimumValue * 1000)) : undefined, - NumberOfDistinctValues: __expectInt(output.NumberOfDistinctValues), - NumberOfNulls: __expectInt(output.NumberOfNulls), + NumberOfDistinctValues: __expectLong(output.NumberOfDistinctValues), + NumberOfNulls: __expectLong(output.NumberOfNulls), } as any; }; @@ -20872,14 +20873,14 @@ const deserializeAws_json1_1DecimalColumnStatisticsData = ( output.MinimumValue !== undefined && output.MinimumValue !== null ? deserializeAws_json1_1DecimalNumber(output.MinimumValue, context) : undefined, - NumberOfDistinctValues: __expectInt(output.NumberOfDistinctValues), - NumberOfNulls: __expectInt(output.NumberOfNulls), + NumberOfDistinctValues: __expectLong(output.NumberOfDistinctValues), + NumberOfNulls: __expectLong(output.NumberOfNulls), } as any; }; const deserializeAws_json1_1DecimalNumber = (output: any, context: __SerdeContext): DecimalNumber => { return { - Scale: __expectInt(output.Scale), + Scale: __expectInt32(output.Scale), UnscaledValue: output.UnscaledValue !== undefined && output.UnscaledValue !== null ? context.base64Decoder(output.UnscaledValue) @@ -21052,8 +21053,8 @@ const deserializeAws_json1_1DevEndpoint = (output: any, context: __SerdeContext) ? new Date(Math.round(output.LastModifiedTimestamp * 1000)) : undefined, LastUpdateStatus: __expectString(output.LastUpdateStatus), - NumberOfNodes: __expectInt(output.NumberOfNodes), - NumberOfWorkers: __expectInt(output.NumberOfWorkers), + NumberOfNodes: __expectInt32(output.NumberOfNodes), + NumberOfWorkers: __expectInt32(output.NumberOfWorkers), PrivateAddress: __expectString(output.PrivateAddress), PublicAddress: __expectString(output.PublicAddress), PublicKey: __expectString(output.PublicKey), @@ -21072,7 +21073,7 @@ const deserializeAws_json1_1DevEndpoint = (output: any, context: __SerdeContext) VpcId: __expectString(output.VpcId), WorkerType: __expectString(output.WorkerType), YarnEndpointAddress: __expectString(output.YarnEndpointAddress), - ZeppelinRemoteSparkInterpreterPort: __expectInt(output.ZeppelinRemoteSparkInterpreterPort), + ZeppelinRemoteSparkInterpreterPort: __expectInt32(output.ZeppelinRemoteSparkInterpreterPort), } as any; }; @@ -21114,10 +21115,10 @@ const deserializeAws_json1_1DoubleColumnStatisticsData = ( context: __SerdeContext ): DoubleColumnStatisticsData => { return { - MaximumValue: __limitedParseFloat(output.MaximumValue), - MinimumValue: __limitedParseFloat(output.MinimumValue), - NumberOfDistinctValues: __expectInt(output.NumberOfDistinctValues), - NumberOfNulls: __expectInt(output.NumberOfNulls), + MaximumValue: __limitedParseDouble(output.MaximumValue), + MinimumValue: __limitedParseDouble(output.MinimumValue), + NumberOfDistinctValues: __expectLong(output.NumberOfDistinctValues), + NumberOfNulls: __expectLong(output.NumberOfNulls), } as any; }; @@ -21125,7 +21126,7 @@ const deserializeAws_json1_1DynamoDBTarget = (output: any, context: __SerdeConte return { Path: __expectString(output.Path), scanAll: __expectBoolean(output.scanAll), - scanRate: __limitedParseFloat(output.scanRate), + scanRate: __limitedParseDouble(output.scanRate), } as any; }; @@ -21232,14 +21233,14 @@ const deserializeAws_json1_1EvaluationMetrics = (output: any, context: __SerdeCo const deserializeAws_json1_1EventBatchingCondition = (output: any, context: __SerdeContext): EventBatchingCondition => { return { - BatchSize: __expectInt(output.BatchSize), - BatchWindow: __expectInt(output.BatchWindow), + BatchSize: __expectInt32(output.BatchSize), + BatchWindow: __expectInt32(output.BatchWindow), } as any; }; const deserializeAws_json1_1ExecutionProperty = (output: any, context: __SerdeContext): ExecutionProperty => { return { - MaxConcurrentRuns: __expectInt(output.MaxConcurrentRuns), + MaxConcurrentRuns: __expectInt32(output.MaxConcurrentRuns), } as any; }; @@ -21254,7 +21255,7 @@ const deserializeAws_json1_1ExportLabelsTaskRunProperties = ( const deserializeAws_json1_1FindMatchesMetrics = (output: any, context: __SerdeContext): FindMatchesMetrics => { return { - AreaUnderPRCurve: __limitedParseFloat(output.AreaUnderPRCurve), + AreaUnderPRCurve: __limitedParseDouble(output.AreaUnderPRCurve), ColumnImportances: output.ColumnImportances !== undefined && output.ColumnImportances !== null ? deserializeAws_json1_1ColumnImportanceList(output.ColumnImportances, context) @@ -21263,17 +21264,17 @@ const deserializeAws_json1_1FindMatchesMetrics = (output: any, context: __SerdeC output.ConfusionMatrix !== undefined && output.ConfusionMatrix !== null ? deserializeAws_json1_1ConfusionMatrix(output.ConfusionMatrix, context) : undefined, - F1: __limitedParseFloat(output.F1), - Precision: __limitedParseFloat(output.Precision), - Recall: __limitedParseFloat(output.Recall), + F1: __limitedParseDouble(output.F1), + Precision: __limitedParseDouble(output.Precision), + Recall: __limitedParseDouble(output.Recall), } as any; }; const deserializeAws_json1_1FindMatchesParameters = (output: any, context: __SerdeContext): FindMatchesParameters => { return { - AccuracyCostTradeoff: __limitedParseFloat(output.AccuracyCostTradeoff), + AccuracyCostTradeoff: __limitedParseDouble(output.AccuracyCostTradeoff), EnforceProvidedLabels: __expectBoolean(output.EnforceProvidedLabels), - PrecisionRecallTradeoff: __limitedParseFloat(output.PrecisionRecallTradeoff), + PrecisionRecallTradeoff: __limitedParseDouble(output.PrecisionRecallTradeoff), PrimaryKeyColumnName: __expectString(output.PrimaryKeyColumnName), } as any; }; @@ -21544,7 +21545,7 @@ const deserializeAws_json1_1GetMLTaskRunResponse = (output: any, context: __Serd ? new Date(Math.round(output.CompletedOn * 1000)) : undefined, ErrorString: __expectString(output.ErrorString), - ExecutionTime: __expectInt(output.ExecutionTime), + ExecutionTime: __expectInt32(output.ExecutionTime), LastModifiedOn: output.LastModifiedOn !== undefined && output.LastModifiedOn !== null ? new Date(Math.round(output.LastModifiedOn * 1000)) @@ -21590,15 +21591,15 @@ const deserializeAws_json1_1GetMLTransformResponse = (output: any, context: __Se output.InputRecordTables !== undefined && output.InputRecordTables !== null ? deserializeAws_json1_1GlueTables(output.InputRecordTables, context) : undefined, - LabelCount: __expectInt(output.LabelCount), + LabelCount: __expectInt32(output.LabelCount), LastModifiedOn: output.LastModifiedOn !== undefined && output.LastModifiedOn !== null ? new Date(Math.round(output.LastModifiedOn * 1000)) : undefined, - MaxCapacity: __limitedParseFloat(output.MaxCapacity), - MaxRetries: __expectInt(output.MaxRetries), + MaxCapacity: __limitedParseDouble(output.MaxCapacity), + MaxRetries: __expectInt32(output.MaxRetries), Name: __expectString(output.Name), - NumberOfWorkers: __expectInt(output.NumberOfWorkers), + NumberOfWorkers: __expectInt32(output.NumberOfWorkers), Parameters: output.Parameters !== undefined && output.Parameters !== null ? deserializeAws_json1_1TransformParameters(output.Parameters, context) @@ -21609,7 +21610,7 @@ const deserializeAws_json1_1GetMLTransformResponse = (output: any, context: __Se ? deserializeAws_json1_1TransformSchema(output.Schema, context) : undefined, Status: __expectString(output.Status), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), TransformEncryption: output.TransformEncryption !== undefined && output.TransformEncryption !== null ? deserializeAws_json1_1TransformEncryption(output.TransformEncryption, context) @@ -21743,12 +21744,12 @@ const deserializeAws_json1_1GetSchemaResponse = (output: any, context: __SerdeCo CreatedTime: __expectString(output.CreatedTime), DataFormat: __expectString(output.DataFormat), Description: __expectString(output.Description), - LatestSchemaVersion: __expectInt(output.LatestSchemaVersion), - NextSchemaVersion: __expectInt(output.NextSchemaVersion), + LatestSchemaVersion: __expectLong(output.LatestSchemaVersion), + NextSchemaVersion: __expectLong(output.NextSchemaVersion), RegistryArn: __expectString(output.RegistryArn), RegistryName: __expectString(output.RegistryName), SchemaArn: __expectString(output.SchemaArn), - SchemaCheckpoint: __expectInt(output.SchemaCheckpoint), + SchemaCheckpoint: __expectLong(output.SchemaCheckpoint), SchemaName: __expectString(output.SchemaName), SchemaStatus: __expectString(output.SchemaStatus), UpdatedTime: __expectString(output.UpdatedTime), @@ -21766,7 +21767,7 @@ const deserializeAws_json1_1GetSchemaVersionResponse = ( SchemaDefinition: __expectString(output.SchemaDefinition), SchemaVersionId: __expectString(output.SchemaVersionId), Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -22013,7 +22014,7 @@ const deserializeAws_json1_1GrokClassifier = (output: any, context: __SerdeConte ? new Date(Math.round(output.LastUpdated * 1000)) : undefined, Name: __expectString(output.Name), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -22091,7 +22092,7 @@ const deserializeAws_json1_1JdbcTargetList = (output: any, context: __SerdeConte const deserializeAws_json1_1Job = (output: any, context: __SerdeContext): Job => { return { - AllocatedCapacity: __expectInt(output.AllocatedCapacity), + AllocatedCapacity: __expectInt32(output.AllocatedCapacity), Command: output.Command !== undefined && output.Command !== null ? deserializeAws_json1_1JobCommand(output.Command, context) @@ -22119,8 +22120,8 @@ const deserializeAws_json1_1Job = (output: any, context: __SerdeContext): Job => ? new Date(Math.round(output.LastModifiedOn * 1000)) : undefined, LogUri: __expectString(output.LogUri), - MaxCapacity: __limitedParseFloat(output.MaxCapacity), - MaxRetries: __expectInt(output.MaxRetries), + MaxCapacity: __limitedParseDouble(output.MaxCapacity), + MaxRetries: __expectInt32(output.MaxRetries), Name: __expectString(output.Name), NonOverridableArguments: output.NonOverridableArguments !== undefined && output.NonOverridableArguments !== null @@ -22130,23 +22131,23 @@ const deserializeAws_json1_1Job = (output: any, context: __SerdeContext): Job => output.NotificationProperty !== undefined && output.NotificationProperty !== null ? deserializeAws_json1_1NotificationProperty(output.NotificationProperty, context) : undefined, - NumberOfWorkers: __expectInt(output.NumberOfWorkers), + NumberOfWorkers: __expectInt32(output.NumberOfWorkers), Role: __expectString(output.Role), SecurityConfiguration: __expectString(output.SecurityConfiguration), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), WorkerType: __expectString(output.WorkerType), } as any; }; const deserializeAws_json1_1JobBookmarkEntry = (output: any, context: __SerdeContext): JobBookmarkEntry => { return { - Attempt: __expectInt(output.Attempt), + Attempt: __expectInt32(output.Attempt), JobBookmark: __expectString(output.JobBookmark), JobName: __expectString(output.JobName), PreviousRunId: __expectString(output.PreviousRunId), - Run: __expectInt(output.Run), + Run: __expectInt32(output.Run), RunId: __expectString(output.RunId), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -22198,18 +22199,18 @@ const deserializeAws_json1_1JobNodeDetails = (output: any, context: __SerdeConte const deserializeAws_json1_1JobRun = (output: any, context: __SerdeContext): JobRun => { return { - AllocatedCapacity: __expectInt(output.AllocatedCapacity), + AllocatedCapacity: __expectInt32(output.AllocatedCapacity), Arguments: output.Arguments !== undefined && output.Arguments !== null ? deserializeAws_json1_1GenericMap(output.Arguments, context) : undefined, - Attempt: __expectInt(output.Attempt), + Attempt: __expectInt32(output.Attempt), CompletedOn: output.CompletedOn !== undefined && output.CompletedOn !== null ? new Date(Math.round(output.CompletedOn * 1000)) : undefined, ErrorMessage: __expectString(output.ErrorMessage), - ExecutionTime: __expectInt(output.ExecutionTime), + ExecutionTime: __expectInt32(output.ExecutionTime), GlueVersion: __expectString(output.GlueVersion), Id: __expectString(output.Id), JobName: __expectString(output.JobName), @@ -22219,12 +22220,12 @@ const deserializeAws_json1_1JobRun = (output: any, context: __SerdeContext): Job ? new Date(Math.round(output.LastModifiedOn * 1000)) : undefined, LogGroupName: __expectString(output.LogGroupName), - MaxCapacity: __limitedParseFloat(output.MaxCapacity), + MaxCapacity: __limitedParseDouble(output.MaxCapacity), NotificationProperty: output.NotificationProperty !== undefined && output.NotificationProperty !== null ? deserializeAws_json1_1NotificationProperty(output.NotificationProperty, context) : undefined, - NumberOfWorkers: __expectInt(output.NumberOfWorkers), + NumberOfWorkers: __expectInt32(output.NumberOfWorkers), PredecessorRuns: output.PredecessorRuns !== undefined && output.PredecessorRuns !== null ? deserializeAws_json1_1PredecessorList(output.PredecessorRuns, context) @@ -22235,7 +22236,7 @@ const deserializeAws_json1_1JobRun = (output: any, context: __SerdeContext): Job output.StartedOn !== undefined && output.StartedOn !== null ? new Date(Math.round(output.StartedOn * 1000)) : undefined, - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), TriggerName: __expectString(output.TriggerName), WorkerType: __expectString(output.WorkerType), } as any; @@ -22264,7 +22265,7 @@ const deserializeAws_json1_1JsonClassifier = (output: any, context: __SerdeConte ? new Date(Math.round(output.LastUpdated * 1000)) : undefined, Name: __expectString(output.Name), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -22431,10 +22432,10 @@ const deserializeAws_json1_1LongColumnStatisticsData = ( context: __SerdeContext ): LongColumnStatisticsData => { return { - MaximumValue: __expectInt(output.MaximumValue), - MinimumValue: __expectInt(output.MinimumValue), - NumberOfDistinctValues: __expectInt(output.NumberOfDistinctValues), - NumberOfNulls: __expectInt(output.NumberOfNulls), + MaximumValue: __expectLong(output.MaximumValue), + MinimumValue: __expectLong(output.MinimumValue), + NumberOfDistinctValues: __expectLong(output.NumberOfDistinctValues), + NumberOfNulls: __expectLong(output.NumberOfNulls), } as any; }; @@ -22525,15 +22526,15 @@ const deserializeAws_json1_1MLTransform = (output: any, context: __SerdeContext) output.InputRecordTables !== undefined && output.InputRecordTables !== null ? deserializeAws_json1_1GlueTables(output.InputRecordTables, context) : undefined, - LabelCount: __expectInt(output.LabelCount), + LabelCount: __expectInt32(output.LabelCount), LastModifiedOn: output.LastModifiedOn !== undefined && output.LastModifiedOn !== null ? new Date(Math.round(output.LastModifiedOn * 1000)) : undefined, - MaxCapacity: __limitedParseFloat(output.MaxCapacity), - MaxRetries: __expectInt(output.MaxRetries), + MaxCapacity: __limitedParseDouble(output.MaxCapacity), + MaxRetries: __expectInt32(output.MaxRetries), Name: __expectString(output.Name), - NumberOfWorkers: __expectInt(output.NumberOfWorkers), + NumberOfWorkers: __expectInt32(output.NumberOfWorkers), Parameters: output.Parameters !== undefined && output.Parameters !== null ? deserializeAws_json1_1TransformParameters(output.Parameters, context) @@ -22544,7 +22545,7 @@ const deserializeAws_json1_1MLTransform = (output: any, context: __SerdeContext) ? deserializeAws_json1_1TransformSchema(output.Schema, context) : undefined, Status: __expectString(output.Status), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), TransformEncryption: output.TransformEncryption !== undefined && output.TransformEncryption !== null ? deserializeAws_json1_1TransformEncryption(output.TransformEncryption, context) @@ -22650,7 +22651,7 @@ const deserializeAws_json1_1NoScheduleException = (output: any, context: __Serde const deserializeAws_json1_1NotificationProperty = (output: any, context: __SerdeContext): NotificationProperty => { return { - NotifyDelayAfter: __expectInt(output.NotifyDelayAfter), + NotifyDelayAfter: __expectInt32(output.NotifyDelayAfter), } as any; }; @@ -22677,7 +22678,7 @@ const deserializeAws_json1_1OrchestrationStringList = (output: any, context: __S const deserializeAws_json1_1Order = (output: any, context: __SerdeContext): Order => { return { Column: __expectString(output.Column), - SortOrder: __expectInt(output.SortOrder), + SortOrder: __expectInt32(output.SortOrder), } as any; }; @@ -22966,7 +22967,7 @@ const deserializeAws_json1_1PutSchemaVersionMetadataResponse = ( SchemaArn: __expectString(output.SchemaArn), SchemaName: __expectString(output.SchemaName), SchemaVersionId: __expectString(output.SchemaVersionId), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -23004,7 +23005,7 @@ const deserializeAws_json1_1RegisterSchemaVersionResponse = ( return { SchemaVersionId: __expectString(output.SchemaVersionId), Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -23042,7 +23043,7 @@ const deserializeAws_json1_1RemoveSchemaVersionMetadataResponse = ( SchemaArn: __expectString(output.SchemaArn), SchemaName: __expectString(output.SchemaName), SchemaVersionId: __expectString(output.SchemaVersionId), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -23124,7 +23125,7 @@ const deserializeAws_json1_1S3Target = (output: any, context: __SerdeContext): S ? deserializeAws_json1_1PathList(output.Exclusions, context) : undefined, Path: __expectString(output.Path), - SampleSize: __expectInt(output.SampleSize), + SampleSize: __expectInt32(output.SampleSize), } as any; }; @@ -23225,7 +23226,7 @@ const deserializeAws_json1_1SchemaReference = (output: any, context: __SerdeCont ? deserializeAws_json1_1SchemaId(output.SchemaId, context) : undefined, SchemaVersionId: __expectString(output.SchemaVersionId), - SchemaVersionNumber: __expectInt(output.SchemaVersionNumber), + SchemaVersionNumber: __expectLong(output.SchemaVersionNumber), } as any; }; @@ -23235,7 +23236,7 @@ const deserializeAws_json1_1SchemaVersionErrorItem = (output: any, context: __Se output.ErrorDetails !== undefined && output.ErrorDetails !== null ? deserializeAws_json1_1ErrorDetails(output.ErrorDetails, context) : undefined, - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -23270,7 +23271,7 @@ const deserializeAws_json1_1SchemaVersionListItem = (output: any, context: __Ser SchemaArn: __expectString(output.SchemaArn), SchemaVersionId: __expectString(output.SchemaVersionId), Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -23385,8 +23386,8 @@ const deserializeAws_json1_1StartingEventBatchCondition = ( context: __SerdeContext ): StartingEventBatchCondition => { return { - BatchSize: __expectInt(output.BatchSize), - BatchWindow: __expectInt(output.BatchWindow), + BatchSize: __expectInt32(output.BatchSize), + BatchWindow: __expectInt32(output.BatchWindow), } as any; }; @@ -23466,7 +23467,7 @@ const deserializeAws_json1_1StorageDescriptor = (output: any, context: __SerdeCo Compressed: __expectBoolean(output.Compressed), InputFormat: __expectString(output.InputFormat), Location: __expectString(output.Location), - NumberOfBuckets: __expectInt(output.NumberOfBuckets), + NumberOfBuckets: __expectInt32(output.NumberOfBuckets), OutputFormat: __expectString(output.OutputFormat), Parameters: output.Parameters !== undefined && output.Parameters !== null @@ -23497,10 +23498,10 @@ const deserializeAws_json1_1StringColumnStatisticsData = ( context: __SerdeContext ): StringColumnStatisticsData => { return { - AverageLength: __limitedParseFloat(output.AverageLength), - MaximumLength: __expectInt(output.MaximumLength), - NumberOfDistinctValues: __expectInt(output.NumberOfDistinctValues), - NumberOfNulls: __expectInt(output.NumberOfNulls), + AverageLength: __limitedParseDouble(output.AverageLength), + MaximumLength: __expectLong(output.MaximumLength), + NumberOfDistinctValues: __expectLong(output.NumberOfDistinctValues), + NumberOfNulls: __expectLong(output.NumberOfNulls), } as any; }; @@ -23544,7 +23545,7 @@ const deserializeAws_json1_1Table = (output: any, context: __SerdeContext): Tabl output.PartitionKeys !== undefined && output.PartitionKeys !== null ? deserializeAws_json1_1ColumnList(output.PartitionKeys, context) : undefined, - Retention: __expectInt(output.Retention), + Retention: __expectInt32(output.Retention), StorageDescriptor: output.StorageDescriptor !== undefined && output.StorageDescriptor !== null ? deserializeAws_json1_1StorageDescriptor(output.StorageDescriptor, context) @@ -23658,7 +23659,7 @@ const deserializeAws_json1_1TaskRun = (output: any, context: __SerdeContext): Ta ? new Date(Math.round(output.CompletedOn * 1000)) : undefined, ErrorString: __expectString(output.ErrorString), - ExecutionTime: __expectInt(output.ExecutionTime), + ExecutionTime: __expectInt32(output.ExecutionTime), LastModifiedOn: output.LastModifiedOn !== undefined && output.LastModifiedOn !== null ? new Date(Math.round(output.LastModifiedOn * 1000)) @@ -24029,7 +24030,7 @@ const deserializeAws_json1_1Workflow = (output: any, context: __SerdeContext): W output.LastRun !== undefined && output.LastRun !== null ? deserializeAws_json1_1WorkflowRun(output.LastRun, context) : undefined, - MaxConcurrentRuns: __expectInt(output.MaxConcurrentRuns), + MaxConcurrentRuns: __expectInt32(output.MaxConcurrentRuns), Name: __expectString(output.Name), } as any; }; @@ -24120,12 +24121,12 @@ const deserializeAws_json1_1WorkflowRuns = (output: any, context: __SerdeContext const deserializeAws_json1_1WorkflowRunStatistics = (output: any, context: __SerdeContext): WorkflowRunStatistics => { return { - FailedActions: __expectInt(output.FailedActions), - RunningActions: __expectInt(output.RunningActions), - StoppedActions: __expectInt(output.StoppedActions), - SucceededActions: __expectInt(output.SucceededActions), - TimeoutActions: __expectInt(output.TimeoutActions), - TotalActions: __expectInt(output.TotalActions), + FailedActions: __expectInt32(output.FailedActions), + RunningActions: __expectInt32(output.RunningActions), + StoppedActions: __expectInt32(output.StoppedActions), + SucceededActions: __expectInt32(output.SucceededActions), + TimeoutActions: __expectInt32(output.TimeoutActions), + TotalActions: __expectInt32(output.TotalActions), } as any; }; @@ -24153,7 +24154,7 @@ const deserializeAws_json1_1XMLClassifier = (output: any, context: __SerdeContex : undefined, Name: __expectString(output.Name), RowTag: __expectString(output.RowTag), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; diff --git a/clients/client-greengrass/protocols/Aws_restJson1.ts b/clients/client-greengrass/protocols/Aws_restJson1.ts index d6290b6a64fb9..7a323dabfddaf 100644 --- a/clients/client-greengrass/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/protocols/Aws_restJson1.ts @@ -368,7 +368,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -10058,9 +10058,9 @@ const deserializeAws_restJson1BulkDeployment = (output: any, context: __SerdeCon const deserializeAws_restJson1BulkDeploymentMetrics = (output: any, context: __SerdeContext): BulkDeploymentMetrics => { return { - InvalidInputRecords: __expectInt(output.InvalidInputRecords), - RecordsProcessed: __expectInt(output.RecordsProcessed), - RetryAttempts: __expectInt(output.RetryAttempts), + InvalidInputRecords: __expectInt32(output.InvalidInputRecords), + RecordsProcessed: __expectInt32(output.RecordsProcessed), + RetryAttempts: __expectInt32(output.RetryAttempts), } as any; }; @@ -10110,7 +10110,7 @@ const deserializeAws_restJson1ConnectivityInfo = (output: any, context: __SerdeC HostAddress: __expectString(output.HostAddress), Id: __expectString(output.Id), Metadata: __expectString(output.Metadata), - PortNumber: __expectInt(output.PortNumber), + PortNumber: __expectInt32(output.PortNumber), } as any; }; @@ -10251,9 +10251,9 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S : undefined, ExecArgs: __expectString(output.ExecArgs), Executable: __expectString(output.Executable), - MemorySize: __expectInt(output.MemorySize), + MemorySize: __expectInt32(output.MemorySize), Pinned: __expectBoolean(output.Pinned), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), } as any; }; @@ -10331,8 +10331,8 @@ const deserializeAws_restJson1FunctionExecutionConfig = ( const deserializeAws_restJson1FunctionRunAsConfig = (output: any, context: __SerdeContext): FunctionRunAsConfig => { return { - Gid: __expectInt(output.Gid), - Uid: __expectInt(output.Uid), + Gid: __expectInt32(output.Gid), + Uid: __expectInt32(output.Uid), } as any; }; @@ -10409,7 +10409,7 @@ const deserializeAws_restJson1Logger = (output: any, context: __SerdeContext): L Component: __expectString(output.Component), Id: __expectString(output.Id), Level: __expectString(output.Level), - Space: __expectInt(output.Space), + Space: __expectInt32(output.Space), Type: __expectString(output.Type), } as any; }; diff --git a/clients/client-greengrassv2/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/protocols/Aws_restJson1.ts index a73c743b48d08..c2b58db48ad60 100644 --- a/clients/client-greengrassv2/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/protocols/Aws_restJson1.ts @@ -103,12 +103,13 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3070,7 +3071,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -3168,7 +3169,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( serviceCode: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -4015,7 +4016,7 @@ const deserializeAws_restJson1DeploymentComponentUpdatePolicy = ( ): DeploymentComponentUpdatePolicy => { return { action: __expectString(output.action), - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + timeoutInSeconds: __expectInt32(output.timeoutInSeconds), } as any; }; @@ -4024,7 +4025,7 @@ const deserializeAws_restJson1DeploymentConfigurationValidationPolicy = ( context: __SerdeContext ): DeploymentConfigurationValidationPolicy => { return { - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + timeoutInSeconds: __expectInt32(output.timeoutInSeconds), } as any; }; @@ -4167,8 +4168,8 @@ const deserializeAws_restJson1IoTJobAbortCriteria = (output: any, context: __Ser return { action: __expectString(output.action), failureType: __expectString(output.failureType), - minNumberOfExecutedThings: __expectInt(output.minNumberOfExecutedThings), - thresholdPercentage: __limitedParseFloat(output.thresholdPercentage), + minNumberOfExecutedThings: __expectInt32(output.minNumberOfExecutedThings), + thresholdPercentage: __limitedParseDouble(output.thresholdPercentage), } as any; }; @@ -4195,7 +4196,7 @@ const deserializeAws_restJson1IoTJobExecutionsRolloutConfig = ( output.exponentialRate !== undefined && output.exponentialRate !== null ? deserializeAws_restJson1IoTJobExponentialRolloutRate(output.exponentialRate, context) : undefined, - maximumPerMinute: __expectInt(output.maximumPerMinute), + maximumPerMinute: __expectInt32(output.maximumPerMinute), } as any; }; @@ -4204,8 +4205,8 @@ const deserializeAws_restJson1IoTJobExponentialRolloutRate = ( context: __SerdeContext ): IoTJobExponentialRolloutRate => { return { - baseRatePerMinute: __expectInt(output.baseRatePerMinute), - incrementFactor: __limitedParseFloat(output.incrementFactor), + baseRatePerMinute: __expectInt32(output.baseRatePerMinute), + incrementFactor: __limitedParseDouble(output.incrementFactor), rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null ? deserializeAws_restJson1IoTJobRateIncreaseCriteria(output.rateIncreaseCriteria, context) @@ -4218,14 +4219,14 @@ const deserializeAws_restJson1IoTJobRateIncreaseCriteria = ( context: __SerdeContext ): IoTJobRateIncreaseCriteria => { return { - numberOfNotifiedThings: __expectInt(output.numberOfNotifiedThings), - numberOfSucceededThings: __expectInt(output.numberOfSucceededThings), + numberOfNotifiedThings: __expectInt32(output.numberOfNotifiedThings), + numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings), } as any; }; const deserializeAws_restJson1IoTJobTimeoutConfig = (output: any, context: __SerdeContext): IoTJobTimeoutConfig => { return { - inProgressTimeoutInMinutes: __expectInt(output.inProgressTimeoutInMinutes), + inProgressTimeoutInMinutes: __expectLong(output.inProgressTimeoutInMinutes), } as any; }; @@ -4284,8 +4285,8 @@ const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext) const deserializeAws_restJson1SystemResourceLimits = (output: any, context: __SerdeContext): SystemResourceLimits => { return { - cpus: __limitedParseFloat(output.cpus), - memory: __expectInt(output.memory), + cpus: __limitedParseDouble(output.cpus), + memory: __expectLong(output.memory), } as any; }; diff --git a/clients/client-groundstation/protocols/Aws_restJson1.ts b/clients/client-groundstation/protocols/Aws_restJson1.ts index 6f7bfd43ed1b4..471d27ead3583 100644 --- a/clients/client-groundstation/protocols/Aws_restJson1.ts +++ b/clients/client-groundstation/protocols/Aws_restJson1.ts @@ -92,10 +92,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -1725,19 +1725,19 @@ export const deserializeAws_restJson1GetMinuteUsageCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.estimatedMinutesRemaining !== undefined && data.estimatedMinutesRemaining !== null) { - contents.estimatedMinutesRemaining = __expectInt(data.estimatedMinutesRemaining); + contents.estimatedMinutesRemaining = __expectInt32(data.estimatedMinutesRemaining); } if (data.isReservedMinutesCustomer !== undefined && data.isReservedMinutesCustomer !== null) { contents.isReservedMinutesCustomer = __expectBoolean(data.isReservedMinutesCustomer); } if (data.totalReservedMinuteAllocation !== undefined && data.totalReservedMinuteAllocation !== null) { - contents.totalReservedMinuteAllocation = __expectInt(data.totalReservedMinuteAllocation); + contents.totalReservedMinuteAllocation = __expectInt32(data.totalReservedMinuteAllocation); } if (data.totalScheduledMinutes !== undefined && data.totalScheduledMinutes !== null) { - contents.totalScheduledMinutes = __expectInt(data.totalScheduledMinutes); + contents.totalScheduledMinutes = __expectInt32(data.totalScheduledMinutes); } if (data.upcomingMinutesScheduled !== undefined && data.upcomingMinutesScheduled !== null) { - contents.upcomingMinutesScheduled = __expectInt(data.upcomingMinutesScheduled); + contents.upcomingMinutesScheduled = __expectInt32(data.upcomingMinutesScheduled); } return Promise.resolve(contents); }; @@ -1817,16 +1817,16 @@ export const deserializeAws_restJson1GetMissionProfileCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.contactPostPassDurationSeconds !== undefined && data.contactPostPassDurationSeconds !== null) { - contents.contactPostPassDurationSeconds = __expectInt(data.contactPostPassDurationSeconds); + contents.contactPostPassDurationSeconds = __expectInt32(data.contactPostPassDurationSeconds); } if (data.contactPrePassDurationSeconds !== undefined && data.contactPrePassDurationSeconds !== null) { - contents.contactPrePassDurationSeconds = __expectInt(data.contactPrePassDurationSeconds); + contents.contactPrePassDurationSeconds = __expectInt32(data.contactPrePassDurationSeconds); } if (data.dataflowEdges !== undefined && data.dataflowEdges !== null) { contents.dataflowEdges = deserializeAws_restJson1DataflowEdgeList(data.dataflowEdges, context); } if (data.minimumViableContactDurationSeconds !== undefined && data.minimumViableContactDurationSeconds !== null) { - contents.minimumViableContactDurationSeconds = __expectInt(data.minimumViableContactDurationSeconds); + contents.minimumViableContactDurationSeconds = __expectInt32(data.minimumViableContactDurationSeconds); } if (data.missionProfileArn !== undefined && data.missionProfileArn !== null) { contents.missionProfileArn = __expectString(data.missionProfileArn); @@ -1921,7 +1921,7 @@ export const deserializeAws_restJson1GetSatelliteCommand = async ( contents.groundStations = deserializeAws_restJson1GroundStationIdList(data.groundStations, context); } if (data.noradSatelliteID !== undefined && data.noradSatelliteID !== null) { - contents.noradSatelliteID = __expectInt(data.noradSatelliteID); + contents.noradSatelliteID = __expectInt32(data.noradSatelliteID); } if (data.satelliteArn !== undefined && data.satelliteArn !== null) { contents.satelliteArn = __expectString(data.satelliteArn); @@ -3434,7 +3434,7 @@ const deserializeAws_restJson1DataflowEndpoint = (output: any, context: __SerdeC output.address !== undefined && output.address !== null ? deserializeAws_restJson1SocketAddress(output.address, context) : undefined, - mtu: __expectInt(output.mtu), + mtu: __expectInt32(output.mtu), name: __expectString(output.name), status: __expectString(output.status), } as any; @@ -3512,14 +3512,14 @@ const deserializeAws_restJson1Destination = (output: any, context: __SerdeContex const deserializeAws_restJson1Eirp = (output: any, context: __SerdeContext): Eirp => { return { units: __expectString(output.units), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; const deserializeAws_restJson1Elevation = (output: any, context: __SerdeContext): Elevation => { return { unit: __expectString(output.unit), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -3550,14 +3550,14 @@ const deserializeAws_restJson1EndpointDetailsList = (output: any, context: __Ser const deserializeAws_restJson1Frequency = (output: any, context: __SerdeContext): Frequency => { return { units: __expectString(output.units), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; const deserializeAws_restJson1FrequencyBandwidth = (output: any, context: __SerdeContext): FrequencyBandwidth => { return { units: __expectString(output.units), - value: __limitedParseFloat(output.value), + value: __limitedParseDouble(output.value), } as any; }; @@ -3646,7 +3646,7 @@ const deserializeAws_restJson1SatelliteListItem = (output: any, context: __Serde output.groundStations !== undefined && output.groundStations !== null ? deserializeAws_restJson1GroundStationIdList(output.groundStations, context) : undefined, - noradSatelliteID: __expectInt(output.noradSatelliteID), + noradSatelliteID: __expectInt32(output.noradSatelliteID), satelliteArn: __expectString(output.satelliteArn), satelliteId: __expectString(output.satelliteId), } as any; @@ -3680,7 +3680,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser const deserializeAws_restJson1SocketAddress = (output: any, context: __SerdeContext): SocketAddress => { return { name: __expectString(output.name), - port: __expectInt(output.port), + port: __expectInt32(output.port), } as any; }; diff --git a/clients/client-guardduty/protocols/Aws_restJson1.ts b/clients/client-guardduty/protocols/Aws_restJson1.ts index 35a8ed91e121d..9bcea5ced6efe 100644 --- a/clients/client-guardduty/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/protocols/Aws_restJson1.ts @@ -205,10 +205,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3396,7 +3397,7 @@ export const deserializeAws_restJson1DescribePublishingDestinationCommand = asyn contents.DestinationType = __expectString(data.destinationType); } if (data.publishingFailureStartTimestamp !== undefined && data.publishingFailureStartTimestamp !== null) { - contents.PublishingFailureStartTimestamp = __expectInt(data.publishingFailureStartTimestamp); + contents.PublishingFailureStartTimestamp = __expectLong(data.publishingFailureStartTimestamp); } if (data.status !== undefined && data.status !== null) { contents.Status = __expectString(data.status); @@ -3806,7 +3807,7 @@ export const deserializeAws_restJson1GetFilterCommand = async ( contents.Name = __expectString(data.name); } if (data.rank !== undefined && data.rank !== null) { - contents.Rank = __expectInt(data.rank); + contents.Rank = __expectInt32(data.rank); } if (data.tags !== undefined && data.tags !== null) { contents.Tags = deserializeAws_restJson1TagMap(data.tags, context); @@ -3998,7 +3999,7 @@ export const deserializeAws_restJson1GetInvitationsCountCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.invitationsCount !== undefined && data.invitationsCount !== null) { - contents.InvitationsCount = __expectInt(data.invitationsCount); + contents.InvitationsCount = __expectInt32(data.invitationsCount); } return Promise.resolve(contents); }; @@ -6416,14 +6417,14 @@ const deserializeAws_restJson1Condition = (output: any, context: __SerdeContext) output.equals !== undefined && output.equals !== null ? deserializeAws_restJson1Equals(output.equals, context) : undefined, - GreaterThan: __expectInt(output.greaterThan), - GreaterThanOrEqual: __expectInt(output.greaterThanOrEqual), - Gt: __expectInt(output.gt), - Gte: __expectInt(output.gte), - LessThan: __expectInt(output.lessThan), - LessThanOrEqual: __expectInt(output.lessThanOrEqual), - Lt: __expectInt(output.lt), - Lte: __expectInt(output.lte), + GreaterThan: __expectLong(output.greaterThan), + GreaterThanOrEqual: __expectLong(output.greaterThanOrEqual), + Gt: __expectInt32(output.gt), + Gte: __expectInt32(output.gte), + LessThan: __expectLong(output.lessThan), + LessThanOrEqual: __expectLong(output.lessThanOrEqual), + Lt: __expectInt32(output.lt), + Lte: __expectInt32(output.lte), Neq: output.neq !== undefined && output.neq !== null ? deserializeAws_restJson1Neq(output.neq, context) : undefined, NotEquals: output.notEquals !== undefined && output.notEquals !== null @@ -6439,7 +6440,7 @@ const deserializeAws_restJson1CountBySeverity = (output: any, context: __SerdeCo } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -6601,7 +6602,7 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): return { AccountId: __expectString(output.accountId), Arn: __expectString(output.arn), - Confidence: __limitedParseFloat(output.confidence), + Confidence: __limitedParseDouble(output.confidence), CreatedAt: __expectString(output.createdAt), Description: __expectString(output.description), Id: __expectString(output.id), @@ -6616,7 +6617,7 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): output.service !== undefined && output.service !== null ? deserializeAws_restJson1Service(output.service, context) : undefined, - Severity: __limitedParseFloat(output.severity), + Severity: __limitedParseDouble(output.severity), Title: __expectString(output.title), Type: __expectString(output.type), UpdatedAt: __expectString(output.updatedAt), @@ -6674,8 +6675,8 @@ const deserializeAws_restJson1FlowLogsConfigurationResult = ( const deserializeAws_restJson1GeoLocation = (output: any, context: __SerdeContext): GeoLocation => { return { - Lat: __limitedParseFloat(output.lat), - Lon: __limitedParseFloat(output.lon), + Lat: __limitedParseDouble(output.lat), + Lon: __limitedParseDouble(output.lon), } as any; }; @@ -6766,7 +6767,7 @@ const deserializeAws_restJson1LocalIpDetails = (output: any, context: __SerdeCon const deserializeAws_restJson1LocalPortDetails = (output: any, context: __SerdeContext): LocalPortDetails => { return { - Port: __expectInt(output.port), + Port: __expectInt32(output.port), PortName: __expectString(output.portName), } as any; }; @@ -7080,7 +7081,7 @@ const deserializeAws_restJson1RemoteIpDetails = (output: any, context: __SerdeCo const deserializeAws_restJson1RemotePortDetails = (output: any, context: __SerdeContext): RemotePortDetails => { return { - Port: __expectInt(output.port), + Port: __expectInt32(output.port), PortName: __expectString(output.portName), } as any; }; @@ -7176,7 +7177,7 @@ const deserializeAws_restJson1Service = (output: any, context: __SerdeContext): ? deserializeAws_restJson1Action(output.action, context) : undefined, Archived: __expectBoolean(output.archived), - Count: __expectInt(output.count), + Count: __expectInt32(output.count), DetectorId: __expectString(output.detectorId), EventFirstSeen: __expectString(output.eventFirstSeen), EventLastSeen: __expectString(output.eventLastSeen), diff --git a/clients/client-health/protocols/Aws_json1_1.ts b/clients/client-health/protocols/Aws_json1_1.ts index 61c892b7884d1..32c43622505a7 100644 --- a/clients/client-health/protocols/Aws_json1_1.ts +++ b/clients/client-health/protocols/Aws_json1_1.ts @@ -92,7 +92,7 @@ import { UnsupportedLocale, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -1778,7 +1778,7 @@ const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationResponse = const deserializeAws_json1_1EntityAggregate = (output: any, context: __SerdeContext): EntityAggregate => { return { - count: __expectInt(output.count), + count: __expectInt32(output.count), eventArn: __expectString(output.eventArn), } as any; }; @@ -1831,7 +1831,7 @@ const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Even const deserializeAws_json1_1EventAggregate = (output: any, context: __SerdeContext): EventAggregate => { return { aggregateValue: __expectString(output.aggregateValue), - count: __expectInt(output.count), + count: __expectInt32(output.count), } as any; }; diff --git a/clients/client-honeycode/protocols/Aws_restJson1.ts b/clients/client-honeycode/protocols/Aws_restJson1.ts index 907f68614fed1..e682fb26de363 100644 --- a/clients/client-honeycode/protocols/Aws_restJson1.ts +++ b/clients/client-honeycode/protocols/Aws_restJson1.ts @@ -70,7 +70,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -664,7 +665,7 @@ export const deserializeAws_restJson1BatchCreateTableRowsCommand = async ( contents.failedBatchItems = deserializeAws_restJson1FailedBatchItems(data.failedBatchItems, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -779,7 +780,7 @@ export const deserializeAws_restJson1BatchDeleteTableRowsCommand = async ( contents.failedBatchItems = deserializeAws_restJson1FailedBatchItems(data.failedBatchItems, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -886,7 +887,7 @@ export const deserializeAws_restJson1BatchUpdateTableRowsCommand = async ( contents.failedBatchItems = deserializeAws_restJson1FailedBatchItems(data.failedBatchItems, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -997,7 +998,7 @@ export const deserializeAws_restJson1BatchUpsertTableRowsCommand = async ( contents.rows = deserializeAws_restJson1UpsertRowsResultMap(data.rows, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -1219,7 +1220,7 @@ export const deserializeAws_restJson1GetScreenDataCommand = async ( contents.results = deserializeAws_restJson1ResultSetMap(data.results, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -1322,7 +1323,7 @@ export const deserializeAws_restJson1InvokeScreenAutomationCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -1449,7 +1450,7 @@ export const deserializeAws_restJson1ListTableColumnsCommand = async ( contents.tableColumns = deserializeAws_restJson1TableColumns(data.tableColumns, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -1568,7 +1569,7 @@ export const deserializeAws_restJson1ListTableRowsCommand = async ( contents.rows = deserializeAws_restJson1TableRows(data.rows, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -1679,7 +1680,7 @@ export const deserializeAws_restJson1ListTablesCommand = async ( contents.tables = deserializeAws_restJson1Tables(data.tables, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -1794,7 +1795,7 @@ export const deserializeAws_restJson1QueryTableRowsCommand = async ( contents.rows = deserializeAws_restJson1TableRows(data.rows, context); } if (data.workbookCursor !== undefined && data.workbookCursor !== null) { - contents.workbookCursor = __expectInt(data.workbookCursor); + contents.workbookCursor = __expectLong(data.workbookCursor); } return Promise.resolve(contents); }; @@ -2585,7 +2586,7 @@ const deserializeAws_restJson1SourceDataColumnProperties = ( context: __SerdeContext ): SourceDataColumnProperties => { return { - columnIndex: __expectInt(output.columnIndex), + columnIndex: __expectInt32(output.columnIndex), } as any; }; diff --git a/clients/client-iam/protocols/Aws_query.ts b/clients/client-iam/protocols/Aws_query.ts index d197e9a576812..5c2bdb169ec63 100644 --- a/clients/client-iam/protocols/Aws_query.ts +++ b/clients/client-iam/protocols/Aws_query.ts @@ -708,7 +708,7 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -17343,7 +17343,7 @@ const deserializeAws_queryAccessDetail = (output: any, context: __SerdeContext): contents.LastAuthenticatedTime = new Date(output["LastAuthenticatedTime"]); } if (output["TotalAuthenticatedEntities"] !== undefined) { - contents.TotalAuthenticatedEntities = __strictParseInt(output["TotalAuthenticatedEntities"]) as number; + contents.TotalAuthenticatedEntities = __strictParseInt32(output["TotalAuthenticatedEntities"]) as number; } return contents; }; @@ -18341,10 +18341,10 @@ const deserializeAws_queryGetOrganizationsAccessReportResponse = ( contents.JobCompletionDate = new Date(output["JobCompletionDate"]); } if (output["NumberOfServicesAccessible"] !== undefined) { - contents.NumberOfServicesAccessible = __strictParseInt(output["NumberOfServicesAccessible"]) as number; + contents.NumberOfServicesAccessible = __strictParseInt32(output["NumberOfServicesAccessible"]) as number; } if (output["NumberOfServicesNotAccessed"] !== undefined) { - contents.NumberOfServicesNotAccessed = __strictParseInt(output["NumberOfServicesNotAccessed"]) as number; + contents.NumberOfServicesNotAccessed = __strictParseInt32(output["NumberOfServicesNotAccessed"]) as number; } if (output.AccessDetails === "") { contents.AccessDetails = []; @@ -19817,10 +19817,10 @@ const deserializeAws_queryManagedPolicyDetail = (output: any, context: __SerdeCo contents.DefaultVersionId = __expectString(output["DefaultVersionId"]); } if (output["AttachmentCount"] !== undefined) { - contents.AttachmentCount = __strictParseInt(output["AttachmentCount"]) as number; + contents.AttachmentCount = __strictParseInt32(output["AttachmentCount"]) as number; } if (output["PermissionsBoundaryUsageCount"] !== undefined) { - contents.PermissionsBoundaryUsageCount = __strictParseInt(output["PermissionsBoundaryUsageCount"]) as number; + contents.PermissionsBoundaryUsageCount = __strictParseInt32(output["PermissionsBoundaryUsageCount"]) as number; } if (output["IsAttachable"] !== undefined) { contents.IsAttachable = __parseBoolean(output["IsAttachable"]); @@ -19953,7 +19953,7 @@ const deserializeAws_queryPasswordPolicy = (output: any, context: __SerdeContext HardExpiry: undefined, }; if (output["MinimumPasswordLength"] !== undefined) { - contents.MinimumPasswordLength = __strictParseInt(output["MinimumPasswordLength"]) as number; + contents.MinimumPasswordLength = __strictParseInt32(output["MinimumPasswordLength"]) as number; } if (output["RequireSymbols"] !== undefined) { contents.RequireSymbols = __parseBoolean(output["RequireSymbols"]); @@ -19974,10 +19974,10 @@ const deserializeAws_queryPasswordPolicy = (output: any, context: __SerdeContext contents.ExpirePasswords = __parseBoolean(output["ExpirePasswords"]); } if (output["MaxPasswordAge"] !== undefined) { - contents.MaxPasswordAge = __strictParseInt(output["MaxPasswordAge"]) as number; + contents.MaxPasswordAge = __strictParseInt32(output["MaxPasswordAge"]) as number; } if (output["PasswordReusePrevention"] !== undefined) { - contents.PasswordReusePrevention = __strictParseInt(output["PasswordReusePrevention"]) as number; + contents.PasswordReusePrevention = __strictParseInt32(output["PasswordReusePrevention"]) as number; } if (output["HardExpiry"] !== undefined) { contents.HardExpiry = __parseBoolean(output["HardExpiry"]); @@ -20042,10 +20042,10 @@ const deserializeAws_queryPolicy = (output: any, context: __SerdeContext): Polic contents.DefaultVersionId = __expectString(output["DefaultVersionId"]); } if (output["AttachmentCount"] !== undefined) { - contents.AttachmentCount = __strictParseInt(output["AttachmentCount"]) as number; + contents.AttachmentCount = __strictParseInt32(output["AttachmentCount"]) as number; } if (output["PermissionsBoundaryUsageCount"] !== undefined) { - contents.PermissionsBoundaryUsageCount = __strictParseInt(output["PermissionsBoundaryUsageCount"]) as number; + contents.PermissionsBoundaryUsageCount = __strictParseInt32(output["PermissionsBoundaryUsageCount"]) as number; } if (output["IsAttachable"] !== undefined) { contents.IsAttachable = __parseBoolean(output["IsAttachable"]); @@ -20298,10 +20298,10 @@ const deserializeAws_queryPosition = (output: any, context: __SerdeContext): Pos Column: undefined, }; if (output["Line"] !== undefined) { - contents.Line = __strictParseInt(output["Line"]) as number; + contents.Line = __strictParseInt32(output["Line"]) as number; } if (output["Column"] !== undefined) { - contents.Column = __strictParseInt(output["Column"]) as number; + contents.Column = __strictParseInt32(output["Column"]) as number; } return contents; }; @@ -20436,7 +20436,7 @@ const deserializeAws_queryRole = (output: any, context: __SerdeContext): Role => contents.Description = __expectString(output["Description"]); } if (output["MaxSessionDuration"] !== undefined) { - contents.MaxSessionDuration = __strictParseInt(output["MaxSessionDuration"]) as number; + contents.MaxSessionDuration = __strictParseInt32(output["MaxSessionDuration"]) as number; } if (output["PermissionsBoundary"] !== undefined) { contents.PermissionsBoundary = deserializeAws_queryAttachedPermissionsBoundary( @@ -20741,7 +20741,7 @@ const deserializeAws_queryServiceLastAccessed = (output: any, context: __SerdeCo contents.LastAuthenticatedRegion = __expectString(output["LastAuthenticatedRegion"]); } if (output["TotalAuthenticatedEntities"] !== undefined) { - contents.TotalAuthenticatedEntities = __strictParseInt(output["TotalAuthenticatedEntities"]) as number; + contents.TotalAuthenticatedEntities = __strictParseInt32(output["TotalAuthenticatedEntities"]) as number; } if (output.TrackedActionsLastAccessed === "") { contents.TrackedActionsLastAccessed = []; @@ -21019,7 +21019,7 @@ const deserializeAws_querysummaryMapType = (output: any, context: __SerdeContext } return { ...acc, - [pair["key"]]: __strictParseInt(pair["value"]) as number, + [pair["key"]]: __strictParseInt32(pair["value"]) as number, }; }, {}); }; diff --git a/clients/client-imagebuilder/protocols/Aws_restJson1.ts b/clients/client-imagebuilder/protocols/Aws_restJson1.ts index 9f68b6f20f738..f79b399b247ce 100644 --- a/clients/client-imagebuilder/protocols/Aws_restJson1.ts +++ b/clients/client-imagebuilder/protocols/Aws_restJson1.ts @@ -186,7 +186,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -8254,7 +8254,7 @@ const deserializeAws_restJson1DistributionConfiguration = ( output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined, - timeoutMinutes: __expectInt(output.timeoutMinutes), + timeoutMinutes: __expectInt32(output.timeoutMinutes), } as any; }; @@ -8311,10 +8311,10 @@ const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = ( return { deleteOnTermination: __expectBoolean(output.deleteOnTermination), encrypted: __expectBoolean(output.encrypted), - iops: __expectInt(output.iops), + iops: __expectInt32(output.iops), kmsKeyId: __expectString(output.kmsKeyId), snapshotId: __expectString(output.snapshotId), - volumeSize: __expectInt(output.volumeSize), + volumeSize: __expectInt32(output.volumeSize), volumeType: __expectString(output.volumeType), } as any; }; @@ -8532,7 +8532,7 @@ const deserializeAws_restJson1ImageTestsConfiguration = ( ): ImageTestsConfiguration => { return { imageTestsEnabled: __expectBoolean(output.imageTestsEnabled), - timeoutMinutes: __expectInt(output.timeoutMinutes), + timeoutMinutes: __expectInt32(output.timeoutMinutes), } as any; }; diff --git a/clients/client-inspector/protocols/Aws_json1_1.ts b/clients/client-inspector/protocols/Aws_json1_1.ts index 3374bc7cc464e..08c794edf4a54 100644 --- a/clients/client-inspector/protocols/Aws_json1_1.ts +++ b/clients/client-inspector/protocols/Aws_json1_1.ts @@ -230,9 +230,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4713,7 +4714,7 @@ const deserializeAws_json1_1AssessmentRun = (output: any, context: __SerdeContex ? new Date(Math.round(output.createdAt * 1000)) : undefined, dataCollected: __expectBoolean(output.dataCollected), - durationInSeconds: __expectInt(output.durationInSeconds), + durationInSeconds: __expectInt32(output.durationInSeconds), findingCounts: output.findingCounts !== undefined && output.findingCounts !== null ? deserializeAws_json1_1AssessmentRunFindingCounts(output.findingCounts, context) @@ -4783,7 +4784,7 @@ const deserializeAws_json1_1AssessmentRunFindingCounts = ( } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -4910,13 +4911,13 @@ const deserializeAws_json1_1AssessmentTargetList = (output: any, context: __Serd const deserializeAws_json1_1AssessmentTemplate = (output: any, context: __SerdeContext): AssessmentTemplate => { return { arn: __expectString(output.arn), - assessmentRunCount: __expectInt(output.assessmentRunCount), + assessmentRunCount: __expectInt32(output.assessmentRunCount), assessmentTargetArn: __expectString(output.assessmentTargetArn), createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - durationInSeconds: __expectInt(output.durationInSeconds), + durationInSeconds: __expectInt32(output.durationInSeconds), lastAssessmentRunArn: __expectString(output.lastAssessmentRunArn), name: __expectString(output.name), rulesPackageArns: @@ -4969,7 +4970,7 @@ const deserializeAws_json1_1AssetAttributes = (output: any, context: __SerdeCont output.networkInterfaces !== undefined && output.networkInterfaces !== null ? deserializeAws_json1_1NetworkInterfaces(output.networkInterfaces, context) : undefined, - schemaVersion: __expectInt(output.schemaVersion), + schemaVersion: __expectInt32(output.schemaVersion), tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined, } as any; @@ -5266,7 +5267,7 @@ const deserializeAws_json1_1Finding = (output: any, context: __SerdeContext): Fi output.attributes !== undefined && output.attributes !== null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined, - confidence: __expectInt(output.confidence), + confidence: __expectInt32(output.confidence), createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) @@ -5274,9 +5275,9 @@ const deserializeAws_json1_1Finding = (output: any, context: __SerdeContext): Fi description: __expectString(output.description), id: __expectString(output.id), indicatorOfCompromise: __expectBoolean(output.indicatorOfCompromise), - numericSeverity: __limitedParseFloat(output.numericSeverity), + numericSeverity: __limitedParseDouble(output.numericSeverity), recommendation: __expectString(output.recommendation), - schemaVersion: __expectInt(output.schemaVersion), + schemaVersion: __expectInt32(output.schemaVersion), service: __expectString(output.service), serviceAttributes: output.serviceAttributes !== undefined && output.serviceAttributes !== null @@ -5349,7 +5350,7 @@ const deserializeAws_json1_1InspectorServiceAttributes = ( return { assessmentRunArn: __expectString(output.assessmentRunArn), rulesPackageArn: __expectString(output.rulesPackageArn), - schemaVersion: __expectInt(output.schemaVersion), + schemaVersion: __expectInt32(output.schemaVersion), } as any; }; @@ -5794,8 +5795,8 @@ const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] const deserializeAws_json1_1TelemetryMetadata = (output: any, context: __SerdeContext): TelemetryMetadata => { return { - count: __expectInt(output.count), - dataSize: __expectInt(output.dataSize), + count: __expectLong(output.count), + dataSize: __expectLong(output.dataSize), messageType: __expectString(output.messageType), } as any; }; diff --git a/clients/client-iot-1click-devices-service/protocols/Aws_restJson1.ts b/clients/client-iot-1click-devices-service/protocols/Aws_restJson1.ts index 3beb428fbec09..a2136ebf0da3f 100644 --- a/clients/client-iot-1click-devices-service/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-devices-service/protocols/Aws_restJson1.ts @@ -40,10 +40,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -478,7 +478,7 @@ export const deserializeAws_restJson1ClaimDevicesByClaimCodeCommand = async ( contents.ClaimCode = __expectString(data.claimCode); } if (data.total !== undefined && data.total !== null) { - contents.Total = __expectInt(data.total); + contents.Total = __expectInt32(data.total); } return Promise.resolve(contents); }; @@ -1682,7 +1682,7 @@ const deserializeAws_restJson1DeviceDescription = (output: any, context: __Serde : undefined, DeviceId: __expectString(output.deviceId), Enabled: __expectBoolean(output.enabled), - RemainingLife: __limitedParseFloat(output.remainingLife), + RemainingLife: __limitedParseDouble(output.remainingLife), Tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1__mapOf__string(output.tags, context) diff --git a/clients/client-iot-data-plane/protocols/Aws_restJson1.ts b/clients/client-iot-data-plane/protocols/Aws_restJson1.ts index a166de57345ef..34f45b3fda8bc 100644 --- a/clients/client-iot-data-plane/protocols/Aws_restJson1.ts +++ b/clients/client-iot-data-plane/protocols/Aws_restJson1.ts @@ -20,7 +20,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -447,7 +447,7 @@ export const deserializeAws_restJson1ListNamedShadowsForThingCommand = async ( contents.results = deserializeAws_restJson1NamedShadowList(data.results, context); } if (data.timestamp !== undefined && data.timestamp !== null) { - contents.timestamp = __expectInt(data.timestamp); + contents.timestamp = __expectLong(data.timestamp); } return Promise.resolve(contents); }; diff --git a/clients/client-iot-events-data/protocols/Aws_restJson1.ts b/clients/client-iot-events-data/protocols/Aws_restJson1.ts index 2129bb1fb06e4..0b0fa8b440d54 100644 --- a/clients/client-iot-events-data/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events-data/protocols/Aws_restJson1.ts @@ -57,7 +57,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1654,7 +1654,7 @@ const deserializeAws_restJson1Alarm = (output: any, context: __SerdeContext): Al output.lastUpdateTime !== undefined && output.lastUpdateTime !== null ? new Date(Math.round(output.lastUpdateTime * 1000)) : undefined, - severity: __expectInt(output.severity), + severity: __expectInt32(output.severity), } as any; }; @@ -1926,7 +1926,7 @@ const deserializeAws_restJson1SnoozeActionConfiguration = ( ): SnoozeActionConfiguration => { return { note: __expectString(output.note), - snoozeDuration: __expectInt(output.snoozeDuration), + snoozeDuration: __expectInt32(output.snoozeDuration), } as any; }; diff --git a/clients/client-iot-events/protocols/Aws_restJson1.ts b/clients/client-iot-events/protocols/Aws_restJson1.ts index bd5a80cc5b5c7..3cb906be51662 100644 --- a/clients/client-iot-events/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events/protocols/Aws_restJson1.ts @@ -133,7 +133,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1602,7 +1602,7 @@ export const deserializeAws_restJson1DescribeAlarmModelCommand = async ( contents.roleArn = __expectString(data.roleArn); } if (data.severity !== undefined && data.severity !== null) { - contents.severity = __expectInt(data.severity); + contents.severity = __expectInt32(data.severity); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -5023,7 +5023,7 @@ const deserializeAws_restJson1RoutedResources = (output: any, context: __SerdeCo const deserializeAws_restJson1SetTimerAction = (output: any, context: __SerdeContext): SetTimerAction => { return { durationExpression: __expectString(output.durationExpression), - seconds: __expectInt(output.seconds), + seconds: __expectInt32(output.seconds), timerName: __expectString(output.timerName), } as any; }; diff --git a/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1.ts b/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1.ts index a0017b7e641a7..d868aaad11680 100644 --- a/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1.ts +++ b/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1.ts @@ -25,7 +25,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -725,20 +725,20 @@ const deserializeAws_restJson1DetailsMap = (output: any, context: __SerdeContext const deserializeAws_restJson1JobExecution = (output: any, context: __SerdeContext): JobExecution => { return { - approximateSecondsBeforeTimedOut: __expectInt(output.approximateSecondsBeforeTimedOut), - executionNumber: __expectInt(output.executionNumber), + approximateSecondsBeforeTimedOut: __expectLong(output.approximateSecondsBeforeTimedOut), + executionNumber: __expectLong(output.executionNumber), jobDocument: __expectString(output.jobDocument), jobId: __expectString(output.jobId), - lastUpdatedAt: __expectInt(output.lastUpdatedAt), - queuedAt: __expectInt(output.queuedAt), - startedAt: __expectInt(output.startedAt), + lastUpdatedAt: __expectLong(output.lastUpdatedAt), + queuedAt: __expectLong(output.queuedAt), + startedAt: __expectLong(output.startedAt), status: __expectString(output.status), statusDetails: output.statusDetails !== undefined && output.statusDetails !== null ? deserializeAws_restJson1DetailsMap(output.statusDetails, context) : undefined, thingName: __expectString(output.thingName), - versionNumber: __expectInt(output.versionNumber), + versionNumber: __expectLong(output.versionNumber), } as any; }; @@ -749,18 +749,18 @@ const deserializeAws_restJson1JobExecutionState = (output: any, context: __Serde output.statusDetails !== undefined && output.statusDetails !== null ? deserializeAws_restJson1DetailsMap(output.statusDetails, context) : undefined, - versionNumber: __expectInt(output.versionNumber), + versionNumber: __expectLong(output.versionNumber), } as any; }; const deserializeAws_restJson1JobExecutionSummary = (output: any, context: __SerdeContext): JobExecutionSummary => { return { - executionNumber: __expectInt(output.executionNumber), + executionNumber: __expectLong(output.executionNumber), jobId: __expectString(output.jobId), - lastUpdatedAt: __expectInt(output.lastUpdatedAt), - queuedAt: __expectInt(output.queuedAt), - startedAt: __expectInt(output.startedAt), - versionNumber: __expectInt(output.versionNumber), + lastUpdatedAt: __expectLong(output.lastUpdatedAt), + queuedAt: __expectLong(output.queuedAt), + startedAt: __expectLong(output.startedAt), + versionNumber: __expectLong(output.versionNumber), } as any; }; diff --git a/clients/client-iot-wireless/protocols/Aws_restJson1.ts b/clients/client-iot-wireless/protocols/Aws_restJson1.ts index 3ff9ae96faf0e..d3d3a3dc23e4d 100644 --- a/clients/client-iot-wireless/protocols/Aws_restJson1.ts +++ b/clients/client-iot-wireless/protocols/Aws_restJson1.ts @@ -234,10 +234,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -7714,7 +7715,7 @@ const deserializeAws_restJson1FactoryPresetFreqsList = (output: any, context: __ if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -7766,10 +7767,10 @@ const deserializeAws_restJson1LoRaWANDevice = (output: any, context: __SerdeCont const deserializeAws_restJson1LoRaWANDeviceMetadata = (output: any, context: __SerdeContext): LoRaWANDeviceMetadata => { return { - DataRate: __expectInt(output.DataRate), + DataRate: __expectInt32(output.DataRate), DevEui: __expectString(output.DevEui), - FPort: __expectInt(output.FPort), - Frequency: __expectInt(output.Frequency), + FPort: __expectInt32(output.FPort), + Frequency: __expectInt32(output.Frequency), Gateways: output.Gateways !== undefined && output.Gateways !== null ? deserializeAws_restJson1LoRaWANGatewayMetadataList(output.Gateways, context) @@ -7780,24 +7781,24 @@ const deserializeAws_restJson1LoRaWANDeviceMetadata = (output: any, context: __S const deserializeAws_restJson1LoRaWANDeviceProfile = (output: any, context: __SerdeContext): LoRaWANDeviceProfile => { return { - ClassBTimeout: __expectInt(output.ClassBTimeout), - ClassCTimeout: __expectInt(output.ClassCTimeout), + ClassBTimeout: __expectInt32(output.ClassBTimeout), + ClassCTimeout: __expectInt32(output.ClassCTimeout), FactoryPresetFreqsList: output.FactoryPresetFreqsList !== undefined && output.FactoryPresetFreqsList !== null ? deserializeAws_restJson1FactoryPresetFreqsList(output.FactoryPresetFreqsList, context) : undefined, MacVersion: __expectString(output.MacVersion), - MaxDutyCycle: __expectInt(output.MaxDutyCycle), - MaxEirp: __expectInt(output.MaxEirp), - PingSlotDr: __expectInt(output.PingSlotDr), - PingSlotFreq: __expectInt(output.PingSlotFreq), - PingSlotPeriod: __expectInt(output.PingSlotPeriod), + MaxDutyCycle: __expectInt32(output.MaxDutyCycle), + MaxEirp: __expectInt32(output.MaxEirp), + PingSlotDr: __expectInt32(output.PingSlotDr), + PingSlotFreq: __expectInt32(output.PingSlotFreq), + PingSlotPeriod: __expectInt32(output.PingSlotPeriod), RegParamsRevision: __expectString(output.RegParamsRevision), RfRegion: __expectString(output.RfRegion), - RxDataRate2: __expectInt(output.RxDataRate2), - RxDelay1: __expectInt(output.RxDelay1), - RxDrOffset1: __expectInt(output.RxDrOffset1), - RxFreq2: __expectInt(output.RxFreq2), + RxDataRate2: __expectInt32(output.RxDataRate2), + RxDelay1: __expectInt32(output.RxDelay1), + RxDrOffset1: __expectInt32(output.RxDrOffset1), + RxFreq2: __expectInt32(output.RxFreq2), Supports32BitFCnt: __expectBoolean(output.Supports32BitFCnt), SupportsClassB: __expectBoolean(output.SupportsClassB), SupportsClassC: __expectBoolean(output.SupportsClassC), @@ -7842,8 +7843,8 @@ const deserializeAws_restJson1LoRaWANGatewayMetadata = ( ): LoRaWANGatewayMetadata => { return { GatewayEui: __expectString(output.GatewayEui), - Rssi: __limitedParseFloat(output.Rssi), - Snr: __limitedParseFloat(output.Snr), + Rssi: __limitedParseDouble(output.Rssi), + Snr: __limitedParseDouble(output.Snr), } as any; }; @@ -7876,22 +7877,22 @@ const deserializeAws_restJson1LoRaWANGetServiceProfileInfo = ( return { AddGwMetadata: __expectBoolean(output.AddGwMetadata), ChannelMask: __expectString(output.ChannelMask), - DevStatusReqFreq: __expectInt(output.DevStatusReqFreq), - DlBucketSize: __expectInt(output.DlBucketSize), - DlRate: __expectInt(output.DlRate), + DevStatusReqFreq: __expectInt32(output.DevStatusReqFreq), + DlBucketSize: __expectInt32(output.DlBucketSize), + DlRate: __expectInt32(output.DlRate), DlRatePolicy: __expectString(output.DlRatePolicy), - DrMax: __expectInt(output.DrMax), - DrMin: __expectInt(output.DrMin), + DrMax: __expectInt32(output.DrMax), + DrMin: __expectInt32(output.DrMin), HrAllowed: __expectBoolean(output.HrAllowed), - MinGwDiversity: __expectInt(output.MinGwDiversity), + MinGwDiversity: __expectInt32(output.MinGwDiversity), NwkGeoLoc: __expectBoolean(output.NwkGeoLoc), PrAllowed: __expectBoolean(output.PrAllowed), RaAllowed: __expectBoolean(output.RaAllowed), ReportDevStatusBattery: __expectBoolean(output.ReportDevStatusBattery), ReportDevStatusMargin: __expectBoolean(output.ReportDevStatusMargin), - TargetPer: __expectInt(output.TargetPer), - UlBucketSize: __expectInt(output.UlBucketSize), - UlRate: __expectInt(output.UlRate), + TargetPer: __expectInt32(output.TargetPer), + UlBucketSize: __expectInt32(output.UlBucketSize), + UlRate: __expectInt32(output.UlRate), UlRatePolicy: __expectString(output.UlRatePolicy), } as any; }; @@ -7911,7 +7912,7 @@ const deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = ( output.CurrentVersion !== undefined && output.CurrentVersion !== null ? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context) : undefined, - SigKeyCrc: __expectInt(output.SigKeyCrc), + SigKeyCrc: __expectLong(output.SigKeyCrc), UpdateSignature: __expectString(output.UpdateSignature), UpdateVersion: output.UpdateVersion !== undefined && output.UpdateVersion !== null @@ -8049,7 +8050,7 @@ const deserializeAws_restJson1SidewalkDeviceMetadata = ( BatteryLevel: __expectString(output.BatteryLevel), DeviceState: __expectString(output.DeviceState), Event: __expectString(output.Event), - Rssi: __expectInt(output.Rssi), + Rssi: __expectInt32(output.Rssi), } as any; }; @@ -8072,7 +8073,7 @@ const deserializeAws_restJson1SubBands = (output: any, context: __SerdeContext): if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; diff --git a/clients/client-iot/protocols/Aws_restJson1.ts b/clients/client-iot/protocols/Aws_restJson1.ts index 5077781438327..c499c700d30c9 100644 --- a/clients/client-iot/protocols/Aws_restJson1.ts +++ b/clients/client-iot/protocols/Aws_restJson1.ts @@ -845,10 +845,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -11249,7 +11250,7 @@ export const deserializeAws_restJson1CreateProvisioningTemplateCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.defaultVersionId !== undefined && data.defaultVersionId !== null) { - contents.defaultVersionId = __expectInt(data.defaultVersionId); + contents.defaultVersionId = __expectInt32(data.defaultVersionId); } if (data.templateArn !== undefined && data.templateArn !== null) { contents.templateArn = __expectString(data.templateArn); @@ -11362,7 +11363,7 @@ export const deserializeAws_restJson1CreateProvisioningTemplateVersionCommand = contents.templateName = __expectString(data.templateName); } if (data.versionId !== undefined && data.versionId !== null) { - contents.versionId = __expectInt(data.versionId); + contents.versionId = __expectInt32(data.versionId); } return Promise.resolve(contents); }; @@ -11754,7 +11755,7 @@ export const deserializeAws_restJson1CreateStreamCommand = async ( contents.streamId = __expectString(data.streamId); } if (data.streamVersion !== undefined && data.streamVersion !== null) { - contents.streamVersion = __expectInt(data.streamVersion); + contents.streamVersion = __expectInt32(data.streamVersion); } return Promise.resolve(contents); }; @@ -15574,7 +15575,7 @@ export const deserializeAws_restJson1DescribeBillingGroupCommand = async ( ); } if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -17004,7 +17005,7 @@ export const deserializeAws_restJson1DescribeProvisioningTemplateCommand = async contents.creationDate = new Date(Math.round(data.creationDate * 1000)); } if (data.defaultVersionId !== undefined && data.defaultVersionId !== null) { - contents.defaultVersionId = __expectInt(data.defaultVersionId); + contents.defaultVersionId = __expectInt32(data.defaultVersionId); } if (data.description !== undefined && data.description !== null) { contents.description = __expectString(data.description); @@ -17127,7 +17128,7 @@ export const deserializeAws_restJson1DescribeProvisioningTemplateVersionCommand contents.templateBody = __expectString(data.templateBody); } if (data.versionId !== undefined && data.versionId !== null) { - contents.versionId = __expectInt(data.versionId); + contents.versionId = __expectInt32(data.versionId); } return Promise.resolve(contents); }; @@ -17450,7 +17451,7 @@ export const deserializeAws_restJson1DescribeSecurityProfileCommand = async ( contents.securityProfileName = __expectString(data.securityProfileName); } if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -17652,7 +17653,7 @@ export const deserializeAws_restJson1DescribeThingCommand = async ( contents.thingTypeName = __expectString(data.thingTypeName); } if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -17783,7 +17784,7 @@ export const deserializeAws_restJson1DescribeThingGroupCommand = async ( contents.thingGroupProperties = deserializeAws_restJson1ThingGroupProperties(data.thingGroupProperties, context); } if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -17876,7 +17877,7 @@ export const deserializeAws_restJson1DescribeThingRegistrationTaskCommand = asyn contents.creationDate = new Date(Math.round(data.creationDate * 1000)); } if (data.failureCount !== undefined && data.failureCount !== null) { - contents.failureCount = __expectInt(data.failureCount); + contents.failureCount = __expectInt32(data.failureCount); } if (data.inputFileBucket !== undefined && data.inputFileBucket !== null) { contents.inputFileBucket = __expectString(data.inputFileBucket); @@ -17891,7 +17892,7 @@ export const deserializeAws_restJson1DescribeThingRegistrationTaskCommand = asyn contents.message = __expectString(data.message); } if (data.percentageProgress !== undefined && data.percentageProgress !== null) { - contents.percentageProgress = __expectInt(data.percentageProgress); + contents.percentageProgress = __expectInt32(data.percentageProgress); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.roleArn = __expectString(data.roleArn); @@ -17900,7 +17901,7 @@ export const deserializeAws_restJson1DescribeThingRegistrationTaskCommand = asyn contents.status = __expectString(data.status); } if (data.successCount !== undefined && data.successCount !== null) { - contents.successCount = __expectInt(data.successCount); + contents.successCount = __expectInt32(data.successCount); } if (data.taskId !== undefined && data.taskId !== null) { contents.taskId = __expectString(data.taskId); @@ -18701,7 +18702,7 @@ export const deserializeAws_restJson1GetCardinalityCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.cardinality !== undefined && data.cardinality !== null) { - contents.cardinality = __expectInt(data.cardinality); + contents.cardinality = __expectInt32(data.cardinality); } return Promise.resolve(contents); }; @@ -26581,7 +26582,7 @@ export const deserializeAws_restJson1TestInvokeAuthorizerCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.disconnectAfterInSeconds !== undefined && data.disconnectAfterInSeconds !== null) { - contents.disconnectAfterInSeconds = __expectInt(data.disconnectAfterInSeconds); + contents.disconnectAfterInSeconds = __expectInt32(data.disconnectAfterInSeconds); } if (data.isAuthenticated !== undefined && data.isAuthenticated !== null) { contents.isAuthenticated = __expectBoolean(data.isAuthenticated); @@ -26593,7 +26594,7 @@ export const deserializeAws_restJson1TestInvokeAuthorizerCommand = async ( contents.principalId = __expectString(data.principalId); } if (data.refreshAfterInSeconds !== undefined && data.refreshAfterInSeconds !== null) { - contents.refreshAfterInSeconds = __expectInt(data.refreshAfterInSeconds); + contents.refreshAfterInSeconds = __expectInt32(data.refreshAfterInSeconds); } return Promise.resolve(contents); }; @@ -27131,7 +27132,7 @@ export const deserializeAws_restJson1UpdateBillingGroupCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -27713,7 +27714,7 @@ export const deserializeAws_restJson1UpdateDynamicThingGroupCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -28419,7 +28420,7 @@ export const deserializeAws_restJson1UpdateSecurityProfileCommand = async ( contents.securityProfileName = __expectString(data.securityProfileName); } if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -28518,7 +28519,7 @@ export const deserializeAws_restJson1UpdateStreamCommand = async ( contents.streamId = __expectString(data.streamId); } if (data.streamVersion !== undefined && data.streamVersion !== null) { - contents.streamVersion = __expectInt(data.streamVersion); + contents.streamVersion = __expectInt32(data.streamVersion); } return Promise.resolve(contents); }; @@ -28712,7 +28713,7 @@ export const deserializeAws_restJson1UpdateThingGroupCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.version !== undefined && data.version !== null) { - contents.version = __expectInt(data.version); + contents.version = __expectLong(data.version); } return Promise.resolve(contents); }; @@ -31330,8 +31331,8 @@ const deserializeAws_restJson1AbortCriteria = (output: any, context: __SerdeCont return { action: __expectString(output.action), failureType: __expectString(output.failureType), - minNumberOfExecutedThings: __expectInt(output.minNumberOfExecutedThings), - thresholdPercentage: __limitedParseFloat(output.thresholdPercentage), + minNumberOfExecutedThings: __expectInt32(output.minNumberOfExecutedThings), + thresholdPercentage: __limitedParseDouble(output.thresholdPercentage), } as any; }; @@ -31685,9 +31686,9 @@ const deserializeAws_restJson1AuditCheckDetails = (output: any, context: __Serde checkRunStatus: __expectString(output.checkRunStatus), errorCode: __expectString(output.errorCode), message: __expectString(output.message), - nonCompliantResourcesCount: __expectInt(output.nonCompliantResourcesCount), - suppressedNonCompliantResourcesCount: __expectInt(output.suppressedNonCompliantResourcesCount), - totalResourcesCount: __expectInt(output.totalResourcesCount), + nonCompliantResourcesCount: __expectLong(output.nonCompliantResourcesCount), + suppressedNonCompliantResourcesCount: __expectLong(output.suppressedNonCompliantResourcesCount), + totalResourcesCount: __expectLong(output.totalResourcesCount), } as any; }; @@ -32048,7 +32049,7 @@ const deserializeAws_restJson1AwsJobExecutionsRolloutConfig = ( output.exponentialRate !== undefined && output.exponentialRate !== null ? deserializeAws_restJson1AwsJobExponentialRolloutRate(output.exponentialRate, context) : undefined, - maximumPerMinute: __expectInt(output.maximumPerMinute), + maximumPerMinute: __expectInt32(output.maximumPerMinute), } as any; }; @@ -32057,8 +32058,8 @@ const deserializeAws_restJson1AwsJobExponentialRolloutRate = ( context: __SerdeContext ): AwsJobExponentialRolloutRate => { return { - baseRatePerMinute: __expectInt(output.baseRatePerMinute), - incrementFactor: __limitedParseFloat(output.incrementFactor), + baseRatePerMinute: __expectInt32(output.baseRatePerMinute), + incrementFactor: __limitedParseDouble(output.incrementFactor), rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null ? deserializeAws_restJson1AwsJobRateIncreaseCriteria(output.rateIncreaseCriteria, context) @@ -32071,7 +32072,7 @@ const deserializeAws_restJson1AwsJobPresignedUrlConfig = ( context: __SerdeContext ): AwsJobPresignedUrlConfig => { return { - expiresInSec: __expectInt(output.expiresInSec), + expiresInSec: __expectLong(output.expiresInSec), } as any; }; @@ -32080,8 +32081,8 @@ const deserializeAws_restJson1AwsJobRateIncreaseCriteria = ( context: __SerdeContext ): AwsJobRateIncreaseCriteria => { return { - numberOfNotifiedThings: __expectInt(output.numberOfNotifiedThings), - numberOfSucceededThings: __expectInt(output.numberOfSucceededThings), + numberOfNotifiedThings: __expectInt32(output.numberOfNotifiedThings), + numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings), } as any; }; @@ -32104,9 +32105,9 @@ const deserializeAws_restJson1Behavior = (output: any, context: __SerdeContext): const deserializeAws_restJson1BehaviorCriteria = (output: any, context: __SerdeContext): BehaviorCriteria => { return { comparisonOperator: __expectString(output.comparisonOperator), - consecutiveDatapointsToAlarm: __expectInt(output.consecutiveDatapointsToAlarm), - consecutiveDatapointsToClear: __expectInt(output.consecutiveDatapointsToClear), - durationSeconds: __expectInt(output.durationSeconds), + consecutiveDatapointsToAlarm: __expectInt32(output.consecutiveDatapointsToAlarm), + consecutiveDatapointsToClear: __expectInt32(output.consecutiveDatapointsToClear), + durationSeconds: __expectInt32(output.durationSeconds), mlDetectionConfig: output.mlDetectionConfig !== undefined && output.mlDetectionConfig !== null ? deserializeAws_restJson1MachineLearningDetectionConfig(output.mlDetectionConfig, context) @@ -32142,7 +32143,7 @@ const deserializeAws_restJson1BehaviorModelTrainingSummary = ( ): BehaviorModelTrainingSummary => { return { behaviorName: __expectString(output.behaviorName), - datapointsCollectionPercentage: __limitedParseFloat(output.datapointsCollectionPercentage), + datapointsCollectionPercentage: __limitedParseDouble(output.datapointsCollectionPercentage), lastModelRefreshDate: output.lastModelRefreshDate !== undefined && output.lastModelRefreshDate !== null ? new Date(Math.round(output.lastModelRefreshDate * 1000)) @@ -32224,7 +32225,7 @@ const deserializeAws_restJson1CACertificateDescription = ( output.creationDate !== undefined && output.creationDate !== null ? new Date(Math.round(output.creationDate * 1000)) : undefined, - customerVersion: __expectInt(output.customerVersion), + customerVersion: __expectInt32(output.customerVersion), generationId: __expectString(output.generationId), lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null @@ -32277,7 +32278,7 @@ const deserializeAws_restJson1CertificateDescription = ( output.creationDate !== undefined && output.creationDate !== null ? new Date(Math.round(output.creationDate * 1000)) : undefined, - customerVersion: __expectInt(output.customerVersion), + customerVersion: __expectInt32(output.customerVersion), generationId: __expectString(output.generationId), lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null @@ -32504,9 +32505,9 @@ const deserializeAws_restJson1DetectMitigationActionsTaskStatistics = ( context: __SerdeContext ): DetectMitigationActionsTaskStatistics => { return { - actionsExecuted: __expectInt(output.actionsExecuted), - actionsFailed: __expectInt(output.actionsFailed), - actionsSkipped: __expectInt(output.actionsSkipped), + actionsExecuted: __expectLong(output.actionsExecuted), + actionsFailed: __expectLong(output.actionsFailed), + actionsSkipped: __expectLong(output.actionsSkipped), } as any; }; @@ -32724,8 +32725,8 @@ const deserializeAws_restJson1ExponentialRolloutRate = ( context: __SerdeContext ): ExponentialRolloutRate => { return { - baseRatePerMinute: __expectInt(output.baseRatePerMinute), - incrementFactor: __limitedParseFloat(output.incrementFactor), + baseRatePerMinute: __expectInt32(output.baseRatePerMinute), + incrementFactor: __limitedParseDouble(output.incrementFactor), rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null ? deserializeAws_restJson1RateIncreaseCriteria(output.rateIncreaseCriteria, context) @@ -32952,8 +32953,8 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job const deserializeAws_restJson1JobExecution = (output: any, context: __SerdeContext): JobExecution => { return { - approximateSecondsBeforeTimedOut: __expectInt(output.approximateSecondsBeforeTimedOut), - executionNumber: __expectInt(output.executionNumber), + approximateSecondsBeforeTimedOut: __expectLong(output.approximateSecondsBeforeTimedOut), + executionNumber: __expectLong(output.executionNumber), forceCanceled: __expectBoolean(output.forceCanceled), jobId: __expectString(output.jobId), lastUpdatedAt: @@ -32974,7 +32975,7 @@ const deserializeAws_restJson1JobExecution = (output: any, context: __SerdeConte ? deserializeAws_restJson1JobExecutionStatusDetails(output.statusDetails, context) : undefined, thingArn: __expectString(output.thingArn), - versionNumber: __expectInt(output.versionNumber), + versionNumber: __expectLong(output.versionNumber), } as any; }; @@ -32987,7 +32988,7 @@ const deserializeAws_restJson1JobExecutionsRolloutConfig = ( output.exponentialRate !== undefined && output.exponentialRate !== null ? deserializeAws_restJson1ExponentialRolloutRate(output.exponentialRate, context) : undefined, - maximumPerMinute: __expectInt(output.maximumPerMinute), + maximumPerMinute: __expectInt32(output.maximumPerMinute), } as any; }; @@ -33005,7 +33006,7 @@ const deserializeAws_restJson1JobExecutionStatusDetails = ( const deserializeAws_restJson1JobExecutionSummary = (output: any, context: __SerdeContext): JobExecutionSummary => { return { - executionNumber: __expectInt(output.executionNumber), + executionNumber: __expectLong(output.executionNumber), lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null ? new Date(Math.round(output.lastUpdatedAt * 1000)) @@ -33078,14 +33079,14 @@ const deserializeAws_restJson1JobExecutionSummaryForThingList = ( const deserializeAws_restJson1JobProcessDetails = (output: any, context: __SerdeContext): JobProcessDetails => { return { - numberOfCanceledThings: __expectInt(output.numberOfCanceledThings), - numberOfFailedThings: __expectInt(output.numberOfFailedThings), - numberOfInProgressThings: __expectInt(output.numberOfInProgressThings), - numberOfQueuedThings: __expectInt(output.numberOfQueuedThings), - numberOfRejectedThings: __expectInt(output.numberOfRejectedThings), - numberOfRemovedThings: __expectInt(output.numberOfRemovedThings), - numberOfSucceededThings: __expectInt(output.numberOfSucceededThings), - numberOfTimedOutThings: __expectInt(output.numberOfTimedOutThings), + numberOfCanceledThings: __expectInt32(output.numberOfCanceledThings), + numberOfFailedThings: __expectInt32(output.numberOfFailedThings), + numberOfInProgressThings: __expectInt32(output.numberOfInProgressThings), + numberOfQueuedThings: __expectInt32(output.numberOfQueuedThings), + numberOfRejectedThings: __expectInt32(output.numberOfRejectedThings), + numberOfRemovedThings: __expectInt32(output.numberOfRemovedThings), + numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings), + numberOfTimedOutThings: __expectInt32(output.numberOfTimedOutThings), processingTargets: output.processingTargets !== undefined && output.processingTargets !== null ? deserializeAws_restJson1ProcessingTargetNameList(output.processingTargets, context) @@ -33271,8 +33272,8 @@ const deserializeAws_restJson1MetricValue = (output: any, context: __SerdeContex output.cidrs !== undefined && output.cidrs !== null ? deserializeAws_restJson1Cidrs(output.cidrs, context) : undefined, - count: __expectInt(output.count), - number: __limitedParseFloat(output.number), + count: __expectLong(output.count), + number: __limitedParseDouble(output.number), numbers: output.numbers !== undefined && output.numbers !== null ? deserializeAws_restJson1NumberList(output.numbers, context) @@ -33414,7 +33415,7 @@ const deserializeAws_restJson1NumberList = (output: any, context: __SerdeContext if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -33433,7 +33434,7 @@ const deserializeAws_restJson1OTAUpdateFile = (output: any, context: __SerdeCont ? deserializeAws_restJson1FileLocation(output.fileLocation, context) : undefined, fileName: __expectString(output.fileName), - fileType: __expectInt(output.fileType), + fileType: __expectInt32(output.fileType), fileVersion: __expectString(output.fileVersion), } as any; }; @@ -33560,8 +33561,8 @@ const deserializeAws_restJson1Percentiles = (output: any, context: __SerdeContex const deserializeAws_restJson1PercentPair = (output: any, context: __SerdeContext): PercentPair => { return { - percent: __limitedParseFloat(output.percent), - value: __limitedParseFloat(output.value), + percent: __limitedParseDouble(output.percent), + value: __limitedParseDouble(output.value), } as any; }; @@ -33644,13 +33645,13 @@ const deserializeAws_restJson1Ports = (output: any, context: __SerdeContext): nu if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; const deserializeAws_restJson1PresignedUrlConfig = (output: any, context: __SerdeContext): PresignedUrlConfig => { return { - expiresInSec: __expectInt(output.expiresInSec), + expiresInSec: __expectLong(output.expiresInSec), roleArn: __expectString(output.roleArn), } as any; }; @@ -33753,7 +33754,7 @@ const deserializeAws_restJson1ProvisioningTemplateVersionSummary = ( ? new Date(Math.round(output.creationDate * 1000)) : undefined, isDefaultVersion: __expectBoolean(output.isDefaultVersion), - versionId: __expectInt(output.versionId), + versionId: __expectInt32(output.versionId), } as any; }; @@ -33816,8 +33817,8 @@ const deserializeAws_restJson1PutItemInput = (output: any, context: __SerdeConte const deserializeAws_restJson1RateIncreaseCriteria = (output: any, context: __SerdeContext): RateIncreaseCriteria => { return { - numberOfNotifiedThings: __expectInt(output.numberOfNotifiedThings), - numberOfSucceededThings: __expectInt(output.numberOfSucceededThings), + numberOfNotifiedThings: __expectInt32(output.numberOfNotifiedThings), + numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings), } as any; }; @@ -33875,7 +33876,7 @@ const deserializeAws_restJson1ReplaceDefaultPolicyVersionParams = ( const deserializeAws_restJson1RepublishAction = (output: any, context: __SerdeContext): RepublishAction => { return { - qos: __expectInt(output.qos), + qos: __expectInt32(output.qos), roleArn: __expectString(output.roleArn), topic: __expectString(output.topic), } as any; @@ -33926,7 +33927,7 @@ const deserializeAws_restJson1RoleAliasDescription = (output: any, context: __Se output.creationDate !== undefined && output.creationDate !== null ? new Date(Math.round(output.creationDate * 1000)) : undefined, - credentialDurationSeconds: __expectInt(output.credentialDurationSeconds), + credentialDurationSeconds: __expectInt32(output.credentialDurationSeconds), lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null ? new Date(Math.round(output.lastModifiedDate * 1000)) @@ -34199,14 +34200,14 @@ const deserializeAws_restJson1StatisticalThreshold = (output: any, context: __Se const deserializeAws_restJson1Statistics = (output: any, context: __SerdeContext): Statistics => { return { - average: __limitedParseFloat(output.average), - count: __expectInt(output.count), - maximum: __limitedParseFloat(output.maximum), - minimum: __limitedParseFloat(output.minimum), - stdDeviation: __limitedParseFloat(output.stdDeviation), - sum: __limitedParseFloat(output.sum), - sumOfSquares: __limitedParseFloat(output.sumOfSquares), - variance: __limitedParseFloat(output.variance), + average: __limitedParseDouble(output.average), + count: __expectInt32(output.count), + maximum: __limitedParseDouble(output.maximum), + minimum: __limitedParseDouble(output.minimum), + stdDeviation: __limitedParseDouble(output.stdDeviation), + sum: __limitedParseDouble(output.sum), + sumOfSquares: __limitedParseDouble(output.sumOfSquares), + variance: __limitedParseDouble(output.variance), } as any; }; @@ -34220,14 +34221,14 @@ const deserializeAws_restJson1StepFunctionsAction = (output: any, context: __Ser const deserializeAws_restJson1_Stream = (output: any, context: __SerdeContext): _Stream => { return { - fileId: __expectInt(output.fileId), + fileId: __expectInt32(output.fileId), streamId: __expectString(output.streamId), } as any; }; const deserializeAws_restJson1StreamFile = (output: any, context: __SerdeContext): StreamFile => { return { - fileId: __expectInt(output.fileId), + fileId: __expectInt32(output.fileId), s3Location: output.s3Location !== undefined && output.s3Location !== null ? deserializeAws_restJson1S3Location(output.s3Location, context) @@ -34264,7 +34265,7 @@ const deserializeAws_restJson1StreamInfo = (output: any, context: __SerdeContext roleArn: __expectString(output.roleArn), streamArn: __expectString(output.streamArn), streamId: __expectString(output.streamId), - streamVersion: __expectInt(output.streamVersion), + streamVersion: __expectInt32(output.streamVersion), } as any; }; @@ -34284,7 +34285,7 @@ const deserializeAws_restJson1StreamSummary = (output: any, context: __SerdeCont description: __expectString(output.description), streamArn: __expectString(output.streamArn), streamId: __expectString(output.streamId), - streamVersion: __expectInt(output.streamVersion), + streamVersion: __expectInt32(output.streamVersion), } as any; }; @@ -34389,13 +34390,13 @@ const deserializeAws_restJson1TaskIdList = (output: any, context: __SerdeContext const deserializeAws_restJson1TaskStatistics = (output: any, context: __SerdeContext): TaskStatistics => { return { - canceledChecks: __expectInt(output.canceledChecks), - compliantChecks: __expectInt(output.compliantChecks), - failedChecks: __expectInt(output.failedChecks), - inProgressChecks: __expectInt(output.inProgressChecks), - nonCompliantChecks: __expectInt(output.nonCompliantChecks), - totalChecks: __expectInt(output.totalChecks), - waitingForDataCollectionChecks: __expectInt(output.waitingForDataCollectionChecks), + canceledChecks: __expectInt32(output.canceledChecks), + compliantChecks: __expectInt32(output.compliantChecks), + failedChecks: __expectInt32(output.failedChecks), + inProgressChecks: __expectInt32(output.inProgressChecks), + nonCompliantChecks: __expectInt32(output.nonCompliantChecks), + totalChecks: __expectInt32(output.totalChecks), + waitingForDataCollectionChecks: __expectInt32(output.waitingForDataCollectionChecks), } as any; }; @@ -34404,11 +34405,11 @@ const deserializeAws_restJson1TaskStatisticsForAuditCheck = ( context: __SerdeContext ): TaskStatisticsForAuditCheck => { return { - canceledFindingsCount: __expectInt(output.canceledFindingsCount), - failedFindingsCount: __expectInt(output.failedFindingsCount), - skippedFindingsCount: __expectInt(output.skippedFindingsCount), - succeededFindingsCount: __expectInt(output.succeededFindingsCount), - totalFindingsCount: __expectInt(output.totalFindingsCount), + canceledFindingsCount: __expectLong(output.canceledFindingsCount), + failedFindingsCount: __expectLong(output.failedFindingsCount), + skippedFindingsCount: __expectLong(output.skippedFindingsCount), + succeededFindingsCount: __expectLong(output.succeededFindingsCount), + totalFindingsCount: __expectLong(output.totalFindingsCount), } as any; }; @@ -34421,7 +34422,7 @@ const deserializeAws_restJson1ThingAttribute = (output: any, context: __SerdeCon thingArn: __expectString(output.thingArn), thingName: __expectString(output.thingName), thingTypeName: __expectString(output.thingTypeName), - version: __expectInt(output.version), + version: __expectLong(output.version), } as any; }; @@ -34439,7 +34440,7 @@ const deserializeAws_restJson1ThingAttributeList = (output: any, context: __Serd const deserializeAws_restJson1ThingConnectivity = (output: any, context: __SerdeContext): ThingConnectivity => { return { connected: __expectBoolean(output.connected), - timestamp: __expectInt(output.timestamp), + timestamp: __expectLong(output.timestamp), } as any; }; @@ -34657,7 +34658,7 @@ const deserializeAws_restJson1ThingTypeProperties = (output: any, context: __Ser const deserializeAws_restJson1TimeoutConfig = (output: any, context: __SerdeContext): TimeoutConfig => { return { - inProgressTimeoutInMinutes: __expectInt(output.inProgressTimeoutInMinutes), + inProgressTimeoutInMinutes: __expectLong(output.inProgressTimeoutInMinutes), } as any; }; diff --git a/clients/client-iotanalytics/protocols/Aws_restJson1.ts b/clients/client-iotanalytics/protocols/Aws_restJson1.ts index e8e728cee0b78..a7831c9ac64f1 100644 --- a/clients/client-iotanalytics/protocols/Aws_restJson1.ts +++ b/clients/client-iotanalytics/protocols/Aws_restJson1.ts @@ -147,10 +147,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -5811,7 +5811,7 @@ const deserializeAws_restJson1DatastoreSummary = (output: any, context: __SerdeC const deserializeAws_restJson1DeltaTime = (output: any, context: __SerdeContext): DeltaTime => { return { - offsetSeconds: __expectInt(output.offsetSeconds), + offsetSeconds: __expectInt32(output.offsetSeconds), timeExpression: __expectString(output.timeExpression), } as any; }; @@ -5821,7 +5821,7 @@ const deserializeAws_restJson1DeltaTimeSessionWindowConfiguration = ( context: __SerdeContext ): DeltaTimeSessionWindowConfiguration => { return { - timeoutInMinutes: __expectInt(output.timeoutInMinutes), + timeoutInMinutes: __expectInt32(output.timeoutInMinutes), } as any; }; @@ -5857,7 +5857,7 @@ const deserializeAws_restJson1EstimatedResourceSize = (output: any, context: __S output.estimatedOn !== undefined && output.estimatedOn !== null ? new Date(Math.round(output.estimatedOn * 1000)) : undefined, - estimatedSizeInBytes: __limitedParseFloat(output.estimatedSizeInBytes), + estimatedSizeInBytes: __limitedParseDouble(output.estimatedSizeInBytes), } as any; }; @@ -5928,7 +5928,7 @@ const deserializeAws_restJson1JsonConfiguration = (output: any, context: __Serde const deserializeAws_restJson1LambdaActivity = (output: any, context: __SerdeContext): LambdaActivity => { return { - batchSize: __expectInt(output.batchSize), + batchSize: __expectInt32(output.batchSize), lambdaName: __expectString(output.lambdaName), name: __expectString(output.name), next: __expectString(output.next), @@ -6198,13 +6198,13 @@ const deserializeAws_restJson1ReprocessingSummary = (output: any, context: __Ser const deserializeAws_restJson1ResourceConfiguration = (output: any, context: __SerdeContext): ResourceConfiguration => { return { computeType: __expectString(output.computeType), - volumeSizeInGB: __expectInt(output.volumeSizeInGB), + volumeSizeInGB: __expectInt32(output.volumeSizeInGB), } as any; }; const deserializeAws_restJson1RetentionPeriod = (output: any, context: __SerdeContext): RetentionPeriod => { return { - numberOfDays: __expectInt(output.numberOfDays), + numberOfDays: __expectInt32(output.numberOfDays), unlimited: __expectBoolean(output.unlimited), } as any; }; @@ -6328,7 +6328,7 @@ const deserializeAws_restJson1Variable = (output: any, context: __SerdeContext): output.datasetContentVersionValue !== undefined && output.datasetContentVersionValue !== null ? deserializeAws_restJson1DatasetContentVersionValue(output.datasetContentVersionValue, context) : undefined, - doubleValue: __limitedParseFloat(output.doubleValue), + doubleValue: __limitedParseDouble(output.doubleValue), name: __expectString(output.name), outputFileUriValue: output.outputFileUriValue !== undefined && output.outputFileUriValue !== null @@ -6354,7 +6354,7 @@ const deserializeAws_restJson1VersioningConfiguration = ( context: __SerdeContext ): VersioningConfiguration => { return { - maxVersions: __expectInt(output.maxVersions), + maxVersions: __expectInt32(output.maxVersions), unlimited: __expectBoolean(output.unlimited), } as any; }; diff --git a/clients/client-iotdeviceadvisor/protocols/Aws_restJson1.ts b/clients/client-iotdeviceadvisor/protocols/Aws_restJson1.ts index d6777c38dac3c..ed3da1cb5db19 100644 --- a/clients/client-iotdeviceadvisor/protocols/Aws_restJson1.ts +++ b/clients/client-iotdeviceadvisor/protocols/Aws_restJson1.ts @@ -43,7 +43,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1738,8 +1738,8 @@ const deserializeAws_restJson1SuiteRunInformation = (output: any, context: __Ser ? new Date(Math.round(output.createdAt * 1000)) : undefined, endAt: output.endAt !== undefined && output.endAt !== null ? new Date(Math.round(output.endAt * 1000)) : undefined, - failed: __expectInt(output.failed), - passed: __expectInt(output.passed), + failed: __expectInt32(output.failed), + passed: __expectInt32(output.passed), startedAt: output.startedAt !== undefined && output.startedAt !== null ? new Date(Math.round(output.startedAt * 1000)) diff --git a/clients/client-iotfleethub/protocols/Aws_restJson1.ts b/clients/client-iotfleethub/protocols/Aws_restJson1.ts index 572181d1ede4d..164026664d54e 100644 --- a/clients/client-iotfleethub/protocols/Aws_restJson1.ts +++ b/clients/client-iotfleethub/protocols/Aws_restJson1.ts @@ -23,7 +23,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -467,7 +467,7 @@ export const deserializeAws_restJson1DescribeApplicationCommand = async ( contents.applicationArn = __expectString(data.applicationArn); } if (data.applicationCreationDate !== undefined && data.applicationCreationDate !== null) { - contents.applicationCreationDate = __expectInt(data.applicationCreationDate); + contents.applicationCreationDate = __expectLong(data.applicationCreationDate); } if (data.applicationDescription !== undefined && data.applicationDescription !== null) { contents.applicationDescription = __expectString(data.applicationDescription); @@ -476,7 +476,7 @@ export const deserializeAws_restJson1DescribeApplicationCommand = async ( contents.applicationId = __expectString(data.applicationId); } if (data.applicationLastUpdateDate !== undefined && data.applicationLastUpdateDate !== null) { - contents.applicationLastUpdateDate = __expectInt(data.applicationLastUpdateDate); + contents.applicationLastUpdateDate = __expectLong(data.applicationLastUpdateDate); } if (data.applicationName !== undefined && data.applicationName !== null) { contents.applicationName = __expectString(data.applicationName); @@ -1053,10 +1053,10 @@ const deserializeAws_restJson1ApplicationSummaries = (output: any, context: __Se const deserializeAws_restJson1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => { return { - applicationCreationDate: __expectInt(output.applicationCreationDate), + applicationCreationDate: __expectLong(output.applicationCreationDate), applicationDescription: __expectString(output.applicationDescription), applicationId: __expectString(output.applicationId), - applicationLastUpdateDate: __expectInt(output.applicationLastUpdateDate), + applicationLastUpdateDate: __expectLong(output.applicationLastUpdateDate), applicationName: __expectString(output.applicationName), applicationState: __expectString(output.applicationState), applicationUrl: __expectString(output.applicationUrl), diff --git a/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts b/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts index 519325af6bb85..044a50b29c70f 100644 --- a/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts +++ b/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts @@ -33,7 +33,7 @@ import { UntagResourceResponse, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -763,7 +763,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde const deserializeAws_json1_1TimeoutConfig = (output: any, context: __SerdeContext): TimeoutConfig => { return { - maxLifetimeTimeoutMinutes: __expectInt(output.maxLifetimeTimeoutMinutes), + maxLifetimeTimeoutMinutes: __expectInt32(output.maxLifetimeTimeoutMinutes), } as any; }; diff --git a/clients/client-iotsitewise/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/protocols/Aws_restJson1.ts index 70f0df8e4d166..81f038520e96a 100644 --- a/clients/client-iotsitewise/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/protocols/Aws_restJson1.ts @@ -209,10 +209,11 @@ import { } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -8770,12 +8771,12 @@ const deserializeAws_restJson1AggregatedValues = (output: any, context: __SerdeC const deserializeAws_restJson1Aggregates = (output: any, context: __SerdeContext): Aggregates => { return { - average: __limitedParseFloat(output.average), - count: __limitedParseFloat(output.count), - maximum: __limitedParseFloat(output.maximum), - minimum: __limitedParseFloat(output.minimum), - standardDeviation: __limitedParseFloat(output.standardDeviation), - sum: __limitedParseFloat(output.sum), + average: __limitedParseDouble(output.average), + count: __limitedParseDouble(output.count), + maximum: __limitedParseDouble(output.maximum), + minimum: __limitedParseDouble(output.minimum), + standardDeviation: __limitedParseDouble(output.standardDeviation), + sum: __limitedParseDouble(output.sum), } as any; }; @@ -9746,8 +9747,8 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { const deserializeAws_restJson1TimeInNanos = (output: any, context: __SerdeContext): TimeInNanos => { return { - offsetInNanos: __expectInt(output.offsetInNanos), - timeInSeconds: __expectInt(output.timeInSeconds), + offsetInNanos: __expectInt32(output.offsetInNanos), + timeInSeconds: __expectLong(output.timeInSeconds), } as any; }; @@ -9812,8 +9813,8 @@ const deserializeAws_restJson1VariableValue = (output: any, context: __SerdeCont const deserializeAws_restJson1Variant = (output: any, context: __SerdeContext): Variant => { return { booleanValue: __expectBoolean(output.booleanValue), - doubleValue: __limitedParseFloat(output.doubleValue), - integerValue: __expectInt(output.integerValue), + doubleValue: __limitedParseDouble(output.doubleValue), + integerValue: __expectInt32(output.integerValue), stringValue: __expectString(output.stringValue), } as any; }; diff --git a/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts b/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts index 6d757a64ab9f4..5124cdfd03304 100644 --- a/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts +++ b/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts @@ -197,7 +197,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -4107,7 +4107,7 @@ const deserializeAws_json1_1DeleteSystemTemplateResponse = ( const deserializeAws_json1_1DependencyRevision = (output: any, context: __SerdeContext): DependencyRevision => { return { id: __expectString(output.id), - revisionNumber: __expectInt(output.revisionNumber), + revisionNumber: __expectLong(output.revisionNumber), } as any; }; @@ -4156,9 +4156,9 @@ const deserializeAws_json1_1DescribeNamespaceResponse = ( return { namespaceArn: __expectString(output.namespaceArn), namespaceName: __expectString(output.namespaceName), - namespaceVersion: __expectInt(output.namespaceVersion), + namespaceVersion: __expectLong(output.namespaceVersion), trackingNamespaceName: __expectString(output.trackingNamespaceName), - trackingNamespaceVersion: __expectInt(output.trackingNamespaceVersion), + trackingNamespaceVersion: __expectLong(output.trackingNamespaceVersion), } as any; }; @@ -4260,7 +4260,7 @@ const deserializeAws_json1_1FlowTemplateDescription = ( output.summary !== undefined && output.summary !== null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined, - validatedNamespaceVersion: __expectInt(output.validatedNamespaceVersion), + validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion), } as any; }; @@ -4283,7 +4283,7 @@ const deserializeAws_json1_1FlowTemplateSummary = (output: any, context: __Serde ? new Date(Math.round(output.createdAt * 1000)) : undefined, id: __expectString(output.id), - revisionNumber: __expectInt(output.revisionNumber), + revisionNumber: __expectLong(output.revisionNumber), } as any; }; @@ -4386,7 +4386,7 @@ const deserializeAws_json1_1GetUploadStatusResponse = ( : undefined, namespaceArn: __expectString(output.namespaceArn), namespaceName: __expectString(output.namespaceName), - namespaceVersion: __expectInt(output.namespaceVersion), + namespaceVersion: __expectLong(output.namespaceVersion), uploadId: __expectString(output.uploadId), uploadStatus: __expectString(output.uploadStatus), } as any; @@ -4579,7 +4579,7 @@ const deserializeAws_json1_1SystemInstanceDescription = ( output.validatedDependencyRevisions !== undefined && output.validatedDependencyRevisions !== null ? deserializeAws_json1_1DependencyRevisions(output.validatedDependencyRevisions, context) : undefined, - validatedNamespaceVersion: __expectInt(output.validatedNamespaceVersion), + validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion), } as any; }; @@ -4630,7 +4630,7 @@ const deserializeAws_json1_1SystemTemplateDescription = ( output.summary !== undefined && output.summary !== null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined, - validatedNamespaceVersion: __expectInt(output.validatedNamespaceVersion), + validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion), } as any; }; @@ -4656,7 +4656,7 @@ const deserializeAws_json1_1SystemTemplateSummary = (output: any, context: __Ser ? new Date(Math.round(output.createdAt * 1000)) : undefined, id: __expectString(output.id), - revisionNumber: __expectInt(output.revisionNumber), + revisionNumber: __expectLong(output.revisionNumber), } as any; }; diff --git a/clients/client-ivs/protocols/Aws_restJson1.ts b/clients/client-ivs/protocols/Aws_restJson1.ts index 8c2f5c023cc21..a8453dd7ea44b 100644 --- a/clients/client-ivs/protocols/Aws_restJson1.ts +++ b/clients/client-ivs/protocols/Aws_restJson1.ts @@ -76,7 +76,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -3167,7 +3167,7 @@ const deserializeAws_restJson1_Stream = (output: any, context: __SerdeContext): playbackUrl: __expectString(output.playbackUrl), startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined, state: __expectString(output.state), - viewerCount: __expectInt(output.viewerCount), + viewerCount: __expectLong(output.viewerCount), } as any; }; @@ -3233,7 +3233,7 @@ const deserializeAws_restJson1StreamSummary = (output: any, context: __SerdeCont health: __expectString(output.health), startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined, state: __expectString(output.state), - viewerCount: __expectInt(output.viewerCount), + viewerCount: __expectLong(output.viewerCount), } as any; }; diff --git a/clients/client-kafka/protocols/Aws_restJson1.ts b/clients/client-kafka/protocols/Aws_restJson1.ts index 41c4dbcb56ba3..24d7971582828 100644 --- a/clients/client-kafka/protocols/Aws_restJson1.ts +++ b/clients/client-kafka/protocols/Aws_restJson1.ts @@ -131,10 +131,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -2089,7 +2090,7 @@ export const deserializeAws_restJson1DescribeConfigurationRevisionCommand = asyn contents.Description = __expectString(data.description); } if (data.revision !== undefined && data.revision !== null) { - contents.Revision = __expectInt(data.revision); + contents.Revision = __expectLong(data.revision); } if (data.serverProperties !== undefined && data.serverProperties !== null) { contents.ServerProperties = context.base64Decoder(data.serverProperties); @@ -4552,7 +4553,7 @@ const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeCo const deserializeAws_restJson1BrokerEBSVolumeInfo = (output: any, context: __SerdeContext): BrokerEBSVolumeInfo => { return { KafkaBrokerNodeId: __expectString(output.kafkaBrokerNodeId), - VolumeSizeGB: __expectInt(output.volumeSizeGB), + VolumeSizeGB: __expectInt32(output.volumeSizeGB), } as any; }; @@ -4592,7 +4593,7 @@ const deserializeAws_restJson1BrokerNodeGroupInfo = (output: any, context: __Ser const deserializeAws_restJson1BrokerNodeInfo = (output: any, context: __SerdeContext): BrokerNodeInfo => { return { AttachedENIId: __expectString(output.attachedENIId), - BrokerId: __limitedParseFloat(output.brokerId), + BrokerId: __limitedParseDouble(output.brokerId), ClientSubnet: __expectString(output.clientSubnet), ClientVpcIpAddress: __expectString(output.clientVpcIpAddress), CurrentBrokerSoftwareInfo: @@ -4609,7 +4610,7 @@ const deserializeAws_restJson1BrokerNodeInfo = (output: any, context: __SerdeCon const deserializeAws_restJson1BrokerSoftwareInfo = (output: any, context: __SerdeContext): BrokerSoftwareInfo => { return { ConfigurationArn: __expectString(output.configurationArn), - ConfigurationRevision: __expectInt(output.configurationRevision), + ConfigurationRevision: __expectLong(output.configurationRevision), KafkaVersion: __expectString(output.kafkaVersion), } as any; }; @@ -4660,7 +4661,7 @@ const deserializeAws_restJson1ClusterInfo = (output: any, context: __SerdeContex output.loggingInfo !== undefined && output.loggingInfo !== null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined, - NumberOfBrokerNodes: __expectInt(output.numberOfBrokerNodes), + NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes), OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context) @@ -4762,7 +4763,7 @@ const deserializeAws_restJson1Configuration = (output: any, context: __SerdeCont const deserializeAws_restJson1ConfigurationInfo = (output: any, context: __SerdeContext): ConfigurationInfo => { return { Arn: __expectString(output.arn), - Revision: __expectInt(output.revision), + Revision: __expectLong(output.revision), } as any; }; @@ -4771,13 +4772,13 @@ const deserializeAws_restJson1ConfigurationRevision = (output: any, context: __S CreationTime: output.creationTime !== undefined && output.creationTime !== null ? new Date(output.creationTime) : undefined, Description: __expectString(output.description), - Revision: __expectInt(output.revision), + Revision: __expectLong(output.revision), } as any; }; const deserializeAws_restJson1EBSStorageInfo = (output: any, context: __SerdeContext): EBSStorageInfo => { return { - VolumeSize: __expectInt(output.volumeSize), + VolumeSize: __expectInt32(output.volumeSize), } as any; }; @@ -4866,7 +4867,7 @@ const deserializeAws_restJson1MutableClusterInfo = (output: any, context: __Serd output.loggingInfo !== undefined && output.loggingInfo !== null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined, - NumberOfBrokerNodes: __expectInt(output.numberOfBrokerNodes), + NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes), OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context) @@ -4987,7 +4988,7 @@ const deserializeAws_restJson1ZookeeperNodeInfo = (output: any, context: __Serde output.endpoints !== undefined && output.endpoints !== null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined, - ZookeeperId: __limitedParseFloat(output.zookeeperId), + ZookeeperId: __limitedParseDouble(output.zookeeperId), ZookeeperVersion: __expectString(output.zookeeperVersion), } as any; }; diff --git a/clients/client-kendra/protocols/Aws_json1_1.ts b/clients/client-kendra/protocols/Aws_json1_1.ts index e54c87a7ea9bd..20c8d502149ed 100644 --- a/clients/client-kendra/protocols/Aws_json1_1.ts +++ b/clients/client-kendra/protocols/Aws_json1_1.ts @@ -285,9 +285,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -7289,7 +7290,7 @@ const deserializeAws_json1_1BasicAuthenticationConfiguration = ( return { Credentials: __expectString(output.Credentials), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -7427,8 +7428,8 @@ const deserializeAws_json1_1CapacityUnitsConfiguration = ( context: __SerdeContext ): CapacityUnitsConfiguration => { return { - QueryCapacityUnits: __expectInt(output.QueryCapacityUnits), - StorageCapacityUnits: __expectInt(output.StorageCapacityUnits), + QueryCapacityUnits: __expectInt32(output.QueryCapacityUnits), + StorageCapacityUnits: __expectInt32(output.StorageCapacityUnits), } as any; }; @@ -7681,7 +7682,7 @@ const deserializeAws_json1_1ConnectionConfiguration = ( return { DatabaseHost: __expectString(output.DatabaseHost), DatabaseName: __expectString(output.DatabaseName), - DatabasePort: __expectInt(output.DatabasePort), + DatabasePort: __expectInt32(output.DatabasePort), SecretArn: __expectString(output.SecretArn), TableName: __expectString(output.TableName), } as any; @@ -8051,10 +8052,10 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse = ( : undefined, Description: __expectString(output.Description), ErrorMessage: __expectString(output.ErrorMessage), - FileSizeBytes: __expectInt(output.FileSizeBytes), + FileSizeBytes: __expectLong(output.FileSizeBytes), Id: __expectString(output.Id), IndexId: __expectString(output.IndexId), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectInt32(output.ItemCount), Name: __expectString(output.Name), RoleArn: __expectString(output.RoleArn), SourceS3Path: @@ -8083,12 +8084,12 @@ const deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse = ( output.LastSuggestionsBuildTime !== undefined && output.LastSuggestionsBuildTime !== null ? new Date(Math.round(output.LastSuggestionsBuildTime * 1000)) : undefined, - MinimumNumberOfQueryingUsers: __expectInt(output.MinimumNumberOfQueryingUsers), - MinimumQueryCount: __expectInt(output.MinimumQueryCount), + MinimumNumberOfQueryingUsers: __expectInt32(output.MinimumNumberOfQueryingUsers), + MinimumQueryCount: __expectInt32(output.MinimumQueryCount), Mode: __expectString(output.Mode), - QueryLogLookBackWindowInDays: __expectInt(output.QueryLogLookBackWindowInDays), + QueryLogLookBackWindowInDays: __expectInt32(output.QueryLogLookBackWindowInDays), Status: __expectString(output.Status), - TotalSuggestionsCount: __expectInt(output.TotalSuggestionsCount), + TotalSuggestionsCount: __expectInt32(output.TotalSuggestionsCount), } as any; }; @@ -8103,7 +8104,7 @@ const deserializeAws_json1_1DescribeThesaurusResponse = ( : undefined, Description: __expectString(output.Description), ErrorMessage: __expectString(output.ErrorMessage), - FileSizeBytes: __expectInt(output.FileSizeBytes), + FileSizeBytes: __expectLong(output.FileSizeBytes), Id: __expectString(output.Id), IndexId: __expectString(output.IndexId), Name: __expectString(output.Name), @@ -8113,8 +8114,8 @@ const deserializeAws_json1_1DescribeThesaurusResponse = ( ? deserializeAws_json1_1S3Path(output.SourceS3Path, context) : undefined, Status: __expectString(output.Status), - SynonymRuleCount: __expectInt(output.SynonymRuleCount), - TermCount: __expectInt(output.TermCount), + SynonymRuleCount: __expectLong(output.SynonymRuleCount), + TermCount: __expectLong(output.TermCount), UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(Math.round(output.UpdatedAt * 1000)) @@ -8160,8 +8161,8 @@ const deserializeAws_json1_1DocumentAttributeValue = (output: any, context: __Se DateValue: new Date(Math.round(output.DateValue * 1000)), }; } - if (__expectInt(output.LongValue) !== undefined) { - return { LongValue: __expectInt(output.LongValue) as any }; + if (__expectLong(output.LongValue) !== undefined) { + return { LongValue: __expectLong(output.LongValue) as any }; } if (output.StringListValue !== undefined && output.StringListValue !== null) { return { @@ -8179,7 +8180,7 @@ const deserializeAws_json1_1DocumentAttributeValueCountPair = ( context: __SerdeContext ): DocumentAttributeValueCountPair => { return { - Count: __expectInt(output.Count), + Count: __expectInt32(output.Count), DocumentAttributeValue: output.DocumentAttributeValue !== undefined && output.DocumentAttributeValue !== null ? deserializeAws_json1_1DocumentAttributeValue(output.DocumentAttributeValue, context) @@ -8310,7 +8311,7 @@ const deserializeAws_json1_1FacetResultList = (output: any, context: __SerdeCont const deserializeAws_json1_1FaqStatistics = (output: any, context: __SerdeContext): FaqStatistics => { return { - IndexedQuestionAnswersCount: __expectInt(output.IndexedQuestionAnswersCount), + IndexedQuestionAnswersCount: __expectInt32(output.IndexedQuestionAnswersCount), } as any; }; @@ -8409,7 +8410,7 @@ const deserializeAws_json1_1GroupOrderingIdSummary = (output: any, context: __Se output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null ? new Date(Math.round(output.LastUpdatedAt * 1000)) : undefined, - OrderingId: __expectInt(output.OrderingId), + OrderingId: __expectLong(output.OrderingId), ReceivedAt: output.ReceivedAt !== undefined && output.ReceivedAt !== null ? new Date(Math.round(output.ReceivedAt * 1000)) @@ -8421,14 +8422,14 @@ const deserializeAws_json1_1GroupOrderingIdSummary = (output: any, context: __Se const deserializeAws_json1_1GroupSummary = (output: any, context: __SerdeContext): GroupSummary => { return { GroupId: __expectString(output.GroupId), - OrderingId: __expectInt(output.OrderingId), + OrderingId: __expectLong(output.OrderingId), } as any; }; const deserializeAws_json1_1Highlight = (output: any, context: __SerdeContext): Highlight => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), TopAnswer: __expectBoolean(output.TopAnswer), Type: __expectString(output.Type), } as any; @@ -8683,7 +8684,7 @@ const deserializeAws_json1_1ProxyConfiguration = (output: any, context: __SerdeC return { Credentials: __expectString(output.Credentials), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -8698,7 +8699,7 @@ const deserializeAws_json1_1QueryResult = (output: any, context: __SerdeContext) output.ResultItems !== undefined && output.ResultItems !== null ? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context) : undefined, - TotalNumberOfResults: __expectInt(output.TotalNumberOfResults), + TotalNumberOfResults: __expectInt32(output.TotalNumberOfResults), } as any; }; @@ -8753,7 +8754,7 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummary = ( ? new Date(Math.round(output.CreatedAt * 1000)) : undefined, Id: __expectString(output.Id), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectInt32(output.ItemCount), Name: __expectString(output.Name), Status: __expectString(output.Status), UpdatedAt: @@ -8781,7 +8782,7 @@ const deserializeAws_json1_1Relevance = (output: any, context: __SerdeContext): return { Duration: __expectString(output.Duration), Freshness: __expectBoolean(output.Freshness), - Importance: __expectInt(output.Importance), + Importance: __expectInt32(output.Importance), RankOrder: __expectString(output.RankOrder), ValueImportanceMap: output.ValueImportanceMap !== undefined && output.ValueImportanceMap !== null @@ -9305,8 +9306,8 @@ const deserializeAws_json1_1Suggestion = (output: any, context: __SerdeContext): const deserializeAws_json1_1SuggestionHighlight = (output: any, context: __SerdeContext): SuggestionHighlight => { return { - BeginOffset: __expectInt(output.BeginOffset), - EndOffset: __expectInt(output.EndOffset), + BeginOffset: __expectInt32(output.BeginOffset), + EndOffset: __expectInt32(output.EndOffset), } as any; }; @@ -9378,8 +9379,8 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde const deserializeAws_json1_1TextDocumentStatistics = (output: any, context: __SerdeContext): TextDocumentStatistics => { return { - IndexedTextBytes: __expectInt(output.IndexedTextBytes), - IndexedTextDocumentsCount: __expectInt(output.IndexedTextDocumentsCount), + IndexedTextBytes: __expectLong(output.IndexedTextBytes), + IndexedTextDocumentsCount: __expectInt32(output.IndexedTextDocumentsCount), } as any; }; @@ -9483,7 +9484,7 @@ const deserializeAws_json1_1ValueImportanceMap = (output: any, context: __SerdeC } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -9497,10 +9498,10 @@ const deserializeAws_json1_1WebCrawlerConfiguration = ( output.AuthenticationConfiguration !== undefined && output.AuthenticationConfiguration !== null ? deserializeAws_json1_1AuthenticationConfiguration(output.AuthenticationConfiguration, context) : undefined, - CrawlDepth: __expectInt(output.CrawlDepth), - MaxContentSizePerPageInMegaBytes: __limitedParseFloat(output.MaxContentSizePerPageInMegaBytes), - MaxLinksPerPage: __expectInt(output.MaxLinksPerPage), - MaxUrlsPerMinuteCrawlRate: __expectInt(output.MaxUrlsPerMinuteCrawlRate), + CrawlDepth: __expectInt32(output.CrawlDepth), + MaxContentSizePerPageInMegaBytes: __limitedParseFloat32(output.MaxContentSizePerPageInMegaBytes), + MaxLinksPerPage: __expectInt32(output.MaxLinksPerPage), + MaxUrlsPerMinuteCrawlRate: __expectInt32(output.MaxUrlsPerMinuteCrawlRate), ProxyConfiguration: output.ProxyConfiguration !== undefined && output.ProxyConfiguration !== null ? deserializeAws_json1_1ProxyConfiguration(output.ProxyConfiguration, context) diff --git a/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts index fb2f99deae579..85112e0f1eb48 100644 --- a/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts @@ -297,7 +297,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -5335,7 +5336,7 @@ const deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionResponse = ( ): AddApplicationCloudWatchLoggingOptionResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), CloudWatchLoggingOptionDescriptions: output.CloudWatchLoggingOptionDescriptions !== undefined && output.CloudWatchLoggingOptionDescriptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptionDescriptions(output.CloudWatchLoggingOptionDescriptions, context) @@ -5349,7 +5350,7 @@ const deserializeAws_json1_1AddApplicationInputProcessingConfigurationResponse = ): AddApplicationInputProcessingConfigurationResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), InputId: __expectString(output.InputId), InputProcessingConfigurationDescription: output.InputProcessingConfigurationDescription !== undefined && @@ -5368,7 +5369,7 @@ const deserializeAws_json1_1AddApplicationInputResponse = ( ): AddApplicationInputResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), InputDescriptions: output.InputDescriptions !== undefined && output.InputDescriptions !== null ? deserializeAws_json1_1InputDescriptions(output.InputDescriptions, context) @@ -5382,7 +5383,7 @@ const deserializeAws_json1_1AddApplicationOutputResponse = ( ): AddApplicationOutputResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), OutputDescriptions: output.OutputDescriptions !== undefined && output.OutputDescriptions !== null ? deserializeAws_json1_1OutputDescriptions(output.OutputDescriptions, context) @@ -5396,7 +5397,7 @@ const deserializeAws_json1_1AddApplicationReferenceDataSourceResponse = ( ): AddApplicationReferenceDataSourceResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), ReferenceDataSourceDescriptions: output.ReferenceDataSourceDescriptions !== undefined && output.ReferenceDataSourceDescriptions !== null ? deserializeAws_json1_1ReferenceDataSourceDescriptions(output.ReferenceDataSourceDescriptions, context) @@ -5410,7 +5411,7 @@ const deserializeAws_json1_1AddApplicationVpcConfigurationResponse = ( ): AddApplicationVpcConfigurationResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), VpcConfigurationDescription: output.VpcConfigurationDescription !== undefined && output.VpcConfigurationDescription !== null ? deserializeAws_json1_1VpcConfigurationDescription(output.VpcConfigurationDescription, context) @@ -5510,10 +5511,10 @@ const deserializeAws_json1_1ApplicationDetail = (output: any, context: __SerdeCo ApplicationMode: __expectString(output.ApplicationMode), ApplicationName: __expectString(output.ApplicationName), ApplicationStatus: __expectString(output.ApplicationStatus), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), - ApplicationVersionRolledBackFrom: __expectInt(output.ApplicationVersionRolledBackFrom), - ApplicationVersionRolledBackTo: __expectInt(output.ApplicationVersionRolledBackTo), - ApplicationVersionUpdatedFrom: __expectInt(output.ApplicationVersionUpdatedFrom), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), + ApplicationVersionRolledBackFrom: __expectLong(output.ApplicationVersionRolledBackFrom), + ApplicationVersionRolledBackTo: __expectLong(output.ApplicationVersionRolledBackTo), + ApplicationVersionUpdatedFrom: __expectLong(output.ApplicationVersionUpdatedFrom), CloudWatchLoggingOptionDescriptions: output.CloudWatchLoggingOptionDescriptions !== undefined && output.CloudWatchLoggingOptionDescriptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptionDescriptions(output.CloudWatchLoggingOptionDescriptions, context) @@ -5578,7 +5579,7 @@ const deserializeAws_json1_1ApplicationSummary = (output: any, context: __SerdeC ApplicationMode: __expectString(output.ApplicationMode), ApplicationName: __expectString(output.ApplicationName), ApplicationStatus: __expectString(output.ApplicationStatus), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), RuntimeEnvironment: __expectString(output.RuntimeEnvironment), } as any; }; @@ -5603,7 +5604,7 @@ const deserializeAws_json1_1ApplicationVersionSummary = ( ): ApplicationVersionSummary => { return { ApplicationStatus: __expectString(output.ApplicationStatus), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), } as any; }; @@ -5628,10 +5629,10 @@ const deserializeAws_json1_1CheckpointConfigurationDescription = ( context: __SerdeContext ): CheckpointConfigurationDescription => { return { - CheckpointInterval: __expectInt(output.CheckpointInterval), + CheckpointInterval: __expectLong(output.CheckpointInterval), CheckpointingEnabled: __expectBoolean(output.CheckpointingEnabled), ConfigurationType: __expectString(output.ConfigurationType), - MinPauseBetweenCheckpoints: __expectInt(output.MinPauseBetweenCheckpoints), + MinPauseBetweenCheckpoints: __expectLong(output.MinPauseBetweenCheckpoints), } as any; }; @@ -5663,7 +5664,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = ( const deserializeAws_json1_1CodeContentDescription = (output: any, context: __SerdeContext): CodeContentDescription => { return { CodeMD5: __expectString(output.CodeMD5), - CodeSize: __expectInt(output.CodeSize), + CodeSize: __expectLong(output.CodeSize), S3ApplicationCodeLocationDescription: output.S3ApplicationCodeLocationDescription !== undefined && output.S3ApplicationCodeLocationDescription !== null ? deserializeAws_json1_1S3ApplicationCodeLocationDescription( @@ -5765,7 +5766,7 @@ const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionResponse = ( ): DeleteApplicationCloudWatchLoggingOptionResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), CloudWatchLoggingOptionDescriptions: output.CloudWatchLoggingOptionDescriptions !== undefined && output.CloudWatchLoggingOptionDescriptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptionDescriptions(output.CloudWatchLoggingOptionDescriptions, context) @@ -5779,7 +5780,7 @@ const deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationRespons ): DeleteApplicationInputProcessingConfigurationResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), } as any; }; @@ -5789,7 +5790,7 @@ const deserializeAws_json1_1DeleteApplicationOutputResponse = ( ): DeleteApplicationOutputResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), } as any; }; @@ -5799,7 +5800,7 @@ const deserializeAws_json1_1DeleteApplicationReferenceDataSourceResponse = ( ): DeleteApplicationReferenceDataSourceResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), } as any; }; @@ -5823,7 +5824,7 @@ const deserializeAws_json1_1DeleteApplicationVpcConfigurationResponse = ( ): DeleteApplicationVpcConfigurationResponse => { return { ApplicationARN: __expectString(output.ApplicationARN), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), } as any; }; @@ -6026,7 +6027,7 @@ const deserializeAws_json1_1InputLambdaProcessorDescription = ( const deserializeAws_json1_1InputParallelism = (output: any, context: __SerdeContext): InputParallelism => { return { - Count: __expectInt(output.Count), + Count: __expectInt32(output.Count), } as any; }; @@ -6262,9 +6263,9 @@ const deserializeAws_json1_1ParallelismConfigurationDescription = ( return { AutoScalingEnabled: __expectBoolean(output.AutoScalingEnabled), ConfigurationType: __expectString(output.ConfigurationType), - CurrentParallelism: __expectInt(output.CurrentParallelism), - Parallelism: __expectInt(output.Parallelism), - ParallelismPerKPU: __expectInt(output.ParallelismPerKPU), + CurrentParallelism: __expectInt32(output.CurrentParallelism), + Parallelism: __expectInt32(output.Parallelism), + ParallelismPerKPU: __expectInt32(output.ParallelismPerKPU), } as any; }; @@ -6524,7 +6525,7 @@ const deserializeAws_json1_1ServiceUnavailableException = ( const deserializeAws_json1_1SnapshotDetails = (output: any, context: __SerdeContext): SnapshotDetails => { return { - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), SnapshotCreationTimestamp: output.SnapshotCreationTimestamp !== undefined && output.SnapshotCreationTimestamp !== null ? new Date(Math.round(output.SnapshotCreationTimestamp * 1000)) diff --git a/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts index 4b7e060eee6df..9590d87dd557e 100644 --- a/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts @@ -164,7 +164,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3176,7 +3177,7 @@ const deserializeAws_json1_1ApplicationDetail = (output: any, context: __SerdeCo ApplicationDescription: __expectString(output.ApplicationDescription), ApplicationName: __expectString(output.ApplicationName), ApplicationStatus: __expectString(output.ApplicationStatus), - ApplicationVersionId: __expectInt(output.ApplicationVersionId), + ApplicationVersionId: __expectLong(output.ApplicationVersionId), CloudWatchLoggingOptionDescriptions: output.CloudWatchLoggingOptionDescriptions !== undefined && output.CloudWatchLoggingOptionDescriptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptionDescriptions(output.CloudWatchLoggingOptionDescriptions, context) @@ -3435,7 +3436,7 @@ const deserializeAws_json1_1InputLambdaProcessorDescription = ( const deserializeAws_json1_1InputParallelism = (output: any, context: __SerdeContext): InputParallelism => { return { - Count: __expectInt(output.Count), + Count: __expectInt32(output.Count), } as any; }; diff --git a/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1.ts index 2133a693a58b8..1fe481022c25b 100644 --- a/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1.ts @@ -33,7 +33,7 @@ import { UnsupportedStreamMediaTypeException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectLong as __expectLong, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -962,9 +962,9 @@ const serializeAws_restJson1TimestampRange = (input: TimestampRange, context: __ const deserializeAws_restJson1Fragment = (output: any, context: __SerdeContext): Fragment => { return { - FragmentLengthInMilliseconds: __expectInt(output.FragmentLengthInMilliseconds), + FragmentLengthInMilliseconds: __expectLong(output.FragmentLengthInMilliseconds), FragmentNumber: __expectString(output.FragmentNumber), - FragmentSizeInBytes: __expectInt(output.FragmentSizeInBytes), + FragmentSizeInBytes: __expectLong(output.FragmentSizeInBytes), ProducerTimestamp: output.ProducerTimestamp !== undefined && output.ProducerTimestamp !== null ? new Date(Math.round(output.ProducerTimestamp * 1000)) diff --git a/clients/client-kinesis-video-signaling/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-signaling/protocols/Aws_restJson1.ts index 2ffae27090611..3198e15bc64e1 100644 --- a/clients/client-kinesis-video-signaling/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-signaling/protocols/Aws_restJson1.ts @@ -13,7 +13,7 @@ import { SessionExpiredException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -358,7 +358,7 @@ const deserializeAws_restJson1SessionExpiredExceptionResponse = async ( const deserializeAws_restJson1IceServer = (output: any, context: __SerdeContext): IceServer => { return { Password: __expectString(output.Password), - Ttl: __expectInt(output.Ttl), + Ttl: __expectInt32(output.Ttl), Uris: output.Uris !== undefined && output.Uris !== null ? deserializeAws_restJson1Uris(output.Uris, context) diff --git a/clients/client-kinesis-video/protocols/Aws_restJson1.ts b/clients/client-kinesis-video/protocols/Aws_restJson1.ts index 2440e5503b0bb..61277e78917dd 100644 --- a/clients/client-kinesis-video/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video/protocols/Aws_restJson1.ts @@ -66,7 +66,7 @@ import { VersionMismatchException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -2626,7 +2626,7 @@ const deserializeAws_restJson1SingleMasterConfiguration = ( context: __SerdeContext ): SingleMasterConfiguration => { return { - MessageTtlSeconds: __expectInt(output.MessageTtlSeconds), + MessageTtlSeconds: __expectInt32(output.MessageTtlSeconds), } as any; }; @@ -2636,7 +2636,7 @@ const deserializeAws_restJson1StreamInfo = (output: any, context: __SerdeContext output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, - DataRetentionInHours: __expectInt(output.DataRetentionInHours), + DataRetentionInHours: __expectInt32(output.DataRetentionInHours), DeviceName: __expectString(output.DeviceName), KmsKeyId: __expectString(output.KmsKeyId), MediaType: __expectString(output.MediaType), diff --git a/clients/client-kinesis/protocols/Aws_json1_1.ts b/clients/client-kinesis/protocols/Aws_json1_1.ts index 0eec3d10fc220..918cbf9eb6c21 100644 --- a/clients/client-kinesis/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis/protocols/Aws_json1_1.ts @@ -143,7 +143,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3353,8 +3354,8 @@ const deserializeAws_json1_1ConsumerList = (output: any, context: __SerdeContext const deserializeAws_json1_1DescribeLimitsOutput = (output: any, context: __SerdeContext): DescribeLimitsOutput => { return { - OpenShardCount: __expectInt(output.OpenShardCount), - ShardLimit: __expectInt(output.ShardLimit), + OpenShardCount: __expectInt32(output.OpenShardCount), + ShardLimit: __expectInt32(output.ShardLimit), } as any; }; @@ -3452,7 +3453,7 @@ const deserializeAws_json1_1GetRecordsOutput = (output: any, context: __SerdeCon output.ChildShards !== undefined && output.ChildShards !== null ? deserializeAws_json1_1ChildShardList(output.ChildShards, context) : undefined, - MillisBehindLatest: __expectInt(output.MillisBehindLatest), + MillisBehindLatest: __expectLong(output.MillisBehindLatest), NextShardIterator: __expectString(output.NextShardIterator), Records: output.Records !== undefined && output.Records !== null @@ -3617,7 +3618,7 @@ const deserializeAws_json1_1PutRecordOutput = (output: any, context: __SerdeCont const deserializeAws_json1_1PutRecordsOutput = (output: any, context: __SerdeContext): PutRecordsOutput => { return { EncryptionType: __expectString(output.EncryptionType), - FailedRecordCount: __expectInt(output.FailedRecordCount), + FailedRecordCount: __expectInt32(output.FailedRecordCount), Records: output.Records !== undefined && output.Records !== null ? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context) @@ -3753,7 +3754,7 @@ const deserializeAws_json1_1StreamDescription = (output: any, context: __SerdeCo : undefined, HasMoreShards: __expectBoolean(output.HasMoreShards), KeyId: __expectString(output.KeyId), - RetentionPeriodHours: __expectInt(output.RetentionPeriodHours), + RetentionPeriodHours: __expectInt32(output.RetentionPeriodHours), Shards: output.Shards !== undefined && output.Shards !== null ? deserializeAws_json1_1ShardList(output.Shards, context) @@ -3773,15 +3774,15 @@ const deserializeAws_json1_1StreamDescriptionSummary = ( context: __SerdeContext ): StreamDescriptionSummary => { return { - ConsumerCount: __expectInt(output.ConsumerCount), + ConsumerCount: __expectInt32(output.ConsumerCount), EncryptionType: __expectString(output.EncryptionType), EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null ? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context) : undefined, KeyId: __expectString(output.KeyId), - OpenShardCount: __expectInt(output.OpenShardCount), - RetentionPeriodHours: __expectInt(output.RetentionPeriodHours), + OpenShardCount: __expectInt32(output.OpenShardCount), + RetentionPeriodHours: __expectInt32(output.RetentionPeriodHours), StreamARN: __expectString(output.StreamARN), StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null @@ -3810,7 +3811,7 @@ const deserializeAws_json1_1SubscribeToShardEvent = (output: any, context: __Ser ? deserializeAws_json1_1ChildShardList(output.ChildShards, context) : undefined, ContinuationSequenceNumber: __expectString(output.ContinuationSequenceNumber), - MillisBehindLatest: __expectInt(output.MillisBehindLatest), + MillisBehindLatest: __expectLong(output.MillisBehindLatest), Records: output.Records !== undefined && output.Records !== null ? deserializeAws_json1_1RecordList(output.Records, context) @@ -3916,9 +3917,9 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta const deserializeAws_json1_1UpdateShardCountOutput = (output: any, context: __SerdeContext): UpdateShardCountOutput => { return { - CurrentShardCount: __expectInt(output.CurrentShardCount), + CurrentShardCount: __expectInt32(output.CurrentShardCount), StreamName: __expectString(output.StreamName), - TargetShardCount: __expectInt(output.TargetShardCount), + TargetShardCount: __expectInt32(output.TargetShardCount), } as any; }; diff --git a/clients/client-kms/protocols/Aws_json1_1.ts b/clients/client-kms/protocols/Aws_json1_1.ts index f97986b820390..5f7be00f8119f 100644 --- a/clients/client-kms/protocols/Aws_json1_1.ts +++ b/clients/client-kms/protocols/Aws_json1_1.ts @@ -224,7 +224,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -7253,7 +7253,7 @@ const deserializeAws_json1_1KeyMetadata = (output: any, context: __SerdeContext) ? deserializeAws_json1_1MultiRegionConfiguration(output.MultiRegionConfiguration, context) : undefined, Origin: __expectString(output.Origin), - PendingDeletionWindowInDays: __expectInt(output.PendingDeletionWindowInDays), + PendingDeletionWindowInDays: __expectInt32(output.PendingDeletionWindowInDays), SigningAlgorithms: output.SigningAlgorithms !== undefined && output.SigningAlgorithms !== null ? deserializeAws_json1_1SigningAlgorithmSpecList(output.SigningAlgorithms, context) @@ -7462,7 +7462,7 @@ const deserializeAws_json1_1ScheduleKeyDeletionResponse = ( : undefined, KeyId: __expectString(output.KeyId), KeyState: __expectString(output.KeyState), - PendingWindowInDays: __expectInt(output.PendingWindowInDays), + PendingWindowInDays: __expectInt32(output.PendingWindowInDays), } as any; }; diff --git a/clients/client-lambda/protocols/Aws_restJson1.ts b/clients/client-lambda/protocols/Aws_restJson1.ts index ed86123b295ef..d4ee9729d5229 100644 --- a/clients/client-lambda/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/protocols/Aws_restJson1.ts @@ -236,10 +236,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -2850,7 +2851,7 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BatchSize !== undefined && data.BatchSize !== null) { - contents.BatchSize = __expectInt(data.BatchSize); + contents.BatchSize = __expectInt32(data.BatchSize); } if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) { contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError); @@ -2877,16 +2878,16 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async ( contents.LastProcessingResult = __expectString(data.LastProcessingResult); } if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) { - contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds); + contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds); } if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) { - contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds); + contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) { - contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor); + contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor); } if (data.Queues !== undefined && data.Queues !== null) { contents.Queues = deserializeAws_restJson1Queues(data.Queues, context); @@ -2919,7 +2920,7 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async ( contents.Topics = deserializeAws_restJson1Topics(data.Topics, context); } if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) { - contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds); + contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds); } if (data.UUID !== undefined && data.UUID !== null) { contents.UUID = __expectString(data.UUID); @@ -3042,7 +3043,7 @@ export const deserializeAws_restJson1CreateFunctionCommand = async ( contents.CodeSha256 = __expectString(data.CodeSha256); } if (data.CodeSize !== undefined && data.CodeSize !== null) { - contents.CodeSize = __expectInt(data.CodeSize); + contents.CodeSize = __expectLong(data.CodeSize); } if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) { contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context); @@ -3090,7 +3091,7 @@ export const deserializeAws_restJson1CreateFunctionCommand = async ( contents.MasterArn = __expectString(data.MasterArn); } if (data.MemorySize !== undefined && data.MemorySize !== null) { - contents.MemorySize = __expectInt(data.MemorySize); + contents.MemorySize = __expectInt32(data.MemorySize); } if (data.PackageType !== undefined && data.PackageType !== null) { contents.PackageType = __expectString(data.PackageType); @@ -3120,7 +3121,7 @@ export const deserializeAws_restJson1CreateFunctionCommand = async ( contents.StateReasonCode = __expectString(data.StateReasonCode); } if (data.Timeout !== undefined && data.Timeout !== null) { - contents.Timeout = __expectInt(data.Timeout); + contents.Timeout = __expectInt32(data.Timeout); } if (data.TracingConfig !== undefined && data.TracingConfig !== null) { contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context); @@ -3419,7 +3420,7 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BatchSize !== undefined && data.BatchSize !== null) { - contents.BatchSize = __expectInt(data.BatchSize); + contents.BatchSize = __expectInt32(data.BatchSize); } if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) { contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError); @@ -3446,16 +3447,16 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async ( contents.LastProcessingResult = __expectString(data.LastProcessingResult); } if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) { - contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds); + contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds); } if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) { - contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds); + contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) { - contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor); + contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor); } if (data.Queues !== undefined && data.Queues !== null) { contents.Queues = deserializeAws_restJson1Queues(data.Queues, context); @@ -3488,7 +3489,7 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async ( contents.Topics = deserializeAws_restJson1Topics(data.Topics, context); } if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) { - contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds); + contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds); } if (data.UUID !== undefined && data.UUID !== null) { contents.UUID = __expectString(data.UUID); @@ -4318,7 +4319,7 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BatchSize !== undefined && data.BatchSize !== null) { - contents.BatchSize = __expectInt(data.BatchSize); + contents.BatchSize = __expectInt32(data.BatchSize); } if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) { contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError); @@ -4345,16 +4346,16 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async ( contents.LastProcessingResult = __expectString(data.LastProcessingResult); } if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) { - contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds); + contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds); } if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) { - contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds); + contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) { - contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor); + contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor); } if (data.Queues !== undefined && data.Queues !== null) { contents.Queues = deserializeAws_restJson1Queues(data.Queues, context); @@ -4387,7 +4388,7 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async ( contents.Topics = deserializeAws_restJson1Topics(data.Topics, context); } if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) { - contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds); + contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds); } if (data.UUID !== undefined && data.UUID !== null) { contents.UUID = __expectString(data.UUID); @@ -4643,7 +4644,7 @@ export const deserializeAws_restJson1GetFunctionConcurrencyCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) { - contents.ReservedConcurrentExecutions = __expectInt(data.ReservedConcurrentExecutions); + contents.ReservedConcurrentExecutions = __expectInt32(data.ReservedConcurrentExecutions); } return Promise.resolve(contents); }; @@ -4755,7 +4756,7 @@ export const deserializeAws_restJson1GetFunctionConfigurationCommand = async ( contents.CodeSha256 = __expectString(data.CodeSha256); } if (data.CodeSize !== undefined && data.CodeSize !== null) { - contents.CodeSize = __expectInt(data.CodeSize); + contents.CodeSize = __expectLong(data.CodeSize); } if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) { contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context); @@ -4803,7 +4804,7 @@ export const deserializeAws_restJson1GetFunctionConfigurationCommand = async ( contents.MasterArn = __expectString(data.MasterArn); } if (data.MemorySize !== undefined && data.MemorySize !== null) { - contents.MemorySize = __expectInt(data.MemorySize); + contents.MemorySize = __expectInt32(data.MemorySize); } if (data.PackageType !== undefined && data.PackageType !== null) { contents.PackageType = __expectString(data.PackageType); @@ -4833,7 +4834,7 @@ export const deserializeAws_restJson1GetFunctionConfigurationCommand = async ( contents.StateReasonCode = __expectString(data.StateReasonCode); } if (data.Timeout !== undefined && data.Timeout !== null) { - contents.Timeout = __expectInt(data.Timeout); + contents.Timeout = __expectInt32(data.Timeout); } if (data.TracingConfig !== undefined && data.TracingConfig !== null) { contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context); @@ -4934,10 +4935,10 @@ export const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async contents.LastModified = new Date(Math.round(data.LastModified * 1000)); } if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) { - contents.MaximumEventAgeInSeconds = __expectInt(data.MaximumEventAgeInSeconds); + contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } return Promise.resolve(contents); }; @@ -5044,7 +5045,7 @@ export const deserializeAws_restJson1GetLayerVersionCommand = async ( contents.LicenseInfo = __expectString(data.LicenseInfo); } if (data.Version !== undefined && data.Version !== null) { - contents.Version = __expectInt(data.Version); + contents.Version = __expectLong(data.Version); } return Promise.resolve(contents); }; @@ -5151,7 +5152,7 @@ export const deserializeAws_restJson1GetLayerVersionByArnCommand = async ( contents.LicenseInfo = __expectString(data.LicenseInfo); } if (data.Version !== undefined && data.Version !== null) { - contents.Version = __expectInt(data.Version); + contents.Version = __expectLong(data.Version); } return Promise.resolve(contents); }; @@ -5404,13 +5405,13 @@ export const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = as data.AllocatedProvisionedConcurrentExecutions !== undefined && data.AllocatedProvisionedConcurrentExecutions !== null ) { - contents.AllocatedProvisionedConcurrentExecutions = __expectInt(data.AllocatedProvisionedConcurrentExecutions); + contents.AllocatedProvisionedConcurrentExecutions = __expectInt32(data.AllocatedProvisionedConcurrentExecutions); } if ( data.AvailableProvisionedConcurrentExecutions !== undefined && data.AvailableProvisionedConcurrentExecutions !== null ) { - contents.AvailableProvisionedConcurrentExecutions = __expectInt(data.AvailableProvisionedConcurrentExecutions); + contents.AvailableProvisionedConcurrentExecutions = __expectInt32(data.AvailableProvisionedConcurrentExecutions); } if (data.LastModified !== undefined && data.LastModified !== null) { contents.LastModified = __expectString(data.LastModified); @@ -5419,7 +5420,7 @@ export const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = as data.RequestedProvisionedConcurrentExecutions !== undefined && data.RequestedProvisionedConcurrentExecutions !== null ) { - contents.RequestedProvisionedConcurrentExecutions = __expectInt(data.RequestedProvisionedConcurrentExecutions); + contents.RequestedProvisionedConcurrentExecutions = __expectInt32(data.RequestedProvisionedConcurrentExecutions); } if (data.Status !== undefined && data.Status !== null) { contents.Status = __expectString(data.Status); @@ -6771,7 +6772,7 @@ export const deserializeAws_restJson1PublishLayerVersionCommand = async ( contents.LicenseInfo = __expectString(data.LicenseInfo); } if (data.Version !== undefined && data.Version !== null) { - contents.Version = __expectInt(data.Version); + contents.Version = __expectLong(data.Version); } return Promise.resolve(contents); }; @@ -6891,7 +6892,7 @@ export const deserializeAws_restJson1PublishVersionCommand = async ( contents.CodeSha256 = __expectString(data.CodeSha256); } if (data.CodeSize !== undefined && data.CodeSize !== null) { - contents.CodeSize = __expectInt(data.CodeSize); + contents.CodeSize = __expectLong(data.CodeSize); } if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) { contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context); @@ -6939,7 +6940,7 @@ export const deserializeAws_restJson1PublishVersionCommand = async ( contents.MasterArn = __expectString(data.MasterArn); } if (data.MemorySize !== undefined && data.MemorySize !== null) { - contents.MemorySize = __expectInt(data.MemorySize); + contents.MemorySize = __expectInt32(data.MemorySize); } if (data.PackageType !== undefined && data.PackageType !== null) { contents.PackageType = __expectString(data.PackageType); @@ -6969,7 +6970,7 @@ export const deserializeAws_restJson1PublishVersionCommand = async ( contents.StateReasonCode = __expectString(data.StateReasonCode); } if (data.Timeout !== undefined && data.Timeout !== null) { - contents.Timeout = __expectInt(data.Timeout); + contents.Timeout = __expectInt32(data.Timeout); } if (data.TracingConfig !== undefined && data.TracingConfig !== null) { contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context); @@ -7180,7 +7181,7 @@ export const deserializeAws_restJson1PutFunctionConcurrencyCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) { - contents.ReservedConcurrentExecutions = __expectInt(data.ReservedConcurrentExecutions); + contents.ReservedConcurrentExecutions = __expectInt32(data.ReservedConcurrentExecutions); } return Promise.resolve(contents); }; @@ -7280,10 +7281,10 @@ export const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async contents.LastModified = new Date(Math.round(data.LastModified * 1000)); } if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) { - contents.MaximumEventAgeInSeconds = __expectInt(data.MaximumEventAgeInSeconds); + contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } return Promise.resolve(contents); }; @@ -7378,13 +7379,13 @@ export const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = as data.AllocatedProvisionedConcurrentExecutions !== undefined && data.AllocatedProvisionedConcurrentExecutions !== null ) { - contents.AllocatedProvisionedConcurrentExecutions = __expectInt(data.AllocatedProvisionedConcurrentExecutions); + contents.AllocatedProvisionedConcurrentExecutions = __expectInt32(data.AllocatedProvisionedConcurrentExecutions); } if ( data.AvailableProvisionedConcurrentExecutions !== undefined && data.AvailableProvisionedConcurrentExecutions !== null ) { - contents.AvailableProvisionedConcurrentExecutions = __expectInt(data.AvailableProvisionedConcurrentExecutions); + contents.AvailableProvisionedConcurrentExecutions = __expectInt32(data.AvailableProvisionedConcurrentExecutions); } if (data.LastModified !== undefined && data.LastModified !== null) { contents.LastModified = __expectString(data.LastModified); @@ -7393,7 +7394,7 @@ export const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = as data.RequestedProvisionedConcurrentExecutions !== undefined && data.RequestedProvisionedConcurrentExecutions !== null ) { - contents.RequestedProvisionedConcurrentExecutions = __expectInt(data.RequestedProvisionedConcurrentExecutions); + contents.RequestedProvisionedConcurrentExecutions = __expectInt32(data.RequestedProvisionedConcurrentExecutions); } if (data.Status !== undefined && data.Status !== null) { contents.Status = __expectString(data.Status); @@ -8025,7 +8026,7 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.BatchSize !== undefined && data.BatchSize !== null) { - contents.BatchSize = __expectInt(data.BatchSize); + contents.BatchSize = __expectInt32(data.BatchSize); } if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) { contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError); @@ -8052,16 +8053,16 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async ( contents.LastProcessingResult = __expectString(data.LastProcessingResult); } if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) { - contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds); + contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds); } if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) { - contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds); + contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) { - contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor); + contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor); } if (data.Queues !== undefined && data.Queues !== null) { contents.Queues = deserializeAws_restJson1Queues(data.Queues, context); @@ -8094,7 +8095,7 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async ( contents.Topics = deserializeAws_restJson1Topics(data.Topics, context); } if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) { - contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds); + contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds); } if (data.UUID !== undefined && data.UUID !== null) { contents.UUID = __expectString(data.UUID); @@ -8225,7 +8226,7 @@ export const deserializeAws_restJson1UpdateFunctionCodeCommand = async ( contents.CodeSha256 = __expectString(data.CodeSha256); } if (data.CodeSize !== undefined && data.CodeSize !== null) { - contents.CodeSize = __expectInt(data.CodeSize); + contents.CodeSize = __expectLong(data.CodeSize); } if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) { contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context); @@ -8273,7 +8274,7 @@ export const deserializeAws_restJson1UpdateFunctionCodeCommand = async ( contents.MasterArn = __expectString(data.MasterArn); } if (data.MemorySize !== undefined && data.MemorySize !== null) { - contents.MemorySize = __expectInt(data.MemorySize); + contents.MemorySize = __expectInt32(data.MemorySize); } if (data.PackageType !== undefined && data.PackageType !== null) { contents.PackageType = __expectString(data.PackageType); @@ -8303,7 +8304,7 @@ export const deserializeAws_restJson1UpdateFunctionCodeCommand = async ( contents.StateReasonCode = __expectString(data.StateReasonCode); } if (data.Timeout !== undefined && data.Timeout !== null) { - contents.Timeout = __expectInt(data.Timeout); + contents.Timeout = __expectInt32(data.Timeout); } if (data.TracingConfig !== undefined && data.TracingConfig !== null) { contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context); @@ -8472,7 +8473,7 @@ export const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async contents.CodeSha256 = __expectString(data.CodeSha256); } if (data.CodeSize !== undefined && data.CodeSize !== null) { - contents.CodeSize = __expectInt(data.CodeSize); + contents.CodeSize = __expectLong(data.CodeSize); } if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) { contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context); @@ -8520,7 +8521,7 @@ export const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async contents.MasterArn = __expectString(data.MasterArn); } if (data.MemorySize !== undefined && data.MemorySize !== null) { - contents.MemorySize = __expectInt(data.MemorySize); + contents.MemorySize = __expectInt32(data.MemorySize); } if (data.PackageType !== undefined && data.PackageType !== null) { contents.PackageType = __expectString(data.PackageType); @@ -8550,7 +8551,7 @@ export const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async contents.StateReasonCode = __expectString(data.StateReasonCode); } if (data.Timeout !== undefined && data.Timeout !== null) { - contents.Timeout = __expectInt(data.Timeout); + contents.Timeout = __expectInt32(data.Timeout); } if (data.TracingConfig !== undefined && data.TracingConfig !== null) { contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context); @@ -8691,10 +8692,10 @@ export const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = as contents.LastModified = new Date(Math.round(data.LastModified * 1000)); } if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) { - contents.MaximumEventAgeInSeconds = __expectInt(data.MaximumEventAgeInSeconds); + contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds); } if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) { - contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts); + contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts); } return Promise.resolve(contents); }; @@ -9832,18 +9833,18 @@ const serializeAws_restJson1VpcConfig = (input: VpcConfig, context: __SerdeConte const deserializeAws_restJson1AccountLimit = (output: any, context: __SerdeContext): AccountLimit => { return { - CodeSizeUnzipped: __expectInt(output.CodeSizeUnzipped), - CodeSizeZipped: __expectInt(output.CodeSizeZipped), - ConcurrentExecutions: __expectInt(output.ConcurrentExecutions), - TotalCodeSize: __expectInt(output.TotalCodeSize), - UnreservedConcurrentExecutions: __expectInt(output.UnreservedConcurrentExecutions), + CodeSizeUnzipped: __expectLong(output.CodeSizeUnzipped), + CodeSizeZipped: __expectLong(output.CodeSizeZipped), + ConcurrentExecutions: __expectInt32(output.ConcurrentExecutions), + TotalCodeSize: __expectLong(output.TotalCodeSize), + UnreservedConcurrentExecutions: __expectInt32(output.UnreservedConcurrentExecutions), } as any; }; const deserializeAws_restJson1AccountUsage = (output: any, context: __SerdeContext): AccountUsage => { return { - FunctionCount: __expectInt(output.FunctionCount), - TotalCodeSize: __expectInt(output.TotalCodeSize), + FunctionCount: __expectLong(output.FunctionCount), + TotalCodeSize: __expectLong(output.TotalCodeSize), } as any; }; @@ -9857,7 +9858,7 @@ const deserializeAws_restJson1AdditionalVersionWeights = ( } return { ...acc, - [key]: __limitedParseFloat(value) as any, + [key]: __limitedParseDouble(value) as any, }; }, {}); }; @@ -9955,7 +9956,7 @@ const deserializeAws_restJson1CompatibleRuntimes = (output: any, context: __Serd const deserializeAws_restJson1Concurrency = (output: any, context: __SerdeContext): Concurrency => { return { - ReservedConcurrentExecutions: __expectInt(output.ReservedConcurrentExecutions), + ReservedConcurrentExecutions: __expectInt32(output.ReservedConcurrentExecutions), } as any; }; @@ -10044,7 +10045,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = ( context: __SerdeContext ): EventSourceMappingConfiguration => { return { - BatchSize: __expectInt(output.BatchSize), + BatchSize: __expectInt32(output.BatchSize), BisectBatchOnFunctionError: __expectBoolean(output.BisectBatchOnFunctionError), DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null @@ -10061,10 +10062,10 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = ( ? new Date(Math.round(output.LastModified * 1000)) : undefined, LastProcessingResult: __expectString(output.LastProcessingResult), - MaximumBatchingWindowInSeconds: __expectInt(output.MaximumBatchingWindowInSeconds), - MaximumRecordAgeInSeconds: __expectInt(output.MaximumRecordAgeInSeconds), - MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts), - ParallelizationFactor: __expectInt(output.ParallelizationFactor), + MaximumBatchingWindowInSeconds: __expectInt32(output.MaximumBatchingWindowInSeconds), + MaximumRecordAgeInSeconds: __expectInt32(output.MaximumRecordAgeInSeconds), + MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts), + ParallelizationFactor: __expectInt32(output.ParallelizationFactor), Queues: output.Queues !== undefined && output.Queues !== null ? deserializeAws_restJson1Queues(output.Queues, context) @@ -10088,7 +10089,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = ( output.Topics !== undefined && output.Topics !== null ? deserializeAws_restJson1Topics(output.Topics, context) : undefined, - TumblingWindowInSeconds: __expectInt(output.TumblingWindowInSeconds), + TumblingWindowInSeconds: __expectInt32(output.TumblingWindowInSeconds), UUID: __expectString(output.UUID), } as any; }; @@ -10148,7 +10149,7 @@ const deserializeAws_restJson1FunctionCodeLocation = (output: any, context: __Se const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __SerdeContext): FunctionConfiguration => { return { CodeSha256: __expectString(output.CodeSha256), - CodeSize: __expectInt(output.CodeSize), + CodeSize: __expectLong(output.CodeSize), DeadLetterConfig: output.DeadLetterConfig !== undefined && output.DeadLetterConfig !== null ? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context) @@ -10179,7 +10180,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S ? deserializeAws_restJson1LayersReferenceList(output.Layers, context) : undefined, MasterArn: __expectString(output.MasterArn), - MemorySize: __expectInt(output.MemorySize), + MemorySize: __expectInt32(output.MemorySize), PackageType: __expectString(output.PackageType), RevisionId: __expectString(output.RevisionId), Role: __expectString(output.Role), @@ -10189,7 +10190,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S State: __expectString(output.State), StateReason: __expectString(output.StateReason), StateReasonCode: __expectString(output.StateReasonCode), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), TracingConfig: output.TracingConfig !== undefined && output.TracingConfig !== null ? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context) @@ -10216,8 +10217,8 @@ const deserializeAws_restJson1FunctionEventInvokeConfig = ( output.LastModified !== undefined && output.LastModified !== null ? new Date(Math.round(output.LastModified * 1000)) : undefined, - MaximumEventAgeInSeconds: __expectInt(output.MaximumEventAgeInSeconds), - MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts), + MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds), + MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts), } as any; }; @@ -10297,7 +10298,7 @@ const deserializeAws_restJson1ImageConfigResponse = (output: any, context: __Ser const deserializeAws_restJson1Layer = (output: any, context: __SerdeContext): Layer => { return { Arn: __expectString(output.Arn), - CodeSize: __expectInt(output.CodeSize), + CodeSize: __expectLong(output.CodeSize), SigningJobArn: __expectString(output.SigningJobArn), SigningProfileVersionArn: __expectString(output.SigningProfileVersionArn), } as any; @@ -10342,7 +10343,7 @@ const deserializeAws_restJson1LayerVersionContentOutput = ( ): LayerVersionContentOutput => { return { CodeSha256: __expectString(output.CodeSha256), - CodeSize: __expectInt(output.CodeSize), + CodeSize: __expectLong(output.CodeSize), Location: __expectString(output.Location), SigningJobArn: __expectString(output.SigningJobArn), SigningProfileVersionArn: __expectString(output.SigningProfileVersionArn), @@ -10370,7 +10371,7 @@ const deserializeAws_restJson1LayerVersionsListItem = (output: any, context: __S Description: __expectString(output.Description), LayerVersionArn: __expectString(output.LayerVersionArn), LicenseInfo: __expectString(output.LicenseInfo), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -10405,11 +10406,11 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = ( context: __SerdeContext ): ProvisionedConcurrencyConfigListItem => { return { - AllocatedProvisionedConcurrentExecutions: __expectInt(output.AllocatedProvisionedConcurrentExecutions), - AvailableProvisionedConcurrentExecutions: __expectInt(output.AvailableProvisionedConcurrentExecutions), + AllocatedProvisionedConcurrentExecutions: __expectInt32(output.AllocatedProvisionedConcurrentExecutions), + AvailableProvisionedConcurrentExecutions: __expectInt32(output.AvailableProvisionedConcurrentExecutions), FunctionArn: __expectString(output.FunctionArn), LastModified: __expectString(output.LastModified), - RequestedProvisionedConcurrentExecutions: __expectInt(output.RequestedProvisionedConcurrentExecutions), + RequestedProvisionedConcurrentExecutions: __expectInt32(output.RequestedProvisionedConcurrentExecutions), Status: __expectString(output.Status), StatusReason: __expectString(output.StatusReason), } as any; diff --git a/clients/client-lex-model-building-service/protocols/Aws_restJson1.ts b/clients/client-lex-model-building-service/protocols/Aws_restJson1.ts index 642af058ce818..ba29199d81dc9 100644 --- a/clients/client-lex-model-building-service/protocols/Aws_restJson1.ts +++ b/clients/client-lex-model-building-service/protocols/Aws_restJson1.ts @@ -118,10 +118,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -1684,7 +1684,7 @@ export const deserializeAws_restJson1CreateBotVersionCommand = async ( contents.failureReason = __expectString(data.failureReason); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.intents !== undefined && data.intents !== null) { contents.intents = deserializeAws_restJson1IntentList(data.intents, context); @@ -2936,7 +2936,7 @@ export const deserializeAws_restJson1GetBotCommand = async ( contents.failureReason = __expectString(data.failureReason); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.intents !== undefined && data.intents !== null) { contents.intents = deserializeAws_restJson1IntentList(data.intents, context); @@ -2951,7 +2951,7 @@ export const deserializeAws_restJson1GetBotCommand = async ( contents.name = __expectString(data.name); } if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) { - contents.nluIntentConfidenceThreshold = __limitedParseFloat(data.nluIntentConfidenceThreshold); + contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -5009,7 +5009,7 @@ export const deserializeAws_restJson1PutBotCommand = async ( contents.failureReason = __expectString(data.failureReason); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.intents !== undefined && data.intents !== null) { contents.intents = deserializeAws_restJson1IntentList(data.intents, context); @@ -5024,7 +5024,7 @@ export const deserializeAws_restJson1PutBotCommand = async ( contents.name = __expectString(data.name); } if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) { - contents.nluIntentConfidenceThreshold = __limitedParseFloat(data.nluIntentConfidenceThreshold); + contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -6746,7 +6746,7 @@ const deserializeAws_restJson1Message = (output: any, context: __SerdeContext): return { content: __expectString(output.content), contentType: __expectString(output.contentType), - groupNumber: __expectInt(output.groupNumber), + groupNumber: __expectInt32(output.groupNumber), } as any; }; @@ -6840,8 +6840,8 @@ const deserializeAws_restJson1MigrationSummaryList = (output: any, context: __Se const deserializeAws_restJson1OutputContext = (output: any, context: __SerdeContext): OutputContext => { return { name: __expectString(output.name), - timeToLiveInSeconds: __expectInt(output.timeToLiveInSeconds), - turnsToLive: __expectInt(output.turnsToLive), + timeToLiveInSeconds: __expectInt32(output.timeToLiveInSeconds), + turnsToLive: __expectInt32(output.turnsToLive), } as any; }; @@ -6858,7 +6858,7 @@ const deserializeAws_restJson1OutputContextList = (output: any, context: __Serde const deserializeAws_restJson1Prompt = (output: any, context: __SerdeContext): Prompt => { return { - maxAttempts: __expectInt(output.maxAttempts), + maxAttempts: __expectInt32(output.maxAttempts), messages: output.messages !== undefined && output.messages !== null ? deserializeAws_restJson1MessageList(output.messages, context) @@ -6883,7 +6883,7 @@ const deserializeAws_restJson1Slot = (output: any, context: __SerdeContext): Slo description: __expectString(output.description), name: __expectString(output.name), obfuscationSetting: __expectString(output.obfuscationSetting), - priority: __expectInt(output.priority), + priority: __expectInt32(output.priority), responseCard: __expectString(output.responseCard), sampleUtterances: output.sampleUtterances !== undefined && output.sampleUtterances !== null @@ -7058,8 +7058,8 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): const deserializeAws_restJson1UtteranceData = (output: any, context: __SerdeContext): UtteranceData => { return { - count: __expectInt(output.count), - distinctUsers: __expectInt(output.distinctUsers), + count: __expectInt32(output.count), + distinctUsers: __expectInt32(output.distinctUsers), firstUtteredDate: output.firstUtteredDate !== undefined && output.firstUtteredDate !== null ? new Date(Math.round(output.firstUtteredDate * 1000)) diff --git a/clients/client-lex-models-v2/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/protocols/Aws_restJson1.ts index 10a34b2791117..c62892ccec1af 100644 --- a/clients/client-lex-models-v2/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/protocols/Aws_restJson1.ts @@ -170,12 +170,12 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -2920,7 +2920,7 @@ export const deserializeAws_restJson1CreateBotCommand = async ( contents.description = __expectString(data.description); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.roleArn = __expectString(data.roleArn); @@ -3194,7 +3194,7 @@ export const deserializeAws_restJson1CreateBotLocaleCommand = async ( contents.localeName = __expectString(data.localeName); } if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) { - contents.nluIntentConfidenceThreshold = __limitedParseFloat(data.nluIntentConfidenceThreshold); + contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold); } if (data.voiceSettings !== undefined && data.voiceSettings !== null) { contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context); @@ -5317,7 +5317,7 @@ export const deserializeAws_restJson1DescribeBotCommand = async ( contents.description = __expectString(data.description); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) { contents.lastUpdatedDateTime = new Date(Math.round(data.lastUpdatedDateTime * 1000)); @@ -5591,7 +5591,7 @@ export const deserializeAws_restJson1DescribeBotLocaleCommand = async ( contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context); } if (data.intentsCount !== undefined && data.intentsCount !== null) { - contents.intentsCount = __expectInt(data.intentsCount); + contents.intentsCount = __expectInt32(data.intentsCount); } if (data.lastBuildSubmittedDateTime !== undefined && data.lastBuildSubmittedDateTime !== null) { contents.lastBuildSubmittedDateTime = new Date(Math.round(data.lastBuildSubmittedDateTime * 1000)); @@ -5606,10 +5606,10 @@ export const deserializeAws_restJson1DescribeBotLocaleCommand = async ( contents.localeName = __expectString(data.localeName); } if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) { - contents.nluIntentConfidenceThreshold = __limitedParseFloat(data.nluIntentConfidenceThreshold); + contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold); } if (data.slotTypesCount !== undefined && data.slotTypesCount !== null) { - contents.slotTypesCount = __expectInt(data.slotTypesCount); + contents.slotTypesCount = __expectInt32(data.slotTypesCount); } if (data.voiceSettings !== undefined && data.voiceSettings !== null) { contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context); @@ -5732,7 +5732,7 @@ export const deserializeAws_restJson1DescribeBotVersionCommand = async ( contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.roleArn = __expectString(data.roleArn); @@ -7906,7 +7906,7 @@ export const deserializeAws_restJson1UpdateBotCommand = async ( contents.description = __expectString(data.description); } if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) { - contents.idleSessionTTLInSeconds = __expectInt(data.idleSessionTTLInSeconds); + contents.idleSessionTTLInSeconds = __expectInt32(data.idleSessionTTLInSeconds); } if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) { contents.lastUpdatedDateTime = new Date(Math.round(data.lastUpdatedDateTime * 1000)); @@ -8188,7 +8188,7 @@ export const deserializeAws_restJson1UpdateBotLocaleCommand = async ( contents.localeName = __expectString(data.localeName); } if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) { - contents.nluIntentConfidenceThreshold = __limitedParseFloat(data.nluIntentConfidenceThreshold); + contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold); } if (data.voiceSettings !== undefined && data.voiceSettings !== null) { contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context); @@ -9040,7 +9040,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -10188,7 +10188,7 @@ const deserializeAws_restJson1BotImportSpecification = ( output.dataPrivacy !== undefined && output.dataPrivacy !== null ? deserializeAws_restJson1DataPrivacy(output.dataPrivacy, context) : undefined, - idleSessionTTLInSeconds: __expectInt(output.idleSessionTTLInSeconds), + idleSessionTTLInSeconds: __expectInt32(output.idleSessionTTLInSeconds), roleArn: __expectString(output.roleArn), testBotAliasTags: output.testBotAliasTags !== undefined && output.testBotAliasTags !== null @@ -10240,7 +10240,7 @@ const deserializeAws_restJson1BotLocaleImportSpecification = ( botId: __expectString(output.botId), botVersion: __expectString(output.botVersion), localeId: __expectString(output.localeId), - nluIntentConfidenceThreshold: __limitedParseFloat(output.nluIntentConfidenceThreshold), + nluIntentConfidenceThreshold: __limitedParseDouble(output.nluIntentConfidenceThreshold), voiceSettings: output.voiceSettings !== undefined && output.voiceSettings !== null ? deserializeAws_restJson1VoiceSettings(output.voiceSettings, context) @@ -10757,8 +10757,8 @@ const deserializeAws_restJson1ObfuscationSetting = (output: any, context: __Serd const deserializeAws_restJson1OutputContext = (output: any, context: __SerdeContext): OutputContext => { return { name: __expectString(output.name), - timeToLiveInSeconds: __expectInt(output.timeToLiveInSeconds), - turnsToLive: __expectInt(output.turnsToLive), + timeToLiveInSeconds: __expectInt32(output.timeToLiveInSeconds), + turnsToLive: __expectInt32(output.turnsToLive), } as any; }; @@ -10782,7 +10782,7 @@ const deserializeAws_restJson1PlainTextMessage = (output: any, context: __SerdeC const deserializeAws_restJson1PromptSpecification = (output: any, context: __SerdeContext): PromptSpecification => { return { allowInterrupt: __expectBoolean(output.allowInterrupt), - maxRetries: __expectInt(output.maxRetries), + maxRetries: __expectInt32(output.maxRetries), messageGroups: output.messageGroups !== undefined && output.messageGroups !== null ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context) @@ -10885,7 +10885,7 @@ const deserializeAws_restJson1SlotPrioritiesList = (output: any, context: __Serd const deserializeAws_restJson1SlotPriority = (output: any, context: __SerdeContext): SlotPriority => { return { - priority: __expectInt(output.priority), + priority: __expectInt32(output.priority), slotId: __expectString(output.slotId), } as any; }; @@ -11023,12 +11023,12 @@ const deserializeAws_restJson1StillWaitingResponseSpecification = ( ): StillWaitingResponseSpecification => { return { allowInterrupt: __expectBoolean(output.allowInterrupt), - frequencyInSeconds: __expectInt(output.frequencyInSeconds), + frequencyInSeconds: __expectInt32(output.frequencyInSeconds), messageGroups: output.messageGroups !== undefined && output.messageGroups !== null ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context) : undefined, - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + timeoutInSeconds: __expectInt32(output.timeoutInSeconds), } as any; }; diff --git a/clients/client-lex-runtime-service/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-service/protocols/Aws_restJson1.ts index bb9aee5f55b7b..8eccdb8615e69 100644 --- a/clients/client-lex-runtime-service/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-service/protocols/Aws_restJson1.ts @@ -29,10 +29,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { LazyJsonString as __LazyJsonString, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1407,8 +1407,8 @@ const deserializeAws_restJson1ActiveContextTimeToLive = ( context: __SerdeContext ): ActiveContextTimeToLive => { return { - timeToLiveInSeconds: __expectInt(output.timeToLiveInSeconds), - turnsToLive: __expectInt(output.turnsToLive), + timeToLiveInSeconds: __expectInt32(output.timeToLiveInSeconds), + turnsToLive: __expectInt32(output.turnsToLive), } as any; }; @@ -1460,7 +1460,7 @@ const deserializeAws_restJson1genericAttachmentList = (output: any, context: __S const deserializeAws_restJson1IntentConfidence = (output: any, context: __SerdeContext): IntentConfidence => { return { - score: __limitedParseFloat(output.score), + score: __limitedParseDouble(output.score), } as any; }; diff --git a/clients/client-lex-runtime-v2/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/protocols/Aws_restJson1.ts index 1a6f069284253..8c46fb434a971 100644 --- a/clients/client-lex-runtime-v2/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/protocols/Aws_restJson1.ts @@ -44,10 +44,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1964,8 +1964,8 @@ const deserializeAws_restJson1ActiveContextTimeToLive = ( context: __SerdeContext ): ActiveContextTimeToLive => { return { - timeToLiveInSeconds: __expectInt(output.timeToLiveInSeconds), - turnsToLive: __expectInt(output.turnsToLive), + timeToLiveInSeconds: __expectInt32(output.timeToLiveInSeconds), + turnsToLive: __expectInt32(output.turnsToLive), } as any; }; @@ -2006,7 +2006,7 @@ const deserializeAws_restJson1ButtonsList = (output: any, context: __SerdeContex const deserializeAws_restJson1ConfidenceScore = (output: any, context: __SerdeContext): ConfidenceScore => { return { - score: __limitedParseFloat(output.score), + score: __limitedParseDouble(output.score), } as any; }; @@ -2173,10 +2173,10 @@ const deserializeAws_restJson1SentimentResponse = (output: any, context: __Serde const deserializeAws_restJson1SentimentScore = (output: any, context: __SerdeContext): SentimentScore => { return { - mixed: __limitedParseFloat(output.mixed), - negative: __limitedParseFloat(output.negative), - neutral: __limitedParseFloat(output.neutral), - positive: __limitedParseFloat(output.positive), + mixed: __limitedParseDouble(output.mixed), + negative: __limitedParseDouble(output.negative), + neutral: __limitedParseDouble(output.neutral), + positive: __limitedParseDouble(output.positive), } as any; }; diff --git a/clients/client-license-manager/protocols/Aws_json1_1.ts b/clients/client-license-manager/protocols/Aws_json1_1.ts index ac7574b7c2851..d73a27ad70a4e 100644 --- a/clients/client-license-manager/protocols/Aws_json1_1.ts +++ b/clients/client-license-manager/protocols/Aws_json1_1.ts @@ -264,7 +264,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -6604,7 +6605,7 @@ const deserializeAws_json1_1AutomatedDiscoveryInformation = ( const deserializeAws_json1_1BorrowConfiguration = (output: any, context: __SerdeContext): BorrowConfiguration => { return { AllowEarlyCheckIn: __expectBoolean(output.AllowEarlyCheckIn), - MaxTimeToLiveInMinutes: __expectInt(output.MaxTimeToLiveInMinutes), + MaxTimeToLiveInMinutes: __expectInt32(output.MaxTimeToLiveInMinutes), } as any; }; @@ -6660,7 +6661,7 @@ const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeCo const deserializeAws_json1_1ConsumedLicenseSummary = (output: any, context: __SerdeContext): ConsumedLicenseSummary => { return { - ConsumedLicenses: __expectInt(output.ConsumedLicenses), + ConsumedLicenses: __expectLong(output.ConsumedLicenses), ResourceType: __expectString(output.ResourceType), } as any; }; @@ -6803,7 +6804,7 @@ const deserializeAws_json1_1DeleteTokenResponse = (output: any, context: __Serde const deserializeAws_json1_1Entitlement = (output: any, context: __SerdeContext): Entitlement => { return { AllowCheckIn: __expectBoolean(output.AllowCheckIn), - MaxCount: __expectInt(output.MaxCount), + MaxCount: __expectLong(output.MaxCount), Name: __expectString(output.Name), Overage: __expectBoolean(output.Overage), Unit: __expectString(output.Unit), @@ -6927,12 +6928,12 @@ const deserializeAws_json1_1GetLicenseConfigurationResponse = ( output.ConsumedLicenseSummaryList !== undefined && output.ConsumedLicenseSummaryList !== null ? deserializeAws_json1_1ConsumedLicenseSummaryList(output.ConsumedLicenseSummaryList, context) : undefined, - ConsumedLicenses: __expectInt(output.ConsumedLicenses), + ConsumedLicenses: __expectLong(output.ConsumedLicenses), Description: __expectString(output.Description), DisassociateWhenNotFound: __expectBoolean(output.DisassociateWhenNotFound), LicenseConfigurationArn: __expectString(output.LicenseConfigurationArn), LicenseConfigurationId: __expectString(output.LicenseConfigurationId), - LicenseCount: __expectInt(output.LicenseCount), + LicenseCount: __expectLong(output.LicenseCount), LicenseCountHardLimit: __expectBoolean(output.LicenseCountHardLimit), LicenseCountingType: __expectString(output.LicenseCountingType), LicenseRules: @@ -7154,12 +7155,12 @@ const deserializeAws_json1_1LicenseConfiguration = (output: any, context: __Serd output.ConsumedLicenseSummaryList !== undefined && output.ConsumedLicenseSummaryList !== null ? deserializeAws_json1_1ConsumedLicenseSummaryList(output.ConsumedLicenseSummaryList, context) : undefined, - ConsumedLicenses: __expectInt(output.ConsumedLicenses), + ConsumedLicenses: __expectLong(output.ConsumedLicenses), Description: __expectString(output.Description), DisassociateWhenNotFound: __expectBoolean(output.DisassociateWhenNotFound), LicenseConfigurationArn: __expectString(output.LicenseConfigurationArn), LicenseConfigurationId: __expectString(output.LicenseConfigurationId), - LicenseCount: __expectInt(output.LicenseCount), + LicenseCount: __expectLong(output.LicenseCount), LicenseCountHardLimit: __expectBoolean(output.LicenseCountHardLimit), LicenseCountingType: __expectString(output.LicenseCountingType), LicenseRules: @@ -7230,7 +7231,7 @@ const deserializeAws_json1_1LicenseConfigurationUsage = ( output.AssociationTime !== undefined && output.AssociationTime !== null ? new Date(Math.round(output.AssociationTime * 1000)) : undefined, - ConsumedLicenses: __expectInt(output.ConsumedLicenses), + ConsumedLicenses: __expectLong(output.ConsumedLicenses), ResourceArn: __expectString(output.ResourceArn), ResourceOwnerId: __expectString(output.ResourceOwnerId), ResourceStatus: __expectString(output.ResourceStatus), @@ -7509,7 +7510,7 @@ const deserializeAws_json1_1ListUsageForLicenseConfigurationResponse = ( const deserializeAws_json1_1ManagedResourceSummary = (output: any, context: __SerdeContext): ManagedResourceSummary => { return { - AssociationCount: __expectInt(output.AssociationCount), + AssociationCount: __expectLong(output.AssociationCount), ResourceType: __expectString(output.ResourceType), } as any; }; @@ -7629,7 +7630,7 @@ const deserializeAws_json1_1ProvisionalConfiguration = ( context: __SerdeContext ): ProvisionalConfiguration => { return { - MaxTimeToLiveInMinutes: __expectInt(output.MaxTimeToLiveInMinutes), + MaxTimeToLiveInMinutes: __expectInt32(output.MaxTimeToLiveInMinutes), } as any; }; @@ -7680,7 +7681,7 @@ const deserializeAws_json1_1ReportContext = (output: any, context: __SerdeContex const deserializeAws_json1_1ReportFrequency = (output: any, context: __SerdeContext): ReportFrequency => { return { period: __expectString(output.period), - value: __expectInt(output.value), + value: __expectInt32(output.value), } as any; }; diff --git a/clients/client-lightsail/protocols/Aws_json1_1.ts b/clients/client-lightsail/protocols/Aws_json1_1.ts index 525e0315d44fa..c1075f187e476 100644 --- a/clients/client-lightsail/protocols/Aws_json1_1.ts +++ b/clients/client-lightsail/protocols/Aws_json1_1.ts @@ -800,9 +800,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -20146,8 +20148,8 @@ const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alar output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - datapointsToAlarm: __expectInt(output.datapointsToAlarm), - evaluationPeriods: __expectInt(output.evaluationPeriods), + datapointsToAlarm: __expectInt32(output.datapointsToAlarm), + evaluationPeriods: __expectInt32(output.evaluationPeriods), location: output.location !== undefined && output.location !== null ? deserializeAws_json1_1ResourceLocation(output.location, context) @@ -20163,12 +20165,12 @@ const deserializeAws_json1_1Alarm = (output: any, context: __SerdeContext): Alar output.notificationTriggers !== undefined && output.notificationTriggers !== null ? deserializeAws_json1_1NotificationTriggerList(output.notificationTriggers, context) : undefined, - period: __expectInt(output.period), + period: __expectInt32(output.period), resourceType: __expectString(output.resourceType), state: __expectString(output.state), statistic: __expectString(output.statistic), supportCode: __expectString(output.supportCode), - threshold: __limitedParseFloat(output.threshold), + threshold: __limitedParseDouble(output.threshold), treatMissingData: __expectString(output.treatMissingData), unit: __expectString(output.unit), } as any; @@ -20218,7 +20220,7 @@ const deserializeAws_json1_1AttachDiskResult = (output: any, context: __SerdeCon const deserializeAws_json1_1AttachedDisk = (output: any, context: __SerdeContext): AttachedDisk => { return { path: __expectString(output.path), - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), } as any; }; @@ -20317,7 +20319,7 @@ const deserializeAws_json1_1Blueprint = (output: any, context: __SerdeContext): group: __expectString(output.group), isActive: __expectBoolean(output.isActive), licenseUrl: __expectString(output.licenseUrl), - minPower: __expectInt(output.minPower), + minPower: __expectInt32(output.minPower), name: __expectString(output.name), platform: __expectString(output.platform), productUrl: __expectString(output.productUrl), @@ -20384,9 +20386,9 @@ const deserializeAws_json1_1BucketBundle = (output: any, context: __SerdeContext bundleId: __expectString(output.bundleId), isActive: __expectBoolean(output.isActive), name: __expectString(output.name), - price: __limitedParseFloat(output.price), - storagePerMonthInGb: __expectInt(output.storagePerMonthInGb), - transferPerMonthInGb: __expectInt(output.transferPerMonthInGb), + price: __limitedParseFloat32(output.price), + storagePerMonthInGb: __expectInt32(output.storagePerMonthInGb), + transferPerMonthInGb: __expectInt32(output.transferPerMonthInGb), } as any; }; @@ -20422,19 +20424,19 @@ const deserializeAws_json1_1BucketState = (output: any, context: __SerdeContext) const deserializeAws_json1_1Bundle = (output: any, context: __SerdeContext): Bundle => { return { bundleId: __expectString(output.bundleId), - cpuCount: __expectInt(output.cpuCount), - diskSizeInGb: __expectInt(output.diskSizeInGb), + cpuCount: __expectInt32(output.cpuCount), + diskSizeInGb: __expectInt32(output.diskSizeInGb), instanceType: __expectString(output.instanceType), isActive: __expectBoolean(output.isActive), name: __expectString(output.name), - power: __expectInt(output.power), - price: __limitedParseFloat(output.price), - ramSizeInGb: __limitedParseFloat(output.ramSizeInGb), + power: __expectInt32(output.power), + price: __limitedParseFloat32(output.price), + ramSizeInGb: __limitedParseFloat32(output.ramSizeInGb), supportedPlatforms: output.supportedPlatforms !== undefined && output.supportedPlatforms !== null ? deserializeAws_json1_1InstancePlatformList(output.supportedPlatforms, context) : undefined, - transferPerMonthInGb: __expectInt(output.transferPerMonthInGb), + transferPerMonthInGb: __expectInt32(output.transferPerMonthInGb), } as any; }; @@ -20477,7 +20479,7 @@ const deserializeAws_json1_1CacheSettings = (output: any, context: __SerdeContex return { allowedHTTPMethods: __expectString(output.allowedHTTPMethods), cachedHTTPMethods: __expectString(output.cachedHTTPMethods), - defaultTTL: __expectInt(output.defaultTTL), + defaultTTL: __expectLong(output.defaultTTL), forwardedCookies: output.forwardedCookies !== undefined && output.forwardedCookies !== null ? deserializeAws_json1_1CookieObject(output.forwardedCookies, context) @@ -20490,8 +20492,8 @@ const deserializeAws_json1_1CacheSettings = (output: any, context: __SerdeContex output.forwardedQueryStrings !== undefined && output.forwardedQueryStrings !== null ? deserializeAws_json1_1QueryStringObject(output.forwardedQueryStrings, context) : undefined, - maximumTTL: __expectInt(output.maximumTTL), - minimumTTL: __expectInt(output.minimumTTL), + maximumTTL: __expectLong(output.maximumTTL), + minimumTTL: __expectLong(output.minimumTTL), } as any; }; @@ -20508,7 +20510,7 @@ const deserializeAws_json1_1Certificate = (output: any, context: __SerdeContext) ? deserializeAws_json1_1DomainValidationRecordList(output.domainValidationRecords, context) : undefined, eligibleToRenew: __expectString(output.eligibleToRenew), - inUseResourceCount: __expectInt(output.inUseResourceCount), + inUseResourceCount: __expectInt32(output.inUseResourceCount), issuedAt: output.issuedAt !== undefined && output.issuedAt !== null ? new Date(Math.round(output.issuedAt * 1000)) @@ -20781,7 +20783,7 @@ const deserializeAws_json1_1ContainerService = (output: any, context: __SerdeCon ? deserializeAws_json1_1ContainerServicePublicDomains(output.publicDomainNames, context) : undefined, resourceType: __expectString(output.resourceType), - scale: __expectInt(output.scale), + scale: __expectInt32(output.scale), state: __expectString(output.state), stateDetail: output.stateDetail !== undefined && output.stateDetail !== null @@ -20813,7 +20815,7 @@ const deserializeAws_json1_1ContainerServiceDeployment = ( ? deserializeAws_json1_1ContainerServiceEndpoint(output.publicEndpoint, context) : undefined, state: __expectString(output.state), - version: __expectInt(output.version), + version: __expectInt32(output.version), } as any; }; @@ -20837,7 +20839,7 @@ const deserializeAws_json1_1ContainerServiceEndpoint = ( ): ContainerServiceEndpoint => { return { containerName: __expectString(output.containerName), - containerPort: __expectInt(output.containerPort), + containerPort: __expectInt32(output.containerPort), healthCheck: output.healthCheck !== undefined && output.healthCheck !== null ? deserializeAws_json1_1ContainerServiceHealthCheckConfig(output.healthCheck, context) @@ -20850,12 +20852,12 @@ const deserializeAws_json1_1ContainerServiceHealthCheckConfig = ( context: __SerdeContext ): ContainerServiceHealthCheckConfig => { return { - healthyThreshold: __expectInt(output.healthyThreshold), - intervalSeconds: __expectInt(output.intervalSeconds), + healthyThreshold: __expectInt32(output.healthyThreshold), + intervalSeconds: __expectInt32(output.intervalSeconds), path: __expectString(output.path), successCodes: __expectString(output.successCodes), - timeoutSeconds: __expectInt(output.timeoutSeconds), - unhealthyThreshold: __expectInt(output.unhealthyThreshold), + timeoutSeconds: __expectInt32(output.timeoutSeconds), + unhealthyThreshold: __expectInt32(output.unhealthyThreshold), } as any; }; @@ -20928,12 +20930,12 @@ const deserializeAws_json1_1ContainerServiceMetadataEntryList = ( const deserializeAws_json1_1ContainerServicePower = (output: any, context: __SerdeContext): ContainerServicePower => { return { - cpuCount: __limitedParseFloat(output.cpuCount), + cpuCount: __limitedParseFloat32(output.cpuCount), isActive: __expectBoolean(output.isActive), name: __expectString(output.name), powerId: __expectString(output.powerId), - price: __limitedParseFloat(output.price), - ramSizeInGb: __limitedParseFloat(output.ramSizeInGb), + price: __limitedParseFloat32(output.price), + ramSizeInGb: __limitedParseFloat32(output.ramSizeInGb), } as any; }; @@ -21611,8 +21613,8 @@ const deserializeAws_json1_1Disk = (output: any, context: __SerdeContext): Disk output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - gbInUse: __expectInt(output.gbInUse), - iops: __expectInt(output.iops), + gbInUse: __expectInt32(output.gbInUse), + iops: __expectInt32(output.iops), isAttached: __expectBoolean(output.isAttached), isSystemDisk: __expectBoolean(output.isSystemDisk), location: @@ -21622,7 +21624,7 @@ const deserializeAws_json1_1Disk = (output: any, context: __SerdeContext): Disk name: __expectString(output.name), path: __expectString(output.path), resourceType: __expectString(output.resourceType), - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), state: __expectString(output.state), supportCode: __expectString(output.supportCode), tags: @@ -21637,7 +21639,7 @@ const deserializeAws_json1_1DiskInfo = (output: any, context: __SerdeContext): D isSystemDisk: __expectBoolean(output.isSystemDisk), name: __expectString(output.name), path: __expectString(output.path), - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), } as any; }; @@ -21682,7 +21684,7 @@ const deserializeAws_json1_1DiskSnapshot = (output: any, context: __SerdeContext name: __expectString(output.name), progress: __expectString(output.progress), resourceType: __expectString(output.resourceType), - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), state: __expectString(output.state), supportCode: __expectString(output.supportCode), tags: @@ -21694,7 +21696,7 @@ const deserializeAws_json1_1DiskSnapshot = (output: any, context: __SerdeContext const deserializeAws_json1_1DiskSnapshotInfo = (output: any, context: __SerdeContext): DiskSnapshotInfo => { return { - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), } as any; }; @@ -21714,8 +21716,8 @@ const deserializeAws_json1_1DistributionBundle = (output: any, context: __SerdeC bundleId: __expectString(output.bundleId), isActive: __expectBoolean(output.isActive), name: __expectString(output.name), - price: __limitedParseFloat(output.price), - transferPerMonthInGb: __expectInt(output.transferPerMonthInGb), + price: __limitedParseFloat32(output.price), + transferPerMonthInGb: __expectInt32(output.transferPerMonthInGb), } as any; }; @@ -22764,12 +22766,12 @@ const deserializeAws_json1_1InstanceAccessDetails = (output: any, context: __Ser const deserializeAws_json1_1InstanceHardware = (output: any, context: __SerdeContext): InstanceHardware => { return { - cpuCount: __expectInt(output.cpuCount), + cpuCount: __expectInt32(output.cpuCount), disks: output.disks !== undefined && output.disks !== null ? deserializeAws_json1_1DiskList(output.disks, context) : undefined, - ramSizeInGb: __limitedParseFloat(output.ramSizeInGb), + ramSizeInGb: __limitedParseFloat32(output.ramSizeInGb), } as any; }; @@ -22847,13 +22849,13 @@ const deserializeAws_json1_1InstancePortInfo = (output: any, context: __SerdeCon ? deserializeAws_json1_1StringList(output.cidrs, context) : undefined, commonName: __expectString(output.commonName), - fromPort: __expectInt(output.fromPort), + fromPort: __expectInt32(output.fromPort), ipv6Cidrs: output.ipv6Cidrs !== undefined && output.ipv6Cidrs !== null ? deserializeAws_json1_1StringList(output.ipv6Cidrs, context) : undefined, protocol: __expectString(output.protocol), - toPort: __expectInt(output.toPort), + toPort: __expectInt32(output.toPort), } as any; }; @@ -22878,14 +22880,14 @@ const deserializeAws_json1_1InstancePortState = (output: any, context: __SerdeCo output.cidrs !== undefined && output.cidrs !== null ? deserializeAws_json1_1StringList(output.cidrs, context) : undefined, - fromPort: __expectInt(output.fromPort), + fromPort: __expectInt32(output.fromPort), ipv6Cidrs: output.ipv6Cidrs !== undefined && output.ipv6Cidrs !== null ? deserializeAws_json1_1StringList(output.ipv6Cidrs, context) : undefined, protocol: __expectString(output.protocol), state: __expectString(output.state), - toPort: __expectInt(output.toPort), + toPort: __expectInt32(output.toPort), } as any; }; @@ -22923,7 +22925,7 @@ const deserializeAws_json1_1InstanceSnapshot = (output: any, context: __SerdeCon name: __expectString(output.name), progress: __expectString(output.progress), resourceType: __expectString(output.resourceType), - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), state: __expectString(output.state), supportCode: __expectString(output.supportCode), tags: @@ -22957,7 +22959,7 @@ const deserializeAws_json1_1InstanceSnapshotList = (output: any, context: __Serd const deserializeAws_json1_1InstanceState = (output: any, context: __SerdeContext): InstanceState => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), name: __expectString(output.name), } as any; }; @@ -23087,7 +23089,7 @@ const deserializeAws_json1_1LoadBalancer = (output: any, context: __SerdeContext output.instanceHealthSummary !== undefined && output.instanceHealthSummary !== null ? deserializeAws_json1_1InstanceHealthSummaryList(output.instanceHealthSummary, context) : undefined, - instancePort: __expectInt(output.instancePort), + instancePort: __expectInt32(output.instancePort), ipAddressType: __expectString(output.ipAddressType), location: output.location !== undefined && output.location !== null @@ -23336,11 +23338,11 @@ const deserializeAws_json1_1LogEventList = (output: any, context: __SerdeContext const deserializeAws_json1_1MetricDatapoint = (output: any, context: __SerdeContext): MetricDatapoint => { return { - average: __limitedParseFloat(output.average), - maximum: __limitedParseFloat(output.maximum), - minimum: __limitedParseFloat(output.minimum), - sampleCount: __limitedParseFloat(output.sampleCount), - sum: __limitedParseFloat(output.sum), + average: __limitedParseDouble(output.average), + maximum: __limitedParseDouble(output.maximum), + minimum: __limitedParseDouble(output.minimum), + sampleCount: __limitedParseDouble(output.sampleCount), + sum: __limitedParseDouble(output.sum), timestamp: output.timestamp !== undefined && output.timestamp !== null ? new Date(Math.round(output.timestamp * 1000)) @@ -23370,7 +23372,7 @@ const deserializeAws_json1_1MonitoredResourceInfo = (output: any, context: __Ser const deserializeAws_json1_1MonthlyTransfer = (output: any, context: __SerdeContext): MonthlyTransfer => { return { - gbPerMonthAllocated: __expectInt(output.gbPerMonthAllocated), + gbPerMonthAllocated: __expectInt32(output.gbPerMonthAllocated), } as any; }; @@ -23540,7 +23542,7 @@ const deserializeAws_json1_1PortList = (output: any, context: __SerdeContext): n if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -23743,14 +23745,14 @@ const deserializeAws_json1_1RelationalDatabaseBundle = ( ): RelationalDatabaseBundle => { return { bundleId: __expectString(output.bundleId), - cpuCount: __expectInt(output.cpuCount), - diskSizeInGb: __expectInt(output.diskSizeInGb), + cpuCount: __expectInt32(output.cpuCount), + diskSizeInGb: __expectInt32(output.diskSizeInGb), isActive: __expectBoolean(output.isActive), isEncrypted: __expectBoolean(output.isEncrypted), name: __expectString(output.name), - price: __limitedParseFloat(output.price), - ramSizeInGb: __limitedParseFloat(output.ramSizeInGb), - transferPerMonthInGb: __expectInt(output.transferPerMonthInGb), + price: __limitedParseFloat32(output.price), + ramSizeInGb: __limitedParseFloat32(output.ramSizeInGb), + transferPerMonthInGb: __expectInt32(output.transferPerMonthInGb), } as any; }; @@ -23774,7 +23776,7 @@ const deserializeAws_json1_1RelationalDatabaseEndpoint = ( ): RelationalDatabaseEndpoint => { return { address: __expectString(output.address), - port: __expectInt(output.port), + port: __expectInt32(output.port), } as any; }; @@ -23815,9 +23817,9 @@ const deserializeAws_json1_1RelationalDatabaseHardware = ( context: __SerdeContext ): RelationalDatabaseHardware => { return { - cpuCount: __expectInt(output.cpuCount), - diskSizeInGb: __expectInt(output.diskSizeInGb), - ramSizeInGb: __limitedParseFloat(output.ramSizeInGb), + cpuCount: __expectInt32(output.cpuCount), + diskSizeInGb: __expectInt32(output.diskSizeInGb), + ramSizeInGb: __limitedParseFloat32(output.ramSizeInGb), } as any; }; @@ -23884,7 +23886,7 @@ const deserializeAws_json1_1RelationalDatabaseSnapshot = ( : undefined, name: __expectString(output.name), resourceType: __expectString(output.resourceType), - sizeInGb: __expectInt(output.sizeInGb), + sizeInGb: __expectInt32(output.sizeInGb), state: __expectString(output.state), supportCode: __expectString(output.supportCode), tags: diff --git a/clients/client-location/protocols/Aws_restJson1.ts b/clients/client-location/protocols/Aws_restJson1.ts index 82aafe929bad4..92950c195609b 100644 --- a/clients/client-location/protocols/Aws_restJson1.ts +++ b/clients/client-location/protocols/Aws_restJson1.ts @@ -171,10 +171,10 @@ import { isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -7453,16 +7453,16 @@ const deserializeAws_restJson1BoundingBox = (output: any, context: __SerdeContex if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; const deserializeAws_restJson1CalculateRouteSummary = (output: any, context: __SerdeContext): CalculateRouteSummary => { return { DataSource: __expectString(output.DataSource), - Distance: __limitedParseFloat(output.Distance), + Distance: __limitedParseDouble(output.Distance), DistanceUnit: __expectString(output.DistanceUnit), - DurationSeconds: __limitedParseFloat(output.DurationSeconds), + DurationSeconds: __limitedParseDouble(output.DurationSeconds), RouteBBox: output.RouteBBox !== undefined && output.RouteBBox !== null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) @@ -7525,8 +7525,8 @@ const deserializeAws_restJson1GeofenceGeometry = (output: any, context: __SerdeC const deserializeAws_restJson1Leg = (output: any, context: __SerdeContext): Leg => { return { - Distance: __limitedParseFloat(output.Distance), - DurationSeconds: __limitedParseFloat(output.DurationSeconds), + Distance: __limitedParseDouble(output.Distance), + DurationSeconds: __limitedParseDouble(output.DurationSeconds), EndPosition: output.EndPosition !== undefined && output.EndPosition !== null ? deserializeAws_restJson1Position(output.EndPosition, context) @@ -7834,7 +7834,7 @@ const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -7893,7 +7893,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = ( ): SearchPlaceIndexForPositionSummary => { return { DataSource: __expectString(output.DataSource), - MaxResults: __expectInt(output.MaxResults), + MaxResults: __expectInt32(output.MaxResults), Position: output.Position !== undefined && output.Position !== null ? deserializeAws_restJson1Position(output.Position, context) @@ -7919,7 +7919,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = ( output.FilterCountries !== undefined && output.FilterCountries !== null ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context) : undefined, - MaxResults: __expectInt(output.MaxResults), + MaxResults: __expectInt32(output.MaxResults), ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context) @@ -7930,13 +7930,13 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = ( const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Step => { return { - Distance: __limitedParseFloat(output.Distance), - DurationSeconds: __limitedParseFloat(output.DurationSeconds), + Distance: __limitedParseDouble(output.Distance), + DurationSeconds: __limitedParseDouble(output.DurationSeconds), EndPosition: output.EndPosition !== undefined && output.EndPosition !== null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined, - GeometryOffset: __expectInt(output.GeometryOffset), + GeometryOffset: __expectInt32(output.GeometryOffset), StartPosition: output.StartPosition !== undefined && output.StartPosition !== null ? deserializeAws_restJson1Position(output.StartPosition, context) diff --git a/clients/client-lookoutequipment/protocols/Aws_json1_0.ts b/clients/client-lookoutequipment/protocols/Aws_json1_0.ts index 8a31b0ba1b662..79652a34c9541 100644 --- a/clients/client-lookoutequipment/protocols/Aws_json1_0.ts +++ b/clients/client-lookoutequipment/protocols/Aws_json1_0.ts @@ -126,7 +126,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { LazyJsonString as __LazyJsonString, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3081,7 +3081,7 @@ const deserializeAws_json1_0DescribeInferenceSchedulerResponse = ( output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) : undefined, - DataDelayOffsetInMinutes: __expectInt(output.DataDelayOffsetInMinutes), + DataDelayOffsetInMinutes: __expectLong(output.DataDelayOffsetInMinutes), DataInputConfiguration: output.DataInputConfiguration !== undefined && output.DataInputConfiguration !== null ? deserializeAws_json1_0InferenceInputConfiguration(output.DataInputConfiguration, context) @@ -3294,7 +3294,7 @@ const deserializeAws_json1_0InferenceSchedulerSummary = ( context: __SerdeContext ): InferenceSchedulerSummary => { return { - DataDelayOffsetInMinutes: __expectInt(output.DataDelayOffsetInMinutes), + DataDelayOffsetInMinutes: __expectLong(output.DataDelayOffsetInMinutes), DataUploadFrequency: __expectString(output.DataUploadFrequency), InferenceSchedulerArn: __expectString(output.InferenceSchedulerArn), InferenceSchedulerName: __expectString(output.InferenceSchedulerName), diff --git a/clients/client-lookoutmetrics/protocols/Aws_restJson1.ts b/clients/client-lookoutmetrics/protocols/Aws_restJson1.ts index 6078c436a110c..d7a0b47e36994 100644 --- a/clients/client-lookoutmetrics/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutmetrics/protocols/Aws_restJson1.ts @@ -105,10 +105,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1860,7 +1860,7 @@ export const deserializeAws_restJson1DescribeMetricSetCommand = async ( contents.MetricSource = deserializeAws_restJson1MetricSource(data.MetricSource, context); } if (data.Offset !== undefined && data.Offset !== null) { - contents.Offset = __expectInt(data.Offset); + contents.Offset = __expectInt32(data.Offset); } if (data.TimestampColumn !== undefined && data.TimestampColumn !== null) { contents.TimestampColumn = deserializeAws_restJson1TimestampColumn(data.TimestampColumn, context); @@ -3653,7 +3653,7 @@ const deserializeAws_restJson1Alert = (output: any, context: __SerdeContext): Al AlertArn: __expectString(output.AlertArn), AlertDescription: __expectString(output.AlertDescription), AlertName: __expectString(output.AlertName), - AlertSensitivityThreshold: __expectInt(output.AlertSensitivityThreshold), + AlertSensitivityThreshold: __expectInt32(output.AlertSensitivityThreshold), AlertStatus: __expectString(output.AlertStatus), AlertType: __expectString(output.AlertType), AnomalyDetectorArn: __expectString(output.AnomalyDetectorArn), @@ -3672,7 +3672,7 @@ const deserializeAws_restJson1AlertSummary = (output: any, context: __SerdeConte return { AlertArn: __expectString(output.AlertArn), AlertName: __expectString(output.AlertName), - AlertSensitivityThreshold: __expectInt(output.AlertSensitivityThreshold), + AlertSensitivityThreshold: __expectInt32(output.AlertSensitivityThreshold), AlertStatus: __expectString(output.AlertStatus), AlertType: __expectString(output.AlertType), AnomalyDetectorArn: __expectString(output.AnomalyDetectorArn), @@ -3752,7 +3752,7 @@ const deserializeAws_restJson1AnomalyDetectorSummaryList = ( const deserializeAws_restJson1AnomalyGroup = (output: any, context: __SerdeContext): AnomalyGroup => { return { AnomalyGroupId: __expectString(output.AnomalyGroupId), - AnomalyGroupScore: __limitedParseFloat(output.AnomalyGroupScore), + AnomalyGroupScore: __limitedParseDouble(output.AnomalyGroupScore), EndTime: __expectString(output.EndTime), MetricLevelImpactList: output.MetricLevelImpactList !== undefined && output.MetricLevelImpactList !== null @@ -3773,14 +3773,14 @@ const deserializeAws_restJson1AnomalyGroupStatistics = ( output.ItemizedMetricStatsList !== undefined && output.ItemizedMetricStatsList !== null ? deserializeAws_restJson1ItemizedMetricStatsList(output.ItemizedMetricStatsList, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; const deserializeAws_restJson1AnomalyGroupSummary = (output: any, context: __SerdeContext): AnomalyGroupSummary => { return { AnomalyGroupId: __expectString(output.AnomalyGroupId), - AnomalyGroupScore: __limitedParseFloat(output.AnomalyGroupScore), + AnomalyGroupScore: __limitedParseDouble(output.AnomalyGroupScore), EndTime: __expectString(output.EndTime), PrimaryMetricName: __expectString(output.PrimaryMetricName), StartTime: __expectString(output.StartTime), @@ -3895,7 +3895,7 @@ const deserializeAws_restJson1DimensionValueContribution = ( context: __SerdeContext ): DimensionValueContribution => { return { - ContributionScore: __limitedParseFloat(output.ContributionScore), + ContributionScore: __limitedParseDouble(output.ContributionScore), DimensionValue: __expectString(output.DimensionValue), } as any; }; @@ -3982,7 +3982,7 @@ const deserializeAws_restJson1HistoricalDataPathList = (output: any, context: __ const deserializeAws_restJson1ItemizedMetricStats = (output: any, context: __SerdeContext): ItemizedMetricStats => { return { MetricName: __expectString(output.MetricName), - OccurrenceCount: __expectInt(output.OccurrenceCount), + OccurrenceCount: __expectInt32(output.OccurrenceCount), } as any; }; @@ -4029,7 +4029,7 @@ const deserializeAws_restJson1MetricLevelImpact = (output: any, context: __Serde ? deserializeAws_restJson1ContributionMatrix(output.ContributionMatrix, context) : undefined, MetricName: __expectString(output.MetricName), - NumTimeSeries: __expectInt(output.NumTimeSeries), + NumTimeSeries: __expectInt32(output.NumTimeSeries), } as any; }; @@ -4119,7 +4119,7 @@ const deserializeAws_restJson1MetricValueList = (output: any, context: __SerdeCo if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -4128,7 +4128,7 @@ const deserializeAws_restJson1RDSSourceConfig = (output: any, context: __SerdeCo DBInstanceIdentifier: __expectString(output.DBInstanceIdentifier), DatabaseHost: __expectString(output.DatabaseHost), DatabaseName: __expectString(output.DatabaseName), - DatabasePort: __expectInt(output.DatabasePort), + DatabasePort: __expectInt32(output.DatabasePort), RoleArn: __expectString(output.RoleArn), SecretManagerArn: __expectString(output.SecretManagerArn), TableName: __expectString(output.TableName), @@ -4144,7 +4144,7 @@ const deserializeAws_restJson1RedshiftSourceConfig = (output: any, context: __Se ClusterIdentifier: __expectString(output.ClusterIdentifier), DatabaseHost: __expectString(output.DatabaseHost), DatabaseName: __expectString(output.DatabaseName), - DatabasePort: __expectInt(output.DatabasePort), + DatabasePort: __expectInt32(output.DatabasePort), RoleArn: __expectString(output.RoleArn), SecretManagerArn: __expectString(output.SecretManagerArn), TableName: __expectString(output.TableName), diff --git a/clients/client-lookoutvision/protocols/Aws_restJson1.ts b/clients/client-lookoutvision/protocols/Aws_restJson1.ts index 35c1dd447199e..c62c8285e3e96 100644 --- a/clients/client-lookoutvision/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutvision/protocols/Aws_restJson1.ts @@ -52,11 +52,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, - strictParseInt as __strictParseInt, + limitedParseFloat32 as __limitedParseFloat32, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -2676,7 +2676,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( RetryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.RetryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { @@ -2757,7 +2757,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( ServiceCode: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.RetryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { @@ -2882,10 +2882,10 @@ const deserializeAws_restJson1DatasetEntryList = (output: any, context: __SerdeC const deserializeAws_restJson1DatasetImageStats = (output: any, context: __SerdeContext): DatasetImageStats => { return { - Anomaly: __expectInt(output.Anomaly), - Labeled: __expectInt(output.Labeled), - Normal: __expectInt(output.Normal), - Total: __expectInt(output.Total), + Anomaly: __expectInt32(output.Anomaly), + Labeled: __expectInt32(output.Labeled), + Normal: __expectInt32(output.Normal), + Total: __expectInt32(output.Total), } as any; }; @@ -2914,7 +2914,7 @@ const deserializeAws_restJson1DatasetMetadataList = (output: any, context: __Ser const deserializeAws_restJson1DetectAnomalyResult = (output: any, context: __SerdeContext): DetectAnomalyResult => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), IsAnomalous: __expectBoolean(output.IsAnomalous), Source: output.Source !== undefined && output.Source !== null @@ -2995,9 +2995,9 @@ const deserializeAws_restJson1ModelMetadataList = (output: any, context: __Serde const deserializeAws_restJson1ModelPerformance = (output: any, context: __SerdeContext): ModelPerformance => { return { - F1Score: __limitedParseFloat(output.F1Score), - Precision: __limitedParseFloat(output.Precision), - Recall: __limitedParseFloat(output.Recall), + F1Score: __limitedParseFloat32(output.F1Score), + Precision: __limitedParseFloat32(output.Precision), + Recall: __limitedParseFloat32(output.Recall), } as any; }; diff --git a/clients/client-machine-learning/protocols/Aws_json1_1.ts b/clients/client-machine-learning/protocols/Aws_json1_1.ts index cc3cbca2d6efb..ff40ca29e7b0f 100644 --- a/clients/client-machine-learning/protocols/Aws_json1_1.ts +++ b/clients/client-machine-learning/protocols/Aws_json1_1.ts @@ -146,9 +146,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -3090,7 +3091,7 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont return { BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId), BatchPredictionId: __expectString(output.BatchPredictionId), - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3101,7 +3102,7 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont ? new Date(Math.round(output.FinishedAt * 1000)) : undefined, InputDataLocationS3: __expectString(output.InputDataLocationS3), - InvalidRecordCount: __expectInt(output.InvalidRecordCount), + InvalidRecordCount: __expectLong(output.InvalidRecordCount), LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null ? new Date(Math.round(output.LastUpdatedAt * 1000)) @@ -3115,7 +3116,7 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont ? new Date(Math.round(output.StartedAt * 1000)) : undefined, Status: __expectString(output.Status), - TotalRecordCount: __expectInt(output.TotalRecordCount), + TotalRecordCount: __expectLong(output.TotalRecordCount), } as any; }; @@ -3194,7 +3195,7 @@ const deserializeAws_json1_1CreateRealtimeEndpointOutput = ( const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): DataSource => { return { ComputeStatistics: __expectBoolean(output.ComputeStatistics), - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3202,7 +3203,7 @@ const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): CreatedByIamUser: __expectString(output.CreatedByIamUser), DataLocationS3: __expectString(output.DataLocationS3), DataRearrangement: __expectString(output.DataRearrangement), - DataSizeInBytes: __expectInt(output.DataSizeInBytes), + DataSizeInBytes: __expectLong(output.DataSizeInBytes), DataSourceId: __expectString(output.DataSourceId), FinishedAt: output.FinishedAt !== undefined && output.FinishedAt !== null @@ -3214,7 +3215,7 @@ const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): : undefined, Message: __expectString(output.Message), Name: __expectString(output.Name), - NumberOfFiles: __expectInt(output.NumberOfFiles), + NumberOfFiles: __expectLong(output.NumberOfFiles), RDSMetadata: output.RDSMetadata !== undefined && output.RDSMetadata !== null ? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context) @@ -3367,7 +3368,7 @@ const deserializeAws_json1_1DetailsMap = (output: any, context: __SerdeContext): const deserializeAws_json1_1Evaluation = (output: any, context: __SerdeContext): Evaluation => { return { - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3417,7 +3418,7 @@ const deserializeAws_json1_1GetBatchPredictionOutput = ( return { BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId), BatchPredictionId: __expectString(output.BatchPredictionId), - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3428,7 +3429,7 @@ const deserializeAws_json1_1GetBatchPredictionOutput = ( ? new Date(Math.round(output.FinishedAt * 1000)) : undefined, InputDataLocationS3: __expectString(output.InputDataLocationS3), - InvalidRecordCount: __expectInt(output.InvalidRecordCount), + InvalidRecordCount: __expectLong(output.InvalidRecordCount), LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null ? new Date(Math.round(output.LastUpdatedAt * 1000)) @@ -3443,14 +3444,14 @@ const deserializeAws_json1_1GetBatchPredictionOutput = ( ? new Date(Math.round(output.StartedAt * 1000)) : undefined, Status: __expectString(output.Status), - TotalRecordCount: __expectInt(output.TotalRecordCount), + TotalRecordCount: __expectLong(output.TotalRecordCount), } as any; }; const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __SerdeContext): GetDataSourceOutput => { return { ComputeStatistics: __expectBoolean(output.ComputeStatistics), - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3458,7 +3459,7 @@ const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __Serde CreatedByIamUser: __expectString(output.CreatedByIamUser), DataLocationS3: __expectString(output.DataLocationS3), DataRearrangement: __expectString(output.DataRearrangement), - DataSizeInBytes: __expectInt(output.DataSizeInBytes), + DataSizeInBytes: __expectLong(output.DataSizeInBytes), DataSourceId: __expectString(output.DataSourceId), DataSourceSchema: __expectString(output.DataSourceSchema), FinishedAt: @@ -3472,7 +3473,7 @@ const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __Serde LogUri: __expectString(output.LogUri), Message: __expectString(output.Message), Name: __expectString(output.Name), - NumberOfFiles: __expectInt(output.NumberOfFiles), + NumberOfFiles: __expectLong(output.NumberOfFiles), RDSMetadata: output.RDSMetadata !== undefined && output.RDSMetadata !== null ? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context) @@ -3492,7 +3493,7 @@ const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __Serde const deserializeAws_json1_1GetEvaluationOutput = (output: any, context: __SerdeContext): GetEvaluationOutput => { return { - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3527,7 +3528,7 @@ const deserializeAws_json1_1GetEvaluationOutput = (output: any, context: __Serde const deserializeAws_json1_1GetMLModelOutput = (output: any, context: __SerdeContext): GetMLModelOutput => { return { - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3553,12 +3554,12 @@ const deserializeAws_json1_1GetMLModelOutput = (output: any, context: __SerdeCon Name: __expectString(output.Name), Recipe: __expectString(output.Recipe), Schema: __expectString(output.Schema), - ScoreThreshold: __limitedParseFloat(output.ScoreThreshold), + ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold), ScoreThresholdLastUpdatedAt: output.ScoreThresholdLastUpdatedAt !== undefined && output.ScoreThresholdLastUpdatedAt !== null ? new Date(Math.round(output.ScoreThresholdLastUpdatedAt * 1000)) : undefined, - SizeInBytes: __expectInt(output.SizeInBytes), + SizeInBytes: __expectLong(output.SizeInBytes), StartedAt: output.StartedAt !== undefined && output.StartedAt !== null ? new Date(Math.round(output.StartedAt * 1000)) @@ -3577,7 +3578,7 @@ const deserializeAws_json1_1IdempotentParameterMismatchException = ( context: __SerdeContext ): IdempotentParameterMismatchException => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -3587,14 +3588,14 @@ const deserializeAws_json1_1InternalServerException = ( context: __SerdeContext ): InternalServerException => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; const deserializeAws_json1_1InvalidInputException = (output: any, context: __SerdeContext): InvalidInputException => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -3607,7 +3608,7 @@ const deserializeAws_json1_1InvalidTagException = (output: any, context: __Serde const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -3615,7 +3616,7 @@ const deserializeAws_json1_1LimitExceededException = (output: any, context: __Se const deserializeAws_json1_1MLModel = (output: any, context: __SerdeContext): MLModel => { return { Algorithm: __expectString(output.Algorithm), - ComputeTime: __expectInt(output.ComputeTime), + ComputeTime: __expectLong(output.ComputeTime), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) @@ -3638,12 +3639,12 @@ const deserializeAws_json1_1MLModel = (output: any, context: __SerdeContext): ML MLModelType: __expectString(output.MLModelType), Message: __expectString(output.Message), Name: __expectString(output.Name), - ScoreThreshold: __limitedParseFloat(output.ScoreThreshold), + ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold), ScoreThresholdLastUpdatedAt: output.ScoreThresholdLastUpdatedAt !== undefined && output.ScoreThresholdLastUpdatedAt !== null ? new Date(Math.round(output.ScoreThresholdLastUpdatedAt * 1000)) : undefined, - SizeInBytes: __expectInt(output.SizeInBytes), + SizeInBytes: __expectLong(output.SizeInBytes), StartedAt: output.StartedAt !== undefined && output.StartedAt !== null ? new Date(Math.round(output.StartedAt * 1000)) @@ -3703,7 +3704,7 @@ const deserializeAws_json1_1Prediction = (output: any, context: __SerdeContext): output.predictedScores !== undefined && output.predictedScores !== null ? deserializeAws_json1_1ScoreValuePerLabelMap(output.predictedScores, context) : undefined, - predictedValue: __limitedParseFloat(output.predictedValue), + predictedValue: __limitedParseFloat32(output.predictedValue), } as any; }; @@ -3754,7 +3755,7 @@ const deserializeAws_json1_1RealtimeEndpointInfo = (output: any, context: __Serd : undefined, EndpointStatus: __expectString(output.EndpointStatus), EndpointUrl: __expectString(output.EndpointUrl), - PeakRequestsPerSecond: __expectInt(output.PeakRequestsPerSecond), + PeakRequestsPerSecond: __expectInt32(output.PeakRequestsPerSecond), } as any; }; @@ -3781,7 +3782,7 @@ const deserializeAws_json1_1ResourceNotFoundException = ( context: __SerdeContext ): ResourceNotFoundException => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), message: __expectString(output.message), } as any; }; @@ -3796,7 +3797,7 @@ const deserializeAws_json1_1ScoreValuePerLabelMap = ( } return { ...acc, - [key]: __limitedParseFloat(value) as any, + [key]: __limitedParseFloat32(value) as any, }; }, {}); }; diff --git a/clients/client-macie2/protocols/Aws_restJson1.ts b/clients/client-macie2/protocols/Aws_restJson1.ts index 9156436e8798d..ab7a364104a7a 100644 --- a/clients/client-macie2/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/protocols/Aws_restJson1.ts @@ -278,10 +278,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3369,7 +3370,7 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async ( contents.s3JobDefinition = deserializeAws_restJson1S3JobDefinition(data.s3JobDefinition, context); } if (data.samplingPercentage !== undefined && data.samplingPercentage !== null) { - contents.samplingPercentage = __expectInt(data.samplingPercentage); + contents.samplingPercentage = __expectInt32(data.samplingPercentage); } if (data.scheduleFrequency !== undefined && data.scheduleFrequency !== null) { contents.scheduleFrequency = deserializeAws_restJson1JobScheduleFrequency(data.scheduleFrequency, context); @@ -4399,7 +4400,7 @@ export const deserializeAws_restJson1GetBucketStatisticsCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.bucketCount !== undefined && data.bucketCount !== null) { - contents.bucketCount = __expectInt(data.bucketCount); + contents.bucketCount = __expectLong(data.bucketCount); } if (data.bucketCountByEffectivePermission !== undefined && data.bucketCountByEffectivePermission !== null) { contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission( @@ -4430,22 +4431,22 @@ export const deserializeAws_restJson1GetBucketStatisticsCommand = async ( ); } if (data.classifiableObjectCount !== undefined && data.classifiableObjectCount !== null) { - contents.classifiableObjectCount = __expectInt(data.classifiableObjectCount); + contents.classifiableObjectCount = __expectLong(data.classifiableObjectCount); } if (data.classifiableSizeInBytes !== undefined && data.classifiableSizeInBytes !== null) { - contents.classifiableSizeInBytes = __expectInt(data.classifiableSizeInBytes); + contents.classifiableSizeInBytes = __expectLong(data.classifiableSizeInBytes); } if (data.lastUpdated !== undefined && data.lastUpdated !== null) { contents.lastUpdated = new Date(data.lastUpdated); } if (data.objectCount !== undefined && data.objectCount !== null) { - contents.objectCount = __expectInt(data.objectCount); + contents.objectCount = __expectLong(data.objectCount); } if (data.sizeInBytes !== undefined && data.sizeInBytes !== null) { - contents.sizeInBytes = __expectInt(data.sizeInBytes); + contents.sizeInBytes = __expectLong(data.sizeInBytes); } if (data.sizeInBytesCompressed !== undefined && data.sizeInBytesCompressed !== null) { - contents.sizeInBytesCompressed = __expectInt(data.sizeInBytesCompressed); + contents.sizeInBytesCompressed = __expectLong(data.sizeInBytesCompressed); } if (data.unclassifiableObjectCount !== undefined && data.unclassifiableObjectCount !== null) { contents.unclassifiableObjectCount = deserializeAws_restJson1ObjectLevelStatistics( @@ -4694,7 +4695,7 @@ export const deserializeAws_restJson1GetCustomDataIdentifierCommand = async ( contents.keywords = deserializeAws_restJson1__listOf__string(data.keywords, context); } if (data.maximumMatchDistance !== undefined && data.maximumMatchDistance !== null) { - contents.maximumMatchDistance = __expectInt(data.maximumMatchDistance); + contents.maximumMatchDistance = __expectInt32(data.maximumMatchDistance); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -4934,7 +4935,7 @@ export const deserializeAws_restJson1GetFindingsFilterCommand = async ( contents.name = __expectString(data.name); } if (data.position !== undefined && data.position !== null) { - contents.position = __expectInt(data.position); + contents.position = __expectInt32(data.position); } if (data.tags !== undefined && data.tags !== null) { contents.tags = deserializeAws_restJson1TagMap(data.tags, context); @@ -5249,7 +5250,7 @@ export const deserializeAws_restJson1GetInvitationsCountCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.invitationsCount !== undefined && data.invitationsCount !== null) { - contents.invitationsCount = __expectInt(data.invitationsCount); + contents.invitationsCount = __expectLong(data.invitationsCount); } return Promise.resolve(contents); }; @@ -7078,7 +7079,7 @@ export const deserializeAws_restJson1TestCustomDataIdentifierCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.matchCount !== undefined && data.matchCount !== null) { - contents.matchCount = __expectInt(data.matchCount); + contents.matchCount = __expectInt32(data.matchCount); } return Promise.resolve(contents); }; @@ -8771,10 +8772,10 @@ const deserializeAws_restJson1BucketCountByEffectivePermission = ( context: __SerdeContext ): BucketCountByEffectivePermission => { return { - publiclyAccessible: __expectInt(output.publiclyAccessible), - publiclyReadable: __expectInt(output.publiclyReadable), - publiclyWritable: __expectInt(output.publiclyWritable), - unknown: __expectInt(output.unknown), + publiclyAccessible: __expectLong(output.publiclyAccessible), + publiclyReadable: __expectLong(output.publiclyReadable), + publiclyWritable: __expectLong(output.publiclyWritable), + unknown: __expectLong(output.unknown), } as any; }; @@ -8783,10 +8784,10 @@ const deserializeAws_restJson1BucketCountByEncryptionType = ( context: __SerdeContext ): BucketCountByEncryptionType => { return { - kmsManaged: __expectInt(output.kmsManaged), - s3Managed: __expectInt(output.s3Managed), - unencrypted: __expectInt(output.unencrypted), - unknown: __expectInt(output.unknown), + kmsManaged: __expectLong(output.kmsManaged), + s3Managed: __expectLong(output.s3Managed), + unencrypted: __expectLong(output.unencrypted), + unknown: __expectLong(output.unknown), } as any; }; @@ -8795,10 +8796,10 @@ const deserializeAws_restJson1BucketCountBySharedAccessType = ( context: __SerdeContext ): BucketCountBySharedAccessType => { return { - external: __expectInt(output.external), - internal: __expectInt(output.internal), - notShared: __expectInt(output.notShared), - unknown: __expectInt(output.unknown), + external: __expectLong(output.external), + internal: __expectLong(output.internal), + notShared: __expectLong(output.notShared), + unknown: __expectLong(output.unknown), } as any; }; @@ -8807,9 +8808,9 @@ const deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads = context: __SerdeContext ): BucketCountPolicyAllowsUnencryptedObjectUploads => { return { - allowsUnencryptedObjectUploads: __expectInt(output.allowsUnencryptedObjectUploads), - deniesUnencryptedObjectUploads: __expectInt(output.deniesUnencryptedObjectUploads), - unknown: __expectInt(output.unknown), + allowsUnencryptedObjectUploads: __expectLong(output.allowsUnencryptedObjectUploads), + deniesUnencryptedObjectUploads: __expectLong(output.deniesUnencryptedObjectUploads), + unknown: __expectLong(output.unknown), } as any; }; @@ -8843,15 +8844,15 @@ const deserializeAws_restJson1BucketMetadata = (output: any, context: __SerdeCon ? new Date(output.bucketCreatedAt) : undefined, bucketName: __expectString(output.bucketName), - classifiableObjectCount: __expectInt(output.classifiableObjectCount), - classifiableSizeInBytes: __expectInt(output.classifiableSizeInBytes), + classifiableObjectCount: __expectLong(output.classifiableObjectCount), + classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes), jobDetails: output.jobDetails !== undefined && output.jobDetails !== null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined, lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null ? new Date(output.lastUpdated) : undefined, - objectCount: __expectInt(output.objectCount), + objectCount: __expectLong(output.objectCount), objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null ? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context) @@ -8870,8 +8871,8 @@ const deserializeAws_restJson1BucketMetadata = (output: any, context: __SerdeCon ? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context) : undefined, sharedAccess: __expectString(output.sharedAccess), - sizeInBytes: __expectInt(output.sizeInBytes), - sizeInBytesCompressed: __expectInt(output.sizeInBytesCompressed), + sizeInBytes: __expectLong(output.sizeInBytes), + sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed), tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context) @@ -8934,9 +8935,9 @@ const deserializeAws_restJson1BucketServerSideEncryption = ( const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cell => { return { cellReference: __expectString(output.cellReference), - column: __expectInt(output.column), + column: __expectLong(output.column), columnName: __expectString(output.columnName), - row: __expectInt(output.row), + row: __expectLong(output.row), } as any; }; @@ -8987,7 +8988,7 @@ const deserializeAws_restJson1ClassificationResult = (output: any, context: __Se output.sensitiveData !== undefined && output.sensitiveData !== null ? deserializeAws_restJson1SensitiveData(output.sensitiveData, context) : undefined, - sizeClassified: __expectInt(output.sizeClassified), + sizeClassified: __expectLong(output.sizeClassified), status: output.status !== undefined && output.status !== null ? deserializeAws_restJson1ClassificationResultStatus(output.status, context) @@ -9058,10 +9059,10 @@ const deserializeAws_restJson1CriterionAdditionalProperties = ( output.eqExactMatch !== undefined && output.eqExactMatch !== null ? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context) : undefined, - gt: __expectInt(output.gt), - gte: __expectInt(output.gte), - lt: __expectInt(output.lt), - lte: __expectInt(output.lte), + gt: __expectLong(output.gt), + gte: __expectLong(output.gte), + lt: __expectLong(output.lt), + lte: __expectLong(output.lte), neq: output.neq !== undefined && output.neq !== null ? deserializeAws_restJson1__listOf__string(output.neq, context) @@ -9075,7 +9076,7 @@ const deserializeAws_restJson1CustomDataIdentifiers = (output: any, context: __S output.detections !== undefined && output.detections !== null ? deserializeAws_restJson1CustomDetections(output.detections, context) : undefined, - totalCount: __expectInt(output.totalCount), + totalCount: __expectLong(output.totalCount), } as any; }; @@ -9095,7 +9096,7 @@ const deserializeAws_restJson1CustomDataIdentifierSummary = ( const deserializeAws_restJson1CustomDetection = (output: any, context: __SerdeContext): CustomDetection => { return { arn: __expectString(output.arn), - count: __expectInt(output.count), + count: __expectLong(output.count), name: __expectString(output.name), occurrences: output.occurrences !== undefined && output.occurrences !== null @@ -9121,7 +9122,7 @@ const deserializeAws_restJson1DailySchedule = (output: any, context: __SerdeCont const deserializeAws_restJson1DefaultDetection = (output: any, context: __SerdeContext): DefaultDetection => { return { - count: __expectInt(output.count), + count: __expectLong(output.count), occurrences: output.occurrences !== undefined && output.occurrences !== null ? deserializeAws_restJson1Occurrences(output.occurrences, context) @@ -9169,7 +9170,7 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): output.classificationDetails !== undefined && output.classificationDetails !== null ? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context) : undefined, - count: __expectInt(output.count), + count: __expectLong(output.count), createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined, description: __expectString(output.description), id: __expectString(output.id), @@ -9249,7 +9250,7 @@ const deserializeAws_restJson1FindingsFilterListItem = ( const deserializeAws_restJson1GroupCount = (output: any, context: __SerdeContext): GroupCount => { return { - count: __expectInt(output.count), + count: __expectLong(output.count), groupKey: __expectString(output.groupKey), } as any; }; @@ -9309,8 +9310,8 @@ const deserializeAws_restJson1IpCountry = (output: any, context: __SerdeContext) const deserializeAws_restJson1IpGeoLocation = (output: any, context: __SerdeContext): IpGeoLocation => { return { - lat: __limitedParseFloat(output.lat), - lon: __limitedParseFloat(output.lon), + lat: __limitedParseDouble(output.lat), + lon: __limitedParseDouble(output.lon), } as any; }; @@ -9428,19 +9429,19 @@ const deserializeAws_restJson1MatchingBucket = (output: any, context: __SerdeCon return { accountId: __expectString(output.accountId), bucketName: __expectString(output.bucketName), - classifiableObjectCount: __expectInt(output.classifiableObjectCount), - classifiableSizeInBytes: __expectInt(output.classifiableSizeInBytes), + classifiableObjectCount: __expectLong(output.classifiableObjectCount), + classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes), jobDetails: output.jobDetails !== undefined && output.jobDetails !== null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined, - objectCount: __expectInt(output.objectCount), + objectCount: __expectLong(output.objectCount), objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null ? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context) : undefined, - sizeInBytes: __expectInt(output.sizeInBytes), - sizeInBytesCompressed: __expectInt(output.sizeInBytesCompressed), + sizeInBytes: __expectLong(output.sizeInBytes), + sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed), unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null ? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context) @@ -9480,7 +9481,7 @@ const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): M const deserializeAws_restJson1MonthlySchedule = (output: any, context: __SerdeContext): MonthlySchedule => { return { - dayOfMonth: __expectInt(output.dayOfMonth), + dayOfMonth: __expectInt32(output.dayOfMonth), } as any; }; @@ -9489,19 +9490,19 @@ const deserializeAws_restJson1ObjectCountByEncryptionType = ( context: __SerdeContext ): ObjectCountByEncryptionType => { return { - customerManaged: __expectInt(output.customerManaged), - kmsManaged: __expectInt(output.kmsManaged), - s3Managed: __expectInt(output.s3Managed), - unencrypted: __expectInt(output.unencrypted), - unknown: __expectInt(output.unknown), + customerManaged: __expectLong(output.customerManaged), + kmsManaged: __expectLong(output.kmsManaged), + s3Managed: __expectLong(output.s3Managed), + unencrypted: __expectLong(output.unencrypted), + unknown: __expectLong(output.unknown), } as any; }; const deserializeAws_restJson1ObjectLevelStatistics = (output: any, context: __SerdeContext): ObjectLevelStatistics => { return { - fileType: __expectInt(output.fileType), - storageClass: __expectInt(output.storageClass), - total: __expectInt(output.total), + fileType: __expectLong(output.fileType), + storageClass: __expectLong(output.storageClass), + total: __expectLong(output.total), } as any; }; @@ -9540,7 +9541,7 @@ const deserializeAws_restJson1Page = (output: any, context: __SerdeContext): Pag output.offsetRange !== undefined && output.offsetRange !== null ? deserializeAws_restJson1Range(output.offsetRange, context) : undefined, - pageNumber: __expectInt(output.pageNumber), + pageNumber: __expectLong(output.pageNumber), } as any; }; @@ -9570,9 +9571,9 @@ const deserializeAws_restJson1PolicyDetails = (output: any, context: __SerdeCont const deserializeAws_restJson1Range = (output: any, context: __SerdeContext): Range => { return { - end: __expectInt(output.end), - start: __expectInt(output.start), - startColumn: __expectInt(output.startColumn), + end: __expectLong(output.end), + start: __expectLong(output.start), + startColumn: __expectLong(output.startColumn), } as any; }; @@ -9590,7 +9591,7 @@ const deserializeAws_restJson1Ranges = (output: any, context: __SerdeContext): R const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): _Record => { return { jsonPath: __expectString(output.jsonPath), - recordIndex: __expectInt(output.recordIndex), + recordIndex: __expectLong(output.recordIndex), } as any; }; @@ -9729,7 +9730,7 @@ const deserializeAws_restJson1S3Object = (output: any, context: __SerdeContext): output.serverSideEncryption !== undefined && output.serverSideEncryption !== null ? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context) : undefined, - size: __expectInt(output.size), + size: __expectLong(output.size), storageClass: __expectString(output.storageClass), tags: output.tags !== undefined && output.tags !== null @@ -9780,7 +9781,7 @@ const deserializeAws_restJson1SensitiveDataItem = (output: any, context: __Serde output.detections !== undefined && output.detections !== null ? deserializeAws_restJson1DefaultDetections(output.detections, context) : undefined, - totalCount: __expectInt(output.totalCount), + totalCount: __expectLong(output.totalCount), } as any; }; @@ -9795,7 +9796,7 @@ const deserializeAws_restJson1ServiceLimit = (output: any, context: __SerdeConte return { isServiceLimited: __expectBoolean(output.isServiceLimited), unit: __expectString(output.unit), - value: __expectInt(output.value), + value: __expectLong(output.value), } as any; }; @@ -9836,7 +9837,7 @@ const deserializeAws_restJson1SessionIssuer = (output: any, context: __SerdeCont const deserializeAws_restJson1Severity = (output: any, context: __SerdeContext): Severity => { return { description: __expectString(output.description), - score: __expectInt(output.score), + score: __expectLong(output.score), } as any; }; @@ -9864,8 +9865,8 @@ const deserializeAws_restJson1SimpleScopeTerm = (output: any, context: __SerdeCo const deserializeAws_restJson1Statistics = (output: any, context: __SerdeContext): Statistics => { return { - approximateNumberOfObjectsToProcess: __limitedParseFloat(output.approximateNumberOfObjectsToProcess), - numberOfRuns: __limitedParseFloat(output.numberOfRuns), + approximateNumberOfObjectsToProcess: __limitedParseDouble(output.approximateNumberOfObjectsToProcess), + numberOfRuns: __limitedParseDouble(output.numberOfRuns), } as any; }; diff --git a/clients/client-managedblockchain/protocols/Aws_restJson1.ts b/clients/client-managedblockchain/protocols/Aws_restJson1.ts index 494b7e101a211..f16fac1984585 100644 --- a/clients/client-managedblockchain/protocols/Aws_restJson1.ts +++ b/clients/client-managedblockchain/protocols/Aws_restJson1.ts @@ -74,7 +74,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -3427,9 +3427,9 @@ const deserializeAws_restJson1ApprovalThresholdPolicy = ( context: __SerdeContext ): ApprovalThresholdPolicy => { return { - ProposalDurationInHours: __expectInt(output.ProposalDurationInHours), + ProposalDurationInHours: __expectInt32(output.ProposalDurationInHours), ThresholdComparator: __expectString(output.ThresholdComparator), - ThresholdPercentage: __expectInt(output.ThresholdPercentage), + ThresholdPercentage: __expectInt32(output.ThresholdPercentage), } as any; }; @@ -3816,8 +3816,8 @@ const deserializeAws_restJson1Proposal = (output: any, context: __SerdeContext): ? new Date(output.ExpirationDate) : undefined, NetworkId: __expectString(output.NetworkId), - NoVoteCount: __expectInt(output.NoVoteCount), - OutstandingVoteCount: __expectInt(output.OutstandingVoteCount), + NoVoteCount: __expectInt32(output.NoVoteCount), + OutstandingVoteCount: __expectInt32(output.OutstandingVoteCount), ProposalId: __expectString(output.ProposalId), ProposedByMemberId: __expectString(output.ProposedByMemberId), ProposedByMemberName: __expectString(output.ProposedByMemberName), @@ -3826,7 +3826,7 @@ const deserializeAws_restJson1Proposal = (output: any, context: __SerdeContext): output.Tags !== undefined && output.Tags !== null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined, - YesVoteCount: __expectInt(output.YesVoteCount), + YesVoteCount: __expectInt32(output.YesVoteCount), } as any; }; diff --git a/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts b/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts index 9a27b3054f00a..b3ab683fb982d 100644 --- a/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts @@ -12,9 +12,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -223,11 +223,11 @@ const deserializeAws_json1_1EntitlementValue = (output: any, context: __SerdeCon if (__expectBoolean(output.BooleanValue) !== undefined) { return { BooleanValue: __expectBoolean(output.BooleanValue) as any }; } - if (__limitedParseFloat(output.DoubleValue) !== undefined) { - return { DoubleValue: __limitedParseFloat(output.DoubleValue) as any }; + if (__limitedParseDouble(output.DoubleValue) !== undefined) { + return { DoubleValue: __limitedParseDouble(output.DoubleValue) as any }; } - if (__expectInt(output.IntegerValue) !== undefined) { - return { IntegerValue: __expectInt(output.IntegerValue) as any }; + if (__expectInt32(output.IntegerValue) !== undefined) { + return { IntegerValue: __expectInt32(output.IntegerValue) as any }; } if (__expectString(output.StringValue) !== undefined) { return { StringValue: __expectString(output.StringValue) as any }; diff --git a/clients/client-marketplace-metering/protocols/Aws_json1_1.ts b/clients/client-marketplace-metering/protocols/Aws_json1_1.ts index 04ab19e6b7d93..98ba52d2297f8 100644 --- a/clients/client-marketplace-metering/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-metering/protocols/Aws_json1_1.ts @@ -34,7 +34,7 @@ import { UsageRecordResult, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -1087,7 +1087,7 @@ const deserializeAws_json1_1TimestampOutOfBoundsException = ( const deserializeAws_json1_1UsageAllocation = (output: any, context: __SerdeContext): UsageAllocation => { return { - AllocatedUsageQuantity: __expectInt(output.AllocatedUsageQuantity), + AllocatedUsageQuantity: __expectInt32(output.AllocatedUsageQuantity), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) @@ -1110,7 +1110,7 @@ const deserializeAws_json1_1UsageRecord = (output: any, context: __SerdeContext) return { CustomerIdentifier: __expectString(output.CustomerIdentifier), Dimension: __expectString(output.Dimension), - Quantity: __expectInt(output.Quantity), + Quantity: __expectInt32(output.Quantity), Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) diff --git a/clients/client-mediaconnect/protocols/Aws_restJson1.ts b/clients/client-mediaconnect/protocols/Aws_restJson1.ts index 27580a7ffcfc1..17abf0232adf0 100644 --- a/clients/client-mediaconnect/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconnect/protocols/Aws_restJson1.ts @@ -111,10 +111,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -4794,7 +4794,7 @@ const deserializeAws_restJson1DestinationConfiguration = ( ): DestinationConfiguration => { return { DestinationIp: __expectString(output.destinationIp), - DestinationPort: __expectInt(output.destinationPort), + DestinationPort: __expectInt32(output.destinationPort), Interface: output.interface !== undefined && output.interface !== null ? deserializeAws_restJson1Interface(output.interface, context) @@ -4805,7 +4805,7 @@ const deserializeAws_restJson1DestinationConfiguration = ( const deserializeAws_restJson1EncodingParameters = (output: any, context: __SerdeContext): EncodingParameters => { return { - CompressionFactor: __limitedParseFloat(output.compressionFactor), + CompressionFactor: __limitedParseDouble(output.compressionFactor), EncoderProfile: __expectString(output.encoderProfile), } as any; }; @@ -4826,7 +4826,7 @@ const deserializeAws_restJson1Encryption = (output: any, context: __SerdeContext const deserializeAws_restJson1Entitlement = (output: any, context: __SerdeContext): Entitlement => { return { - DataTransferSubscriberFeePercent: __expectInt(output.dataTransferSubscriberFeePercent), + DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent), Description: __expectString(output.description), Encryption: output.encryption !== undefined && output.encryption !== null @@ -4845,7 +4845,7 @@ const deserializeAws_restJson1Entitlement = (output: any, context: __SerdeContex const deserializeAws_restJson1FailoverConfig = (output: any, context: __SerdeContext): FailoverConfig => { return { FailoverMode: __expectString(output.failoverMode), - RecoveryWindow: __expectInt(output.recoveryWindow), + RecoveryWindow: __expectInt32(output.recoveryWindow), SourcePriority: output.sourcePriority !== undefined && output.sourcePriority !== null ? deserializeAws_restJson1SourcePriority(output.sourcePriority, context) @@ -4908,7 +4908,7 @@ const deserializeAws_restJson1Fmtp = (output: any, context: __SerdeContext): Fmt const deserializeAws_restJson1InputConfiguration = (output: any, context: __SerdeContext): InputConfiguration => { return { InputIp: __expectString(output.inputIp), - InputPort: __expectInt(output.inputPort), + InputPort: __expectInt32(output.inputPort), Interface: output.interface !== undefined && output.interface !== null ? deserializeAws_restJson1Interface(output.interface, context) @@ -4924,7 +4924,7 @@ const deserializeAws_restJson1Interface = (output: any, context: __SerdeContext) const deserializeAws_restJson1ListedEntitlement = (output: any, context: __SerdeContext): ListedEntitlement => { return { - DataTransferSubscriberFeePercent: __expectInt(output.dataTransferSubscriberFeePercent), + DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent), EntitlementArn: __expectString(output.entitlementArn), EntitlementName: __expectString(output.entitlementName), } as any; @@ -4947,10 +4947,10 @@ const deserializeAws_restJson1MediaStream = (output: any, context: __SerdeContex output.attributes !== undefined && output.attributes !== null ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context) : undefined, - ClockRate: __expectInt(output.clockRate), + ClockRate: __expectInt32(output.clockRate), Description: __expectString(output.description), - Fmt: __expectInt(output.fmt), - MediaStreamId: __expectInt(output.mediaStreamId), + Fmt: __expectInt32(output.fmt), + MediaStreamId: __expectInt32(output.mediaStreamId), MediaStreamName: __expectString(output.mediaStreamName), MediaStreamType: __expectString(output.mediaStreamType), VideoFormat: __expectString(output.videoFormat), @@ -5011,7 +5011,7 @@ const deserializeAws_restJson1Messages = (output: any, context: __SerdeContext): const deserializeAws_restJson1Offering = (output: any, context: __SerdeContext): Offering => { return { CurrencyCode: __expectString(output.currencyCode), - Duration: __expectInt(output.duration), + Duration: __expectInt32(output.duration), DurationUnits: __expectString(output.durationUnits), OfferingArn: __expectString(output.offeringArn), OfferingDescription: __expectString(output.offeringDescription), @@ -5026,7 +5026,7 @@ const deserializeAws_restJson1Offering = (output: any, context: __SerdeContext): const deserializeAws_restJson1Output = (output: any, context: __SerdeContext): Output => { return { - DataTransferSubscriberFeePercent: __expectInt(output.dataTransferSubscriberFeePercent), + DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent), Description: __expectString(output.description), Destination: __expectString(output.destination), Encryption: @@ -5045,7 +5045,7 @@ const deserializeAws_restJson1Output = (output: any, context: __SerdeContext): O : undefined, Name: __expectString(output.name), OutputArn: __expectString(output.outputArn), - Port: __expectInt(output.port), + Port: __expectInt32(output.port), Transport: output.transport !== undefined && output.transport !== null ? deserializeAws_restJson1Transport(output.transport, context) @@ -5060,7 +5060,7 @@ const deserializeAws_restJson1Output = (output: any, context: __SerdeContext): O const deserializeAws_restJson1Reservation = (output: any, context: __SerdeContext): Reservation => { return { CurrencyCode: __expectString(output.currencyCode), - Duration: __expectInt(output.duration), + Duration: __expectInt32(output.duration), DurationUnits: __expectString(output.durationUnits), End: __expectString(output.end), OfferingArn: __expectString(output.offeringArn), @@ -5080,14 +5080,14 @@ const deserializeAws_restJson1Reservation = (output: any, context: __SerdeContex const deserializeAws_restJson1ResourceSpecification = (output: any, context: __SerdeContext): ResourceSpecification => { return { - ReservedBitrate: __expectInt(output.reservedBitrate), + ReservedBitrate: __expectInt32(output.reservedBitrate), ResourceType: __expectString(output.resourceType), } as any; }; const deserializeAws_restJson1Source = (output: any, context: __SerdeContext): Source => { return { - DataTransferSubscriberFeePercent: __expectInt(output.dataTransferSubscriberFeePercent), + DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent), Decryption: output.decryption !== undefined && output.decryption !== null ? deserializeAws_restJson1Encryption(output.decryption, context) @@ -5095,7 +5095,7 @@ const deserializeAws_restJson1Source = (output: any, context: __SerdeContext): S Description: __expectString(output.description), EntitlementArn: __expectString(output.entitlementArn), IngestIp: __expectString(output.ingestIp), - IngestPort: __expectInt(output.ingestPort), + IngestPort: __expectInt32(output.ingestPort), MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations !== undefined && output.mediaStreamSourceConfigurations !== null ? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration( @@ -5126,13 +5126,13 @@ const deserializeAws_restJson1Transport = (output: any, context: __SerdeContext) output.cidrAllowList !== undefined && output.cidrAllowList !== null ? deserializeAws_restJson1__listOf__string(output.cidrAllowList, context) : undefined, - MaxBitrate: __expectInt(output.maxBitrate), - MaxLatency: __expectInt(output.maxLatency), - MaxSyncBuffer: __expectInt(output.maxSyncBuffer), - MinLatency: __expectInt(output.minLatency), + MaxBitrate: __expectInt32(output.maxBitrate), + MaxLatency: __expectInt32(output.maxLatency), + MaxSyncBuffer: __expectInt32(output.maxSyncBuffer), + MinLatency: __expectInt32(output.minLatency), Protocol: __expectString(output.protocol), RemoteId: __expectString(output.remoteId), - SmoothingLatency: __expectInt(output.smoothingLatency), + SmoothingLatency: __expectInt32(output.smoothingLatency), StreamId: __expectString(output.streamId), } as any; }; diff --git a/clients/client-mediaconvert/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/protocols/Aws_restJson1.ts index 0b7379f40ca86..b65ca36ea5b01 100644 --- a/clients/client-mediaconvert/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/protocols/Aws_restJson1.ts @@ -207,10 +207,10 @@ import { } from "../models/models_1"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -6661,7 +6661,7 @@ const deserializeAws_restJson1__listOf__doubleMinNegative60Max6 = (output: any, if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -6672,7 +6672,7 @@ const deserializeAws_restJson1__listOf__integerMin1Max2147483647 = (output: any, if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -6683,7 +6683,7 @@ const deserializeAws_restJson1__listOf__integerMin32Max8182 = (output: any, cont if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -6694,7 +6694,7 @@ const deserializeAws_restJson1__listOf__integerMinNegative60Max6 = (output: any, if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -7152,12 +7152,12 @@ const deserializeAws_restJson1__mapOfCaptionSelector = ( const deserializeAws_restJson1AacSettings = (output: any, context: __SerdeContext): AacSettings => { return { AudioDescriptionBroadcasterMix: __expectString(output.audioDescriptionBroadcasterMix), - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), CodecProfile: __expectString(output.codecProfile), CodingMode: __expectString(output.codingMode), RateControlMode: __expectString(output.rateControlMode), RawFormat: __expectString(output.rawFormat), - SampleRate: __expectInt(output.sampleRate), + SampleRate: __expectInt32(output.sampleRate), Specification: __expectString(output.specification), VbrQuality: __expectString(output.vbrQuality), } as any; @@ -7165,16 +7165,16 @@ const deserializeAws_restJson1AacSettings = (output: any, context: __SerdeContex const deserializeAws_restJson1Ac3Settings = (output: any, context: __SerdeContext): Ac3Settings => { return { - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), BitstreamMode: __expectString(output.bitstreamMode), CodingMode: __expectString(output.codingMode), - Dialnorm: __expectInt(output.dialnorm), + Dialnorm: __expectInt32(output.dialnorm), DynamicRangeCompressionLine: __expectString(output.dynamicRangeCompressionLine), DynamicRangeCompressionProfile: __expectString(output.dynamicRangeCompressionProfile), DynamicRangeCompressionRf: __expectString(output.dynamicRangeCompressionRf), LfeFilter: __expectString(output.lfeFilter), MetadataControl: __expectString(output.metadataControl), - SampleRate: __expectInt(output.sampleRate), + SampleRate: __expectInt32(output.sampleRate), } as any; }; @@ -7186,9 +7186,9 @@ const deserializeAws_restJson1AccelerationSettings = (output: any, context: __Se const deserializeAws_restJson1AiffSettings = (output: any, context: __SerdeContext): AiffSettings => { return { - BitDepth: __expectInt(output.bitDepth), - Channels: __expectInt(output.channels), - SampleRate: __expectInt(output.sampleRate), + BitDepth: __expectInt32(output.bitDepth), + Channels: __expectInt32(output.channels), + SampleRate: __expectInt32(output.sampleRate), } as any; }; @@ -7198,7 +7198,7 @@ const deserializeAws_restJson1AncillarySourceSettings = ( ): AncillarySourceSettings => { return { Convert608To708: __expectString(output.convert608To708), - SourceAncillaryChannelNumber: __expectInt(output.sourceAncillaryChannelNumber), + SourceAncillaryChannelNumber: __expectInt32(output.sourceAncillaryChannelNumber), TerminateCaptions: __expectString(output.terminateCaptions), } as any; }; @@ -7269,7 +7269,7 @@ const deserializeAws_restJson1AudioDescription = (output: any, context: __SerdeC ? deserializeAws_restJson1AudioNormalizationSettings(output.audioNormalizationSettings, context) : undefined, AudioSourceName: __expectString(output.audioSourceName), - AudioType: __expectInt(output.audioType), + AudioType: __expectInt32(output.audioType), AudioTypeControl: __expectString(output.audioTypeControl), CodecSettings: output.codecSettings !== undefined && output.codecSettings !== null @@ -7293,10 +7293,10 @@ const deserializeAws_restJson1AudioNormalizationSettings = ( return { Algorithm: __expectString(output.algorithm), AlgorithmControl: __expectString(output.algorithmControl), - CorrectionGateLevel: __expectInt(output.correctionGateLevel), + CorrectionGateLevel: __expectInt32(output.correctionGateLevel), LoudnessLogging: __expectString(output.loudnessLogging), PeakCalculation: __expectString(output.peakCalculation), - TargetLkfs: __limitedParseFloat(output.targetLkfs), + TargetLkfs: __limitedParseDouble(output.targetLkfs), } as any; }; @@ -7310,12 +7310,12 @@ const deserializeAws_restJson1AudioSelector = (output: any, context: __SerdeCont ? deserializeAws_restJson1HlsRenditionGroupSettings(output.hlsRenditionGroupSettings, context) : undefined, LanguageCode: __expectString(output.languageCode), - Offset: __expectInt(output.offset), + Offset: __expectInt32(output.offset), Pids: output.pids !== undefined && output.pids !== null ? deserializeAws_restJson1__listOf__integerMin1Max2147483647(output.pids, context) : undefined, - ProgramSelection: __expectInt(output.programSelection), + ProgramSelection: __expectInt32(output.programSelection), RemixSettings: output.remixSettings !== undefined && output.remixSettings !== null ? deserializeAws_restJson1RemixSettings(output.remixSettings, context) @@ -7339,9 +7339,9 @@ const deserializeAws_restJson1AudioSelectorGroup = (output: any, context: __Serd const deserializeAws_restJson1AutomatedAbrSettings = (output: any, context: __SerdeContext): AutomatedAbrSettings => { return { - MaxAbrBitrate: __expectInt(output.maxAbrBitrate), - MaxRenditions: __expectInt(output.maxRenditions), - MinAbrBitrate: __expectInt(output.minAbrBitrate), + MaxAbrBitrate: __expectInt32(output.maxAbrBitrate), + MaxRenditions: __expectInt32(output.maxRenditions), + MinAbrBitrate: __expectInt32(output.minAbrBitrate), } as any; }; @@ -7359,8 +7359,8 @@ const deserializeAws_restJson1AutomatedEncodingSettings = ( const deserializeAws_restJson1Av1QvbrSettings = (output: any, context: __SerdeContext): Av1QvbrSettings => { return { - QvbrQualityLevel: __expectInt(output.qvbrQualityLevel), - QvbrQualityLevelFineTune: __limitedParseFloat(output.qvbrQualityLevelFineTune), + QvbrQualityLevel: __expectInt32(output.qvbrQualityLevel), + QvbrQualityLevelFineTune: __limitedParseDouble(output.qvbrQualityLevelFineTune), } as any; }; @@ -7369,17 +7369,17 @@ const deserializeAws_restJson1Av1Settings = (output: any, context: __SerdeContex AdaptiveQuantization: __expectString(output.adaptiveQuantization), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - GopSize: __limitedParseFloat(output.gopSize), - MaxBitrate: __expectInt(output.maxBitrate), - NumberBFramesBetweenReferenceFrames: __expectInt(output.numberBFramesBetweenReferenceFrames), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + GopSize: __limitedParseDouble(output.gopSize), + MaxBitrate: __expectInt32(output.maxBitrate), + NumberBFramesBetweenReferenceFrames: __expectInt32(output.numberBFramesBetweenReferenceFrames), QvbrSettings: output.qvbrSettings !== undefined && output.qvbrSettings !== null ? deserializeAws_restJson1Av1QvbrSettings(output.qvbrSettings, context) : undefined, RateControlMode: __expectString(output.rateControlMode), - Slices: __expectInt(output.slices), + Slices: __expectInt32(output.slices), SpatialAdaptiveQuantization: __expectString(output.spatialAdaptiveQuantization), } as any; }; @@ -7399,8 +7399,8 @@ const deserializeAws_restJson1AvcIntraSettings = (output: any, context: __SerdeC : undefined, FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), InterlaceMode: __expectString(output.interlaceMode), ScanTypeConversionMode: __expectString(output.scanTypeConversionMode), SlowPal: __expectString(output.slowPal), @@ -7421,21 +7421,21 @@ const deserializeAws_restJson1BurninDestinationSettings = ( return { Alignment: __expectString(output.alignment), BackgroundColor: __expectString(output.backgroundColor), - BackgroundOpacity: __expectInt(output.backgroundOpacity), + BackgroundOpacity: __expectInt32(output.backgroundOpacity), FontColor: __expectString(output.fontColor), - FontOpacity: __expectInt(output.fontOpacity), - FontResolution: __expectInt(output.fontResolution), + FontOpacity: __expectInt32(output.fontOpacity), + FontResolution: __expectInt32(output.fontResolution), FontScript: __expectString(output.fontScript), - FontSize: __expectInt(output.fontSize), + FontSize: __expectInt32(output.fontSize), OutlineColor: __expectString(output.outlineColor), - OutlineSize: __expectInt(output.outlineSize), + OutlineSize: __expectInt32(output.outlineSize), ShadowColor: __expectString(output.shadowColor), - ShadowOpacity: __expectInt(output.shadowOpacity), - ShadowXOffset: __expectInt(output.shadowXOffset), - ShadowYOffset: __expectInt(output.shadowYOffset), + ShadowOpacity: __expectInt32(output.shadowOpacity), + ShadowXOffset: __expectInt32(output.shadowXOffset), + ShadowYOffset: __expectInt32(output.shadowYOffset), TeletextSpacing: __expectString(output.teletextSpacing), - XPosition: __expectInt(output.xPosition), - YPosition: __expectInt(output.yPosition), + XPosition: __expectInt32(output.xPosition), + YPosition: __expectInt32(output.yPosition), } as any; }; @@ -7528,8 +7528,8 @@ const deserializeAws_restJson1CaptionSourceFramerate = ( context: __SerdeContext ): CaptionSourceFramerate => { return { - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), } as any; }; @@ -7627,16 +7627,16 @@ const deserializeAws_restJson1CmafGroupSettings = (output: any, context: __Serde output.encryption !== undefined && output.encryption !== null ? deserializeAws_restJson1CmafEncryptionSettings(output.encryption, context) : undefined, - FragmentLength: __expectInt(output.fragmentLength), + FragmentLength: __expectInt32(output.fragmentLength), ImageBasedTrickPlay: __expectString(output.imageBasedTrickPlay), ManifestCompression: __expectString(output.manifestCompression), ManifestDurationFormat: __expectString(output.manifestDurationFormat), - MinBufferTime: __expectInt(output.minBufferTime), - MinFinalSegmentLength: __limitedParseFloat(output.minFinalSegmentLength), + MinBufferTime: __expectInt32(output.minBufferTime), + MinFinalSegmentLength: __limitedParseDouble(output.minFinalSegmentLength), MpdProfile: __expectString(output.mpdProfile), PtsOffsetHandlingForBFrames: __expectString(output.ptsOffsetHandlingForBFrames), SegmentControl: __expectString(output.segmentControl), - SegmentLength: __expectInt(output.segmentLength), + SegmentLength: __expectInt32(output.segmentLength), StreamInfResolution: __expectString(output.streamInfResolution), TargetDurationCompatibilityMode: __expectString(output.targetDurationCompatibilityMode), WriteDashManifest: __expectString(output.writeDashManifest), @@ -7660,16 +7660,16 @@ const deserializeAws_restJson1CmfcSettings = (output: any, context: __SerdeConte const deserializeAws_restJson1ColorCorrector = (output: any, context: __SerdeContext): ColorCorrector => { return { - Brightness: __expectInt(output.brightness), + Brightness: __expectInt32(output.brightness), ColorSpaceConversion: __expectString(output.colorSpaceConversion), - Contrast: __expectInt(output.contrast), + Contrast: __expectInt32(output.contrast), Hdr10Metadata: output.hdr10Metadata !== undefined && output.hdr10Metadata !== null ? deserializeAws_restJson1Hdr10Metadata(output.hdr10Metadata, context) : undefined, - Hue: __expectInt(output.hue), + Hue: __expectInt32(output.hue), SampleRangeConversion: __expectString(output.sampleRangeConversion), - Saturation: __expectInt(output.saturation), + Saturation: __expectInt32(output.saturation), } as any; }; @@ -7754,15 +7754,15 @@ const deserializeAws_restJson1DashIsoGroupSettings = (output: any, context: __Se output.encryption !== undefined && output.encryption !== null ? deserializeAws_restJson1DashIsoEncryptionSettings(output.encryption, context) : undefined, - FragmentLength: __expectInt(output.fragmentLength), + FragmentLength: __expectInt32(output.fragmentLength), HbbtvCompliance: __expectString(output.hbbtvCompliance), ImageBasedTrickPlay: __expectString(output.imageBasedTrickPlay), - MinBufferTime: __expectInt(output.minBufferTime), - MinFinalSegmentLength: __limitedParseFloat(output.minFinalSegmentLength), + MinBufferTime: __expectInt32(output.minBufferTime), + MinFinalSegmentLength: __limitedParseDouble(output.minFinalSegmentLength), MpdProfile: __expectString(output.mpdProfile), PtsOffsetHandlingForBFrames: __expectString(output.ptsOffsetHandlingForBFrames), SegmentControl: __expectString(output.segmentControl), - SegmentLength: __expectInt(output.segmentLength), + SegmentLength: __expectInt32(output.segmentLength), WriteSegmentTimelineInRepresentation: __expectString(output.writeSegmentTimelineInRepresentation), } as any; }; @@ -7800,23 +7800,23 @@ const deserializeAws_restJson1DolbyVisionLevel6Metadata = ( context: __SerdeContext ): DolbyVisionLevel6Metadata => { return { - MaxCll: __expectInt(output.maxCll), - MaxFall: __expectInt(output.maxFall), + MaxCll: __expectInt32(output.maxCll), + MaxFall: __expectInt32(output.maxFall), } as any; }; const deserializeAws_restJson1DvbNitSettings = (output: any, context: __SerdeContext): DvbNitSettings => { return { - NetworkId: __expectInt(output.networkId), + NetworkId: __expectInt32(output.networkId), NetworkName: __expectString(output.networkName), - NitInterval: __expectInt(output.nitInterval), + NitInterval: __expectInt32(output.nitInterval), } as any; }; const deserializeAws_restJson1DvbSdtSettings = (output: any, context: __SerdeContext): DvbSdtSettings => { return { OutputSdt: __expectString(output.outputSdt), - SdtInterval: __expectInt(output.sdtInterval), + SdtInterval: __expectInt32(output.sdtInterval), ServiceName: __expectString(output.serviceName), ServiceProviderName: __expectString(output.serviceProviderName), } as any; @@ -7829,45 +7829,45 @@ const deserializeAws_restJson1DvbSubDestinationSettings = ( return { Alignment: __expectString(output.alignment), BackgroundColor: __expectString(output.backgroundColor), - BackgroundOpacity: __expectInt(output.backgroundOpacity), + BackgroundOpacity: __expectInt32(output.backgroundOpacity), DdsHandling: __expectString(output.ddsHandling), - DdsXCoordinate: __expectInt(output.ddsXCoordinate), - DdsYCoordinate: __expectInt(output.ddsYCoordinate), + DdsXCoordinate: __expectInt32(output.ddsXCoordinate), + DdsYCoordinate: __expectInt32(output.ddsYCoordinate), FontColor: __expectString(output.fontColor), - FontOpacity: __expectInt(output.fontOpacity), - FontResolution: __expectInt(output.fontResolution), + FontOpacity: __expectInt32(output.fontOpacity), + FontResolution: __expectInt32(output.fontResolution), FontScript: __expectString(output.fontScript), - FontSize: __expectInt(output.fontSize), - Height: __expectInt(output.height), + FontSize: __expectInt32(output.fontSize), + Height: __expectInt32(output.height), OutlineColor: __expectString(output.outlineColor), - OutlineSize: __expectInt(output.outlineSize), + OutlineSize: __expectInt32(output.outlineSize), ShadowColor: __expectString(output.shadowColor), - ShadowOpacity: __expectInt(output.shadowOpacity), - ShadowXOffset: __expectInt(output.shadowXOffset), - ShadowYOffset: __expectInt(output.shadowYOffset), + ShadowOpacity: __expectInt32(output.shadowOpacity), + ShadowXOffset: __expectInt32(output.shadowXOffset), + ShadowYOffset: __expectInt32(output.shadowYOffset), SubtitlingType: __expectString(output.subtitlingType), TeletextSpacing: __expectString(output.teletextSpacing), - Width: __expectInt(output.width), - XPosition: __expectInt(output.xPosition), - YPosition: __expectInt(output.yPosition), + Width: __expectInt32(output.width), + XPosition: __expectInt32(output.xPosition), + YPosition: __expectInt32(output.yPosition), } as any; }; const deserializeAws_restJson1DvbSubSourceSettings = (output: any, context: __SerdeContext): DvbSubSourceSettings => { return { - Pid: __expectInt(output.pid), + Pid: __expectInt32(output.pid), } as any; }; const deserializeAws_restJson1DvbTdtSettings = (output: any, context: __SerdeContext): DvbTdtSettings => { return { - TdtInterval: __expectInt(output.tdtInterval), + TdtInterval: __expectInt32(output.tdtInterval), } as any; }; const deserializeAws_restJson1Eac3AtmosSettings = (output: any, context: __SerdeContext): Eac3AtmosSettings => { return { - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), BitstreamMode: __expectString(output.bitstreamMode), CodingMode: __expectString(output.codingMode), DialogueIntelligence: __expectString(output.dialogueIntelligence), @@ -7875,13 +7875,13 @@ const deserializeAws_restJson1Eac3AtmosSettings = (output: any, context: __Serde DynamicRangeCompressionLine: __expectString(output.dynamicRangeCompressionLine), DynamicRangeCompressionRf: __expectString(output.dynamicRangeCompressionRf), DynamicRangeControl: __expectString(output.dynamicRangeControl), - LoRoCenterMixLevel: __limitedParseFloat(output.loRoCenterMixLevel), - LoRoSurroundMixLevel: __limitedParseFloat(output.loRoSurroundMixLevel), - LtRtCenterMixLevel: __limitedParseFloat(output.ltRtCenterMixLevel), - LtRtSurroundMixLevel: __limitedParseFloat(output.ltRtSurroundMixLevel), + LoRoCenterMixLevel: __limitedParseDouble(output.loRoCenterMixLevel), + LoRoSurroundMixLevel: __limitedParseDouble(output.loRoSurroundMixLevel), + LtRtCenterMixLevel: __limitedParseDouble(output.ltRtCenterMixLevel), + LtRtSurroundMixLevel: __limitedParseDouble(output.ltRtSurroundMixLevel), MeteringMode: __expectString(output.meteringMode), - SampleRate: __expectInt(output.sampleRate), - SpeechThreshold: __expectInt(output.speechThreshold), + SampleRate: __expectInt32(output.sampleRate), + SpeechThreshold: __expectInt32(output.speechThreshold), StereoDownmix: __expectString(output.stereoDownmix), SurroundExMode: __expectString(output.surroundExMode), } as any; @@ -7890,23 +7890,23 @@ const deserializeAws_restJson1Eac3AtmosSettings = (output: any, context: __Serde const deserializeAws_restJson1Eac3Settings = (output: any, context: __SerdeContext): Eac3Settings => { return { AttenuationControl: __expectString(output.attenuationControl), - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), BitstreamMode: __expectString(output.bitstreamMode), CodingMode: __expectString(output.codingMode), DcFilter: __expectString(output.dcFilter), - Dialnorm: __expectInt(output.dialnorm), + Dialnorm: __expectInt32(output.dialnorm), DynamicRangeCompressionLine: __expectString(output.dynamicRangeCompressionLine), DynamicRangeCompressionRf: __expectString(output.dynamicRangeCompressionRf), LfeControl: __expectString(output.lfeControl), LfeFilter: __expectString(output.lfeFilter), - LoRoCenterMixLevel: __limitedParseFloat(output.loRoCenterMixLevel), - LoRoSurroundMixLevel: __limitedParseFloat(output.loRoSurroundMixLevel), - LtRtCenterMixLevel: __limitedParseFloat(output.ltRtCenterMixLevel), - LtRtSurroundMixLevel: __limitedParseFloat(output.ltRtSurroundMixLevel), + LoRoCenterMixLevel: __limitedParseDouble(output.loRoCenterMixLevel), + LoRoSurroundMixLevel: __limitedParseDouble(output.loRoSurroundMixLevel), + LtRtCenterMixLevel: __limitedParseDouble(output.ltRtCenterMixLevel), + LtRtSurroundMixLevel: __limitedParseDouble(output.ltRtSurroundMixLevel), MetadataControl: __expectString(output.metadataControl), PassthroughControl: __expectString(output.passthroughControl), PhaseControl: __expectString(output.phaseControl), - SampleRate: __expectInt(output.sampleRate), + SampleRate: __expectInt32(output.sampleRate), StereoDownmix: __expectString(output.stereoDownmix), SurroundExMode: __expectString(output.surroundExMode), SurroundMode: __expectString(output.surroundMode), @@ -7918,8 +7918,8 @@ const deserializeAws_restJson1EmbeddedDestinationSettings = ( context: __SerdeContext ): EmbeddedDestinationSettings => { return { - Destination608ChannelNumber: __expectInt(output.destination608ChannelNumber), - Destination708ServiceNumber: __expectInt(output.destination708ServiceNumber), + Destination608ChannelNumber: __expectInt32(output.destination608ChannelNumber), + Destination708ServiceNumber: __expectInt32(output.destination708ServiceNumber), } as any; }; @@ -7929,8 +7929,8 @@ const deserializeAws_restJson1EmbeddedSourceSettings = ( ): EmbeddedSourceSettings => { return { Convert608To708: __expectString(output.convert608To708), - Source608ChannelNumber: __expectInt(output.source608ChannelNumber), - Source608TrackNumber: __expectInt(output.source608TrackNumber), + Source608ChannelNumber: __expectInt32(output.source608ChannelNumber), + Source608TrackNumber: __expectInt32(output.source608TrackNumber), TerminateCaptions: __expectString(output.terminateCaptions), } as any; }; @@ -7959,7 +7959,7 @@ const deserializeAws_restJson1EsamSettings = (output: any, context: __SerdeConte context ) : undefined, - ResponseSignalPreroll: __expectInt(output.responseSignalPreroll), + ResponseSignalPreroll: __expectInt32(output.responseSignalPreroll), SignalProcessingNotification: output.signalProcessingNotification !== undefined && output.signalProcessingNotification !== null ? deserializeAws_restJson1EsamSignalProcessingNotification(output.signalProcessingNotification, context) @@ -8007,31 +8007,31 @@ const deserializeAws_restJson1FileSourceSettings = (output: any, context: __Serd ? deserializeAws_restJson1CaptionSourceFramerate(output.framerate, context) : undefined, SourceFile: __expectString(output.sourceFile), - TimeDelta: __expectInt(output.timeDelta), + TimeDelta: __expectInt32(output.timeDelta), } as any; }; const deserializeAws_restJson1FrameCaptureSettings = (output: any, context: __SerdeContext): FrameCaptureSettings => { return { - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - MaxCaptures: __expectInt(output.maxCaptures), - Quality: __expectInt(output.quality), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + MaxCaptures: __expectInt32(output.maxCaptures), + Quality: __expectInt32(output.quality), } as any; }; const deserializeAws_restJson1H264QvbrSettings = (output: any, context: __SerdeContext): H264QvbrSettings => { return { - MaxAverageBitrate: __expectInt(output.maxAverageBitrate), - QvbrQualityLevel: __expectInt(output.qvbrQualityLevel), - QvbrQualityLevelFineTune: __limitedParseFloat(output.qvbrQualityLevelFineTune), + MaxAverageBitrate: __expectInt32(output.maxAverageBitrate), + QvbrQualityLevel: __expectInt32(output.qvbrQualityLevel), + QvbrQualityLevelFineTune: __limitedParseDouble(output.qvbrQualityLevelFineTune), } as any; }; const deserializeAws_restJson1H264Settings = (output: any, context: __SerdeContext): H264Settings => { return { AdaptiveQuantization: __expectString(output.adaptiveQuantization), - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), CodecLevel: __expectString(output.codecLevel), CodecProfile: __expectString(output.codecProfile), DynamicSubGop: __expectString(output.dynamicSubGop), @@ -8040,22 +8040,22 @@ const deserializeAws_restJson1H264Settings = (output: any, context: __SerdeConte FlickerAdaptiveQuantization: __expectString(output.flickerAdaptiveQuantization), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), GopBReference: __expectString(output.gopBReference), - GopClosedCadence: __expectInt(output.gopClosedCadence), - GopSize: __limitedParseFloat(output.gopSize), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + GopSize: __limitedParseDouble(output.gopSize), GopSizeUnits: __expectString(output.gopSizeUnits), - HrdBufferInitialFillPercentage: __expectInt(output.hrdBufferInitialFillPercentage), - HrdBufferSize: __expectInt(output.hrdBufferSize), + HrdBufferInitialFillPercentage: __expectInt32(output.hrdBufferInitialFillPercentage), + HrdBufferSize: __expectInt32(output.hrdBufferSize), InterlaceMode: __expectString(output.interlaceMode), - MaxBitrate: __expectInt(output.maxBitrate), - MinIInterval: __expectInt(output.minIInterval), - NumberBFramesBetweenReferenceFrames: __expectInt(output.numberBFramesBetweenReferenceFrames), - NumberReferenceFrames: __expectInt(output.numberReferenceFrames), + MaxBitrate: __expectInt32(output.maxBitrate), + MinIInterval: __expectInt32(output.minIInterval), + NumberBFramesBetweenReferenceFrames: __expectInt32(output.numberBFramesBetweenReferenceFrames), + NumberReferenceFrames: __expectInt32(output.numberReferenceFrames), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), QualityTuningLevel: __expectString(output.qualityTuningLevel), QvbrSettings: output.qvbrSettings !== undefined && output.qvbrSettings !== null @@ -8065,9 +8065,9 @@ const deserializeAws_restJson1H264Settings = (output: any, context: __SerdeConte RepeatPps: __expectString(output.repeatPps), ScanTypeConversionMode: __expectString(output.scanTypeConversionMode), SceneChangeDetect: __expectString(output.sceneChangeDetect), - Slices: __expectInt(output.slices), + Slices: __expectInt32(output.slices), SlowPal: __expectString(output.slowPal), - Softness: __expectInt(output.softness), + Softness: __expectInt32(output.softness), SpatialAdaptiveQuantization: __expectString(output.spatialAdaptiveQuantization), Syntax: __expectString(output.syntax), Telecine: __expectString(output.telecine), @@ -8078,9 +8078,9 @@ const deserializeAws_restJson1H264Settings = (output: any, context: __SerdeConte const deserializeAws_restJson1H265QvbrSettings = (output: any, context: __SerdeContext): H265QvbrSettings => { return { - MaxAverageBitrate: __expectInt(output.maxAverageBitrate), - QvbrQualityLevel: __expectInt(output.qvbrQualityLevel), - QvbrQualityLevelFineTune: __limitedParseFloat(output.qvbrQualityLevelFineTune), + MaxAverageBitrate: __expectInt32(output.maxAverageBitrate), + QvbrQualityLevel: __expectInt32(output.qvbrQualityLevel), + QvbrQualityLevelFineTune: __limitedParseDouble(output.qvbrQualityLevelFineTune), } as any; }; @@ -8088,29 +8088,29 @@ const deserializeAws_restJson1H265Settings = (output: any, context: __SerdeConte return { AdaptiveQuantization: __expectString(output.adaptiveQuantization), AlternateTransferFunctionSei: __expectString(output.alternateTransferFunctionSei), - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), CodecLevel: __expectString(output.codecLevel), CodecProfile: __expectString(output.codecProfile), DynamicSubGop: __expectString(output.dynamicSubGop), FlickerAdaptiveQuantization: __expectString(output.flickerAdaptiveQuantization), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), GopBReference: __expectString(output.gopBReference), - GopClosedCadence: __expectInt(output.gopClosedCadence), - GopSize: __limitedParseFloat(output.gopSize), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + GopSize: __limitedParseDouble(output.gopSize), GopSizeUnits: __expectString(output.gopSizeUnits), - HrdBufferInitialFillPercentage: __expectInt(output.hrdBufferInitialFillPercentage), - HrdBufferSize: __expectInt(output.hrdBufferSize), + HrdBufferInitialFillPercentage: __expectInt32(output.hrdBufferInitialFillPercentage), + HrdBufferSize: __expectInt32(output.hrdBufferSize), InterlaceMode: __expectString(output.interlaceMode), - MaxBitrate: __expectInt(output.maxBitrate), - MinIInterval: __expectInt(output.minIInterval), - NumberBFramesBetweenReferenceFrames: __expectInt(output.numberBFramesBetweenReferenceFrames), - NumberReferenceFrames: __expectInt(output.numberReferenceFrames), + MaxBitrate: __expectInt32(output.maxBitrate), + MinIInterval: __expectInt32(output.minIInterval), + NumberBFramesBetweenReferenceFrames: __expectInt32(output.numberBFramesBetweenReferenceFrames), + NumberReferenceFrames: __expectInt32(output.numberReferenceFrames), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), QualityTuningLevel: __expectString(output.qualityTuningLevel), QvbrSettings: output.qvbrSettings !== undefined && output.qvbrSettings !== null @@ -8120,7 +8120,7 @@ const deserializeAws_restJson1H265Settings = (output: any, context: __SerdeConte SampleAdaptiveOffsetFilterMode: __expectString(output.sampleAdaptiveOffsetFilterMode), ScanTypeConversionMode: __expectString(output.scanTypeConversionMode), SceneChangeDetect: __expectString(output.sceneChangeDetect), - Slices: __expectInt(output.slices), + Slices: __expectInt32(output.slices), SlowPal: __expectString(output.slowPal), SpatialAdaptiveQuantization: __expectString(output.spatialAdaptiveQuantization), Telecine: __expectString(output.telecine), @@ -8134,25 +8134,25 @@ const deserializeAws_restJson1H265Settings = (output: any, context: __SerdeConte const deserializeAws_restJson1Hdr10Metadata = (output: any, context: __SerdeContext): Hdr10Metadata => { return { - BluePrimaryX: __expectInt(output.bluePrimaryX), - BluePrimaryY: __expectInt(output.bluePrimaryY), - GreenPrimaryX: __expectInt(output.greenPrimaryX), - GreenPrimaryY: __expectInt(output.greenPrimaryY), - MaxContentLightLevel: __expectInt(output.maxContentLightLevel), - MaxFrameAverageLightLevel: __expectInt(output.maxFrameAverageLightLevel), - MaxLuminance: __expectInt(output.maxLuminance), - MinLuminance: __expectInt(output.minLuminance), - RedPrimaryX: __expectInt(output.redPrimaryX), - RedPrimaryY: __expectInt(output.redPrimaryY), - WhitePointX: __expectInt(output.whitePointX), - WhitePointY: __expectInt(output.whitePointY), + BluePrimaryX: __expectInt32(output.bluePrimaryX), + BluePrimaryY: __expectInt32(output.bluePrimaryY), + GreenPrimaryX: __expectInt32(output.greenPrimaryX), + GreenPrimaryY: __expectInt32(output.greenPrimaryY), + MaxContentLightLevel: __expectInt32(output.maxContentLightLevel), + MaxFrameAverageLightLevel: __expectInt32(output.maxFrameAverageLightLevel), + MaxLuminance: __expectInt32(output.maxLuminance), + MinLuminance: __expectInt32(output.minLuminance), + RedPrimaryX: __expectInt32(output.redPrimaryX), + RedPrimaryY: __expectInt32(output.redPrimaryY), + WhitePointX: __expectInt32(output.whitePointX), + WhitePointY: __expectInt32(output.whitePointY), } as any; }; const deserializeAws_restJson1Hdr10Plus = (output: any, context: __SerdeContext): Hdr10Plus => { return { - MasteringMonitorNits: __expectInt(output.masteringMonitorNits), - TargetMonitorNits: __expectInt(output.targetMonitorNits), + MasteringMonitorNits: __expectInt32(output.masteringMonitorNits), + TargetMonitorNits: __expectInt32(output.targetMonitorNits), } as any; }; @@ -8171,7 +8171,7 @@ const deserializeAws_restJson1HlsCaptionLanguageMapping = ( context: __SerdeContext ): HlsCaptionLanguageMapping => { return { - CaptionChannel: __expectInt(output.captionChannel), + CaptionChannel: __expectInt32(output.captionChannel), CustomLanguageCode: __expectString(output.customLanguageCode), LanguageCode: __expectString(output.languageCode), LanguageDescription: __expectString(output.languageDescription), @@ -8228,19 +8228,19 @@ const deserializeAws_restJson1HlsGroupSettings = (output: any, context: __SerdeC ImageBasedTrickPlay: __expectString(output.imageBasedTrickPlay), ManifestCompression: __expectString(output.manifestCompression), ManifestDurationFormat: __expectString(output.manifestDurationFormat), - MinFinalSegmentLength: __limitedParseFloat(output.minFinalSegmentLength), - MinSegmentLength: __expectInt(output.minSegmentLength), + MinFinalSegmentLength: __limitedParseDouble(output.minFinalSegmentLength), + MinSegmentLength: __expectInt32(output.minSegmentLength), OutputSelection: __expectString(output.outputSelection), ProgramDateTime: __expectString(output.programDateTime), - ProgramDateTimePeriod: __expectInt(output.programDateTimePeriod), + ProgramDateTimePeriod: __expectInt32(output.programDateTimePeriod), SegmentControl: __expectString(output.segmentControl), - SegmentLength: __expectInt(output.segmentLength), - SegmentsPerSubdirectory: __expectInt(output.segmentsPerSubdirectory), + SegmentLength: __expectInt32(output.segmentLength), + SegmentsPerSubdirectory: __expectInt32(output.segmentsPerSubdirectory), StreamInfResolution: __expectString(output.streamInfResolution), TargetDurationCompatibilityMode: __expectString(output.targetDurationCompatibilityMode), TimedMetadataId3Frame: __expectString(output.timedMetadataId3Frame), - TimedMetadataId3Period: __expectInt(output.timedMetadataId3Period), - TimestampDeltaMilliseconds: __expectInt(output.timestampDeltaMilliseconds), + TimedMetadataId3Period: __expectInt32(output.timedMetadataId3Period), + TimestampDeltaMilliseconds: __expectInt32(output.timestampDeltaMilliseconds), } as any; }; @@ -8269,9 +8269,9 @@ const deserializeAws_restJson1HlsSettings = (output: any, context: __SerdeContex const deserializeAws_restJson1HopDestination = (output: any, context: __SerdeContext): HopDestination => { return { - Priority: __expectInt(output.priority), + Priority: __expectInt32(output.priority), Queue: __expectString(output.queue), - WaitMinutes: __expectInt(output.waitMinutes), + WaitMinutes: __expectInt32(output.waitMinutes), } as any; }; @@ -8326,7 +8326,7 @@ const deserializeAws_restJson1Input = (output: any, context: __SerdeContext): In DenoiseFilter: __expectString(output.denoiseFilter), FileInput: __expectString(output.fileInput), FilterEnable: __expectString(output.filterEnable), - FilterStrength: __expectInt(output.filterStrength), + FilterStrength: __expectInt32(output.filterStrength), ImageInserter: output.imageInserter !== undefined && output.imageInserter !== null ? deserializeAws_restJson1ImageInserter(output.imageInserter, context) @@ -8340,7 +8340,7 @@ const deserializeAws_restJson1Input = (output: any, context: __SerdeContext): In output.position !== undefined && output.position !== null ? deserializeAws_restJson1Rectangle(output.position, context) : undefined, - ProgramNumber: __expectInt(output.programNumber), + ProgramNumber: __expectInt32(output.programNumber), PsiControl: __expectString(output.psiControl), SupplementalImps: output.supplementalImps !== undefined && output.supplementalImps !== null @@ -8395,7 +8395,7 @@ const deserializeAws_restJson1InputTemplate = (output: any, context: __SerdeCont DeblockFilter: __expectString(output.deblockFilter), DenoiseFilter: __expectString(output.denoiseFilter), FilterEnable: __expectString(output.filterEnable), - FilterStrength: __expectInt(output.filterStrength), + FilterStrength: __expectInt32(output.filterStrength), ImageInserter: output.imageInserter !== undefined && output.imageInserter !== null ? deserializeAws_restJson1ImageInserter(output.imageInserter, context) @@ -8409,7 +8409,7 @@ const deserializeAws_restJson1InputTemplate = (output: any, context: __SerdeCont output.position !== undefined && output.position !== null ? deserializeAws_restJson1Rectangle(output.position, context) : undefined, - ProgramNumber: __expectInt(output.programNumber), + ProgramNumber: __expectInt32(output.programNumber), PsiControl: __expectString(output.psiControl), TimecodeSource: __expectString(output.timecodeSource), TimecodeStart: __expectString(output.timecodeStart), @@ -8422,17 +8422,17 @@ const deserializeAws_restJson1InputTemplate = (output: any, context: __SerdeCont const deserializeAws_restJson1InsertableImage = (output: any, context: __SerdeContext): InsertableImage => { return { - Duration: __expectInt(output.duration), - FadeIn: __expectInt(output.fadeIn), - FadeOut: __expectInt(output.fadeOut), - Height: __expectInt(output.height), + Duration: __expectInt32(output.duration), + FadeIn: __expectInt32(output.fadeIn), + FadeOut: __expectInt32(output.fadeOut), + Height: __expectInt32(output.height), ImageInserterInput: __expectString(output.imageInserterInput), - ImageX: __expectInt(output.imageX), - ImageY: __expectInt(output.imageY), - Layer: __expectInt(output.layer), - Opacity: __expectInt(output.opacity), + ImageX: __expectInt32(output.imageX), + ImageY: __expectInt32(output.imageY), + Layer: __expectInt32(output.layer), + Opacity: __expectInt32(output.opacity), StartTime: __expectString(output.startTime), - Width: __expectInt(output.width), + Width: __expectInt32(output.width), } as any; }; @@ -8450,14 +8450,14 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job ? new Date(Math.round(output.createdAt * 1000)) : undefined, CurrentPhase: __expectString(output.currentPhase), - ErrorCode: __expectInt(output.errorCode), + ErrorCode: __expectInt32(output.errorCode), ErrorMessage: __expectString(output.errorMessage), HopDestinations: output.hopDestinations !== undefined && output.hopDestinations !== null ? deserializeAws_restJson1__listOfHopDestination(output.hopDestinations, context) : undefined, Id: __expectString(output.id), - JobPercentComplete: __expectInt(output.jobPercentComplete), + JobPercentComplete: __expectInt32(output.jobPercentComplete), JobTemplate: __expectString(output.jobTemplate), Messages: output.messages !== undefined && output.messages !== null @@ -8467,13 +8467,13 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job output.outputGroupDetails !== undefined && output.outputGroupDetails !== null ? deserializeAws_restJson1__listOfOutputGroupDetail(output.outputGroupDetails, context) : undefined, - Priority: __expectInt(output.priority), + Priority: __expectInt32(output.priority), Queue: __expectString(output.queue), QueueTransitions: output.queueTransitions !== undefined && output.queueTransitions !== null ? deserializeAws_restJson1__listOfQueueTransition(output.queueTransitions, context) : undefined, - RetryCount: __expectInt(output.retryCount), + RetryCount: __expectInt32(output.retryCount), Role: __expectString(output.role), Settings: output.settings !== undefined && output.settings !== null @@ -8508,7 +8508,7 @@ const deserializeAws_restJson1JobMessages = (output: any, context: __SerdeContex const deserializeAws_restJson1JobSettings = (output: any, context: __SerdeContext): JobSettings => { return { - AdAvailOffset: __expectInt(output.adAvailOffset), + AdAvailOffset: __expectInt32(output.adAvailOffset), AvailBlanking: output.availBlanking !== undefined && output.availBlanking !== null ? deserializeAws_restJson1AvailBlanking(output.availBlanking, context) @@ -8578,7 +8578,7 @@ const deserializeAws_restJson1JobTemplate = (output: any, context: __SerdeContex ? new Date(Math.round(output.lastUpdated * 1000)) : undefined, Name: __expectString(output.name), - Priority: __expectInt(output.priority), + Priority: __expectInt32(output.priority), Queue: __expectString(output.queue), Settings: output.settings !== undefined && output.settings !== null @@ -8591,7 +8591,7 @@ const deserializeAws_restJson1JobTemplate = (output: any, context: __SerdeContex const deserializeAws_restJson1JobTemplateSettings = (output: any, context: __SerdeContext): JobTemplateSettings => { return { - AdAvailOffset: __expectInt(output.adAvailOffset), + AdAvailOffset: __expectInt32(output.adAvailOffset), AvailBlanking: output.availBlanking !== undefined && output.availBlanking !== null ? deserializeAws_restJson1AvailBlanking(output.availBlanking, context) @@ -8647,8 +8647,8 @@ const deserializeAws_restJson1KantarWatermarkSettings = ( ChannelName: __expectString(output.channelName), ContentReference: __expectString(output.contentReference), CredentialsSecretName: __expectString(output.credentialsSecretName), - FileOffset: __limitedParseFloat(output.fileOffset), - KantarLicenseId: __expectInt(output.kantarLicenseId), + FileOffset: __limitedParseDouble(output.fileOffset), + KantarLicenseId: __expectInt32(output.kantarLicenseId), KantarServerUrl: __expectString(output.kantarServerUrl), LogDestination: __expectString(output.logDestination), Metadata3: __expectString(output.metadata3), @@ -8662,7 +8662,7 @@ const deserializeAws_restJson1KantarWatermarkSettings = ( const deserializeAws_restJson1M2tsScte35Esam = (output: any, context: __SerdeContext): M2tsScte35Esam => { return { - Scte35EsamPid: __expectInt(output.scte35EsamPid), + Scte35EsamPid: __expectInt32(output.scte35EsamPid), } as any; }; @@ -8670,12 +8670,12 @@ const deserializeAws_restJson1M2tsSettings = (output: any, context: __SerdeConte return { AudioBufferModel: __expectString(output.audioBufferModel), AudioDuration: __expectString(output.audioDuration), - AudioFramesPerPes: __expectInt(output.audioFramesPerPes), + AudioFramesPerPes: __expectInt32(output.audioFramesPerPes), AudioPids: output.audioPids !== undefined && output.audioPids !== null ? deserializeAws_restJson1__listOf__integerMin32Max8182(output.audioPids, context) : undefined, - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), BufferModel: __expectString(output.bufferModel), DvbNitSettings: output.dvbNitSettings !== undefined && output.dvbNitSettings !== null @@ -8693,62 +8693,62 @@ const deserializeAws_restJson1M2tsSettings = (output: any, context: __SerdeConte output.dvbTdtSettings !== undefined && output.dvbTdtSettings !== null ? deserializeAws_restJson1DvbTdtSettings(output.dvbTdtSettings, context) : undefined, - DvbTeletextPid: __expectInt(output.dvbTeletextPid), + DvbTeletextPid: __expectInt32(output.dvbTeletextPid), EbpAudioInterval: __expectString(output.ebpAudioInterval), EbpPlacement: __expectString(output.ebpPlacement), EsRateInPes: __expectString(output.esRateInPes), ForceTsVideoEbpOrder: __expectString(output.forceTsVideoEbpOrder), - FragmentTime: __limitedParseFloat(output.fragmentTime), - MaxPcrInterval: __expectInt(output.maxPcrInterval), - MinEbpInterval: __expectInt(output.minEbpInterval), + FragmentTime: __limitedParseDouble(output.fragmentTime), + MaxPcrInterval: __expectInt32(output.maxPcrInterval), + MinEbpInterval: __expectInt32(output.minEbpInterval), NielsenId3: __expectString(output.nielsenId3), - NullPacketBitrate: __limitedParseFloat(output.nullPacketBitrate), - PatInterval: __expectInt(output.patInterval), + NullPacketBitrate: __limitedParseDouble(output.nullPacketBitrate), + PatInterval: __expectInt32(output.patInterval), PcrControl: __expectString(output.pcrControl), - PcrPid: __expectInt(output.pcrPid), - PmtInterval: __expectInt(output.pmtInterval), - PmtPid: __expectInt(output.pmtPid), - PrivateMetadataPid: __expectInt(output.privateMetadataPid), - ProgramNumber: __expectInt(output.programNumber), + PcrPid: __expectInt32(output.pcrPid), + PmtInterval: __expectInt32(output.pmtInterval), + PmtPid: __expectInt32(output.pmtPid), + PrivateMetadataPid: __expectInt32(output.privateMetadataPid), + ProgramNumber: __expectInt32(output.programNumber), RateMode: __expectString(output.rateMode), Scte35Esam: output.scte35Esam !== undefined && output.scte35Esam !== null ? deserializeAws_restJson1M2tsScte35Esam(output.scte35Esam, context) : undefined, - Scte35Pid: __expectInt(output.scte35Pid), + Scte35Pid: __expectInt32(output.scte35Pid), Scte35Source: __expectString(output.scte35Source), SegmentationMarkers: __expectString(output.segmentationMarkers), SegmentationStyle: __expectString(output.segmentationStyle), - SegmentationTime: __limitedParseFloat(output.segmentationTime), - TimedMetadataPid: __expectInt(output.timedMetadataPid), - TransportStreamId: __expectInt(output.transportStreamId), - VideoPid: __expectInt(output.videoPid), + SegmentationTime: __limitedParseDouble(output.segmentationTime), + TimedMetadataPid: __expectInt32(output.timedMetadataPid), + TransportStreamId: __expectInt32(output.transportStreamId), + VideoPid: __expectInt32(output.videoPid), } as any; }; const deserializeAws_restJson1M3u8Settings = (output: any, context: __SerdeContext): M3u8Settings => { return { AudioDuration: __expectString(output.audioDuration), - AudioFramesPerPes: __expectInt(output.audioFramesPerPes), + AudioFramesPerPes: __expectInt32(output.audioFramesPerPes), AudioPids: output.audioPids !== undefined && output.audioPids !== null ? deserializeAws_restJson1__listOf__integerMin32Max8182(output.audioPids, context) : undefined, - MaxPcrInterval: __expectInt(output.maxPcrInterval), + MaxPcrInterval: __expectInt32(output.maxPcrInterval), NielsenId3: __expectString(output.nielsenId3), - PatInterval: __expectInt(output.patInterval), + PatInterval: __expectInt32(output.patInterval), PcrControl: __expectString(output.pcrControl), - PcrPid: __expectInt(output.pcrPid), - PmtInterval: __expectInt(output.pmtInterval), - PmtPid: __expectInt(output.pmtPid), - PrivateMetadataPid: __expectInt(output.privateMetadataPid), - ProgramNumber: __expectInt(output.programNumber), - Scte35Pid: __expectInt(output.scte35Pid), + PcrPid: __expectInt32(output.pcrPid), + PmtInterval: __expectInt32(output.pmtInterval), + PmtPid: __expectInt32(output.pmtPid), + PrivateMetadataPid: __expectInt32(output.privateMetadataPid), + ProgramNumber: __expectInt32(output.programNumber), + Scte35Pid: __expectInt32(output.scte35Pid), Scte35Source: __expectString(output.scte35Source), TimedMetadata: __expectString(output.timedMetadata), - TimedMetadataPid: __expectInt(output.timedMetadataPid), - TransportStreamId: __expectInt(output.transportStreamId), - VideoPid: __expectInt(output.videoPid), + TimedMetadataPid: __expectInt32(output.timedMetadataPid), + TransportStreamId: __expectInt32(output.transportStreamId), + VideoPid: __expectInt32(output.videoPid), } as any; }; @@ -8774,8 +8774,8 @@ const deserializeAws_restJson1MotionImageInsertionFramerate = ( context: __SerdeContext ): MotionImageInsertionFramerate => { return { - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), } as any; }; @@ -8784,8 +8784,8 @@ const deserializeAws_restJson1MotionImageInsertionOffset = ( context: __SerdeContext ): MotionImageInsertionOffset => { return { - ImageX: __expectInt(output.imageX), - ImageY: __expectInt(output.imageY), + ImageX: __expectInt32(output.imageX), + ImageY: __expectInt32(output.imageY), } as any; }; @@ -8801,19 +8801,19 @@ const deserializeAws_restJson1MovSettings = (output: any, context: __SerdeContex const deserializeAws_restJson1Mp2Settings = (output: any, context: __SerdeContext): Mp2Settings => { return { - Bitrate: __expectInt(output.bitrate), - Channels: __expectInt(output.channels), - SampleRate: __expectInt(output.sampleRate), + Bitrate: __expectInt32(output.bitrate), + Channels: __expectInt32(output.channels), + SampleRate: __expectInt32(output.sampleRate), } as any; }; const deserializeAws_restJson1Mp3Settings = (output: any, context: __SerdeContext): Mp3Settings => { return { - Bitrate: __expectInt(output.bitrate), - Channels: __expectInt(output.channels), + Bitrate: __expectInt32(output.bitrate), + Channels: __expectInt32(output.channels), RateControlMode: __expectString(output.rateControlMode), - SampleRate: __expectInt(output.sampleRate), - VbrQuality: __expectInt(output.vbrQuality), + SampleRate: __expectInt32(output.sampleRate), + VbrQuality: __expectInt32(output.vbrQuality), } as any; }; @@ -8821,7 +8821,7 @@ const deserializeAws_restJson1Mp4Settings = (output: any, context: __SerdeContex return { AudioDuration: __expectString(output.audioDuration), CslgAtom: __expectString(output.cslgAtom), - CttsVersion: __expectInt(output.cttsVersion), + CttsVersion: __expectInt32(output.cttsVersion), FreeSpaceBox: __expectString(output.freeSpaceBox), MoovPlacement: __expectString(output.moovPlacement), Mp4MajorBrand: __expectString(output.mp4MajorBrand), @@ -8841,33 +8841,33 @@ const deserializeAws_restJson1MpdSettings = (output: any, context: __SerdeContex const deserializeAws_restJson1Mpeg2Settings = (output: any, context: __SerdeContext): Mpeg2Settings => { return { AdaptiveQuantization: __expectString(output.adaptiveQuantization), - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), CodecLevel: __expectString(output.codecLevel), CodecProfile: __expectString(output.codecProfile), DynamicSubGop: __expectString(output.dynamicSubGop), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - GopClosedCadence: __expectInt(output.gopClosedCadence), - GopSize: __limitedParseFloat(output.gopSize), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + GopSize: __limitedParseDouble(output.gopSize), GopSizeUnits: __expectString(output.gopSizeUnits), - HrdBufferInitialFillPercentage: __expectInt(output.hrdBufferInitialFillPercentage), - HrdBufferSize: __expectInt(output.hrdBufferSize), + HrdBufferInitialFillPercentage: __expectInt32(output.hrdBufferInitialFillPercentage), + HrdBufferSize: __expectInt32(output.hrdBufferSize), InterlaceMode: __expectString(output.interlaceMode), IntraDcPrecision: __expectString(output.intraDcPrecision), - MaxBitrate: __expectInt(output.maxBitrate), - MinIInterval: __expectInt(output.minIInterval), - NumberBFramesBetweenReferenceFrames: __expectInt(output.numberBFramesBetweenReferenceFrames), + MaxBitrate: __expectInt32(output.maxBitrate), + MinIInterval: __expectInt32(output.minIInterval), + NumberBFramesBetweenReferenceFrames: __expectInt32(output.numberBFramesBetweenReferenceFrames), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), QualityTuningLevel: __expectString(output.qualityTuningLevel), RateControlMode: __expectString(output.rateControlMode), ScanTypeConversionMode: __expectString(output.scanTypeConversionMode), SceneChangeDetect: __expectString(output.sceneChangeDetect), SlowPal: __expectString(output.slowPal), - Softness: __expectInt(output.softness), + Softness: __expectInt32(output.softness), SpatialAdaptiveQuantization: __expectString(output.spatialAdaptiveQuantization), Syntax: __expectString(output.syntax), Telecine: __expectString(output.telecine), @@ -8916,7 +8916,7 @@ const deserializeAws_restJson1MsSmoothGroupSettings = (output: any, context: __S output.encryption !== undefined && output.encryption !== null ? deserializeAws_restJson1MsSmoothEncryptionSettings(output.encryption, context) : undefined, - FragmentLength: __expectInt(output.fragmentLength), + FragmentLength: __expectInt32(output.fragmentLength), ManifestEncoding: __expectString(output.manifestEncoding), } as any; }; @@ -8938,7 +8938,7 @@ const deserializeAws_restJson1MxfXavcProfileSettings = ( ): MxfXavcProfileSettings => { return { DurationMode: __expectString(output.durationMode), - MaxAncDataSize: __expectInt(output.maxAncDataSize), + MaxAncDataSize: __expectInt32(output.maxAncDataSize), } as any; }; @@ -8948,7 +8948,7 @@ const deserializeAws_restJson1NexGuardFileMarkerSettings = ( ): NexGuardFileMarkerSettings => { return { License: __expectString(output.license), - Payload: __expectInt(output.payload), + Payload: __expectInt32(output.payload), Preset: __expectString(output.preset), Strength: __expectString(output.strength), } as any; @@ -8956,7 +8956,7 @@ const deserializeAws_restJson1NexGuardFileMarkerSettings = ( const deserializeAws_restJson1NielsenConfiguration = (output: any, context: __SerdeContext): NielsenConfiguration => { return { - BreakoutCode: __expectInt(output.breakoutCode), + BreakoutCode: __expectInt32(output.breakoutCode), DistributorId: __expectString(output.distributorId), } as any; }; @@ -8973,7 +8973,7 @@ const deserializeAws_restJson1NielsenNonLinearWatermarkSettings = ( CbetSourceId: __expectString(output.cbetSourceId), EpisodeId: __expectString(output.episodeId), MetadataDestination: __expectString(output.metadataDestination), - SourceId: __expectInt(output.sourceId), + SourceId: __expectInt32(output.sourceId), SourceWatermarkStatus: __expectString(output.sourceWatermarkStatus), TicServerUrl: __expectString(output.ticServerUrl), UniqueTicPerAudioTrack: __expectString(output.uniqueTicPerAudioTrack), @@ -9003,7 +9003,7 @@ const deserializeAws_restJson1NoiseReducerFilterSettings = ( context: __SerdeContext ): NoiseReducerFilterSettings => { return { - Strength: __expectInt(output.strength), + Strength: __expectInt32(output.strength), } as any; }; @@ -9012,9 +9012,9 @@ const deserializeAws_restJson1NoiseReducerSpatialFilterSettings = ( context: __SerdeContext ): NoiseReducerSpatialFilterSettings => { return { - PostFilterSharpenStrength: __expectInt(output.postFilterSharpenStrength), - Speed: __expectInt(output.speed), - Strength: __expectInt(output.strength), + PostFilterSharpenStrength: __expectInt32(output.postFilterSharpenStrength), + Speed: __expectInt32(output.speed), + Strength: __expectInt32(output.strength), } as any; }; @@ -9023,18 +9023,18 @@ const deserializeAws_restJson1NoiseReducerTemporalFilterSettings = ( context: __SerdeContext ): NoiseReducerTemporalFilterSettings => { return { - AggressiveMode: __expectInt(output.aggressiveMode), + AggressiveMode: __expectInt32(output.aggressiveMode), PostTemporalSharpening: __expectString(output.postTemporalSharpening), - Speed: __expectInt(output.speed), - Strength: __expectInt(output.strength), + Speed: __expectInt32(output.speed), + Strength: __expectInt32(output.strength), } as any; }; const deserializeAws_restJson1OpusSettings = (output: any, context: __SerdeContext): OpusSettings => { return { - Bitrate: __expectInt(output.bitrate), - Channels: __expectInt(output.channels), - SampleRate: __expectInt(output.sampleRate), + Bitrate: __expectInt32(output.bitrate), + Channels: __expectInt32(output.channels), + SampleRate: __expectInt32(output.sampleRate), } as any; }; @@ -9081,7 +9081,7 @@ const deserializeAws_restJson1OutputChannelMapping = (output: any, context: __Se const deserializeAws_restJson1OutputDetail = (output: any, context: __SerdeContext): OutputDetail => { return { - DurationInMs: __expectInt(output.durationInMs), + DurationInMs: __expectInt32(output.durationInMs), VideoDetails: output.videoDetails !== undefined && output.videoDetails !== null ? deserializeAws_restJson1VideoDetail(output.videoDetails, context) @@ -9210,12 +9210,12 @@ const deserializeAws_restJson1ProresSettings = (output: any, context: __SerdeCon CodecProfile: __expectString(output.codecProfile), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), InterlaceMode: __expectString(output.interlaceMode), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), ScanTypeConversionMode: __expectString(output.scanTypeConversionMode), SlowPal: __expectString(output.slowPal), Telecine: __expectString(output.telecine), @@ -9236,13 +9236,13 @@ const deserializeAws_restJson1Queue = (output: any, context: __SerdeContext): Qu : undefined, Name: __expectString(output.name), PricingPlan: __expectString(output.pricingPlan), - ProgressingJobsCount: __expectInt(output.progressingJobsCount), + ProgressingJobsCount: __expectInt32(output.progressingJobsCount), ReservationPlan: output.reservationPlan !== undefined && output.reservationPlan !== null ? deserializeAws_restJson1ReservationPlan(output.reservationPlan, context) : undefined, Status: __expectString(output.status), - SubmittedJobsCount: __expectInt(output.submittedJobsCount), + SubmittedJobsCount: __expectInt32(output.submittedJobsCount), Type: __expectString(output.type), } as any; }; @@ -9260,10 +9260,10 @@ const deserializeAws_restJson1QueueTransition = (output: any, context: __SerdeCo const deserializeAws_restJson1Rectangle = (output: any, context: __SerdeContext): Rectangle => { return { - Height: __expectInt(output.height), - Width: __expectInt(output.width), - X: __expectInt(output.x), - Y: __expectInt(output.y), + Height: __expectInt32(output.height), + Width: __expectInt32(output.width), + X: __expectInt32(output.x), + Y: __expectInt32(output.y), } as any; }; @@ -9273,8 +9273,8 @@ const deserializeAws_restJson1RemixSettings = (output: any, context: __SerdeCont output.channelMapping !== undefined && output.channelMapping !== null ? deserializeAws_restJson1ChannelMapping(output.channelMapping, context) : undefined, - ChannelsIn: __expectInt(output.channelsIn), - ChannelsOut: __expectInt(output.channelsOut), + ChannelsIn: __expectInt32(output.channelsIn), + ChannelsOut: __expectInt32(output.channelsOut), } as any; }; @@ -9290,7 +9290,7 @@ const deserializeAws_restJson1ReservationPlan = (output: any, context: __SerdeCo ? new Date(Math.round(output.purchasedAt * 1000)) : undefined, RenewalType: __expectString(output.renewalType), - ReservedSlots: __expectInt(output.reservedSlots), + ReservedSlots: __expectInt32(output.reservedSlots), Status: __expectString(output.status), } as any; }; @@ -9419,7 +9419,7 @@ const deserializeAws_restJson1TeletextSourceSettings = ( const deserializeAws_restJson1TimecodeBurnin = (output: any, context: __SerdeContext): TimecodeBurnin => { return { - FontSize: __expectInt(output.fontSize), + FontSize: __expectInt32(output.fontSize), Position: __expectString(output.position), Prefix: __expectString(output.prefix), } as any; @@ -9465,7 +9465,7 @@ const deserializeAws_restJson1Timing = (output: any, context: __SerdeContext): T const deserializeAws_restJson1TrackSourceSettings = (output: any, context: __SerdeContext): TrackSourceSettings => { return { - TrackNumber: __expectInt(output.trackNumber), + TrackNumber: __expectInt32(output.trackNumber), } as any; }; @@ -9482,8 +9482,8 @@ const deserializeAws_restJson1Vc3Settings = (output: any, context: __SerdeContex return { FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), InterlaceMode: __expectString(output.interlaceMode), ScanTypeConversionMode: __expectString(output.scanTypeConversionMode), SlowPal: __expectString(output.slowPal), @@ -9556,28 +9556,28 @@ const deserializeAws_restJson1VideoDescription = (output: any, context: __SerdeC ? deserializeAws_restJson1Rectangle(output.crop, context) : undefined, DropFrameTimecode: __expectString(output.dropFrameTimecode), - FixedAfd: __expectInt(output.fixedAfd), - Height: __expectInt(output.height), + FixedAfd: __expectInt32(output.fixedAfd), + Height: __expectInt32(output.height), Position: output.position !== undefined && output.position !== null ? deserializeAws_restJson1Rectangle(output.position, context) : undefined, RespondToAfd: __expectString(output.respondToAfd), ScalingBehavior: __expectString(output.scalingBehavior), - Sharpness: __expectInt(output.sharpness), + Sharpness: __expectInt32(output.sharpness), TimecodeInsertion: __expectString(output.timecodeInsertion), VideoPreprocessors: output.videoPreprocessors !== undefined && output.videoPreprocessors !== null ? deserializeAws_restJson1VideoPreprocessor(output.videoPreprocessors, context) : undefined, - Width: __expectInt(output.width), + Width: __expectInt32(output.width), } as any; }; const deserializeAws_restJson1VideoDetail = (output: any, context: __SerdeContext): VideoDetail => { return { - HeightInPx: __expectInt(output.heightInPx), - WidthInPx: __expectInt(output.widthInPx), + HeightInPx: __expectInt32(output.heightInPx), + WidthInPx: __expectInt32(output.widthInPx), } as any; }; @@ -9627,8 +9627,8 @@ const deserializeAws_restJson1VideoSelector = (output: any, context: __SerdeCont output.hdr10Metadata !== undefined && output.hdr10Metadata !== null ? deserializeAws_restJson1Hdr10Metadata(output.hdr10Metadata, context) : undefined, - Pid: __expectInt(output.pid), - ProgramNumber: __expectInt(output.programNumber), + Pid: __expectInt32(output.pid), + ProgramNumber: __expectInt32(output.programNumber), Rotate: __expectString(output.rotate), SampleRange: __expectString(output.sampleRange), } as any; @@ -9636,25 +9636,25 @@ const deserializeAws_restJson1VideoSelector = (output: any, context: __SerdeCont const deserializeAws_restJson1VorbisSettings = (output: any, context: __SerdeContext): VorbisSettings => { return { - Channels: __expectInt(output.channels), - SampleRate: __expectInt(output.sampleRate), - VbrQuality: __expectInt(output.vbrQuality), + Channels: __expectInt32(output.channels), + SampleRate: __expectInt32(output.sampleRate), + VbrQuality: __expectInt32(output.vbrQuality), } as any; }; const deserializeAws_restJson1Vp8Settings = (output: any, context: __SerdeContext): Vp8Settings => { return { - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - GopSize: __limitedParseFloat(output.gopSize), - HrdBufferSize: __expectInt(output.hrdBufferSize), - MaxBitrate: __expectInt(output.maxBitrate), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + GopSize: __limitedParseDouble(output.gopSize), + HrdBufferSize: __expectInt32(output.hrdBufferSize), + MaxBitrate: __expectInt32(output.maxBitrate), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), QualityTuningLevel: __expectString(output.qualityTuningLevel), RateControlMode: __expectString(output.rateControlMode), } as any; @@ -9662,17 +9662,17 @@ const deserializeAws_restJson1Vp8Settings = (output: any, context: __SerdeContex const deserializeAws_restJson1Vp9Settings = (output: any, context: __SerdeContext): Vp9Settings => { return { - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - GopSize: __limitedParseFloat(output.gopSize), - HrdBufferSize: __expectInt(output.hrdBufferSize), - MaxBitrate: __expectInt(output.maxBitrate), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + GopSize: __limitedParseDouble(output.gopSize), + HrdBufferSize: __expectInt32(output.hrdBufferSize), + MaxBitrate: __expectInt32(output.maxBitrate), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), QualityTuningLevel: __expectString(output.qualityTuningLevel), RateControlMode: __expectString(output.rateControlMode), } as any; @@ -9680,10 +9680,10 @@ const deserializeAws_restJson1Vp9Settings = (output: any, context: __SerdeContex const deserializeAws_restJson1WavSettings = (output: any, context: __SerdeContext): WavSettings => { return { - BitDepth: __expectInt(output.bitDepth), - Channels: __expectInt(output.channels), + BitDepth: __expectInt32(output.bitDepth), + Channels: __expectInt32(output.channels), Format: __expectString(output.format), - SampleRate: __expectInt(output.sampleRate), + SampleRate: __expectInt32(output.sampleRate), } as any; }; @@ -9731,10 +9731,10 @@ const deserializeAws_restJson1Xavc4kProfileSettings = (output: any, context: __S CodecProfile: __expectString(output.codecProfile), FlickerAdaptiveQuantization: __expectString(output.flickerAdaptiveQuantization), GopBReference: __expectString(output.gopBReference), - GopClosedCadence: __expectInt(output.gopClosedCadence), - HrdBufferSize: __expectInt(output.hrdBufferSize), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + HrdBufferSize: __expectInt32(output.hrdBufferSize), QualityTuningLevel: __expectString(output.qualityTuningLevel), - Slices: __expectInt(output.slices), + Slices: __expectInt32(output.slices), } as any; }; @@ -9752,11 +9752,11 @@ const deserializeAws_restJson1XavcHdProfileSettings = (output: any, context: __S BitrateClass: __expectString(output.bitrateClass), FlickerAdaptiveQuantization: __expectString(output.flickerAdaptiveQuantization), GopBReference: __expectString(output.gopBReference), - GopClosedCadence: __expectInt(output.gopClosedCadence), - HrdBufferSize: __expectInt(output.hrdBufferSize), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + HrdBufferSize: __expectInt32(output.hrdBufferSize), InterlaceMode: __expectString(output.interlaceMode), QualityTuningLevel: __expectString(output.qualityTuningLevel), - Slices: __expectInt(output.slices), + Slices: __expectInt32(output.slices), Telecine: __expectString(output.telecine), } as any; }; @@ -9767,11 +9767,11 @@ const deserializeAws_restJson1XavcSettings = (output: any, context: __SerdeConte EntropyEncoding: __expectString(output.entropyEncoding), FramerateControl: __expectString(output.framerateControl), FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), Profile: __expectString(output.profile), SlowPal: __expectString(output.slowPal), - Softness: __expectInt(output.softness), + Softness: __expectInt32(output.softness), SpatialAdaptiveQuantization: __expectString(output.spatialAdaptiveQuantization), TemporalAdaptiveQuantization: __expectString(output.temporalAdaptiveQuantization), Xavc4kIntraCbgProfileSettings: diff --git a/clients/client-medialive/protocols/Aws_restJson1.ts b/clients/client-medialive/protocols/Aws_restJson1.ts index 747f7b2faada7..6b05bc0d74716 100644 --- a/clients/client-medialive/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/protocols/Aws_restJson1.ts @@ -352,12 +352,13 @@ import { } from "../models/models_1"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, - strictParseInt as __strictParseInt, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3680,7 +3681,7 @@ export const deserializeAws_restJson1DeleteChannelCommand = async ( contents.PipelineDetails = deserializeAws_restJson1__listOfPipelineDetail(data.pipelineDetails, context); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.RoleArn = __expectString(data.roleArn); @@ -4036,10 +4037,10 @@ export const deserializeAws_restJson1DeleteMultiplexCommand = async ( contents.Name = __expectString(data.name); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.programCount !== undefined && data.programCount !== null) { - contents.ProgramCount = __expectInt(data.programCount); + contents.ProgramCount = __expectInt32(data.programCount); } if (data.state !== undefined && data.state !== null) { contents.State = __expectString(data.state); @@ -4312,13 +4313,13 @@ export const deserializeAws_restJson1DeleteReservationCommand = async ( contents.Arn = __expectString(data.arn); } if (data.count !== undefined && data.count !== null) { - contents.Count = __expectInt(data.count); + contents.Count = __expectInt32(data.count); } if (data.currencyCode !== undefined && data.currencyCode !== null) { contents.CurrencyCode = __expectString(data.currencyCode); } if (data.duration !== undefined && data.duration !== null) { - contents.Duration = __expectInt(data.duration); + contents.Duration = __expectInt32(data.duration); } if (data.durationUnits !== undefined && data.durationUnits !== null) { contents.DurationUnits = __expectString(data.durationUnits); @@ -4327,7 +4328,7 @@ export const deserializeAws_restJson1DeleteReservationCommand = async ( contents.End = __expectString(data.end); } if (data.fixedPrice !== undefined && data.fixedPrice !== null) { - contents.FixedPrice = __limitedParseFloat(data.fixedPrice); + contents.FixedPrice = __limitedParseDouble(data.fixedPrice); } if (data.name !== undefined && data.name !== null) { contents.Name = __expectString(data.name); @@ -4363,7 +4364,7 @@ export const deserializeAws_restJson1DeleteReservationCommand = async ( contents.Tags = deserializeAws_restJson1Tags(data.tags, context); } if (data.usagePrice !== undefined && data.usagePrice !== null) { - contents.UsagePrice = __limitedParseFloat(data.usagePrice); + contents.UsagePrice = __limitedParseDouble(data.usagePrice); } return Promise.resolve(contents); }; @@ -4700,7 +4701,7 @@ export const deserializeAws_restJson1DescribeChannelCommand = async ( contents.PipelineDetails = deserializeAws_restJson1__listOfPipelineDetail(data.pipelineDetails, context); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.RoleArn = __expectString(data.roleArn); @@ -5131,7 +5132,7 @@ export const deserializeAws_restJson1DescribeInputDeviceThumbnailCommand = async contents.ContentType = output.headers["content-type"]; } if (output.headers["content-length"] !== undefined) { - contents.ContentLength = __strictParseInt(output.headers["content-length"]); + contents.ContentLength = __strictParseLong(output.headers["content-length"]); } if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; @@ -5392,10 +5393,10 @@ export const deserializeAws_restJson1DescribeMultiplexCommand = async ( contents.Name = __expectString(data.name); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.programCount !== undefined && data.programCount !== null) { - contents.ProgramCount = __expectInt(data.programCount); + contents.ProgramCount = __expectInt32(data.programCount); } if (data.state !== undefined && data.state !== null) { contents.State = __expectString(data.state); @@ -5648,13 +5649,13 @@ export const deserializeAws_restJson1DescribeOfferingCommand = async ( contents.CurrencyCode = __expectString(data.currencyCode); } if (data.duration !== undefined && data.duration !== null) { - contents.Duration = __expectInt(data.duration); + contents.Duration = __expectInt32(data.duration); } if (data.durationUnits !== undefined && data.durationUnits !== null) { contents.DurationUnits = __expectString(data.durationUnits); } if (data.fixedPrice !== undefined && data.fixedPrice !== null) { - contents.FixedPrice = __limitedParseFloat(data.fixedPrice); + contents.FixedPrice = __limitedParseDouble(data.fixedPrice); } if (data.offeringDescription !== undefined && data.offeringDescription !== null) { contents.OfferingDescription = __expectString(data.offeringDescription); @@ -5675,7 +5676,7 @@ export const deserializeAws_restJson1DescribeOfferingCommand = async ( ); } if (data.usagePrice !== undefined && data.usagePrice !== null) { - contents.UsagePrice = __limitedParseFloat(data.usagePrice); + contents.UsagePrice = __limitedParseDouble(data.usagePrice); } return Promise.resolve(contents); }; @@ -5798,13 +5799,13 @@ export const deserializeAws_restJson1DescribeReservationCommand = async ( contents.Arn = __expectString(data.arn); } if (data.count !== undefined && data.count !== null) { - contents.Count = __expectInt(data.count); + contents.Count = __expectInt32(data.count); } if (data.currencyCode !== undefined && data.currencyCode !== null) { contents.CurrencyCode = __expectString(data.currencyCode); } if (data.duration !== undefined && data.duration !== null) { - contents.Duration = __expectInt(data.duration); + contents.Duration = __expectInt32(data.duration); } if (data.durationUnits !== undefined && data.durationUnits !== null) { contents.DurationUnits = __expectString(data.durationUnits); @@ -5813,7 +5814,7 @@ export const deserializeAws_restJson1DescribeReservationCommand = async ( contents.End = __expectString(data.end); } if (data.fixedPrice !== undefined && data.fixedPrice !== null) { - contents.FixedPrice = __limitedParseFloat(data.fixedPrice); + contents.FixedPrice = __limitedParseDouble(data.fixedPrice); } if (data.name !== undefined && data.name !== null) { contents.Name = __expectString(data.name); @@ -5849,7 +5850,7 @@ export const deserializeAws_restJson1DescribeReservationCommand = async ( contents.Tags = deserializeAws_restJson1Tags(data.tags, context); } if (data.usagePrice !== undefined && data.usagePrice !== null) { - contents.UsagePrice = __limitedParseFloat(data.usagePrice); + contents.UsagePrice = __limitedParseDouble(data.usagePrice); } return Promise.resolve(contents); }; @@ -7332,7 +7333,7 @@ export const deserializeAws_restJson1StartChannelCommand = async ( contents.PipelineDetails = deserializeAws_restJson1__listOfPipelineDetail(data.pipelineDetails, context); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.RoleArn = __expectString(data.roleArn); @@ -7482,10 +7483,10 @@ export const deserializeAws_restJson1StartMultiplexCommand = async ( contents.Name = __expectString(data.name); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.programCount !== undefined && data.programCount !== null) { - contents.ProgramCount = __expectInt(data.programCount); + contents.ProgramCount = __expectInt32(data.programCount); } if (data.state !== undefined && data.state !== null) { contents.State = __expectString(data.state); @@ -7654,7 +7655,7 @@ export const deserializeAws_restJson1StopChannelCommand = async ( contents.PipelineDetails = deserializeAws_restJson1__listOfPipelineDetail(data.pipelineDetails, context); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.roleArn !== undefined && data.roleArn !== null) { contents.RoleArn = __expectString(data.roleArn); @@ -7804,10 +7805,10 @@ export const deserializeAws_restJson1StopMultiplexCommand = async ( contents.Name = __expectString(data.name); } if (data.pipelinesRunningCount !== undefined && data.pipelinesRunningCount !== null) { - contents.PipelinesRunningCount = __expectInt(data.pipelinesRunningCount); + contents.PipelinesRunningCount = __expectInt32(data.pipelinesRunningCount); } if (data.programCount !== undefined && data.programCount !== null) { - contents.ProgramCount = __expectInt(data.programCount); + contents.ProgramCount = __expectInt32(data.programCount); } if (data.state !== undefined && data.state !== null) { contents.State = __expectString(data.state); @@ -12254,7 +12255,7 @@ const deserializeAws_restJson1__listOf__integer = (output: any, context: __Serde if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -12799,13 +12800,13 @@ const deserializeAws_restJson1__listOfVideoDescription = (output: any, context: const deserializeAws_restJson1AacSettings = (output: any, context: __SerdeContext): AacSettings => { return { - Bitrate: __limitedParseFloat(output.bitrate), + Bitrate: __limitedParseDouble(output.bitrate), CodingMode: __expectString(output.codingMode), InputType: __expectString(output.inputType), Profile: __expectString(output.profile), RateControlMode: __expectString(output.rateControlMode), RawFormat: __expectString(output.rawFormat), - SampleRate: __limitedParseFloat(output.sampleRate), + SampleRate: __limitedParseDouble(output.sampleRate), Spec: __expectString(output.spec), VbrQuality: __expectString(output.vbrQuality), } as any; @@ -12813,10 +12814,10 @@ const deserializeAws_restJson1AacSettings = (output: any, context: __SerdeContex const deserializeAws_restJson1Ac3Settings = (output: any, context: __SerdeContext): Ac3Settings => { return { - Bitrate: __limitedParseFloat(output.bitrate), + Bitrate: __limitedParseDouble(output.bitrate), BitstreamMode: __expectString(output.bitstreamMode), CodingMode: __expectString(output.codingMode), - Dialnorm: __expectInt(output.dialnorm), + Dialnorm: __expectInt32(output.dialnorm), DrcProfile: __expectString(output.drcProfile), LfeFilter: __expectString(output.lfeFilter), MetadataControl: __expectString(output.metadataControl), @@ -12828,7 +12829,7 @@ const deserializeAws_restJson1AncillarySourceSettings = ( context: __SerdeContext ): AncillarySourceSettings => { return { - SourceAncillaryChannelNumber: __expectInt(output.sourceAncillaryChannelNumber), + SourceAncillaryChannelNumber: __expectInt32(output.sourceAncillaryChannelNumber), } as any; }; @@ -12867,7 +12868,7 @@ const deserializeAws_restJson1ArchiveGroupSettings = (output: any, context: __Se output.destination !== undefined && output.destination !== null ? deserializeAws_restJson1OutputLocationRef(output.destination, context) : undefined, - RolloverInterval: __expectInt(output.rolloverInterval), + RolloverInterval: __expectInt32(output.rolloverInterval), } as any; }; @@ -12905,7 +12906,7 @@ const deserializeAws_restJson1AudioChannelMapping = (output: any, context: __Ser output.inputChannelLevels !== undefined && output.inputChannelLevels !== null ? deserializeAws_restJson1__listOfInputChannelLevel(output.inputChannelLevels, context) : undefined, - OutputChannel: __expectInt(output.outputChannel), + OutputChannel: __expectInt32(output.outputChannel), } as any; }; @@ -12989,7 +12990,7 @@ const deserializeAws_restJson1AudioNormalizationSettings = ( return { Algorithm: __expectString(output.algorithm), AlgorithmControl: __expectString(output.algorithmControl), - TargetLkfs: __limitedParseFloat(output.targetLkfs), + TargetLkfs: __limitedParseDouble(output.targetLkfs), } as any; }; @@ -13007,7 +13008,7 @@ const deserializeAws_restJson1AudioOnlyHlsSettings = (output: any, context: __Se const deserializeAws_restJson1AudioPidSelection = (output: any, context: __SerdeContext): AudioPidSelection => { return { - Pid: __expectInt(output.pid), + Pid: __expectInt32(output.pid), } as any; }; @@ -13048,13 +13049,13 @@ const deserializeAws_restJson1AudioSilenceFailoverSettings = ( ): AudioSilenceFailoverSettings => { return { AudioSelectorName: __expectString(output.audioSelectorName), - AudioSilenceThresholdMsec: __expectInt(output.audioSilenceThresholdMsec), + AudioSilenceThresholdMsec: __expectInt32(output.audioSilenceThresholdMsec), } as any; }; const deserializeAws_restJson1AudioTrack = (output: any, context: __SerdeContext): AudioTrack => { return { - Track: __expectInt(output.track), + Track: __expectInt32(output.track), } as any; }; @@ -13072,7 +13073,7 @@ const deserializeAws_restJson1AutomaticInputFailoverSettings = ( context: __SerdeContext ): AutomaticInputFailoverSettings => { return { - ErrorClearTimeMsec: __expectInt(output.errorClearTimeMsec), + ErrorClearTimeMsec: __expectInt32(output.errorClearTimeMsec), FailoverConditions: output.failoverConditions !== undefined && output.failoverConditions !== null ? deserializeAws_restJson1__listOfFailoverCondition(output.failoverConditions, context) @@ -13184,24 +13185,24 @@ const deserializeAws_restJson1BurnInDestinationSettings = ( return { Alignment: __expectString(output.alignment), BackgroundColor: __expectString(output.backgroundColor), - BackgroundOpacity: __expectInt(output.backgroundOpacity), + BackgroundOpacity: __expectInt32(output.backgroundOpacity), Font: output.font !== undefined && output.font !== null ? deserializeAws_restJson1InputLocation(output.font, context) : undefined, FontColor: __expectString(output.fontColor), - FontOpacity: __expectInt(output.fontOpacity), - FontResolution: __expectInt(output.fontResolution), + FontOpacity: __expectInt32(output.fontOpacity), + FontResolution: __expectInt32(output.fontResolution), FontSize: __expectString(output.fontSize), OutlineColor: __expectString(output.outlineColor), - OutlineSize: __expectInt(output.outlineSize), + OutlineSize: __expectInt32(output.outlineSize), ShadowColor: __expectString(output.shadowColor), - ShadowOpacity: __expectInt(output.shadowOpacity), - ShadowXOffset: __expectInt(output.shadowXOffset), - ShadowYOffset: __expectInt(output.shadowYOffset), + ShadowOpacity: __expectInt32(output.shadowOpacity), + ShadowXOffset: __expectInt32(output.shadowXOffset), + ShadowYOffset: __expectInt32(output.shadowYOffset), TeletextGridControl: __expectString(output.teletextGridControl), - XPosition: __expectInt(output.xPosition), - YPosition: __expectInt(output.yPosition), + XPosition: __expectInt32(output.xPosition), + YPosition: __expectInt32(output.yPosition), } as any; }; @@ -13291,7 +13292,7 @@ const deserializeAws_restJson1CaptionLanguageMapping = ( context: __SerdeContext ): CaptionLanguageMapping => { return { - CaptionChannel: __expectInt(output.captionChannel), + CaptionChannel: __expectInt32(output.captionChannel), LanguageCode: __expectString(output.languageCode), LanguageDescription: __expectString(output.languageDescription), } as any; @@ -13299,10 +13300,10 @@ const deserializeAws_restJson1CaptionLanguageMapping = ( const deserializeAws_restJson1CaptionRectangle = (output: any, context: __SerdeContext): CaptionRectangle => { return { - Height: __limitedParseFloat(output.height), - LeftOffset: __limitedParseFloat(output.leftOffset), - TopOffset: __limitedParseFloat(output.topOffset), - Width: __limitedParseFloat(output.width), + Height: __limitedParseDouble(output.height), + LeftOffset: __limitedParseDouble(output.leftOffset), + TopOffset: __limitedParseDouble(output.topOffset), + Width: __limitedParseDouble(output.width), } as any; }; @@ -13394,7 +13395,7 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): output.pipelineDetails !== undefined && output.pipelineDetails !== null ? deserializeAws_restJson1__listOfPipelineDetail(output.pipelineDetails, context) : undefined, - PipelinesRunningCount: __expectInt(output.pipelinesRunningCount), + PipelinesRunningCount: __expectInt32(output.pipelinesRunningCount), RoleArn: __expectString(output.roleArn), State: __expectString(output.state), Tags: @@ -13441,7 +13442,7 @@ const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeCon : undefined, LogLevel: __expectString(output.logLevel), Name: __expectString(output.name), - PipelinesRunningCount: __expectInt(output.pipelinesRunningCount), + PipelinesRunningCount: __expectInt32(output.pipelinesRunningCount), RoleArn: __expectString(output.roleArn), State: __expectString(output.state), Tags: @@ -13464,16 +13465,16 @@ const deserializeAws_restJson1ColorSpacePassthroughSettings = ( const deserializeAws_restJson1DvbNitSettings = (output: any, context: __SerdeContext): DvbNitSettings => { return { - NetworkId: __expectInt(output.networkId), + NetworkId: __expectInt32(output.networkId), NetworkName: __expectString(output.networkName), - RepInterval: __expectInt(output.repInterval), + RepInterval: __expectInt32(output.repInterval), } as any; }; const deserializeAws_restJson1DvbSdtSettings = (output: any, context: __SerdeContext): DvbSdtSettings => { return { OutputSdt: __expectString(output.outputSdt), - RepInterval: __expectInt(output.repInterval), + RepInterval: __expectInt32(output.repInterval), ServiceName: __expectString(output.serviceName), ServiceProviderName: __expectString(output.serviceProviderName), } as any; @@ -13486,56 +13487,56 @@ const deserializeAws_restJson1DvbSubDestinationSettings = ( return { Alignment: __expectString(output.alignment), BackgroundColor: __expectString(output.backgroundColor), - BackgroundOpacity: __expectInt(output.backgroundOpacity), + BackgroundOpacity: __expectInt32(output.backgroundOpacity), Font: output.font !== undefined && output.font !== null ? deserializeAws_restJson1InputLocation(output.font, context) : undefined, FontColor: __expectString(output.fontColor), - FontOpacity: __expectInt(output.fontOpacity), - FontResolution: __expectInt(output.fontResolution), + FontOpacity: __expectInt32(output.fontOpacity), + FontResolution: __expectInt32(output.fontResolution), FontSize: __expectString(output.fontSize), OutlineColor: __expectString(output.outlineColor), - OutlineSize: __expectInt(output.outlineSize), + OutlineSize: __expectInt32(output.outlineSize), ShadowColor: __expectString(output.shadowColor), - ShadowOpacity: __expectInt(output.shadowOpacity), - ShadowXOffset: __expectInt(output.shadowXOffset), - ShadowYOffset: __expectInt(output.shadowYOffset), + ShadowOpacity: __expectInt32(output.shadowOpacity), + ShadowXOffset: __expectInt32(output.shadowXOffset), + ShadowYOffset: __expectInt32(output.shadowYOffset), TeletextGridControl: __expectString(output.teletextGridControl), - XPosition: __expectInt(output.xPosition), - YPosition: __expectInt(output.yPosition), + XPosition: __expectInt32(output.xPosition), + YPosition: __expectInt32(output.yPosition), } as any; }; const deserializeAws_restJson1DvbSubSourceSettings = (output: any, context: __SerdeContext): DvbSubSourceSettings => { return { OcrLanguage: __expectString(output.ocrLanguage), - Pid: __expectInt(output.pid), + Pid: __expectInt32(output.pid), } as any; }; const deserializeAws_restJson1DvbTdtSettings = (output: any, context: __SerdeContext): DvbTdtSettings => { return { - RepInterval: __expectInt(output.repInterval), + RepInterval: __expectInt32(output.repInterval), } as any; }; const deserializeAws_restJson1Eac3Settings = (output: any, context: __SerdeContext): Eac3Settings => { return { AttenuationControl: __expectString(output.attenuationControl), - Bitrate: __limitedParseFloat(output.bitrate), + Bitrate: __limitedParseDouble(output.bitrate), BitstreamMode: __expectString(output.bitstreamMode), CodingMode: __expectString(output.codingMode), DcFilter: __expectString(output.dcFilter), - Dialnorm: __expectInt(output.dialnorm), + Dialnorm: __expectInt32(output.dialnorm), DrcLine: __expectString(output.drcLine), DrcRf: __expectString(output.drcRf), LfeControl: __expectString(output.lfeControl), LfeFilter: __expectString(output.lfeFilter), - LoRoCenterMixLevel: __limitedParseFloat(output.loRoCenterMixLevel), - LoRoSurroundMixLevel: __limitedParseFloat(output.loRoSurroundMixLevel), - LtRtCenterMixLevel: __limitedParseFloat(output.ltRtCenterMixLevel), - LtRtSurroundMixLevel: __limitedParseFloat(output.ltRtSurroundMixLevel), + LoRoCenterMixLevel: __limitedParseDouble(output.loRoCenterMixLevel), + LoRoSurroundMixLevel: __limitedParseDouble(output.loRoSurroundMixLevel), + LtRtCenterMixLevel: __limitedParseDouble(output.ltRtCenterMixLevel), + LtRtSurroundMixLevel: __limitedParseDouble(output.ltRtSurroundMixLevel), MetadataControl: __expectString(output.metadataControl), PassthroughControl: __expectString(output.passthroughControl), PhaseControl: __expectString(output.phaseControl), @@ -13578,8 +13579,8 @@ const deserializeAws_restJson1EmbeddedSourceSettings = ( return { Convert608To708: __expectString(output.convert608To708), Scte20Detection: __expectString(output.scte20Detection), - Source608ChannelNumber: __expectInt(output.source608ChannelNumber), - Source608TrackNumber: __expectInt(output.source608TrackNumber), + Source608ChannelNumber: __expectInt32(output.source608ChannelNumber), + Source608TrackNumber: __expectInt32(output.source608TrackNumber), } as any; }; @@ -13673,9 +13674,9 @@ const deserializeAws_restJson1FeatureActivations = (output: any, context: __Serd const deserializeAws_restJson1FecOutputSettings = (output: any, context: __SerdeContext): FecOutputSettings => { return { - ColumnDepth: __expectInt(output.columnDepth), + ColumnDepth: __expectInt32(output.columnDepth), IncludeFec: __expectString(output.includeFec), - RowLength: __expectInt(output.rowLength), + RowLength: __expectInt32(output.rowLength), } as any; }; @@ -13761,14 +13762,14 @@ const deserializeAws_restJson1FrameCaptureS3Settings = ( const deserializeAws_restJson1FrameCaptureSettings = (output: any, context: __SerdeContext): FrameCaptureSettings => { return { - CaptureInterval: __expectInt(output.captureInterval), + CaptureInterval: __expectInt32(output.captureInterval), CaptureIntervalUnits: __expectString(output.captureIntervalUnits), } as any; }; const deserializeAws_restJson1GlobalConfiguration = (output: any, context: __SerdeContext): GlobalConfiguration => { return { - InitialAudioGain: __expectInt(output.initialAudioGain), + InitialAudioGain: __expectInt32(output.initialAudioGain), InputEndAction: __expectString(output.inputEndAction), InputLossBehavior: output.inputLossBehavior !== undefined && output.inputLossBehavior !== null @@ -13813,9 +13814,9 @@ const deserializeAws_restJson1H264Settings = (output: any, context: __SerdeConte return { AdaptiveQuantization: __expectString(output.adaptiveQuantization), AfdSignaling: __expectString(output.afdSignaling), - Bitrate: __expectInt(output.bitrate), - BufFillPct: __expectInt(output.bufFillPct), - BufSize: __expectInt(output.bufSize), + Bitrate: __expectInt32(output.bitrate), + BufFillPct: __expectInt32(output.bufFillPct), + BufSize: __expectInt32(output.bufSize), ColorMetadata: __expectString(output.colorMetadata), ColorSpaceSettings: output.colorSpaceSettings !== undefined && output.colorSpaceSettings !== null @@ -13830,29 +13831,29 @@ const deserializeAws_restJson1H264Settings = (output: any, context: __SerdeConte FlickerAq: __expectString(output.flickerAq), ForceFieldPictures: __expectString(output.forceFieldPictures), FramerateControl: __expectString(output.framerateControl), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), GopBReference: __expectString(output.gopBReference), - GopClosedCadence: __expectInt(output.gopClosedCadence), - GopNumBFrames: __expectInt(output.gopNumBFrames), - GopSize: __limitedParseFloat(output.gopSize), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + GopNumBFrames: __expectInt32(output.gopNumBFrames), + GopSize: __limitedParseDouble(output.gopSize), GopSizeUnits: __expectString(output.gopSizeUnits), Level: __expectString(output.level), LookAheadRateControl: __expectString(output.lookAheadRateControl), - MaxBitrate: __expectInt(output.maxBitrate), - MinIInterval: __expectInt(output.minIInterval), - NumRefFrames: __expectInt(output.numRefFrames), + MaxBitrate: __expectInt32(output.maxBitrate), + MinIInterval: __expectInt32(output.minIInterval), + NumRefFrames: __expectInt32(output.numRefFrames), ParControl: __expectString(output.parControl), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), Profile: __expectString(output.profile), QualityLevel: __expectString(output.qualityLevel), - QvbrQualityLevel: __expectInt(output.qvbrQualityLevel), + QvbrQualityLevel: __expectInt32(output.qvbrQualityLevel), RateControlMode: __expectString(output.rateControlMode), ScanType: __expectString(output.scanType), SceneChangeDetect: __expectString(output.sceneChangeDetect), - Slices: __expectInt(output.slices), - Softness: __expectInt(output.softness), + Slices: __expectInt32(output.slices), + Softness: __expectInt32(output.softness), SpatialAq: __expectString(output.spatialAq), SubgopLength: __expectString(output.subgopLength), Syntax: __expectString(output.syntax), @@ -13899,8 +13900,8 @@ const deserializeAws_restJson1H265Settings = (output: any, context: __SerdeConte AdaptiveQuantization: __expectString(output.adaptiveQuantization), AfdSignaling: __expectString(output.afdSignaling), AlternativeTransferFunction: __expectString(output.alternativeTransferFunction), - Bitrate: __expectInt(output.bitrate), - BufSize: __expectInt(output.bufSize), + Bitrate: __expectInt32(output.bitrate), + BufSize: __expectInt32(output.bufSize), ColorMetadata: __expectString(output.colorMetadata), ColorSpaceSettings: output.colorSpaceSettings !== undefined && output.colorSpaceSettings !== null @@ -13912,23 +13913,23 @@ const deserializeAws_restJson1H265Settings = (output: any, context: __SerdeConte : undefined, FixedAfd: __expectString(output.fixedAfd), FlickerAq: __expectString(output.flickerAq), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - GopClosedCadence: __expectInt(output.gopClosedCadence), - GopSize: __limitedParseFloat(output.gopSize), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + GopSize: __limitedParseDouble(output.gopSize), GopSizeUnits: __expectString(output.gopSizeUnits), Level: __expectString(output.level), LookAheadRateControl: __expectString(output.lookAheadRateControl), - MaxBitrate: __expectInt(output.maxBitrate), - MinIInterval: __expectInt(output.minIInterval), - ParDenominator: __expectInt(output.parDenominator), - ParNumerator: __expectInt(output.parNumerator), + MaxBitrate: __expectInt32(output.maxBitrate), + MinIInterval: __expectInt32(output.minIInterval), + ParDenominator: __expectInt32(output.parDenominator), + ParNumerator: __expectInt32(output.parNumerator), Profile: __expectString(output.profile), - QvbrQualityLevel: __expectInt(output.qvbrQualityLevel), + QvbrQualityLevel: __expectInt32(output.qvbrQualityLevel), RateControlMode: __expectString(output.rateControlMode), ScanType: __expectString(output.scanType), SceneChangeDetect: __expectString(output.sceneChangeDetect), - Slices: __expectInt(output.slices), + Slices: __expectInt32(output.slices), Tier: __expectString(output.tier), TimecodeInsertion: __expectString(output.timecodeInsertion), } as any; @@ -13936,18 +13937,18 @@ const deserializeAws_restJson1H265Settings = (output: any, context: __SerdeConte const deserializeAws_restJson1Hdr10Settings = (output: any, context: __SerdeContext): Hdr10Settings => { return { - MaxCll: __expectInt(output.maxCll), - MaxFall: __expectInt(output.maxFall), + MaxCll: __expectInt32(output.maxCll), + MaxFall: __expectInt32(output.maxFall), } as any; }; const deserializeAws_restJson1HlsAkamaiSettings = (output: any, context: __SerdeContext): HlsAkamaiSettings => { return { - ConnectionRetryInterval: __expectInt(output.connectionRetryInterval), - FilecacheDuration: __expectInt(output.filecacheDuration), + ConnectionRetryInterval: __expectInt32(output.connectionRetryInterval), + FilecacheDuration: __expectInt32(output.filecacheDuration), HttpTransferMode: __expectString(output.httpTransferMode), - NumRetries: __expectInt(output.numRetries), - RestartDelay: __expectInt(output.restartDelay), + NumRetries: __expectInt32(output.numRetries), + RestartDelay: __expectInt32(output.restartDelay), Salt: __expectString(output.salt), Token: __expectString(output.token), } as any; @@ -13955,10 +13956,10 @@ const deserializeAws_restJson1HlsAkamaiSettings = (output: any, context: __Serde const deserializeAws_restJson1HlsBasicPutSettings = (output: any, context: __SerdeContext): HlsBasicPutSettings => { return { - ConnectionRetryInterval: __expectInt(output.connectionRetryInterval), - FilecacheDuration: __expectInt(output.filecacheDuration), - NumRetries: __expectInt(output.numRetries), - RestartDelay: __expectInt(output.restartDelay), + ConnectionRetryInterval: __expectInt32(output.connectionRetryInterval), + FilecacheDuration: __expectInt32(output.filecacheDuration), + NumRetries: __expectInt32(output.numRetries), + RestartDelay: __expectInt32(output.restartDelay), } as any; }; @@ -14019,11 +14020,11 @@ const deserializeAws_restJson1HlsGroupSettings = (output: any, context: __SerdeC HlsId3SegmentTagging: __expectString(output.hlsId3SegmentTagging), IFrameOnlyPlaylists: __expectString(output.iFrameOnlyPlaylists), IncompleteSegmentBehavior: __expectString(output.incompleteSegmentBehavior), - IndexNSegments: __expectInt(output.indexNSegments), + IndexNSegments: __expectInt32(output.indexNSegments), InputLossAction: __expectString(output.inputLossAction), IvInManifest: __expectString(output.ivInManifest), IvSource: __expectString(output.ivSource), - KeepSegments: __expectInt(output.keepSegments), + KeepSegments: __expectInt32(output.keepSegments), KeyFormat: __expectString(output.keyFormat), KeyFormatVersions: __expectString(output.keyFormatVersions), KeyProviderSettings: @@ -14032,19 +14033,19 @@ const deserializeAws_restJson1HlsGroupSettings = (output: any, context: __SerdeC : undefined, ManifestCompression: __expectString(output.manifestCompression), ManifestDurationFormat: __expectString(output.manifestDurationFormat), - MinSegmentLength: __expectInt(output.minSegmentLength), + MinSegmentLength: __expectInt32(output.minSegmentLength), Mode: __expectString(output.mode), OutputSelection: __expectString(output.outputSelection), ProgramDateTime: __expectString(output.programDateTime), - ProgramDateTimePeriod: __expectInt(output.programDateTimePeriod), + ProgramDateTimePeriod: __expectInt32(output.programDateTimePeriod), RedundantManifest: __expectString(output.redundantManifest), - SegmentLength: __expectInt(output.segmentLength), + SegmentLength: __expectInt32(output.segmentLength), SegmentationMode: __expectString(output.segmentationMode), - SegmentsPerSubdirectory: __expectInt(output.segmentsPerSubdirectory), + SegmentsPerSubdirectory: __expectInt32(output.segmentsPerSubdirectory), StreamInfResolution: __expectString(output.streamInfResolution), TimedMetadataId3Frame: __expectString(output.timedMetadataId3Frame), - TimedMetadataId3Period: __expectInt(output.timedMetadataId3Period), - TimestampDeltaMilliseconds: __expectInt(output.timestampDeltaMilliseconds), + TimedMetadataId3Period: __expectInt32(output.timedMetadataId3Period), + TimestampDeltaMilliseconds: __expectInt32(output.timestampDeltaMilliseconds), TsFileMode: __expectString(output.tsFileMode), } as any; }; @@ -14060,21 +14061,21 @@ const deserializeAws_restJson1HlsId3SegmentTaggingScheduleActionSettings = ( const deserializeAws_restJson1HlsInputSettings = (output: any, context: __SerdeContext): HlsInputSettings => { return { - Bandwidth: __expectInt(output.bandwidth), - BufferSegments: __expectInt(output.bufferSegments), - Retries: __expectInt(output.retries), - RetryInterval: __expectInt(output.retryInterval), + Bandwidth: __expectInt32(output.bandwidth), + BufferSegments: __expectInt32(output.bufferSegments), + Retries: __expectInt32(output.retries), + RetryInterval: __expectInt32(output.retryInterval), Scte35Source: __expectString(output.scte35Source), } as any; }; const deserializeAws_restJson1HlsMediaStoreSettings = (output: any, context: __SerdeContext): HlsMediaStoreSettings => { return { - ConnectionRetryInterval: __expectInt(output.connectionRetryInterval), - FilecacheDuration: __expectInt(output.filecacheDuration), + ConnectionRetryInterval: __expectInt32(output.connectionRetryInterval), + FilecacheDuration: __expectInt32(output.filecacheDuration), MediaStoreStorageClass: __expectString(output.mediaStoreStorageClass), - NumRetries: __expectInt(output.numRetries), - RestartDelay: __expectInt(output.restartDelay), + NumRetries: __expectInt32(output.numRetries), + RestartDelay: __expectInt32(output.restartDelay), } as any; }; @@ -14128,11 +14129,11 @@ const deserializeAws_restJson1HlsTimedMetadataScheduleActionSettings = ( const deserializeAws_restJson1HlsWebdavSettings = (output: any, context: __SerdeContext): HlsWebdavSettings => { return { - ConnectionRetryInterval: __expectInt(output.connectionRetryInterval), - FilecacheDuration: __expectInt(output.filecacheDuration), + ConnectionRetryInterval: __expectInt32(output.connectionRetryInterval), + FilecacheDuration: __expectInt32(output.filecacheDuration), HttpTransferMode: __expectString(output.httpTransferMode), - NumRetries: __expectInt(output.numRetries), - RestartDelay: __expectInt(output.restartDelay), + NumRetries: __expectInt32(output.numRetries), + RestartDelay: __expectInt32(output.restartDelay), } as any; }; @@ -14212,8 +14213,8 @@ const deserializeAws_restJson1InputAttachment = (output: any, context: __SerdeCo const deserializeAws_restJson1InputChannelLevel = (output: any, context: __SerdeContext): InputChannelLevel => { return { - Gain: __expectInt(output.gain), - InputChannel: __expectInt(output.inputChannel), + Gain: __expectInt32(output.gain), + InputChannel: __expectInt32(output.inputChannel), } as any; }; @@ -14255,11 +14256,11 @@ const deserializeAws_restJson1InputDeviceHdSettings = (output: any, context: __S ActiveInput: __expectString(output.activeInput), ConfiguredInput: __expectString(output.configuredInput), DeviceState: __expectString(output.deviceState), - Framerate: __limitedParseFloat(output.framerate), - Height: __expectInt(output.height), - MaxBitrate: __expectInt(output.maxBitrate), + Framerate: __limitedParseDouble(output.framerate), + Height: __expectInt32(output.height), + MaxBitrate: __expectInt32(output.maxBitrate), ScanType: __expectString(output.scanType), - Width: __expectInt(output.width), + Width: __expectInt32(output.width), } as any; }; @@ -14319,11 +14320,11 @@ const deserializeAws_restJson1InputDeviceUhdSettings = ( ActiveInput: __expectString(output.activeInput), ConfiguredInput: __expectString(output.configuredInput), DeviceState: __expectString(output.deviceState), - Framerate: __limitedParseFloat(output.framerate), - Height: __expectInt(output.height), - MaxBitrate: __expectInt(output.maxBitrate), + Framerate: __limitedParseDouble(output.framerate), + Height: __expectInt32(output.height), + MaxBitrate: __expectInt32(output.maxBitrate), ScanType: __expectString(output.scanType), - Width: __expectInt(output.width), + Width: __expectInt32(output.width), } as any; }; @@ -14337,14 +14338,14 @@ const deserializeAws_restJson1InputLocation = (output: any, context: __SerdeCont const deserializeAws_restJson1InputLossBehavior = (output: any, context: __SerdeContext): InputLossBehavior => { return { - BlackFrameMsec: __expectInt(output.blackFrameMsec), + BlackFrameMsec: __expectInt32(output.blackFrameMsec), InputLossImageColor: __expectString(output.inputLossImageColor), InputLossImageSlate: output.inputLossImageSlate !== undefined && output.inputLossImageSlate !== null ? deserializeAws_restJson1InputLocation(output.inputLossImageSlate, context) : undefined, InputLossImageType: __expectString(output.inputLossImageType), - RepeatFrameMsec: __expectInt(output.repeatFrameMsec), + RepeatFrameMsec: __expectInt32(output.repeatFrameMsec), } as any; }; @@ -14353,7 +14354,7 @@ const deserializeAws_restJson1InputLossFailoverSettings = ( context: __SerdeContext ): InputLossFailoverSettings => { return { - InputLossThresholdMsec: __expectInt(output.inputLossThresholdMsec), + InputLossThresholdMsec: __expectInt32(output.inputLossThresholdMsec), } as any; }; @@ -14406,7 +14407,7 @@ const deserializeAws_restJson1InputSettings = (output: any, context: __SerdeCont : undefined, DeblockFilter: __expectString(output.deblockFilter), DenoiseFilter: __expectString(output.denoiseFilter), - FilterStrength: __expectInt(output.filterStrength), + FilterStrength: __expectInt32(output.filterStrength), InputFilter: __expectString(output.inputFilter), NetworkInputSettings: output.networkInputSettings !== undefined && output.networkInputSettings !== null @@ -14476,10 +14477,10 @@ const deserializeAws_restJson1M2tsSettings = (output: any, context: __SerdeConte AribCaptionsPid: __expectString(output.aribCaptionsPid), AribCaptionsPidControl: __expectString(output.aribCaptionsPidControl), AudioBufferModel: __expectString(output.audioBufferModel), - AudioFramesPerPes: __expectInt(output.audioFramesPerPes), + AudioFramesPerPes: __expectInt32(output.audioFramesPerPes), AudioPids: __expectString(output.audioPids), AudioStreamType: __expectString(output.audioStreamType), - Bitrate: __expectInt(output.bitrate), + Bitrate: __expectInt32(output.bitrate), BufferModel: __expectString(output.bufferModel), CcDescriptor: __expectString(output.ccDescriptor), DvbNitSettings: @@ -14498,56 +14499,56 @@ const deserializeAws_restJson1M2tsSettings = (output: any, context: __SerdeConte DvbTeletextPid: __expectString(output.dvbTeletextPid), Ebif: __expectString(output.ebif), EbpAudioInterval: __expectString(output.ebpAudioInterval), - EbpLookaheadMs: __expectInt(output.ebpLookaheadMs), + EbpLookaheadMs: __expectInt32(output.ebpLookaheadMs), EbpPlacement: __expectString(output.ebpPlacement), EcmPid: __expectString(output.ecmPid), EsRateInPes: __expectString(output.esRateInPes), EtvPlatformPid: __expectString(output.etvPlatformPid), EtvSignalPid: __expectString(output.etvSignalPid), - FragmentTime: __limitedParseFloat(output.fragmentTime), + FragmentTime: __limitedParseDouble(output.fragmentTime), Klv: __expectString(output.klv), KlvDataPids: __expectString(output.klvDataPids), NielsenId3Behavior: __expectString(output.nielsenId3Behavior), - NullPacketBitrate: __limitedParseFloat(output.nullPacketBitrate), - PatInterval: __expectInt(output.patInterval), + NullPacketBitrate: __limitedParseDouble(output.nullPacketBitrate), + PatInterval: __expectInt32(output.patInterval), PcrControl: __expectString(output.pcrControl), - PcrPeriod: __expectInt(output.pcrPeriod), + PcrPeriod: __expectInt32(output.pcrPeriod), PcrPid: __expectString(output.pcrPid), - PmtInterval: __expectInt(output.pmtInterval), + PmtInterval: __expectInt32(output.pmtInterval), PmtPid: __expectString(output.pmtPid), - ProgramNum: __expectInt(output.programNum), + ProgramNum: __expectInt32(output.programNum), RateMode: __expectString(output.rateMode), Scte27Pids: __expectString(output.scte27Pids), Scte35Control: __expectString(output.scte35Control), Scte35Pid: __expectString(output.scte35Pid), SegmentationMarkers: __expectString(output.segmentationMarkers), SegmentationStyle: __expectString(output.segmentationStyle), - SegmentationTime: __limitedParseFloat(output.segmentationTime), + SegmentationTime: __limitedParseDouble(output.segmentationTime), TimedMetadataBehavior: __expectString(output.timedMetadataBehavior), TimedMetadataPid: __expectString(output.timedMetadataPid), - TransportStreamId: __expectInt(output.transportStreamId), + TransportStreamId: __expectInt32(output.transportStreamId), VideoPid: __expectString(output.videoPid), } as any; }; const deserializeAws_restJson1M3u8Settings = (output: any, context: __SerdeContext): M3u8Settings => { return { - AudioFramesPerPes: __expectInt(output.audioFramesPerPes), + AudioFramesPerPes: __expectInt32(output.audioFramesPerPes), AudioPids: __expectString(output.audioPids), EcmPid: __expectString(output.ecmPid), NielsenId3Behavior: __expectString(output.nielsenId3Behavior), - PatInterval: __expectInt(output.patInterval), + PatInterval: __expectInt32(output.patInterval), PcrControl: __expectString(output.pcrControl), - PcrPeriod: __expectInt(output.pcrPeriod), + PcrPeriod: __expectInt32(output.pcrPeriod), PcrPid: __expectString(output.pcrPid), - PmtInterval: __expectInt(output.pmtInterval), + PmtInterval: __expectInt32(output.pmtInterval), PmtPid: __expectString(output.pmtPid), - ProgramNum: __expectInt(output.programNum), + ProgramNum: __expectInt32(output.programNum), Scte35Behavior: __expectString(output.scte35Behavior), Scte35Pid: __expectString(output.scte35Pid), TimedMetadataBehavior: __expectString(output.timedMetadataBehavior), TimedMetadataPid: __expectString(output.timedMetadataPid), - TransportStreamId: __expectInt(output.transportStreamId), + TransportStreamId: __expectInt32(output.transportStreamId), VideoPid: __expectString(output.videoPid), } as any; }; @@ -14591,7 +14592,7 @@ const deserializeAws_restJson1MotionGraphicsActivateScheduleActionSettings = ( context: __SerdeContext ): MotionGraphicsActivateScheduleActionSettings => { return { - Duration: __expectInt(output.duration), + Duration: __expectLong(output.duration), PasswordParam: __expectString(output.passwordParam), Url: __expectString(output.url), Username: __expectString(output.username), @@ -14632,9 +14633,9 @@ const deserializeAws_restJson1MotionGraphicsSettings = ( const deserializeAws_restJson1Mp2Settings = (output: any, context: __SerdeContext): Mp2Settings => { return { - Bitrate: __limitedParseFloat(output.bitrate), + Bitrate: __limitedParseDouble(output.bitrate), CodingMode: __expectString(output.codingMode), - SampleRate: __limitedParseFloat(output.sampleRate), + SampleRate: __limitedParseDouble(output.sampleRate), } as any; }; @@ -14659,11 +14660,11 @@ const deserializeAws_restJson1Mpeg2Settings = (output: any, context: __SerdeCont ? deserializeAws_restJson1Mpeg2FilterSettings(output.filterSettings, context) : undefined, FixedAfd: __expectString(output.fixedAfd), - FramerateDenominator: __expectInt(output.framerateDenominator), - FramerateNumerator: __expectInt(output.framerateNumerator), - GopClosedCadence: __expectInt(output.gopClosedCadence), - GopNumBFrames: __expectInt(output.gopNumBFrames), - GopSize: __limitedParseFloat(output.gopSize), + FramerateDenominator: __expectInt32(output.framerateDenominator), + FramerateNumerator: __expectInt32(output.framerateNumerator), + GopClosedCadence: __expectInt32(output.gopClosedCadence), + GopNumBFrames: __expectInt32(output.gopNumBFrames), + GopSize: __limitedParseDouble(output.gopSize), GopSizeUnits: __expectString(output.gopSizeUnits), ScanType: __expectString(output.scanType), SubgopLength: __expectString(output.subgopLength), @@ -14676,7 +14677,7 @@ const deserializeAws_restJson1MsSmoothGroupSettings = (output: any, context: __S AcquisitionPointId: __expectString(output.acquisitionPointId), AudioOnlyTimecodeControl: __expectString(output.audioOnlyTimecodeControl), CertificateMode: __expectString(output.certificateMode), - ConnectionRetryInterval: __expectInt(output.connectionRetryInterval), + ConnectionRetryInterval: __expectInt32(output.connectionRetryInterval), Destination: output.destination !== undefined && output.destination !== null ? deserializeAws_restJson1OutputLocationRef(output.destination, context) @@ -14684,13 +14685,13 @@ const deserializeAws_restJson1MsSmoothGroupSettings = (output: any, context: __S EventId: __expectString(output.eventId), EventIdMode: __expectString(output.eventIdMode), EventStopBehavior: __expectString(output.eventStopBehavior), - FilecacheDuration: __expectInt(output.filecacheDuration), - FragmentLength: __expectInt(output.fragmentLength), + FilecacheDuration: __expectInt32(output.filecacheDuration), + FragmentLength: __expectInt32(output.fragmentLength), InputLossAction: __expectString(output.inputLossAction), - NumRetries: __expectInt(output.numRetries), - RestartDelay: __expectInt(output.restartDelay), + NumRetries: __expectInt32(output.numRetries), + RestartDelay: __expectInt32(output.restartDelay), SegmentationMode: __expectString(output.segmentationMode), - SendDelayMs: __expectInt(output.sendDelayMs), + SendDelayMs: __expectInt32(output.sendDelayMs), SparseTrackType: __expectString(output.sparseTrackType), StreamManifestBehavior: __expectString(output.streamManifestBehavior), TimestampOffset: __expectString(output.timestampOffset), @@ -14725,8 +14726,8 @@ const deserializeAws_restJson1Multiplex = (output: any, context: __SerdeContext) ? deserializeAws_restJson1MultiplexSettings(output.multiplexSettings, context) : undefined, Name: __expectString(output.name), - PipelinesRunningCount: __expectInt(output.pipelinesRunningCount), - ProgramCount: __expectInt(output.programCount), + PipelinesRunningCount: __expectInt32(output.pipelinesRunningCount), + ProgramCount: __expectInt32(output.programCount), State: __expectString(output.state), Tags: output.tags !== undefined && output.tags !== null @@ -14817,23 +14818,23 @@ const deserializeAws_restJson1MultiplexProgramPacketIdentifiersMap = ( output.dvbSubPids !== undefined && output.dvbSubPids !== null ? deserializeAws_restJson1__listOf__integer(output.dvbSubPids, context) : undefined, - DvbTeletextPid: __expectInt(output.dvbTeletextPid), - EtvPlatformPid: __expectInt(output.etvPlatformPid), - EtvSignalPid: __expectInt(output.etvSignalPid), + DvbTeletextPid: __expectInt32(output.dvbTeletextPid), + EtvPlatformPid: __expectInt32(output.etvPlatformPid), + EtvSignalPid: __expectInt32(output.etvSignalPid), KlvDataPids: output.klvDataPids !== undefined && output.klvDataPids !== null ? deserializeAws_restJson1__listOf__integer(output.klvDataPids, context) : undefined, - PcrPid: __expectInt(output.pcrPid), - PmtPid: __expectInt(output.pmtPid), - PrivateMetadataPid: __expectInt(output.privateMetadataPid), + PcrPid: __expectInt32(output.pcrPid), + PmtPid: __expectInt32(output.pmtPid), + PrivateMetadataPid: __expectInt32(output.privateMetadataPid), Scte27Pids: output.scte27Pids !== undefined && output.scte27Pids !== null ? deserializeAws_restJson1__listOf__integer(output.scte27Pids, context) : undefined, - Scte35Pid: __expectInt(output.scte35Pid), - TimedMetadataPid: __expectInt(output.timedMetadataPid), - VideoPid: __expectInt(output.videoPid), + Scte35Pid: __expectInt32(output.scte35Pid), + TimedMetadataPid: __expectInt32(output.timedMetadataPid), + VideoPid: __expectInt32(output.videoPid), } as any; }; @@ -14863,7 +14864,7 @@ const deserializeAws_restJson1MultiplexProgramSettings = ( ): MultiplexProgramSettings => { return { PreferredChannelPipeline: __expectString(output.preferredChannelPipeline), - ProgramNumber: __expectInt(output.programNumber), + ProgramNumber: __expectInt32(output.programNumber), ServiceDescriptor: output.serviceDescriptor !== undefined && output.serviceDescriptor !== null ? deserializeAws_restJson1MultiplexProgramServiceDescriptor(output.serviceDescriptor, context) @@ -14887,10 +14888,10 @@ const deserializeAws_restJson1MultiplexProgramSummary = ( const deserializeAws_restJson1MultiplexSettings = (output: any, context: __SerdeContext): MultiplexSettings => { return { - MaximumVideoBufferDelayMilliseconds: __expectInt(output.maximumVideoBufferDelayMilliseconds), - TransportStreamBitrate: __expectInt(output.transportStreamBitrate), - TransportStreamId: __expectInt(output.transportStreamId), - TransportStreamReservedBitrate: __expectInt(output.transportStreamReservedBitrate), + MaximumVideoBufferDelayMilliseconds: __expectInt32(output.maximumVideoBufferDelayMilliseconds), + TransportStreamBitrate: __expectInt32(output.transportStreamBitrate), + TransportStreamId: __expectInt32(output.transportStreamId), + TransportStreamReservedBitrate: __expectInt32(output.transportStreamReservedBitrate), } as any; }; @@ -14899,7 +14900,7 @@ const deserializeAws_restJson1MultiplexSettingsSummary = ( context: __SerdeContext ): MultiplexSettingsSummary => { return { - TransportStreamBitrate: __expectInt(output.transportStreamBitrate), + TransportStreamBitrate: __expectInt32(output.transportStreamBitrate), } as any; }; @@ -14908,9 +14909,9 @@ const deserializeAws_restJson1MultiplexStatmuxVideoSettings = ( context: __SerdeContext ): MultiplexStatmuxVideoSettings => { return { - MaximumBitrate: __expectInt(output.maximumBitrate), - MinimumBitrate: __expectInt(output.minimumBitrate), - Priority: __expectInt(output.priority), + MaximumBitrate: __expectInt32(output.maximumBitrate), + MinimumBitrate: __expectInt32(output.minimumBitrate), + Priority: __expectInt32(output.priority), } as any; }; @@ -14927,8 +14928,8 @@ const deserializeAws_restJson1MultiplexSummary = (output: any, context: __SerdeC ? deserializeAws_restJson1MultiplexSettingsSummary(output.multiplexSettings, context) : undefined, Name: __expectString(output.name), - PipelinesRunningCount: __expectInt(output.pipelinesRunningCount), - ProgramCount: __expectInt(output.programCount), + PipelinesRunningCount: __expectInt32(output.pipelinesRunningCount), + ProgramCount: __expectInt32(output.programCount), State: __expectString(output.state), Tags: output.tags !== undefined && output.tags !== null @@ -14942,7 +14943,7 @@ const deserializeAws_restJson1MultiplexVideoSettings = ( context: __SerdeContext ): MultiplexVideoSettings => { return { - ConstantBitrate: __expectInt(output.constantBitrate), + ConstantBitrate: __expectInt32(output.constantBitrate), StatmuxSettings: output.statmuxSettings !== undefined && output.statmuxSettings !== null ? deserializeAws_restJson1MultiplexStatmuxVideoSettings(output.statmuxSettings, context) @@ -14971,9 +14972,9 @@ const deserializeAws_restJson1Offering = (output: any, context: __SerdeContext): return { Arn: __expectString(output.arn), CurrencyCode: __expectString(output.currencyCode), - Duration: __expectInt(output.duration), + Duration: __expectInt32(output.duration), DurationUnits: __expectString(output.durationUnits), - FixedPrice: __limitedParseFloat(output.fixedPrice), + FixedPrice: __limitedParseDouble(output.fixedPrice), OfferingDescription: __expectString(output.offeringDescription), OfferingId: __expectString(output.offeringId), OfferingType: __expectString(output.offeringType), @@ -14982,7 +14983,7 @@ const deserializeAws_restJson1Offering = (output: any, context: __SerdeContext): output.resourceSpecification !== undefined && output.resourceSpecification !== null ? deserializeAws_restJson1ReservationResourceSpecification(output.resourceSpecification, context) : undefined, - UsagePrice: __limitedParseFloat(output.usagePrice), + UsagePrice: __limitedParseDouble(output.usagePrice), } as any; }; @@ -15182,20 +15183,20 @@ const deserializeAws_restJson1RemixSettings = (output: any, context: __SerdeCont output.channelMappings !== undefined && output.channelMappings !== null ? deserializeAws_restJson1__listOfAudioChannelMapping(output.channelMappings, context) : undefined, - ChannelsIn: __expectInt(output.channelsIn), - ChannelsOut: __expectInt(output.channelsOut), + ChannelsIn: __expectInt32(output.channelsIn), + ChannelsOut: __expectInt32(output.channelsOut), } as any; }; const deserializeAws_restJson1Reservation = (output: any, context: __SerdeContext): Reservation => { return { Arn: __expectString(output.arn), - Count: __expectInt(output.count), + Count: __expectInt32(output.count), CurrencyCode: __expectString(output.currencyCode), - Duration: __expectInt(output.duration), + Duration: __expectInt32(output.duration), DurationUnits: __expectString(output.durationUnits), End: __expectString(output.end), - FixedPrice: __limitedParseFloat(output.fixedPrice), + FixedPrice: __limitedParseDouble(output.fixedPrice), Name: __expectString(output.name), OfferingDescription: __expectString(output.offeringDescription), OfferingId: __expectString(output.offeringId), @@ -15212,7 +15213,7 @@ const deserializeAws_restJson1Reservation = (output: any, context: __SerdeContex output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1Tags(output.tags, context) : undefined, - UsagePrice: __limitedParseFloat(output.usagePrice), + UsagePrice: __limitedParseDouble(output.usagePrice), } as any; }; @@ -15247,22 +15248,22 @@ const deserializeAws_restJson1RtmpGroupSettings = (output: any, context: __Serde : undefined, AuthenticationScheme: __expectString(output.authenticationScheme), CacheFullBehavior: __expectString(output.cacheFullBehavior), - CacheLength: __expectInt(output.cacheLength), + CacheLength: __expectInt32(output.cacheLength), CaptionData: __expectString(output.captionData), InputLossAction: __expectString(output.inputLossAction), - RestartDelay: __expectInt(output.restartDelay), + RestartDelay: __expectInt32(output.restartDelay), } as any; }; const deserializeAws_restJson1RtmpOutputSettings = (output: any, context: __SerdeContext): RtmpOutputSettings => { return { CertificateMode: __expectString(output.certificateMode), - ConnectionRetryInterval: __expectInt(output.connectionRetryInterval), + ConnectionRetryInterval: __expectInt32(output.connectionRetryInterval), Destination: output.destination !== undefined && output.destination !== null ? deserializeAws_restJson1OutputLocationRef(output.destination, context) : undefined, - NumRetries: __expectInt(output.numRetries), + NumRetries: __expectInt32(output.numRetries), } as any; }; @@ -15393,7 +15394,7 @@ const deserializeAws_restJson1Scte20PlusEmbeddedDestinationSettings = ( const deserializeAws_restJson1Scte20SourceSettings = (output: any, context: __SerdeContext): Scte20SourceSettings => { return { Convert608To708: __expectString(output.convert608To708), - Source608ChannelNumber: __expectInt(output.source608ChannelNumber), + Source608ChannelNumber: __expectInt32(output.source608ChannelNumber), } as any; }; @@ -15407,7 +15408,7 @@ const deserializeAws_restJson1Scte27DestinationSettings = ( const deserializeAws_restJson1Scte27SourceSettings = (output: any, context: __SerdeContext): Scte27SourceSettings => { return { OcrLanguage: __expectString(output.ocrLanguage), - Pid: __expectInt(output.pid), + Pid: __expectInt32(output.pid), } as any; }; @@ -15453,7 +15454,7 @@ const deserializeAws_restJson1Scte35ReturnToNetworkScheduleActionSettings = ( context: __SerdeContext ): Scte35ReturnToNetworkScheduleActionSettings => { return { - SpliceEventId: __expectInt(output.spliceEventId), + SpliceEventId: __expectLong(output.spliceEventId), } as any; }; @@ -15466,22 +15467,22 @@ const deserializeAws_restJson1Scte35SegmentationDescriptor = ( output.deliveryRestrictions !== undefined && output.deliveryRestrictions !== null ? deserializeAws_restJson1Scte35DeliveryRestrictions(output.deliveryRestrictions, context) : undefined, - SegmentNum: __expectInt(output.segmentNum), + SegmentNum: __expectInt32(output.segmentNum), SegmentationCancelIndicator: __expectString(output.segmentationCancelIndicator), - SegmentationDuration: __expectInt(output.segmentationDuration), - SegmentationEventId: __expectInt(output.segmentationEventId), - SegmentationTypeId: __expectInt(output.segmentationTypeId), + SegmentationDuration: __expectLong(output.segmentationDuration), + SegmentationEventId: __expectLong(output.segmentationEventId), + SegmentationTypeId: __expectInt32(output.segmentationTypeId), SegmentationUpid: __expectString(output.segmentationUpid), - SegmentationUpidType: __expectInt(output.segmentationUpidType), - SegmentsExpected: __expectInt(output.segmentsExpected), - SubSegmentNum: __expectInt(output.subSegmentNum), - SubSegmentsExpected: __expectInt(output.subSegmentsExpected), + SegmentationUpidType: __expectInt32(output.segmentationUpidType), + SegmentsExpected: __expectInt32(output.segmentsExpected), + SubSegmentNum: __expectInt32(output.subSegmentNum), + SubSegmentsExpected: __expectInt32(output.subSegmentsExpected), } as any; }; const deserializeAws_restJson1Scte35SpliceInsert = (output: any, context: __SerdeContext): Scte35SpliceInsert => { return { - AdAvailOffset: __expectInt(output.adAvailOffset), + AdAvailOffset: __expectInt32(output.adAvailOffset), NoRegionalBlackoutFlag: __expectString(output.noRegionalBlackoutFlag), WebDeliveryAllowedFlag: __expectString(output.webDeliveryAllowedFlag), } as any; @@ -15492,14 +15493,14 @@ const deserializeAws_restJson1Scte35SpliceInsertScheduleActionSettings = ( context: __SerdeContext ): Scte35SpliceInsertScheduleActionSettings => { return { - Duration: __expectInt(output.duration), - SpliceEventId: __expectInt(output.spliceEventId), + Duration: __expectLong(output.duration), + SpliceEventId: __expectLong(output.spliceEventId), } as any; }; const deserializeAws_restJson1Scte35TimeSignalApos = (output: any, context: __SerdeContext): Scte35TimeSignalApos => { return { - AdAvailOffset: __expectInt(output.adAvailOffset), + AdAvailOffset: __expectInt32(output.adAvailOffset), NoRegionalBlackoutFlag: __expectString(output.noRegionalBlackoutFlag), WebDeliveryAllowedFlag: __expectString(output.webDeliveryAllowedFlag), } as any; @@ -15545,19 +15546,19 @@ const deserializeAws_restJson1StaticImageActivateScheduleActionSettings = ( context: __SerdeContext ): StaticImageActivateScheduleActionSettings => { return { - Duration: __expectInt(output.duration), - FadeIn: __expectInt(output.fadeIn), - FadeOut: __expectInt(output.fadeOut), - Height: __expectInt(output.height), + Duration: __expectInt32(output.duration), + FadeIn: __expectInt32(output.fadeIn), + FadeOut: __expectInt32(output.fadeOut), + Height: __expectInt32(output.height), Image: output.image !== undefined && output.image !== null ? deserializeAws_restJson1InputLocation(output.image, context) : undefined, - ImageX: __expectInt(output.imageX), - ImageY: __expectInt(output.imageY), - Layer: __expectInt(output.layer), - Opacity: __expectInt(output.opacity), - Width: __expectInt(output.width), + ImageX: __expectInt32(output.imageX), + ImageY: __expectInt32(output.imageY), + Layer: __expectInt32(output.layer), + Opacity: __expectInt32(output.opacity), + Width: __expectInt32(output.width), } as any; }; @@ -15566,8 +15567,8 @@ const deserializeAws_restJson1StaticImageDeactivateScheduleActionSettings = ( context: __SerdeContext ): StaticImageDeactivateScheduleActionSettings => { return { - FadeOut: __expectInt(output.fadeOut), - Layer: __expectInt(output.layer), + FadeOut: __expectInt32(output.fadeOut), + Layer: __expectInt32(output.layer), } as any; }; @@ -15633,7 +15634,7 @@ const deserializeAws_restJson1TemporalFilterSettings = ( const deserializeAws_restJson1TimecodeConfig = (output: any, context: __SerdeContext): TimecodeConfig => { return { Source: __expectString(output.source), - SyncThreshold: __expectInt(output.syncThreshold), + SyncThreshold: __expectInt32(output.syncThreshold), } as any; }; @@ -15671,13 +15672,13 @@ const deserializeAws_restJson1UdpGroupSettings = (output: any, context: __SerdeC return { InputLossAction: __expectString(output.inputLossAction), TimedMetadataId3Frame: __expectString(output.timedMetadataId3Frame), - TimedMetadataId3Period: __expectInt(output.timedMetadataId3Period), + TimedMetadataId3Period: __expectInt32(output.timedMetadataId3Period), } as any; }; const deserializeAws_restJson1UdpOutputSettings = (output: any, context: __SerdeContext): UdpOutputSettings => { return { - BufferMsec: __expectInt(output.bufferMsec), + BufferMsec: __expectInt32(output.bufferMsec), ContainerSettings: output.containerSettings !== undefined && output.containerSettings !== null ? deserializeAws_restJson1UdpContainerSettings(output.containerSettings, context) @@ -15705,8 +15706,8 @@ const deserializeAws_restJson1VideoBlackFailoverSettings = ( context: __SerdeContext ): VideoBlackFailoverSettings => { return { - BlackDetectThreshold: __limitedParseFloat(output.blackDetectThreshold), - VideoBlackThresholdMsec: __expectInt(output.videoBlackThresholdMsec), + BlackDetectThreshold: __limitedParseDouble(output.blackDetectThreshold), + VideoBlackThresholdMsec: __expectInt32(output.videoBlackThresholdMsec), } as any; }; @@ -15737,12 +15738,12 @@ const deserializeAws_restJson1VideoDescription = (output: any, context: __SerdeC output.codecSettings !== undefined && output.codecSettings !== null ? deserializeAws_restJson1VideoCodecSettings(output.codecSettings, context) : undefined, - Height: __expectInt(output.height), + Height: __expectInt32(output.height), Name: __expectString(output.name), RespondToAfd: __expectString(output.respondToAfd), ScalingBehavior: __expectString(output.scalingBehavior), - Sharpness: __expectInt(output.sharpness), - Width: __expectInt(output.width), + Sharpness: __expectInt32(output.sharpness), + Width: __expectInt32(output.width), } as any; }; @@ -15775,7 +15776,7 @@ const deserializeAws_restJson1VideoSelectorColorSpaceSettings = ( const deserializeAws_restJson1VideoSelectorPid = (output: any, context: __SerdeContext): VideoSelectorPid => { return { - Pid: __expectInt(output.pid), + Pid: __expectInt32(output.pid), } as any; }; @@ -15784,7 +15785,7 @@ const deserializeAws_restJson1VideoSelectorProgramId = ( context: __SerdeContext ): VideoSelectorProgramId => { return { - ProgramId: __expectInt(output.programId), + ProgramId: __expectInt32(output.programId), } as any; }; @@ -15827,9 +15828,9 @@ const deserializeAws_restJson1VpcOutputSettingsDescription = ( const deserializeAws_restJson1WavSettings = (output: any, context: __SerdeContext): WavSettings => { return { - BitDepth: __limitedParseFloat(output.bitDepth), + BitDepth: __limitedParseDouble(output.bitDepth), CodingMode: __expectString(output.codingMode), - SampleRate: __limitedParseFloat(output.sampleRate), + SampleRate: __limitedParseDouble(output.sampleRate), } as any; }; diff --git a/clients/client-mediapackage-vod/protocols/Aws_restJson1.ts b/clients/client-mediapackage-vod/protocols/Aws_restJson1.ts index 8b5199b31c8fa..09a949edbd394 100644 --- a/clients/client-mediapackage-vod/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage-vod/protocols/Aws_restJson1.ts @@ -76,7 +76,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2801,7 +2801,7 @@ const deserializeAws_restJson1CmafPackage = (output: any, context: __SerdeContex ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context) : undefined, IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments), - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), } as any; }; @@ -2818,7 +2818,7 @@ const deserializeAws_restJson1DashManifest = (output: any, context: __SerdeConte return { ManifestLayout: __expectString(output.manifestLayout), ManifestName: __expectString(output.manifestName), - MinBufferTimeSeconds: __expectInt(output.minBufferTimeSeconds), + MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds), Profile: __expectString(output.profile), StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null @@ -2842,7 +2842,7 @@ const deserializeAws_restJson1DashPackage = (output: any, context: __SerdeContex output.periodTriggers !== undefined && output.periodTriggers !== null ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context) : undefined, - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), SegmentTemplateFormat: __expectString(output.segmentTemplateFormat), } as any; }; @@ -2876,7 +2876,7 @@ const deserializeAws_restJson1HlsManifest = (output: any, context: __SerdeContex AdMarkers: __expectString(output.adMarkers), IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream), ManifestName: __expectString(output.manifestName), - ProgramDateTimeIntervalSeconds: __expectInt(output.programDateTimeIntervalSeconds), + ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds), RepeatExtXKey: __expectBoolean(output.repeatExtXKey), StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null @@ -2895,7 +2895,7 @@ const deserializeAws_restJson1HlsPackage = (output: any, context: __SerdeContext output.hlsManifests !== undefined && output.hlsManifests !== null ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context) : undefined, - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup), } as any; }; @@ -2929,7 +2929,7 @@ const deserializeAws_restJson1MssPackage = (output: any, context: __SerdeContext output.mssManifests !== undefined && output.mssManifests !== null ? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context) : undefined, - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), } as any; }; @@ -2997,8 +2997,8 @@ const deserializeAws_restJson1SpekeKeyProvider = (output: any, context: __SerdeC const deserializeAws_restJson1StreamSelection = (output: any, context: __SerdeContext): StreamSelection => { return { - MaxVideoBitsPerSecond: __expectInt(output.maxVideoBitsPerSecond), - MinVideoBitsPerSecond: __expectInt(output.minVideoBitsPerSecond), + MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond), + MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond), StreamOrder: __expectString(output.streamOrder), } as any; }; diff --git a/clients/client-mediapackage/protocols/Aws_restJson1.ts b/clients/client-mediapackage/protocols/Aws_restJson1.ts index 372d96887300e..92a8165b5eb7a 100644 --- a/clients/client-mediapackage/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage/protocols/Aws_restJson1.ts @@ -77,7 +77,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1128,13 +1128,13 @@ export const deserializeAws_restJson1CreateOriginEndpointCommand = async ( contents.Origination = __expectString(data.origination); } if (data.startoverWindowSeconds !== undefined && data.startoverWindowSeconds !== null) { - contents.StartoverWindowSeconds = __expectInt(data.startoverWindowSeconds); + contents.StartoverWindowSeconds = __expectInt32(data.startoverWindowSeconds); } if (data.tags !== undefined && data.tags !== null) { contents.Tags = deserializeAws_restJson1Tags(data.tags, context); } if (data.timeDelaySeconds !== undefined && data.timeDelaySeconds !== null) { - contents.TimeDelaySeconds = __expectInt(data.timeDelaySeconds); + contents.TimeDelaySeconds = __expectInt32(data.timeDelaySeconds); } if (data.url !== undefined && data.url !== null) { contents.Url = __expectString(data.url); @@ -1711,13 +1711,13 @@ export const deserializeAws_restJson1DescribeOriginEndpointCommand = async ( contents.Origination = __expectString(data.origination); } if (data.startoverWindowSeconds !== undefined && data.startoverWindowSeconds !== null) { - contents.StartoverWindowSeconds = __expectInt(data.startoverWindowSeconds); + contents.StartoverWindowSeconds = __expectInt32(data.startoverWindowSeconds); } if (data.tags !== undefined && data.tags !== null) { contents.Tags = deserializeAws_restJson1Tags(data.tags, context); } if (data.timeDelaySeconds !== undefined && data.timeDelaySeconds !== null) { - contents.TimeDelaySeconds = __expectInt(data.timeDelaySeconds); + contents.TimeDelaySeconds = __expectInt32(data.timeDelaySeconds); } if (data.url !== undefined && data.url !== null) { contents.Url = __expectString(data.url); @@ -2653,13 +2653,13 @@ export const deserializeAws_restJson1UpdateOriginEndpointCommand = async ( contents.Origination = __expectString(data.origination); } if (data.startoverWindowSeconds !== undefined && data.startoverWindowSeconds !== null) { - contents.StartoverWindowSeconds = __expectInt(data.startoverWindowSeconds); + contents.StartoverWindowSeconds = __expectInt32(data.startoverWindowSeconds); } if (data.tags !== undefined && data.tags !== null) { contents.Tags = deserializeAws_restJson1Tags(data.tags, context); } if (data.timeDelaySeconds !== undefined && data.timeDelaySeconds !== null) { - contents.TimeDelaySeconds = __expectInt(data.timeDelaySeconds); + contents.TimeDelaySeconds = __expectInt32(data.timeDelaySeconds); } if (data.url !== undefined && data.url !== null) { contents.Url = __expectString(data.url); @@ -3310,7 +3310,7 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): const deserializeAws_restJson1CmafEncryption = (output: any, context: __SerdeContext): CmafEncryption => { return { ConstantInitializationVector: __expectString(output.constantInitializationVector), - KeyRotationIntervalSeconds: __expectInt(output.keyRotationIntervalSeconds), + KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds), SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context) @@ -3328,7 +3328,7 @@ const deserializeAws_restJson1CmafPackage = (output: any, context: __SerdeContex output.hlsManifests !== undefined && output.hlsManifests !== null ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context) : undefined, - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), SegmentPrefix: __expectString(output.segmentPrefix), StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null @@ -3339,7 +3339,7 @@ const deserializeAws_restJson1CmafPackage = (output: any, context: __SerdeContex const deserializeAws_restJson1DashEncryption = (output: any, context: __SerdeContext): DashEncryption => { return { - KeyRotationIntervalSeconds: __expectInt(output.keyRotationIntervalSeconds), + KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds), SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null ? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context) @@ -3359,21 +3359,21 @@ const deserializeAws_restJson1DashPackage = (output: any, context: __SerdeContex ? deserializeAws_restJson1DashEncryption(output.encryption, context) : undefined, ManifestLayout: __expectString(output.manifestLayout), - ManifestWindowSeconds: __expectInt(output.manifestWindowSeconds), - MinBufferTimeSeconds: __expectInt(output.minBufferTimeSeconds), - MinUpdatePeriodSeconds: __expectInt(output.minUpdatePeriodSeconds), + ManifestWindowSeconds: __expectInt32(output.manifestWindowSeconds), + MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds), + MinUpdatePeriodSeconds: __expectInt32(output.minUpdatePeriodSeconds), PeriodTriggers: output.periodTriggers !== undefined && output.periodTriggers !== null ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context) : undefined, Profile: __expectString(output.profile), - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), SegmentTemplateFormat: __expectString(output.segmentTemplateFormat), StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null ? deserializeAws_restJson1StreamSelection(output.streamSelection, context) : undefined, - SuggestedPresentationDelaySeconds: __expectInt(output.suggestedPresentationDelaySeconds), + SuggestedPresentationDelaySeconds: __expectInt32(output.suggestedPresentationDelaySeconds), UtcTiming: __expectString(output.utcTiming), UtcTimingUri: __expectString(output.utcTimingUri), } as any; @@ -3416,7 +3416,7 @@ const deserializeAws_restJson1HlsEncryption = (output: any, context: __SerdeCont return { ConstantInitializationVector: __expectString(output.constantInitializationVector), EncryptionMethod: __expectString(output.encryptionMethod), - KeyRotationIntervalSeconds: __expectInt(output.keyRotationIntervalSeconds), + KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds), RepeatExtXKey: __expectBoolean(output.repeatExtXKey), SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null @@ -3441,8 +3441,8 @@ const deserializeAws_restJson1HlsManifest = (output: any, context: __SerdeContex IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream), ManifestName: __expectString(output.manifestName), PlaylistType: __expectString(output.playlistType), - PlaylistWindowSeconds: __expectInt(output.playlistWindowSeconds), - ProgramDateTimeIntervalSeconds: __expectInt(output.programDateTimeIntervalSeconds), + PlaylistWindowSeconds: __expectInt32(output.playlistWindowSeconds), + ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds), Url: __expectString(output.url), } as any; }; @@ -3461,9 +3461,9 @@ const deserializeAws_restJson1HlsPackage = (output: any, context: __SerdeContext : undefined, IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream), PlaylistType: __expectString(output.playlistType), - PlaylistWindowSeconds: __expectInt(output.playlistWindowSeconds), - ProgramDateTimeIntervalSeconds: __expectInt(output.programDateTimeIntervalSeconds), - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + PlaylistWindowSeconds: __expectInt32(output.playlistWindowSeconds), + ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null ? deserializeAws_restJson1StreamSelection(output.streamSelection, context) @@ -3502,8 +3502,8 @@ const deserializeAws_restJson1MssPackage = (output: any, context: __SerdeContext output.encryption !== undefined && output.encryption !== null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined, - ManifestWindowSeconds: __expectInt(output.manifestWindowSeconds), - SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds), + ManifestWindowSeconds: __expectInt32(output.manifestWindowSeconds), + SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds), StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null ? deserializeAws_restJson1StreamSelection(output.streamSelection, context) @@ -3539,12 +3539,12 @@ const deserializeAws_restJson1OriginEndpoint = (output: any, context: __SerdeCon ? deserializeAws_restJson1MssPackage(output.mssPackage, context) : undefined, Origination: __expectString(output.origination), - StartoverWindowSeconds: __expectInt(output.startoverWindowSeconds), + StartoverWindowSeconds: __expectInt32(output.startoverWindowSeconds), Tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1Tags(output.tags, context) : undefined, - TimeDelaySeconds: __expectInt(output.timeDelaySeconds), + TimeDelaySeconds: __expectInt32(output.timeDelaySeconds), Url: __expectString(output.url), Whitelist: output.whitelist !== undefined && output.whitelist !== null @@ -3580,8 +3580,8 @@ const deserializeAws_restJson1SpekeKeyProvider = (output: any, context: __SerdeC const deserializeAws_restJson1StreamSelection = (output: any, context: __SerdeContext): StreamSelection => { return { - MaxVideoBitsPerSecond: __expectInt(output.maxVideoBitsPerSecond), - MinVideoBitsPerSecond: __expectInt(output.minVideoBitsPerSecond), + MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond), + MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond), StreamOrder: __expectString(output.streamOrder), } as any; }; diff --git a/clients/client-mediastore-data/protocols/Aws_restJson1.ts b/clients/client-mediastore-data/protocols/Aws_restJson1.ts index 81b88834c994f..f01a7f23b50df 100644 --- a/clients/client-mediastore-data/protocols/Aws_restJson1.ts +++ b/clients/client-mediastore-data/protocols/Aws_restJson1.ts @@ -12,10 +12,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -289,7 +289,7 @@ export const deserializeAws_restJson1DescribeObjectCommand = async ( contents.ContentType = output.headers["content-type"]; } if (output.headers["content-length"] !== undefined) { - contents.ContentLength = __strictParseInt(output.headers["content-length"]); + contents.ContentLength = __strictParseLong(output.headers["content-length"]); } if (output.headers["cache-control"] !== undefined) { contents.CacheControl = output.headers["cache-control"]; @@ -379,7 +379,7 @@ export const deserializeAws_restJson1GetObjectCommand = async ( contents.ContentRange = output.headers["content-range"]; } if (output.headers["content-length"] !== undefined) { - contents.ContentLength = __strictParseInt(output.headers["content-length"]); + contents.ContentLength = __strictParseLong(output.headers["content-length"]); } if (output.headers["content-type"] !== undefined) { contents.ContentType = output.headers["content-type"]; @@ -667,7 +667,7 @@ const deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse = as const deserializeAws_restJson1Item = (output: any, context: __SerdeContext): Item => { return { - ContentLength: __expectInt(output.ContentLength), + ContentLength: __expectLong(output.ContentLength), ContentType: __expectString(output.ContentType), ETag: __expectString(output.ETag), LastModified: diff --git a/clients/client-mediastore/protocols/Aws_json1_1.ts b/clients/client-mediastore/protocols/Aws_json1_1.ts index 85953897a16a7..db8a97a4f59c5 100644 --- a/clients/client-mediastore/protocols/Aws_json1_1.ts +++ b/clients/client-mediastore/protocols/Aws_json1_1.ts @@ -87,7 +87,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -2369,7 +2369,7 @@ const deserializeAws_json1_1CorsRule = (output: any, context: __SerdeContext): C output.ExposeHeaders !== undefined && output.ExposeHeaders !== null ? deserializeAws_json1_1ExposeHeaders(output.ExposeHeaders, context) : undefined, - MaxAgeSeconds: __expectInt(output.MaxAgeSeconds), + MaxAgeSeconds: __expectInt32(output.MaxAgeSeconds), } as any; }; diff --git a/clients/client-mediatailor/protocols/Aws_restJson1.ts b/clients/client-mediatailor/protocols/Aws_restJson1.ts index 70f4f9a0fb9ba..56cd34cd25069 100644 --- a/clients/client-mediatailor/protocols/Aws_restJson1.ts +++ b/clients/client-mediatailor/protocols/Aws_restJson1.ts @@ -99,7 +99,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2260,7 +2261,7 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async ( contents.Name = __expectString(data.Name); } if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) { - contents.PersonalizationThresholdSeconds = __expectInt(data.PersonalizationThresholdSeconds); + contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds); } if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) { contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn); @@ -2737,7 +2738,7 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async ( contents.Name = __expectString(data.Name); } if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) { - contents.PersonalizationThresholdSeconds = __expectInt(data.PersonalizationThresholdSeconds); + contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds); } if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) { contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn); @@ -3619,7 +3620,7 @@ const deserializeAws_restJson1AccessConfiguration = (output: any, context: __Ser const deserializeAws_restJson1AdBreak = (output: any, context: __SerdeContext): AdBreak => { return { MessageType: __expectString(output.MessageType), - OffsetMillis: __expectInt(output.OffsetMillis), + OffsetMillis: __expectLong(output.OffsetMillis), Slate: output.Slate !== undefined && output.Slate !== null ? deserializeAws_restJson1SlateSource(output.Slate, context) @@ -3727,10 +3728,10 @@ const deserializeAws_restJson1DashConfiguration = (output: any, context: __Serde const deserializeAws_restJson1DashPlaylistSettings = (output: any, context: __SerdeContext): DashPlaylistSettings => { return { - ManifestWindowSeconds: __expectInt(output.ManifestWindowSeconds), - MinBufferTimeSeconds: __expectInt(output.MinBufferTimeSeconds), - MinUpdatePeriodSeconds: __expectInt(output.MinUpdatePeriodSeconds), - SuggestedPresentationDelaySeconds: __expectInt(output.SuggestedPresentationDelaySeconds), + ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds), + MinBufferTimeSeconds: __expectInt32(output.MinBufferTimeSeconds), + MinUpdatePeriodSeconds: __expectInt32(output.MinUpdatePeriodSeconds), + SuggestedPresentationDelaySeconds: __expectInt32(output.SuggestedPresentationDelaySeconds), } as any; }; @@ -3751,7 +3752,7 @@ const deserializeAws_restJson1HlsConfiguration = (output: any, context: __SerdeC const deserializeAws_restJson1HlsPlaylistSettings = (output: any, context: __SerdeContext): HlsPlaylistSettings => { return { - ManifestWindowSeconds: __expectInt(output.ManifestWindowSeconds), + ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds), } as any; }; @@ -3792,7 +3793,7 @@ const deserializeAws_restJson1LivePreRollConfiguration = ( ): LivePreRollConfiguration => { return { AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl), - MaxDurationSeconds: __expectInt(output.MaxDurationSeconds), + MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds), } as any; }; @@ -3844,7 +3845,7 @@ const deserializeAws_restJson1PlaybackConfiguration = (output: any, context: __S ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context) : undefined, Name: __expectString(output.Name), - PersonalizationThresholdSeconds: __expectInt(output.PersonalizationThresholdSeconds), + PersonalizationThresholdSeconds: __expectInt32(output.PersonalizationThresholdSeconds), PlaybackConfigurationArn: __expectString(output.PlaybackConfigurationArn), PlaybackEndpointPrefix: __expectString(output.PlaybackEndpointPrefix), SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix), @@ -3887,7 +3888,7 @@ const deserializeAws_restJson1ResponseOutputs = (output: any, context: __SerdeCo const deserializeAws_restJson1ScheduleAdBreak = (output: any, context: __SerdeContext): ScheduleAdBreak => { return { - ApproximateDurationSeconds: __expectInt(output.ApproximateDurationSeconds), + ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds), ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null ? new Date(Math.round(output.ApproximateStartTime * 1000)) @@ -3899,7 +3900,7 @@ const deserializeAws_restJson1ScheduleAdBreak = (output: any, context: __SerdeCo const deserializeAws_restJson1ScheduleEntry = (output: any, context: __SerdeContext): ScheduleEntry => { return { - ApproximateDurationSeconds: __expectInt(output.ApproximateDurationSeconds), + ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds), ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null ? new Date(Math.round(output.ApproximateStartTime * 1000)) @@ -3970,10 +3971,10 @@ const deserializeAws_restJson1SourceLocation = (output: any, context: __SerdeCon const deserializeAws_restJson1SpliceInsertMessage = (output: any, context: __SerdeContext): SpliceInsertMessage => { return { - AvailNum: __expectInt(output.AvailNum), - AvailsExpected: __expectInt(output.AvailsExpected), - SpliceEventId: __expectInt(output.SpliceEventId), - UniqueProgramId: __expectInt(output.UniqueProgramId), + AvailNum: __expectInt32(output.AvailNum), + AvailsExpected: __expectInt32(output.AvailsExpected), + SpliceEventId: __expectInt32(output.SpliceEventId), + UniqueProgramId: __expectInt32(output.UniqueProgramId), } as any; }; diff --git a/clients/client-memorydb/protocols/Aws_json1_1.ts b/clients/client-memorydb/protocols/Aws_json1_1.ts index 918254455479a..9f131f3c0d624 100644 --- a/clients/client-memorydb/protocols/Aws_json1_1.ts +++ b/clients/client-memorydb/protocols/Aws_json1_1.ts @@ -219,9 +219,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -5367,7 +5367,7 @@ const deserializeAws_json1_1APICallRateForCustomerExceededFault = ( const deserializeAws_json1_1Authentication = (output: any, context: __SerdeContext): Authentication => { return { - PasswordCount: __expectInt(output.PasswordCount), + PasswordCount: __expectInt32(output.PasswordCount), Type: __expectString(output.Type), } as any; }; @@ -5411,7 +5411,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl MaintenanceWindow: __expectString(output.MaintenanceWindow), Name: __expectString(output.Name), NodeType: __expectString(output.NodeType), - NumberOfShards: __expectInt(output.NumberOfShards), + NumberOfShards: __expectInt32(output.NumberOfShards), ParameterGroupName: __expectString(output.ParameterGroupName), ParameterGroupStatus: __expectString(output.ParameterGroupStatus), PendingUpdates: @@ -5426,7 +5426,7 @@ const deserializeAws_json1_1Cluster = (output: any, context: __SerdeContext): Cl output.Shards !== undefined && output.Shards !== null ? deserializeAws_json1_1ShardList(output.Shards, context) : undefined, - SnapshotRetentionLimit: __expectInt(output.SnapshotRetentionLimit), + SnapshotRetentionLimit: __expectInt32(output.SnapshotRetentionLimit), SnapshotWindow: __expectString(output.SnapshotWindow), SnsTopicArn: __expectString(output.SnsTopicArn), SnsTopicStatus: __expectString(output.SnsTopicStatus), @@ -5452,14 +5452,14 @@ const deserializeAws_json1_1ClusterConfiguration = (output: any, context: __Serd MaintenanceWindow: __expectString(output.MaintenanceWindow), Name: __expectString(output.Name), NodeType: __expectString(output.NodeType), - NumShards: __expectInt(output.NumShards), + NumShards: __expectInt32(output.NumShards), ParameterGroupName: __expectString(output.ParameterGroupName), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), Shards: output.Shards !== undefined && output.Shards !== null ? deserializeAws_json1_1ShardDetails(output.Shards, context) : undefined, - SnapshotRetentionLimit: __expectInt(output.SnapshotRetentionLimit), + SnapshotRetentionLimit: __expectInt32(output.SnapshotRetentionLimit), SnapshotWindow: __expectString(output.SnapshotWindow), SubnetGroupName: __expectString(output.SubnetGroupName), TopicArn: __expectString(output.TopicArn), @@ -5765,7 +5765,7 @@ const deserializeAws_json1_1DuplicateUserNameFault = (output: any, context: __Se const deserializeAws_json1_1Endpoint = (output: any, context: __SerdeContext): Endpoint => { return { Address: __expectString(output.Address), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -6205,7 +6205,7 @@ const deserializeAws_json1_1Shard = (output: any, context: __SerdeContext): Shar output.Nodes !== undefined && output.Nodes !== null ? deserializeAws_json1_1NodeList(output.Nodes, context) : undefined, - NumberOfNodes: __expectInt(output.NumberOfNodes), + NumberOfNodes: __expectInt32(output.NumberOfNodes), Slots: __expectString(output.Slots), Status: __expectString(output.Status), } as any; @@ -6213,7 +6213,7 @@ const deserializeAws_json1_1Shard = (output: any, context: __SerdeContext): Shar const deserializeAws_json1_1ShardConfiguration = (output: any, context: __SerdeContext): ShardConfiguration => { return { - ReplicaCount: __expectInt(output.ReplicaCount), + ReplicaCount: __expectInt32(output.ReplicaCount), Slots: __expectString(output.Slots), } as any; }; @@ -6272,7 +6272,7 @@ const deserializeAws_json1_1ShardsPerClusterQuotaExceededFault = ( const deserializeAws_json1_1SlotMigration = (output: any, context: __SerdeContext): SlotMigration => { return { - ProgressPercentage: __limitedParseFloat(output.ProgressPercentage), + ProgressPercentage: __limitedParseDouble(output.ProgressPercentage), } as any; }; diff --git a/clients/client-mgn/protocols/Aws_restJson1.ts b/clients/client-mgn/protocols/Aws_restJson1.ts index 8c5efc8387428..294aa100cb08b 100644 --- a/clients/client-mgn/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/protocols/Aws_restJson1.ts @@ -113,10 +113,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1078,7 +1078,7 @@ export const deserializeAws_restJson1CreateReplicationConfigurationTemplateComma contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup); } if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) { - contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling); + contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling); } if (data.createPublicIP !== undefined && data.createPublicIP !== null) { contents.createPublicIP = __expectBoolean(data.createPublicIP); @@ -1979,7 +1979,7 @@ export const deserializeAws_restJson1GetReplicationConfigurationCommand = async contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup); } if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) { - contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling); + contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling); } if (data.createPublicIP !== undefined && data.createPublicIP !== null) { contents.createPublicIP = __expectBoolean(data.createPublicIP); @@ -2934,7 +2934,7 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationCommand = asy contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup); } if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) { - contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling); + contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling); } if (data.createPublicIP !== undefined && data.createPublicIP !== null) { contents.createPublicIP = __expectBoolean(data.createPublicIP); @@ -3086,7 +3086,7 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationTemplateComma contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup); } if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) { - contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling); + contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling); } if (data.createPublicIP !== undefined && data.createPublicIP !== null) { contents.createPublicIP = __expectBoolean(data.createPublicIP); @@ -3253,7 +3253,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.retryAfterSeconds = __strictParseLong(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.message !== undefined && data.message !== null) { @@ -3536,7 +3536,7 @@ const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = ( const deserializeAws_restJson1CPU = (output: any, context: __SerdeContext): CPU => { return { - cores: __expectInt(output.cores), + cores: __expectLong(output.cores), modelName: __expectString(output.modelName), } as any; }; @@ -3584,11 +3584,11 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = ( context: __SerdeContext ): DataReplicationInfoReplicatedDisk => { return { - backloggedStorageBytes: __expectInt(output.backloggedStorageBytes), + backloggedStorageBytes: __expectLong(output.backloggedStorageBytes), deviceName: __expectString(output.deviceName), - replicatedStorageBytes: __expectInt(output.replicatedStorageBytes), - rescannedStorageBytes: __expectInt(output.rescannedStorageBytes), - totalStorageBytes: __expectInt(output.totalStorageBytes), + replicatedStorageBytes: __expectLong(output.replicatedStorageBytes), + rescannedStorageBytes: __expectLong(output.rescannedStorageBytes), + totalStorageBytes: __expectLong(output.totalStorageBytes), } as any; }; @@ -3646,7 +3646,7 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = ( const deserializeAws_restJson1Disk = (output: any, context: __SerdeContext): Disk => { return { - bytes: __expectInt(output.bytes), + bytes: __expectLong(output.bytes), deviceName: __expectString(output.deviceName), } as any; }; @@ -3918,7 +3918,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = ( ): ReplicationConfigurationReplicatedDisk => { return { deviceName: __expectString(output.deviceName), - iops: __expectInt(output.iops), + iops: __expectLong(output.iops), isBootDisk: __expectBoolean(output.isBootDisk), stagingDiskType: __expectString(output.stagingDiskType), } as any; @@ -3945,7 +3945,7 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = ( return { arn: __expectString(output.arn), associateDefaultSecurityGroup: __expectBoolean(output.associateDefaultSecurityGroup), - bandwidthThrottling: __expectInt(output.bandwidthThrottling), + bandwidthThrottling: __expectLong(output.bandwidthThrottling), createPublicIP: __expectBoolean(output.createPublicIP), dataPlaneRouting: __expectString(output.dataPlaneRouting), defaultLargeStagingDiskType: __expectString(output.defaultLargeStagingDiskType), @@ -4021,7 +4021,7 @@ const deserializeAws_restJson1SourceProperties = (output: any, context: __SerdeC ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context) : undefined, os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined, - ramBytes: __expectInt(output.ramBytes), + ramBytes: __expectLong(output.ramBytes), recommendedInstanceType: __expectString(output.recommendedInstanceType), } as any; }; diff --git a/clients/client-migration-hub/protocols/Aws_json1_1.ts b/clients/client-migration-hub/protocols/Aws_json1_1.ts index 5975b25b58d36..8ed413626c7bc 100644 --- a/clients/client-migration-hub/protocols/Aws_json1_1.ts +++ b/clients/client-migration-hub/protocols/Aws_json1_1.ts @@ -118,7 +118,7 @@ import { UnauthorizedOperation, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -2949,7 +2949,7 @@ const deserializeAws_json1_1MigrationTask = (output: any, context: __SerdeContex const deserializeAws_json1_1MigrationTaskSummary = (output: any, context: __SerdeContext): MigrationTaskSummary => { return { MigrationTaskName: __expectString(output.MigrationTaskName), - ProgressPercent: __expectInt(output.ProgressPercent), + ProgressPercent: __expectInt32(output.ProgressPercent), ProgressUpdateStream: __expectString(output.ProgressUpdateStream), Status: __expectString(output.Status), StatusDetail: __expectString(output.StatusDetail), @@ -3051,7 +3051,7 @@ const deserializeAws_json1_1ServiceUnavailableException = ( const deserializeAws_json1_1Task = (output: any, context: __SerdeContext): Task => { return { - ProgressPercent: __expectInt(output.ProgressPercent), + ProgressPercent: __expectInt32(output.ProgressPercent), Status: __expectString(output.Status), StatusDetail: __expectString(output.StatusDetail), } as any; @@ -3060,7 +3060,7 @@ const deserializeAws_json1_1Task = (output: any, context: __SerdeContext): Task const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { return { Message: __expectString(output.Message), - RetryAfterSeconds: __expectInt(output.RetryAfterSeconds), + RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds), } as any; }; diff --git a/clients/client-migrationhub-config/protocols/Aws_json1_1.ts b/clients/client-migrationhub-config/protocols/Aws_json1_1.ts index 5f67e12c87211..cd710395d155d 100644 --- a/clients/client-migrationhub-config/protocols/Aws_json1_1.ts +++ b/clients/client-migrationhub-config/protocols/Aws_json1_1.ts @@ -24,7 +24,7 @@ import { ThrottlingException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -566,7 +566,7 @@ const deserializeAws_json1_1Target = (output: any, context: __SerdeContext): Tar const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { return { Message: __expectString(output.Message), - RetryAfterSeconds: __expectInt(output.RetryAfterSeconds), + RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds), } as any; }; diff --git a/clients/client-mq/protocols/Aws_restJson1.ts b/clients/client-mq/protocols/Aws_restJson1.ts index 1ded877d7db21..2ace247998684 100644 --- a/clients/client-mq/protocols/Aws_restJson1.ts +++ b/clients/client-mq/protocols/Aws_restJson1.ts @@ -74,7 +74,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1646,7 +1646,7 @@ export const deserializeAws_restJson1DescribeBrokerEngineTypesCommand = async ( contents.BrokerEngineTypes = deserializeAws_restJson1__listOfBrokerEngineType(data.brokerEngineTypes, context); } if (data.maxResults !== undefined && data.maxResults !== null) { - contents.MaxResults = __expectInt(data.maxResults); + contents.MaxResults = __expectInt32(data.maxResults); } if (data.nextToken !== undefined && data.nextToken !== null) { contents.NextToken = __expectString(data.nextToken); @@ -1728,7 +1728,7 @@ export const deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = asyn ); } if (data.maxResults !== undefined && data.maxResults !== null) { - contents.MaxResults = __expectInt(data.maxResults); + contents.MaxResults = __expectInt32(data.maxResults); } if (data.nextToken !== undefined && data.nextToken !== null) { contents.NextToken = __expectString(data.nextToken); @@ -2184,7 +2184,7 @@ export const deserializeAws_restJson1ListConfigurationRevisionsCommand = async ( contents.ConfigurationId = __expectString(data.configurationId); } if (data.maxResults !== undefined && data.maxResults !== null) { - contents.MaxResults = __expectInt(data.maxResults); + contents.MaxResults = __expectInt32(data.maxResults); } if (data.nextToken !== undefined && data.nextToken !== null) { contents.NextToken = __expectString(data.nextToken); @@ -2274,7 +2274,7 @@ export const deserializeAws_restJson1ListConfigurationsCommand = async ( contents.Configurations = deserializeAws_restJson1__listOfConfiguration(data.configurations, context); } if (data.maxResults !== undefined && data.maxResults !== null) { - contents.MaxResults = __expectInt(data.maxResults); + contents.MaxResults = __expectInt32(data.maxResults); } if (data.nextToken !== undefined && data.nextToken !== null) { contents.NextToken = __expectString(data.nextToken); @@ -2433,7 +2433,7 @@ export const deserializeAws_restJson1ListUsersCommand = async ( contents.BrokerId = __expectString(data.brokerId); } if (data.maxResults !== undefined && data.maxResults !== null) { - contents.MaxResults = __expectInt(data.maxResults); + contents.MaxResults = __expectInt32(data.maxResults); } if (data.nextToken !== undefined && data.nextToken !== null) { contents.NextToken = __expectString(data.nextToken); @@ -3373,7 +3373,7 @@ const deserializeAws_restJson1Configuration = (output: any, context: __SerdeCont const deserializeAws_restJson1ConfigurationId = (output: any, context: __SerdeContext): ConfigurationId => { return { Id: __expectString(output.id), - Revision: __expectInt(output.revision), + Revision: __expectInt32(output.revision), } as any; }; @@ -3381,7 +3381,7 @@ const deserializeAws_restJson1ConfigurationRevision = (output: any, context: __S return { Created: output.created !== undefined && output.created !== null ? new Date(output.created) : undefined, Description: __expectString(output.description), - Revision: __expectInt(output.revision), + Revision: __expectInt32(output.revision), } as any; }; diff --git a/clients/client-mturk/protocols/Aws_json1_1.ts b/clients/client-mturk/protocols/Aws_json1_1.ts index 9de34943404a4..d2437d4269c33 100644 --- a/clients/client-mturk/protocols/Aws_json1_1.ts +++ b/clients/client-mturk/protocols/Aws_json1_1.ts @@ -206,7 +206,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -4108,8 +4109,8 @@ const deserializeAws_json1_1GetQualificationTypeResponse = ( const deserializeAws_json1_1HIT = (output: any, context: __SerdeContext): HIT => { return { - AssignmentDurationInSeconds: __expectInt(output.AssignmentDurationInSeconds), - AutoApprovalDelayInSeconds: __expectInt(output.AutoApprovalDelayInSeconds), + AssignmentDurationInSeconds: __expectLong(output.AssignmentDurationInSeconds), + AutoApprovalDelayInSeconds: __expectLong(output.AutoApprovalDelayInSeconds), CreationTime: output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) @@ -4126,10 +4127,10 @@ const deserializeAws_json1_1HIT = (output: any, context: __SerdeContext): HIT => HITStatus: __expectString(output.HITStatus), HITTypeId: __expectString(output.HITTypeId), Keywords: __expectString(output.Keywords), - MaxAssignments: __expectInt(output.MaxAssignments), - NumberOfAssignmentsAvailable: __expectInt(output.NumberOfAssignmentsAvailable), - NumberOfAssignmentsCompleted: __expectInt(output.NumberOfAssignmentsCompleted), - NumberOfAssignmentsPending: __expectInt(output.NumberOfAssignmentsPending), + MaxAssignments: __expectInt32(output.MaxAssignments), + NumberOfAssignmentsAvailable: __expectInt32(output.NumberOfAssignmentsAvailable), + NumberOfAssignmentsCompleted: __expectInt32(output.NumberOfAssignmentsCompleted), + NumberOfAssignmentsPending: __expectInt32(output.NumberOfAssignmentsPending), QualificationRequirements: output.QualificationRequirements !== undefined && output.QualificationRequirements !== null ? deserializeAws_json1_1QualificationRequirementList(output.QualificationRequirements, context) @@ -4159,7 +4160,7 @@ const deserializeAws_json1_1IntegerList = (output: any, context: __SerdeContext) if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -4173,7 +4174,7 @@ const deserializeAws_json1_1ListAssignmentsForHITResponse = ( ? deserializeAws_json1_1AssignmentList(output.Assignments, context) : undefined, NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), } as any; }; @@ -4187,7 +4188,7 @@ const deserializeAws_json1_1ListBonusPaymentsResponse = ( ? deserializeAws_json1_1BonusPaymentList(output.BonusPayments, context) : undefined, NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), } as any; }; @@ -4201,7 +4202,7 @@ const deserializeAws_json1_1ListHITsForQualificationTypeResponse = ( ? deserializeAws_json1_1HITList(output.HITs, context) : undefined, NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), } as any; }; @@ -4212,7 +4213,7 @@ const deserializeAws_json1_1ListHITsResponse = (output: any, context: __SerdeCon ? deserializeAws_json1_1HITList(output.HITs, context) : undefined, NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), } as any; }; @@ -4222,7 +4223,7 @@ const deserializeAws_json1_1ListQualificationRequestsResponse = ( ): ListQualificationRequestsResponse => { return { NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), QualificationRequests: output.QualificationRequests !== undefined && output.QualificationRequests !== null ? deserializeAws_json1_1QualificationRequestList(output.QualificationRequests, context) @@ -4236,7 +4237,7 @@ const deserializeAws_json1_1ListQualificationTypesResponse = ( ): ListQualificationTypesResponse => { return { NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), QualificationTypes: output.QualificationTypes !== undefined && output.QualificationTypes !== null ? deserializeAws_json1_1QualificationTypeList(output.QualificationTypes, context) @@ -4254,7 +4255,7 @@ const deserializeAws_json1_1ListReviewableHITsResponse = ( ? deserializeAws_json1_1HITList(output.HITs, context) : undefined, NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), } as any; }; @@ -4290,7 +4291,7 @@ const deserializeAws_json1_1ListWorkerBlocksResponse = ( ): ListWorkerBlocksResponse => { return { NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), WorkerBlocks: output.WorkerBlocks !== undefined && output.WorkerBlocks !== null ? deserializeAws_json1_1WorkerBlockList(output.WorkerBlocks, context) @@ -4304,7 +4305,7 @@ const deserializeAws_json1_1ListWorkersWithQualificationTypeResponse = ( ): ListWorkersWithQualificationTypeResponse => { return { NextToken: __expectString(output.NextToken), - NumResults: __expectInt(output.NumResults), + NumResults: __expectInt32(output.NumResults), Qualifications: output.Qualifications !== undefined && output.Qualifications !== null ? deserializeAws_json1_1QualificationList(output.Qualifications, context) @@ -4416,7 +4417,7 @@ const deserializeAws_json1_1Qualification = (output: any, context: __SerdeContex output.GrantTime !== undefined && output.GrantTime !== null ? new Date(Math.round(output.GrantTime * 1000)) : undefined, - IntegerValue: __expectInt(output.IntegerValue), + IntegerValue: __expectInt32(output.IntegerValue), LocaleValue: output.LocaleValue !== undefined && output.LocaleValue !== null ? deserializeAws_json1_1Locale(output.LocaleValue, context) @@ -4504,7 +4505,7 @@ const deserializeAws_json1_1QualificationType = (output: any, context: __SerdeCo return { AnswerKey: __expectString(output.AnswerKey), AutoGranted: __expectBoolean(output.AutoGranted), - AutoGrantedValue: __expectInt(output.AutoGrantedValue), + AutoGrantedValue: __expectInt32(output.AutoGrantedValue), CreationTime: output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) @@ -4515,9 +4516,9 @@ const deserializeAws_json1_1QualificationType = (output: any, context: __SerdeCo Name: __expectString(output.Name), QualificationTypeId: __expectString(output.QualificationTypeId), QualificationTypeStatus: __expectString(output.QualificationTypeStatus), - RetryDelayInSeconds: __expectInt(output.RetryDelayInSeconds), + RetryDelayInSeconds: __expectLong(output.RetryDelayInSeconds), Test: __expectString(output.Test), - TestDurationInSeconds: __expectInt(output.TestDurationInSeconds), + TestDurationInSeconds: __expectLong(output.TestDurationInSeconds), } as any; }; diff --git a/clients/client-mwaa/protocols/Aws_restJson1.ts b/clients/client-mwaa/protocols/Aws_restJson1.ts index cf611c362b03b..e64e5f337fc75 100644 --- a/clients/client-mwaa/protocols/Aws_restJson1.ts +++ b/clients/client-mwaa/protocols/Aws_restJson1.ts @@ -40,7 +40,7 @@ import { } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, serializeFloat as __serializeFloat, @@ -1559,8 +1559,8 @@ const deserializeAws_restJson1Environment = (output: any, context: __SerdeContex output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null ? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context) : undefined, - MaxWorkers: __expectInt(output.MaxWorkers), - MinWorkers: __expectInt(output.MinWorkers), + MaxWorkers: __expectInt32(output.MaxWorkers), + MinWorkers: __expectInt32(output.MinWorkers), Name: __expectString(output.Name), NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null @@ -1570,7 +1570,7 @@ const deserializeAws_restJson1Environment = (output: any, context: __SerdeContex PluginsS3Path: __expectString(output.PluginsS3Path), RequirementsS3ObjectVersion: __expectString(output.RequirementsS3ObjectVersion), RequirementsS3Path: __expectString(output.RequirementsS3Path), - Schedulers: __expectInt(output.Schedulers), + Schedulers: __expectInt32(output.Schedulers), ServiceRoleArn: __expectString(output.ServiceRoleArn), SourceBucketArn: __expectString(output.SourceBucketArn), Status: __expectString(output.Status), diff --git a/clients/client-neptune/protocols/Aws_query.ts b/clients/client-neptune/protocols/Aws_query.ts index f9dc39435ccd6..3d7bf152401b5 100644 --- a/clients/client-neptune/protocols/Aws_query.ts +++ b/clients/client-neptune/protocols/Aws_query.ts @@ -440,7 +440,7 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -9566,7 +9566,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB AutomaticRestartTime: undefined, }; if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output.AvailabilityZones === "") { contents.AvailabilityZones = []; @@ -9578,7 +9578,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB ); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["CharacterSetName"] !== undefined) { contents.CharacterSetName = __expectString(output["CharacterSetName"]); @@ -9623,7 +9623,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB contents.LatestRestorableTime = new Date(output["LatestRestorableTime"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["MasterUsername"] !== undefined) { contents.MasterUsername = __expectString(output["MasterUsername"]); @@ -9917,7 +9917,7 @@ const deserializeAws_queryDBClusterMember = (output: any, context: __SerdeContex contents.DBClusterParameterGroupStatus = __expectString(output["DBClusterParameterGroupStatus"]); } if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt(output["PromotionTier"]) as number; + contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; } return contents; }; @@ -10231,13 +10231,13 @@ const deserializeAws_queryDBClusterSnapshot = (output: any, context: __SerdeCont contents.Engine = __expectString(output["Engine"]); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["Status"] !== undefined) { contents.Status = __expectString(output["Status"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["VpcId"] !== undefined) { contents.VpcId = __expectString(output["VpcId"]); @@ -10258,7 +10258,7 @@ const deserializeAws_queryDBClusterSnapshot = (output: any, context: __SerdeCont contents.SnapshotType = __expectString(output["SnapshotType"]); } if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt(output["PercentProgress"]) as number; + contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; } if (output["StorageEncrypted"] !== undefined) { contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); @@ -10591,7 +10591,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.Endpoint = deserializeAws_queryEndpoint(output["Endpoint"], context); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["InstanceCreateTime"] !== undefined) { contents.InstanceCreateTime = new Date(output["InstanceCreateTime"]); @@ -10600,7 +10600,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output.DBSecurityGroups === "") { contents.DBSecurityGroups = []; @@ -10690,7 +10690,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.LicenseModel = __expectString(output["LicenseModel"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output.OptionGroupMemberships === "") { contents.OptionGroupMemberships = []; @@ -10729,7 +10729,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.TdeCredentialArn = __expectString(output["TdeCredentialArn"]); } if (output["DbInstancePort"] !== undefined) { - contents.DbInstancePort = __strictParseInt(output["DbInstancePort"]) as number; + contents.DbInstancePort = __strictParseInt32(output["DbInstancePort"]) as number; } if (output["DBClusterIdentifier"] !== undefined) { contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); @@ -10759,7 +10759,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); } if (output["MonitoringInterval"] !== undefined) { - contents.MonitoringInterval = __strictParseInt(output["MonitoringInterval"]) as number; + contents.MonitoringInterval = __strictParseInt32(output["MonitoringInterval"]) as number; } if (output["EnhancedMonitoringResourceArn"] !== undefined) { contents.EnhancedMonitoringResourceArn = __expectString(output["EnhancedMonitoringResourceArn"]); @@ -10768,7 +10768,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.MonitoringRoleArn = __expectString(output["MonitoringRoleArn"]); } if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt(output["PromotionTier"]) as number; + contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; } if (output["DBInstanceArn"] !== undefined) { contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); @@ -11498,7 +11498,7 @@ const deserializeAws_queryEndpoint = (output: any, context: __SerdeContext): End contents.Address = __expectString(output["Address"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["HostedZoneId"] !== undefined) { contents.HostedZoneId = __expectString(output["HostedZoneId"]); @@ -12251,16 +12251,16 @@ const deserializeAws_queryOrderableDBInstanceOption = ( contents.SupportsPerformanceInsights = __parseBoolean(output["SupportsPerformanceInsights"]); } if (output["MinStorageSize"] !== undefined) { - contents.MinStorageSize = __strictParseInt(output["MinStorageSize"]) as number; + contents.MinStorageSize = __strictParseInt32(output["MinStorageSize"]) as number; } if (output["MaxStorageSize"] !== undefined) { - contents.MaxStorageSize = __strictParseInt(output["MaxStorageSize"]) as number; + contents.MaxStorageSize = __strictParseInt32(output["MaxStorageSize"]) as number; } if (output["MinIopsPerDbInstance"] !== undefined) { - contents.MinIopsPerDbInstance = __strictParseInt(output["MinIopsPerDbInstance"]) as number; + contents.MinIopsPerDbInstance = __strictParseInt32(output["MinIopsPerDbInstance"]) as number; } if (output["MaxIopsPerDbInstance"] !== undefined) { - contents.MaxIopsPerDbInstance = __strictParseInt(output["MaxIopsPerDbInstance"]) as number; + contents.MaxIopsPerDbInstance = __strictParseInt32(output["MaxIopsPerDbInstance"]) as number; } if (output["MinIopsPerGib"] !== undefined) { contents.MinIopsPerGib = __strictParseFloat(output["MinIopsPerGib"]) as number; @@ -12505,16 +12505,16 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["MasterUserPassword"] !== undefined) { contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["MultiAZ"] !== undefined) { contents.MultiAZ = __parseBoolean(output["MultiAZ"]); @@ -12526,7 +12526,7 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.LicenseModel = __expectString(output["LicenseModel"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output["DBInstanceIdentifier"] !== undefined) { contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); @@ -12582,13 +12582,13 @@ const deserializeAws_queryRange = (output: any, context: __SerdeContext): Range Step: undefined, }; if (output["From"] !== undefined) { - contents.From = __strictParseInt(output["From"]) as number; + contents.From = __strictParseInt32(output["From"]) as number; } if (output["To"] !== undefined) { - contents.To = __strictParseInt(output["To"]) as number; + contents.To = __strictParseInt32(output["To"]) as number; } if (output["Step"] !== undefined) { - contents.Step = __strictParseInt(output["Step"]) as number; + contents.Step = __strictParseInt32(output["Step"]) as number; } return contents; }; diff --git a/clients/client-network-firewall/protocols/Aws_json1_0.ts b/clients/client-network-firewall/protocols/Aws_json1_0.ts index 1df829712634f..5128f988556c8 100644 --- a/clients/client-network-firewall/protocols/Aws_json1_0.ts +++ b/clients/client-network-firewall/protocols/Aws_json1_0.ts @@ -189,7 +189,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -4723,8 +4723,8 @@ const deserializeAws_json1_0PerObjectStatus = (output: any, context: __SerdeCont const deserializeAws_json1_0PortRange = (output: any, context: __SerdeContext): PortRange => { return { - FromPort: __expectInt(output.FromPort), - ToPort: __expectInt(output.ToPort), + FromPort: __expectInt32(output.FromPort), + ToPort: __expectInt32(output.ToPort), } as any; }; @@ -4767,7 +4767,7 @@ const deserializeAws_json1_0ProtocolNumbers = (output: any, context: __SerdeCont if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -4840,7 +4840,7 @@ const deserializeAws_json1_0RuleGroupMetadata = (output: any, context: __SerdeCo const deserializeAws_json1_0RuleGroupResponse = (output: any, context: __SerdeContext): RuleGroupResponse => { return { - Capacity: __expectInt(output.Capacity), + Capacity: __expectInt32(output.Capacity), Description: __expectString(output.Description), RuleGroupArn: __expectString(output.RuleGroupArn), RuleGroupId: __expectString(output.RuleGroupId), @@ -5014,7 +5014,7 @@ const deserializeAws_json1_0StatelessActions = (output: any, context: __SerdeCon const deserializeAws_json1_0StatelessRule = (output: any, context: __SerdeContext): StatelessRule => { return { - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), RuleDefinition: output.RuleDefinition !== undefined && output.RuleDefinition !== null ? deserializeAws_json1_0RuleDefinition(output.RuleDefinition, context) @@ -5027,7 +5027,7 @@ const deserializeAws_json1_0StatelessRuleGroupReference = ( context: __SerdeContext ): StatelessRuleGroupReference => { return { - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), ResourceArn: __expectString(output.ResourceArn), } as any; }; diff --git a/clients/client-networkmanager/protocols/Aws_restJson1.ts b/clients/client-networkmanager/protocols/Aws_restJson1.ts index ef603c6d30ed2..5981d8f9f1343 100644 --- a/clients/client-networkmanager/protocols/Aws_restJson1.ts +++ b/clients/client-networkmanager/protocols/Aws_restJson1.ts @@ -104,10 +104,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4881,7 +4881,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async ( RetryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.RetryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { @@ -4960,7 +4960,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( RetryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { - contents.RetryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]); + contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]); } const data: any = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { @@ -5043,8 +5043,8 @@ const deserializeAws_restJson1AWSLocation = (output: any, context: __SerdeContex const deserializeAws_restJson1Bandwidth = (output: any, context: __SerdeContext): Bandwidth => { return { - DownloadSpeed: __expectInt(output.DownloadSpeed), - UploadSpeed: __expectInt(output.UploadSpeed), + DownloadSpeed: __expectInt32(output.DownloadSpeed), + UploadSpeed: __expectInt32(output.UploadSpeed), } as any; }; diff --git a/clients/client-nimble/protocols/Aws_restJson1.ts b/clients/client-nimble/protocols/Aws_restJson1.ts index 38aafef9092dc..fabb8097d3376 100644 --- a/clients/client-nimble/protocols/Aws_restJson1.ts +++ b/clients/client-nimble/protocols/Aws_restJson1.ts @@ -164,7 +164,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -7530,7 +7530,7 @@ const deserializeAws_restJson1StreamConfiguration = (output: any, context: __Ser output.ec2InstanceTypes !== undefined && output.ec2InstanceTypes !== null ? deserializeAws_restJson1StreamingInstanceTypeList(output.ec2InstanceTypes, context) : undefined, - maxSessionLengthInMinutes: __expectInt(output.maxSessionLengthInMinutes), + maxSessionLengthInMinutes: __expectInt32(output.maxSessionLengthInMinutes), streamingImageIds: output.streamingImageIds !== undefined && output.streamingImageIds !== null ? deserializeAws_restJson1StreamingImageIdList(output.streamingImageIds, context) diff --git a/clients/client-opsworks/protocols/Aws_json1_1.ts b/clients/client-opsworks/protocols/Aws_json1_1.ts index 8641ac2eff09a..8213cccc80b01 100644 --- a/clients/client-opsworks/protocols/Aws_json1_1.ts +++ b/clients/client-opsworks/protocols/Aws_json1_1.ts @@ -311,9 +311,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -7134,12 +7134,12 @@ const deserializeAws_json1_1AutoScalingThresholds = (output: any, context: __Ser output.Alarms !== undefined && output.Alarms !== null ? deserializeAws_json1_1Strings(output.Alarms, context) : undefined, - CpuThreshold: __limitedParseFloat(output.CpuThreshold), - IgnoreMetricsTime: __expectInt(output.IgnoreMetricsTime), - InstanceCount: __expectInt(output.InstanceCount), - LoadThreshold: __limitedParseFloat(output.LoadThreshold), - MemoryThreshold: __limitedParseFloat(output.MemoryThreshold), - ThresholdsWaitTime: __expectInt(output.ThresholdsWaitTime), + CpuThreshold: __limitedParseDouble(output.CpuThreshold), + IgnoreMetricsTime: __expectInt32(output.IgnoreMetricsTime), + InstanceCount: __expectInt32(output.InstanceCount), + LoadThreshold: __limitedParseDouble(output.LoadThreshold), + MemoryThreshold: __limitedParseDouble(output.MemoryThreshold), + ThresholdsWaitTime: __expectInt32(output.ThresholdsWaitTime), } as any; }; @@ -7197,9 +7197,9 @@ const deserializeAws_json1_1CloudWatchLogsLogStream = ( context: __SerdeContext ): CloudWatchLogsLogStream => { return { - BatchCount: __expectInt(output.BatchCount), - BatchSize: __expectInt(output.BatchSize), - BufferDuration: __expectInt(output.BufferDuration), + BatchCount: __expectInt32(output.BatchCount), + BatchSize: __expectInt32(output.BatchSize), + BufferDuration: __expectInt32(output.BufferDuration), DatetimeFormat: __expectString(output.DatetimeFormat), Encoding: __expectString(output.Encoding), File: __expectString(output.File), @@ -7232,7 +7232,7 @@ const deserializeAws_json1_1Command = (output: any, context: __SerdeContext): Co CompletedAt: __expectString(output.CompletedAt), CreatedAt: __expectString(output.CreatedAt), DeploymentId: __expectString(output.DeploymentId), - ExitCode: __expectInt(output.ExitCode), + ExitCode: __expectInt32(output.ExitCode), InstanceId: __expectString(output.InstanceId), LogUrl: __expectString(output.LogUrl), Status: __expectString(output.Status), @@ -7336,7 +7336,7 @@ const deserializeAws_json1_1Deployment = (output: any, context: __SerdeContext): CreatedAt: __expectString(output.CreatedAt), CustomJson: __expectString(output.CustomJson), DeploymentId: __expectString(output.DeploymentId), - Duration: __expectInt(output.Duration), + Duration: __expectInt32(output.Duration), IamUserArn: __expectString(output.IamUserArn), InstanceIds: output.InstanceIds !== undefined && output.InstanceIds !== null @@ -7635,9 +7635,9 @@ const deserializeAws_json1_1DescribeVolumesResult = (output: any, context: __Ser const deserializeAws_json1_1EbsBlockDevice = (output: any, context: __SerdeContext): EbsBlockDevice => { return { DeleteOnTermination: __expectBoolean(output.DeleteOnTermination), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), SnapshotId: __expectString(output.SnapshotId), - VolumeSize: __expectInt(output.VolumeSize), + VolumeSize: __expectInt32(output.VolumeSize), VolumeType: __expectString(output.VolumeType), } as any; }; @@ -7826,26 +7826,26 @@ const deserializeAws_json1_1Instances = (output: any, context: __SerdeContext): const deserializeAws_json1_1InstancesCount = (output: any, context: __SerdeContext): InstancesCount => { return { - Assigning: __expectInt(output.Assigning), - Booting: __expectInt(output.Booting), - ConnectionLost: __expectInt(output.ConnectionLost), - Deregistering: __expectInt(output.Deregistering), - Online: __expectInt(output.Online), - Pending: __expectInt(output.Pending), - Rebooting: __expectInt(output.Rebooting), - Registered: __expectInt(output.Registered), - Registering: __expectInt(output.Registering), - Requested: __expectInt(output.Requested), - RunningSetup: __expectInt(output.RunningSetup), - SetupFailed: __expectInt(output.SetupFailed), - ShuttingDown: __expectInt(output.ShuttingDown), - StartFailed: __expectInt(output.StartFailed), - StopFailed: __expectInt(output.StopFailed), - Stopped: __expectInt(output.Stopped), - Stopping: __expectInt(output.Stopping), - Terminated: __expectInt(output.Terminated), - Terminating: __expectInt(output.Terminating), - Unassigning: __expectInt(output.Unassigning), + Assigning: __expectInt32(output.Assigning), + Booting: __expectInt32(output.Booting), + ConnectionLost: __expectInt32(output.ConnectionLost), + Deregistering: __expectInt32(output.Deregistering), + Online: __expectInt32(output.Online), + Pending: __expectInt32(output.Pending), + Rebooting: __expectInt32(output.Rebooting), + Registered: __expectInt32(output.Registered), + Registering: __expectInt32(output.Registering), + Requested: __expectInt32(output.Requested), + RunningSetup: __expectInt32(output.RunningSetup), + SetupFailed: __expectInt32(output.SetupFailed), + ShuttingDown: __expectInt32(output.ShuttingDown), + StartFailed: __expectInt32(output.StartFailed), + StopFailed: __expectInt32(output.StopFailed), + Stopped: __expectInt32(output.Stopped), + Stopping: __expectInt32(output.Stopping), + Terminated: __expectInt32(output.Terminated), + Terminating: __expectInt32(output.Terminating), + Unassigning: __expectInt32(output.Unassigning), } as any; }; @@ -8071,13 +8071,13 @@ const deserializeAws_json1_1RaidArray = (output: any, context: __SerdeContext): CreatedAt: __expectString(output.CreatedAt), Device: __expectString(output.Device), InstanceId: __expectString(output.InstanceId), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), MountPoint: __expectString(output.MountPoint), Name: __expectString(output.Name), - NumberOfDisks: __expectInt(output.NumberOfDisks), + NumberOfDisks: __expectInt32(output.NumberOfDisks), RaidArrayId: __expectString(output.RaidArrayId), - RaidLevel: __expectInt(output.RaidLevel), - Size: __expectInt(output.Size), + RaidLevel: __expectInt32(output.RaidLevel), + Size: __expectInt32(output.Size), StackId: __expectString(output.StackId), VolumeType: __expectString(output.VolumeType), } as any; @@ -8228,7 +8228,7 @@ const deserializeAws_json1_1ShutdownEventConfiguration = ( ): ShutdownEventConfiguration => { return { DelayUntilElbConnectionsDrained: __expectBoolean(output.DelayUntilElbConnectionsDrained), - ExecutionTimeout: __expectInt(output.ExecutionTimeout), + ExecutionTimeout: __expectInt32(output.ExecutionTimeout), } as any; }; @@ -8328,13 +8328,13 @@ const deserializeAws_json1_1Stacks = (output: any, context: __SerdeContext): Sta const deserializeAws_json1_1StackSummary = (output: any, context: __SerdeContext): StackSummary => { return { - AppsCount: __expectInt(output.AppsCount), + AppsCount: __expectInt32(output.AppsCount), Arn: __expectString(output.Arn), InstancesCount: output.InstancesCount !== undefined && output.InstancesCount !== null ? deserializeAws_json1_1InstancesCount(output.InstancesCount, context) : undefined, - LayersCount: __expectInt(output.LayersCount), + LayersCount: __expectInt32(output.LayersCount), Name: __expectString(output.Name), StackId: __expectString(output.StackId), } as any; @@ -8368,7 +8368,7 @@ const deserializeAws_json1_1TemporaryCredential = (output: any, context: __Serde InstanceId: __expectString(output.InstanceId), Password: __expectString(output.Password), Username: __expectString(output.Username), - ValidForInMinutes: __expectInt(output.ValidForInMinutes), + ValidForInMinutes: __expectInt32(output.ValidForInMinutes), } as any; }; @@ -8433,12 +8433,12 @@ const deserializeAws_json1_1Volume = (output: any, context: __SerdeContext): Vol Ec2VolumeId: __expectString(output.Ec2VolumeId), Encrypted: __expectBoolean(output.Encrypted), InstanceId: __expectString(output.InstanceId), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), MountPoint: __expectString(output.MountPoint), Name: __expectString(output.Name), RaidArrayId: __expectString(output.RaidArrayId), Region: __expectString(output.Region), - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), Status: __expectString(output.Status), VolumeId: __expectString(output.VolumeId), VolumeType: __expectString(output.VolumeType), @@ -8448,11 +8448,11 @@ const deserializeAws_json1_1Volume = (output: any, context: __SerdeContext): Vol const deserializeAws_json1_1VolumeConfiguration = (output: any, context: __SerdeContext): VolumeConfiguration => { return { Encrypted: __expectBoolean(output.Encrypted), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), MountPoint: __expectString(output.MountPoint), - NumberOfDisks: __expectInt(output.NumberOfDisks), - RaidLevel: __expectInt(output.RaidLevel), - Size: __expectInt(output.Size), + NumberOfDisks: __expectInt32(output.NumberOfDisks), + RaidLevel: __expectInt32(output.RaidLevel), + Size: __expectInt32(output.Size), VolumeType: __expectString(output.VolumeType), } as any; }; diff --git a/clients/client-opsworkscm/protocols/Aws_json1_1.ts b/clients/client-opsworkscm/protocols/Aws_json1_1.ts index 6e2c67714e942..eacf8489c29d3 100644 --- a/clients/client-opsworkscm/protocols/Aws_json1_1.ts +++ b/clients/client-opsworkscm/protocols/Aws_json1_1.ts @@ -87,7 +87,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -2015,9 +2015,9 @@ const serializeAws_json1_1UpdateServerRequest = (input: UpdateServerRequest, con const deserializeAws_json1_1AccountAttribute = (output: any, context: __SerdeContext): AccountAttribute => { return { - Maximum: __expectInt(output.Maximum), + Maximum: __expectInt32(output.Maximum), Name: __expectString(output.Name), - Used: __expectInt(output.Used), + Used: __expectInt32(output.Used), } as any; }; @@ -2056,7 +2056,7 @@ const deserializeAws_json1_1Backup = (output: any, context: __SerdeContext): Bac KeyPair: __expectString(output.KeyPair), PreferredBackupWindow: __expectString(output.PreferredBackupWindow), PreferredMaintenanceWindow: __expectString(output.PreferredMaintenanceWindow), - S3DataSize: __expectInt(output.S3DataSize), + S3DataSize: __expectInt32(output.S3DataSize), S3DataUrl: __expectString(output.S3DataUrl), S3LogUrl: __expectString(output.S3LogUrl), SecurityGroupIds: @@ -2278,7 +2278,7 @@ const deserializeAws_json1_1RestoreServerResponse = (output: any, context: __Ser const deserializeAws_json1_1Server = (output: any, context: __SerdeContext): Server => { return { AssociatePublicIpAddress: __expectBoolean(output.AssociatePublicIpAddress), - BackupRetentionCount: __expectInt(output.BackupRetentionCount), + BackupRetentionCount: __expectInt32(output.BackupRetentionCount), CloudFormationStackArn: __expectString(output.CloudFormationStackArn), CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null diff --git a/clients/client-personalize-runtime/protocols/Aws_restJson1.ts b/clients/client-personalize-runtime/protocols/Aws_restJson1.ts index 53cd5dde1186c..a02cd40fd65f1 100644 --- a/clients/client-personalize-runtime/protocols/Aws_restJson1.ts +++ b/clients/client-personalize-runtime/protocols/Aws_restJson1.ts @@ -5,7 +5,7 @@ import { import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "../commands/GetRecommendationsCommand"; import { InvalidInputException, PredictedItem, ResourceNotFoundException } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectString as __expectString, limitedParseFloat as __limitedParseFloat } from "@aws-sdk/smithy-client"; +import { expectString as __expectString, limitedParseDouble as __limitedParseDouble } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -295,7 +295,7 @@ const deserializeAws_restJson1ItemList = (output: any, context: __SerdeContext): const deserializeAws_restJson1PredictedItem = (output: any, context: __SerdeContext): PredictedItem => { return { itemId: __expectString(output.itemId), - score: __limitedParseFloat(output.score), + score: __limitedParseDouble(output.score), } as any; }; diff --git a/clients/client-personalize/protocols/Aws_json1_1.ts b/clients/client-personalize/protocols/Aws_json1_1.ts index df71668848dd7..243cfb129e6d1 100644 --- a/clients/client-personalize/protocols/Aws_json1_1.ts +++ b/clients/client-personalize/protocols/Aws_json1_1.ts @@ -241,9 +241,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -4957,7 +4957,7 @@ const deserializeAws_json1_1BatchInferenceJob = (output: any, context: __SerdeCo output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null ? new Date(Math.round(output.lastUpdatedDateTime * 1000)) : undefined, - numResults: __expectInt(output.numResults), + numResults: __expectInt32(output.numResults), roleArn: __expectString(output.roleArn), solutionVersionArn: __expectString(output.solutionVersionArn), status: __expectString(output.status), @@ -5049,7 +5049,7 @@ const deserializeAws_json1_1Campaign = (output: any, context: __SerdeContext): C output.latestCampaignUpdate !== undefined && output.latestCampaignUpdate !== null ? deserializeAws_json1_1CampaignUpdateSummary(output.latestCampaignUpdate, context) : undefined, - minProvisionedTPS: __expectInt(output.minProvisionedTPS), + minProvisionedTPS: __expectInt32(output.minProvisionedTPS), name: __expectString(output.name), solutionVersionArn: __expectString(output.solutionVersionArn), status: __expectString(output.status), @@ -5108,7 +5108,7 @@ const deserializeAws_json1_1CampaignUpdateSummary = (output: any, context: __Ser output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null ? new Date(Math.round(output.lastUpdatedDateTime * 1000)) : undefined, - minProvisionedTPS: __expectInt(output.minProvisionedTPS), + minProvisionedTPS: __expectInt32(output.minProvisionedTPS), solutionVersionArn: __expectString(output.solutionVersionArn), status: __expectString(output.status), } as any; @@ -5157,8 +5157,8 @@ const deserializeAws_json1_1ContinuousHyperParameterRange = ( context: __SerdeContext ): ContinuousHyperParameterRange => { return { - maxValue: __limitedParseFloat(output.maxValue), - minValue: __limitedParseFloat(output.minValue), + maxValue: __limitedParseDouble(output.maxValue), + minValue: __limitedParseDouble(output.minValue), name: __expectString(output.name), } as any; }; @@ -5545,8 +5545,8 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRange = ( ): DefaultContinuousHyperParameterRange => { return { isTunable: __expectBoolean(output.isTunable), - maxValue: __limitedParseFloat(output.maxValue), - minValue: __limitedParseFloat(output.minValue), + maxValue: __limitedParseDouble(output.maxValue), + minValue: __limitedParseDouble(output.minValue), name: __expectString(output.name), } as any; }; @@ -5591,8 +5591,8 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRange = ( ): DefaultIntegerHyperParameterRange => { return { isTunable: __expectBoolean(output.isTunable), - maxValue: __expectInt(output.maxValue), - minValue: __expectInt(output.minValue), + maxValue: __expectInt32(output.maxValue), + minValue: __expectInt32(output.minValue), name: __expectString(output.name), } as any; }; @@ -5993,8 +5993,8 @@ const deserializeAws_json1_1IntegerHyperParameterRange = ( context: __SerdeContext ): IntegerHyperParameterRange => { return { - maxValue: __expectInt(output.maxValue), - minValue: __expectInt(output.minValue), + maxValue: __expectInt32(output.maxValue), + minValue: __expectInt32(output.minValue), name: __expectString(output.name), } as any; }; @@ -6179,7 +6179,7 @@ const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): { } return { ...acc, - [key]: __limitedParseFloat(value) as any, + [key]: __limitedParseDouble(value) as any, }; }, {}); }; @@ -6401,7 +6401,7 @@ const deserializeAws_json1_1SolutionVersion = (output: any, context: __SerdeCont : undefined, solutionVersionArn: __expectString(output.solutionVersionArn), status: __expectString(output.status), - trainingHours: __limitedParseFloat(output.trainingHours), + trainingHours: __limitedParseDouble(output.trainingHours), trainingMode: __expectString(output.trainingMode), tunedHPOParams: output.tunedHPOParams !== undefined && output.tunedHPOParams !== null diff --git a/clients/client-pi/protocols/Aws_json1_1.ts b/clients/client-pi/protocols/Aws_json1_1.ts index e4357b6ea8310..a2a76fa72ba1a 100644 --- a/clients/client-pi/protocols/Aws_json1_1.ts +++ b/clients/client-pi/protocols/Aws_json1_1.ts @@ -27,7 +27,7 @@ import { ResponseResourceMetricKey, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectString as __expectString, limitedParseFloat as __limitedParseFloat } from "@aws-sdk/smithy-client"; +import { expectString as __expectString, limitedParseDouble as __limitedParseDouble } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -465,7 +465,7 @@ const deserializeAws_json1_1DataPoint = (output: any, context: __SerdeContext): output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -518,7 +518,7 @@ const deserializeAws_json1_1DimensionKeyDescription = ( output.Partitions !== undefined && output.Partitions !== null ? deserializeAws_json1_1MetricValuesList(output.Partitions, context) : undefined, - Total: __limitedParseFloat(output.Total), + Total: __limitedParseDouble(output.Total), } as any; }; @@ -647,7 +647,7 @@ const deserializeAws_json1_1MetricValuesList = (output: any, context: __SerdeCon if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; diff --git a/clients/client-pinpoint-email/protocols/Aws_restJson1.ts b/clients/client-pinpoint-email/protocols/Aws_restJson1.ts index d9cc80bfe2cf2..dafba2602bf34 100644 --- a/clients/client-pinpoint-email/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-email/protocols/Aws_restJson1.ts @@ -197,10 +197,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -5308,7 +5309,7 @@ const deserializeAws_restJson1DedicatedIp = (output: any, context: __SerdeContex return { Ip: __expectString(output.Ip), PoolName: __expectString(output.PoolName), - WarmupPercentage: __expectInt(output.WarmupPercentage), + WarmupPercentage: __expectInt32(output.WarmupPercentage), WarmupStatus: __expectString(output.WarmupStatus), } as any; }; @@ -5390,7 +5391,7 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = ( ): DomainDeliverabilityCampaign => { return { CampaignId: __expectString(output.CampaignId), - DeleteRate: __limitedParseFloat(output.DeleteRate), + DeleteRate: __limitedParseDouble(output.DeleteRate), Esps: output.Esps !== undefined && output.Esps !== null ? deserializeAws_restJson1Esps(output.Esps, context) @@ -5401,19 +5402,19 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = ( : undefined, FromAddress: __expectString(output.FromAddress), ImageUrl: __expectString(output.ImageUrl), - InboxCount: __expectInt(output.InboxCount), + InboxCount: __expectLong(output.InboxCount), LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null ? new Date(Math.round(output.LastSeenDateTime * 1000)) : undefined, - ProjectedVolume: __expectInt(output.ProjectedVolume), - ReadDeleteRate: __limitedParseFloat(output.ReadDeleteRate), - ReadRate: __limitedParseFloat(output.ReadRate), + ProjectedVolume: __expectLong(output.ProjectedVolume), + ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate), + ReadRate: __limitedParseDouble(output.ReadRate), SendingIps: output.SendingIps !== undefined && output.SendingIps !== null ? deserializeAws_restJson1IpList(output.SendingIps, context) : undefined, - SpamCount: __expectInt(output.SpamCount), + SpamCount: __expectLong(output.SpamCount), Subject: __expectString(output.Subject), } as any; }; @@ -5465,11 +5466,11 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = ( const deserializeAws_restJson1DomainIspPlacement = (output: any, context: __SerdeContext): DomainIspPlacement => { return { - InboxPercentage: __limitedParseFloat(output.InboxPercentage), - InboxRawCount: __expectInt(output.InboxRawCount), + InboxPercentage: __limitedParseDouble(output.InboxPercentage), + InboxRawCount: __expectLong(output.InboxRawCount), IspName: __expectString(output.IspName), - SpamPercentage: __limitedParseFloat(output.SpamPercentage), - SpamRawCount: __expectInt(output.SpamRawCount), + SpamPercentage: __limitedParseDouble(output.SpamPercentage), + SpamRawCount: __expectLong(output.SpamRawCount), } as any; }; @@ -5654,7 +5655,7 @@ const deserializeAws_restJson1OverallVolume = (output: any, context: __SerdeCont output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context) : undefined, - ReadRatePercent: __limitedParseFloat(output.ReadRatePercent), + ReadRatePercent: __limitedParseDouble(output.ReadRatePercent), VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context) @@ -5670,11 +5671,11 @@ const deserializeAws_restJson1PinpointDestination = (output: any, context: __Ser const deserializeAws_restJson1PlacementStatistics = (output: any, context: __SerdeContext): PlacementStatistics => { return { - DkimPercentage: __limitedParseFloat(output.DkimPercentage), - InboxPercentage: __limitedParseFloat(output.InboxPercentage), - MissingPercentage: __limitedParseFloat(output.MissingPercentage), - SpamPercentage: __limitedParseFloat(output.SpamPercentage), - SpfPercentage: __limitedParseFloat(output.SpfPercentage), + DkimPercentage: __limitedParseDouble(output.DkimPercentage), + InboxPercentage: __limitedParseDouble(output.InboxPercentage), + MissingPercentage: __limitedParseDouble(output.MissingPercentage), + SpamPercentage: __limitedParseDouble(output.SpamPercentage), + SpfPercentage: __limitedParseDouble(output.SpfPercentage), } as any; }; @@ -5696,9 +5697,9 @@ const deserializeAws_restJson1SendingOptions = (output: any, context: __SerdeCon const deserializeAws_restJson1SendQuota = (output: any, context: __SerdeContext): SendQuota => { return { - Max24HourSend: __limitedParseFloat(output.Max24HourSend), - MaxSendRate: __limitedParseFloat(output.MaxSendRate), - SentLast24Hours: __limitedParseFloat(output.SentLast24Hours), + Max24HourSend: __limitedParseDouble(output.Max24HourSend), + MaxSendRate: __limitedParseDouble(output.MaxSendRate), + SentLast24Hours: __limitedParseDouble(output.SentLast24Hours), } as any; }; @@ -5734,10 +5735,10 @@ const deserializeAws_restJson1TrackingOptions = (output: any, context: __SerdeCo const deserializeAws_restJson1VolumeStatistics = (output: any, context: __SerdeContext): VolumeStatistics => { return { - InboxRawCount: __expectInt(output.InboxRawCount), - ProjectedInbox: __expectInt(output.ProjectedInbox), - ProjectedSpam: __expectInt(output.ProjectedSpam), - SpamRawCount: __expectInt(output.SpamRawCount), + InboxRawCount: __expectLong(output.InboxRawCount), + ProjectedInbox: __expectLong(output.ProjectedInbox), + ProjectedSpam: __expectLong(output.ProjectedSpam), + SpamRawCount: __expectLong(output.SpamRawCount), } as any; }; diff --git a/clients/client-pinpoint/protocols/Aws_restJson1.ts b/clients/client-pinpoint/protocols/Aws_restJson1.ts index b79a3fb6d4917..2c6cb8a9114ec 100644 --- a/clients/client-pinpoint/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint/protocols/Aws_restJson1.ts @@ -413,10 +413,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -17660,10 +17660,10 @@ const deserializeAws_restJson1ActivityResponse = (output: any, context: __SerdeC ScheduledStart: __expectString(output.ScheduledStart), Start: __expectString(output.Start), State: __expectString(output.State), - SuccessfulEndpointCount: __expectInt(output.SuccessfulEndpointCount), - TimezonesCompletedCount: __expectInt(output.TimezonesCompletedCount), - TimezonesTotalCount: __expectInt(output.TimezonesTotalCount), - TotalEndpointCount: __expectInt(output.TotalEndpointCount), + SuccessfulEndpointCount: __expectInt32(output.SuccessfulEndpointCount), + TimezonesCompletedCount: __expectInt32(output.TimezonesCompletedCount), + TimezonesTotalCount: __expectInt32(output.TimezonesTotalCount), + TotalEndpointCount: __expectInt32(output.TotalEndpointCount), TreatmentId: __expectString(output.TreatmentId), } as any; }; @@ -17679,7 +17679,7 @@ const deserializeAws_restJson1ADMChannelResponse = (output: any, context: __Serd LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -17713,7 +17713,7 @@ const deserializeAws_restJson1APNSChannelResponse = (output: any, context: __Ser LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -17748,7 +17748,7 @@ const deserializeAws_restJson1APNSSandboxChannelResponse = ( LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -17768,7 +17768,7 @@ const deserializeAws_restJson1APNSVoipChannelResponse = ( LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -17788,7 +17788,7 @@ const deserializeAws_restJson1APNSVoipSandboxChannelResponse = ( LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -17886,7 +17886,7 @@ const deserializeAws_restJson1BaiduChannelResponse = (output: any, context: __Se LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -17952,10 +17952,10 @@ const deserializeAws_restJson1CampaignHook = (output: any, context: __SerdeConte const deserializeAws_restJson1CampaignLimits = (output: any, context: __SerdeContext): CampaignLimits => { return { - Daily: __expectInt(output.Daily), - MaximumDuration: __expectInt(output.MaximumDuration), - MessagesPerSecond: __expectInt(output.MessagesPerSecond), - Total: __expectInt(output.Total), + Daily: __expectInt32(output.Daily), + MaximumDuration: __expectInt32(output.MaximumDuration), + MessagesPerSecond: __expectInt32(output.MessagesPerSecond), + Total: __expectInt32(output.Total), } as any; }; @@ -17977,7 +17977,7 @@ const deserializeAws_restJson1CampaignResponse = (output: any, context: __SerdeC ? deserializeAws_restJson1CampaignState(output.DefaultState, context) : undefined, Description: __expectString(output.Description), - HoldoutPercent: __expectInt(output.HoldoutPercent), + HoldoutPercent: __expectInt32(output.HoldoutPercent), Hook: output.Hook !== undefined && output.Hook !== null ? deserializeAws_restJson1CampaignHook(output.Hook, context) @@ -17999,7 +17999,7 @@ const deserializeAws_restJson1CampaignResponse = (output: any, context: __SerdeC ? deserializeAws_restJson1Schedule(output.Schedule, context) : undefined, SegmentId: __expectString(output.SegmentId), - SegmentVersion: __expectInt(output.SegmentVersion), + SegmentVersion: __expectInt32(output.SegmentVersion), State: output.State !== undefined && output.State !== null ? deserializeAws_restJson1CampaignState(output.State, context) @@ -18010,7 +18010,7 @@ const deserializeAws_restJson1CampaignResponse = (output: any, context: __SerdeC : undefined, TreatmentDescription: __expectString(output.TreatmentDescription), TreatmentName: __expectString(output.TreatmentName), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) @@ -18055,7 +18055,7 @@ const deserializeAws_restJson1ChannelResponse = (output: any, context: __SerdeCo IsArchived: __expectBoolean(output.IsArchived), LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -18163,10 +18163,10 @@ const deserializeAws_restJson1EmailChannelResponse = (output: any, context: __Se IsArchived: __expectBoolean(output.IsArchived), LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), - MessagesPerSecond: __expectInt(output.MessagesPerSecond), + MessagesPerSecond: __expectInt32(output.MessagesPerSecond), Platform: __expectString(output.Platform), RoleArn: __expectString(output.RoleArn), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -18219,7 +18219,7 @@ const deserializeAws_restJson1EndpointDemographic = (output: any, context: __Ser const deserializeAws_restJson1EndpointItemResponse = (output: any, context: __SerdeContext): EndpointItemResponse => { return { Message: __expectString(output.Message), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), } as any; }; @@ -18227,8 +18227,8 @@ const deserializeAws_restJson1EndpointLocation = (output: any, context: __SerdeC return { City: __expectString(output.City), Country: __expectString(output.Country), - Latitude: __limitedParseFloat(output.Latitude), - Longitude: __limitedParseFloat(output.Longitude), + Latitude: __limitedParseDouble(output.Latitude), + Longitude: __limitedParseDouble(output.Longitude), PostalCode: __expectString(output.PostalCode), Region: __expectString(output.Region), } as any; @@ -18239,7 +18239,7 @@ const deserializeAws_restJson1EndpointMessageResult = (output: any, context: __S Address: __expectString(output.Address), DeliveryStatus: __expectString(output.DeliveryStatus), MessageId: __expectString(output.MessageId), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), StatusMessage: __expectString(output.StatusMessage), UpdatedToken: __expectString(output.UpdatedToken), } as any; @@ -18339,7 +18339,7 @@ const deserializeAws_restJson1EventFilter = (output: any, context: __SerdeContex const deserializeAws_restJson1EventItemResponse = (output: any, context: __SerdeContext): EventItemResponse => { return { Message: __expectString(output.Message), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), } as any; }; @@ -18378,30 +18378,30 @@ const deserializeAws_restJson1ExportJobResource = (output: any, context: __Serde RoleArn: __expectString(output.RoleArn), S3UrlPrefix: __expectString(output.S3UrlPrefix), SegmentId: __expectString(output.SegmentId), - SegmentVersion: __expectInt(output.SegmentVersion), + SegmentVersion: __expectInt32(output.SegmentVersion), } as any; }; const deserializeAws_restJson1ExportJobResponse = (output: any, context: __SerdeContext): ExportJobResponse => { return { ApplicationId: __expectString(output.ApplicationId), - CompletedPieces: __expectInt(output.CompletedPieces), + CompletedPieces: __expectInt32(output.CompletedPieces), CompletionDate: __expectString(output.CompletionDate), CreationDate: __expectString(output.CreationDate), Definition: output.Definition !== undefined && output.Definition !== null ? deserializeAws_restJson1ExportJobResource(output.Definition, context) : undefined, - FailedPieces: __expectInt(output.FailedPieces), + FailedPieces: __expectInt32(output.FailedPieces), Failures: output.Failures !== undefined && output.Failures !== null ? deserializeAws_restJson1ListOf__string(output.Failures, context) : undefined, Id: __expectString(output.Id), JobStatus: __expectString(output.JobStatus), - TotalFailures: __expectInt(output.TotalFailures), - TotalPieces: __expectInt(output.TotalPieces), - TotalProcessed: __expectInt(output.TotalProcessed), + TotalFailures: __expectInt32(output.TotalFailures), + TotalPieces: __expectInt32(output.TotalPieces), + TotalProcessed: __expectInt32(output.TotalProcessed), Type: __expectString(output.Type), } as any; }; @@ -18428,14 +18428,14 @@ const deserializeAws_restJson1GCMChannelResponse = (output: any, context: __Serd LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; const deserializeAws_restJson1GPSCoordinates = (output: any, context: __SerdeContext): GPSCoordinates => { return { - Latitude: __limitedParseFloat(output.Latitude), - Longitude: __limitedParseFloat(output.Longitude), + Latitude: __limitedParseDouble(output.Latitude), + Longitude: __limitedParseDouble(output.Longitude), } as any; }; @@ -18445,14 +18445,14 @@ const deserializeAws_restJson1GPSPointDimension = (output: any, context: __Serde output.Coordinates !== undefined && output.Coordinates !== null ? deserializeAws_restJson1GPSCoordinates(output.Coordinates, context) : undefined, - RangeInKilometers: __limitedParseFloat(output.RangeInKilometers), + RangeInKilometers: __limitedParseDouble(output.RangeInKilometers), } as any; }; const deserializeAws_restJson1HoldoutActivity = (output: any, context: __SerdeContext): HoldoutActivity => { return { NextActivity: __expectString(output.NextActivity), - Percentage: __expectInt(output.Percentage), + Percentage: __expectInt32(output.Percentage), } as any; }; @@ -18472,23 +18472,23 @@ const deserializeAws_restJson1ImportJobResource = (output: any, context: __Serde const deserializeAws_restJson1ImportJobResponse = (output: any, context: __SerdeContext): ImportJobResponse => { return { ApplicationId: __expectString(output.ApplicationId), - CompletedPieces: __expectInt(output.CompletedPieces), + CompletedPieces: __expectInt32(output.CompletedPieces), CompletionDate: __expectString(output.CompletionDate), CreationDate: __expectString(output.CreationDate), Definition: output.Definition !== undefined && output.Definition !== null ? deserializeAws_restJson1ImportJobResource(output.Definition, context) : undefined, - FailedPieces: __expectInt(output.FailedPieces), + FailedPieces: __expectInt32(output.FailedPieces), Failures: output.Failures !== undefined && output.Failures !== null ? deserializeAws_restJson1ListOf__string(output.Failures, context) : undefined, Id: __expectString(output.Id), JobStatus: __expectString(output.JobStatus), - TotalFailures: __expectInt(output.TotalFailures), - TotalPieces: __expectInt(output.TotalPieces), - TotalProcessed: __expectInt(output.TotalProcessed), + TotalFailures: __expectInt32(output.TotalFailures), + TotalPieces: __expectInt32(output.TotalPieces), + TotalProcessed: __expectInt32(output.TotalProcessed), Type: __expectString(output.Type), } as any; }; @@ -18580,10 +18580,10 @@ const deserializeAws_restJson1JourneyExecutionMetricsResponse = ( const deserializeAws_restJson1JourneyLimits = (output: any, context: __SerdeContext): JourneyLimits => { return { - DailyCap: __expectInt(output.DailyCap), - EndpointReentryCap: __expectInt(output.EndpointReentryCap), + DailyCap: __expectInt32(output.DailyCap), + EndpointReentryCap: __expectInt32(output.EndpointReentryCap), EndpointReentryInterval: __expectString(output.EndpointReentryInterval), - MessagesPerSecond: __expectInt(output.MessagesPerSecond), + MessagesPerSecond: __expectInt32(output.MessagesPerSecond), } as any; }; @@ -18938,7 +18938,7 @@ const deserializeAws_restJson1MapOf__double = (output: any, context: __SerdeCont } return { ...acc, - [key]: __limitedParseFloat(value) as any, + [key]: __limitedParseDouble(value) as any, }; }, {}); }; @@ -18950,7 +18950,7 @@ const deserializeAws_restJson1MapOf__integer = (output: any, context: __SerdeCon } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -19128,7 +19128,7 @@ const deserializeAws_restJson1Message = (output: any, context: __SerdeContext): MediaUrl: __expectString(output.MediaUrl), RawContent: __expectString(output.RawContent), SilentPush: __expectBoolean(output.SilentPush), - TimeToLive: __expectInt(output.TimeToLive), + TimeToLive: __expectInt32(output.TimeToLive), Title: __expectString(output.Title), Url: __expectString(output.Url), } as any; @@ -19197,7 +19197,7 @@ const deserializeAws_restJson1MessageResult = (output: any, context: __SerdeCont return { DeliveryStatus: __expectString(output.DeliveryStatus), MessageId: __expectString(output.MessageId), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), StatusMessage: __expectString(output.StatusMessage), UpdatedToken: __expectString(output.UpdatedToken), } as any; @@ -19206,7 +19206,7 @@ const deserializeAws_restJson1MessageResult = (output: any, context: __SerdeCont const deserializeAws_restJson1MetricDimension = (output: any, context: __SerdeContext): MetricDimension => { return { ComparisonOperator: __expectString(output.ComparisonOperator), - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -19256,7 +19256,7 @@ const deserializeAws_restJson1NumberValidateResponse = ( OriginalCountryCodeIso2: __expectString(output.OriginalCountryCodeIso2), OriginalPhoneNumber: __expectString(output.OriginalPhoneNumber), PhoneType: __expectString(output.PhoneType), - PhoneTypeCode: __expectInt(output.PhoneTypeCode), + PhoneTypeCode: __expectInt32(output.PhoneTypeCode), Timezone: __expectString(output.Timezone), ZipCode: __expectString(output.ZipCode), } as any; @@ -19334,7 +19334,7 @@ const deserializeAws_restJson1RandomSplitActivity = (output: any, context: __Ser const deserializeAws_restJson1RandomSplitEntry = (output: any, context: __SerdeContext): RandomSplitEntry => { return { NextActivity: __expectString(output.NextActivity), - Percentage: __expectInt(output.Percentage), + Percentage: __expectInt32(output.Percentage), } as any; }; @@ -19364,7 +19364,7 @@ const deserializeAws_restJson1RecommenderConfigurationResponse = ( RecommendationProviderUri: __expectString(output.RecommendationProviderUri), RecommendationTransformerUri: __expectString(output.RecommendationTransformerUri), RecommendationsDisplayName: __expectString(output.RecommendationsDisplayName), - RecommendationsPerMessage: __expectInt(output.RecommendationsPerMessage), + RecommendationsPerMessage: __expectInt32(output.RecommendationsPerMessage), } as any; }; @@ -19515,7 +19515,7 @@ const deserializeAws_restJson1SegmentImportResource = (output: any, context: __S Format: __expectString(output.Format), RoleArn: __expectString(output.RoleArn), S3Url: __expectString(output.S3Url), - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), } as any; }; @@ -19535,7 +19535,7 @@ const deserializeAws_restJson1SegmentLocation = (output: any, context: __SerdeCo const deserializeAws_restJson1SegmentReference = (output: any, context: __SerdeContext): SegmentReference => { return { Id: __expectString(output.Id), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -19560,7 +19560,7 @@ const deserializeAws_restJson1SegmentResponse = (output: any, context: __SerdeCo ? deserializeAws_restJson1SegmentGroupList(output.SegmentGroups, context) : undefined, SegmentType: __expectString(output.SegmentType), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) @@ -19630,11 +19630,11 @@ const deserializeAws_restJson1SMSChannelResponse = (output: any, context: __Serd LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - PromotionalMessagesPerSecond: __expectInt(output.PromotionalMessagesPerSecond), + PromotionalMessagesPerSecond: __expectInt32(output.PromotionalMessagesPerSecond), SenderId: __expectString(output.SenderId), ShortCode: __expectString(output.ShortCode), - TransactionalMessagesPerSecond: __expectInt(output.TransactionalMessagesPerSecond), - Version: __expectInt(output.Version), + TransactionalMessagesPerSecond: __expectInt32(output.TransactionalMessagesPerSecond), + Version: __expectInt32(output.Version), } as any; }; @@ -19792,7 +19792,7 @@ const deserializeAws_restJson1TreatmentResource = (output: any, context: __Serde output.Schedule !== undefined && output.Schedule !== null ? deserializeAws_restJson1Schedule(output.Schedule, context) : undefined, - SizePercent: __expectInt(output.SizePercent), + SizePercent: __expectInt32(output.SizePercent), State: output.State !== undefined && output.State !== null ? deserializeAws_restJson1CampaignState(output.State, context) @@ -19817,7 +19817,7 @@ const deserializeAws_restJson1VoiceChannelResponse = (output: any, context: __Se LastModifiedBy: __expectString(output.LastModifiedBy), LastModifiedDate: __expectString(output.LastModifiedDate), Platform: __expectString(output.Platform), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; diff --git a/clients/client-polly/protocols/Aws_restJson1.ts b/clients/client-polly/protocols/Aws_restJson1.ts index 36011e9fe0acf..7e45817a3d321 100644 --- a/clients/client-polly/protocols/Aws_restJson1.ts +++ b/clients/client-polly/protocols/Aws_restJson1.ts @@ -49,10 +49,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -994,7 +994,7 @@ export const deserializeAws_restJson1SynthesizeSpeechCommand = async ( contents.ContentType = output.headers["content-type"]; } if (output.headers["x-amzn-requestcharacters"] !== undefined) { - contents.RequestCharacters = __strictParseInt(output.headers["x-amzn-requestcharacters"]); + contents.RequestCharacters = __strictParseInt32(output.headers["x-amzn-requestcharacters"]); } const data: any = output.body; contents.AudioStream = data; @@ -1518,9 +1518,9 @@ const deserializeAws_restJson1LexiconAttributes = (output: any, context: __Serde output.LastModified !== undefined && output.LastModified !== null ? new Date(Math.round(output.LastModified * 1000)) : undefined, - LexemesCount: __expectInt(output.LexemesCount), + LexemesCount: __expectInt32(output.LexemesCount), LexiconArn: __expectString(output.LexiconArn), - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), } as any; }; @@ -1584,7 +1584,7 @@ const deserializeAws_restJson1SynthesisTask = (output: any, context: __SerdeCont : undefined, OutputFormat: __expectString(output.OutputFormat), OutputUri: __expectString(output.OutputUri), - RequestCharacters: __expectInt(output.RequestCharacters), + RequestCharacters: __expectInt32(output.RequestCharacters), SampleRate: __expectString(output.SampleRate), SnsTopicArn: __expectString(output.SnsTopicArn), SpeechMarkTypes: diff --git a/clients/client-qldb-session/protocols/Aws_json1_0.ts b/clients/client-qldb-session/protocols/Aws_json1_0.ts index 0d64b1e837f04..bcaeefa13b1d1 100644 --- a/clients/client-qldb-session/protocols/Aws_json1_0.ts +++ b/clients/client-qldb-session/protocols/Aws_json1_0.ts @@ -28,7 +28,7 @@ import { ValueHolder, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectLong as __expectLong, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -428,8 +428,8 @@ const deserializeAws_json1_0InvalidSessionException = ( const deserializeAws_json1_0IOUsage = (output: any, context: __SerdeContext): IOUsage => { return { - ReadIOs: __expectInt(output.ReadIOs), - WriteIOs: __expectInt(output.WriteIOs), + ReadIOs: __expectLong(output.ReadIOs), + WriteIOs: __expectLong(output.WriteIOs), } as any; }; @@ -516,7 +516,7 @@ const deserializeAws_json1_0StartTransactionResult = (output: any, context: __Se const deserializeAws_json1_0TimingInformation = (output: any, context: __SerdeContext): TimingInformation => { return { - ProcessingTimeMilliseconds: __expectInt(output.ProcessingTimeMilliseconds), + ProcessingTimeMilliseconds: __expectLong(output.ProcessingTimeMilliseconds), } as any; }; diff --git a/clients/client-quicksight/protocols/Aws_restJson1.ts b/clients/client-quicksight/protocols/Aws_restJson1.ts index 6db55d16f9be7..aba792a9bae2e 100644 --- a/clients/client-quicksight/protocols/Aws_restJson1.ts +++ b/clients/client-quicksight/protocols/Aws_restJson1.ts @@ -410,7 +410,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, serializeFloat as __serializeFloat, @@ -6517,7 +6518,7 @@ export const deserializeAws_restJson1CreateFolderMembershipCommand = async ( contents.RequestId = __expectString(data.RequestId); } if (data.Status !== undefined && data.Status !== null) { - contents.Status = __expectInt(data.Status); + contents.Status = __expectInt32(data.Status); } return Promise.resolve(contents); }; @@ -8405,7 +8406,7 @@ export const deserializeAws_restJson1DeleteFolderMembershipCommand = async ( contents.RequestId = __expectString(data.RequestId); } if (data.Status !== undefined && data.Status !== null) { - contents.Status = __expectInt(data.Status); + contents.Status = __expectInt32(data.Status); } return Promise.resolve(contents); }; @@ -16282,7 +16283,7 @@ export const deserializeAws_restJson1UpdateDashboardCommand = async ( contents.RequestId = __expectString(data.RequestId); } if (data.Status !== undefined && data.Status !== null) { - contents.Status = __expectInt(data.Status); + contents.Status = __expectInt32(data.Status); } if (data.VersionArn !== undefined && data.VersionArn !== null) { contents.VersionArn = __expectString(data.VersionArn); @@ -17201,7 +17202,7 @@ export const deserializeAws_restJson1UpdateFolderPermissionsCommand = async ( contents.RequestId = __expectString(data.RequestId); } if (data.Status !== undefined && data.Status !== null) { - contents.Status = __expectInt(data.Status); + contents.Status = __expectInt32(data.Status); } return Promise.resolve(contents); }; @@ -20215,7 +20216,7 @@ const deserializeAws_restJson1AuroraParameters = (output: any, context: __SerdeC return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -20226,7 +20227,7 @@ const deserializeAws_restJson1AuroraPostgreSqlParameters = ( return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -20531,7 +20532,7 @@ const deserializeAws_restJson1DashboardSummary = (output: any, context: __SerdeC ? new Date(Math.round(output.LastUpdatedTime * 1000)) : undefined, Name: __expectString(output.Name), - PublishedVersionNumber: __expectInt(output.PublishedVersionNumber), + PublishedVersionNumber: __expectLong(output.PublishedVersionNumber), } as any; }; @@ -20569,7 +20570,7 @@ const deserializeAws_restJson1DashboardVersion = (output: any, context: __SerdeC SourceEntityArn: __expectString(output.SourceEntityArn), Status: __expectString(output.Status), ThemeArn: __expectString(output.ThemeArn), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -20586,7 +20587,7 @@ const deserializeAws_restJson1DashboardVersionSummary = ( Description: __expectString(output.Description), SourceEntityArn: __expectString(output.SourceEntityArn), Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -20629,7 +20630,7 @@ const deserializeAws_restJson1DataSet = (output: any, context: __SerdeContext): output.ColumnLevelPermissionRules !== undefined && output.ColumnLevelPermissionRules !== null ? deserializeAws_restJson1ColumnLevelPermissionRuleList(output.ColumnLevelPermissionRules, context) : undefined, - ConsumedSpiceCapacityInBytes: __expectInt(output.ConsumedSpiceCapacityInBytes), + ConsumedSpiceCapacityInBytes: __expectLong(output.ConsumedSpiceCapacityInBytes), CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null ? new Date(Math.round(output.CreatedTime * 1000)) @@ -21177,9 +21178,9 @@ const deserializeAws_restJson1Ingestion = (output: any, context: __SerdeContext) ? deserializeAws_restJson1ErrorInfo(output.ErrorInfo, context) : undefined, IngestionId: __expectString(output.IngestionId), - IngestionSizeInBytes: __expectInt(output.IngestionSizeInBytes), + IngestionSizeInBytes: __expectLong(output.IngestionSizeInBytes), IngestionStatus: __expectString(output.IngestionStatus), - IngestionTimeInSeconds: __expectInt(output.IngestionTimeInSeconds), + IngestionTimeInSeconds: __expectLong(output.IngestionTimeInSeconds), QueueInfo: output.QueueInfo !== undefined && output.QueueInfo !== null ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context) @@ -21307,7 +21308,7 @@ const deserializeAws_restJson1MariaDbParameters = (output: any, context: __Serde return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21322,7 +21323,7 @@ const deserializeAws_restJson1MySqlParameters = (output: any, context: __SerdeCo return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21362,7 +21363,7 @@ const deserializeAws_restJson1OracleParameters = (output: any, context: __SerdeC return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21434,7 +21435,7 @@ const deserializeAws_restJson1PostgreSqlParameters = (output: any, context: __Se return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21442,7 +21443,7 @@ const deserializeAws_restJson1PrestoParameters = (output: any, context: __SerdeC return { Catalog: __expectString(output.Catalog), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21496,7 +21497,7 @@ const deserializeAws_restJson1RedshiftParameters = (output: any, context: __Serd ClusterId: __expectString(output.ClusterId), Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21543,8 +21544,8 @@ const deserializeAws_restJson1ResourcePermissionList = (output: any, context: __ const deserializeAws_restJson1RowInfo = (output: any, context: __SerdeContext): RowInfo => { return { - RowsDropped: __expectInt(output.RowsDropped), - RowsIngested: __expectInt(output.RowsIngested), + RowsDropped: __expectLong(output.RowsDropped), + RowsIngested: __expectLong(output.RowsIngested), } as any; }; @@ -21671,7 +21672,7 @@ const deserializeAws_restJson1SnowflakeParameters = (output: any, context: __Ser const deserializeAws_restJson1SparkParameters = (output: any, context: __SerdeContext): SparkParameters => { return { Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21679,7 +21680,7 @@ const deserializeAws_restJson1SqlServerParameters = (output: any, context: __Ser return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21741,7 +21742,7 @@ const deserializeAws_restJson1TemplateAlias = (output: any, context: __SerdeCont return { AliasName: __expectString(output.AliasName), Arn: __expectString(output.Arn), - TemplateVersionNumber: __expectInt(output.TemplateVersionNumber), + TemplateVersionNumber: __expectLong(output.TemplateVersionNumber), } as any; }; @@ -21785,7 +21786,7 @@ const deserializeAws_restJson1TemplateSummary = (output: any, context: __SerdeCo output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null ? new Date(Math.round(output.LastUpdatedTime * 1000)) : undefined, - LatestVersionNumber: __expectInt(output.LatestVersionNumber), + LatestVersionNumber: __expectLong(output.LatestVersionNumber), Name: __expectString(output.Name), TemplateId: __expectString(output.TemplateId), } as any; @@ -21824,7 +21825,7 @@ const deserializeAws_restJson1TemplateVersion = (output: any, context: __SerdeCo SourceEntityArn: __expectString(output.SourceEntityArn), Status: __expectString(output.Status), ThemeArn: __expectString(output.ThemeArn), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -21840,7 +21841,7 @@ const deserializeAws_restJson1TemplateVersionSummary = ( : undefined, Description: __expectString(output.Description), Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -21862,7 +21863,7 @@ const deserializeAws_restJson1TeradataParameters = (output: any, context: __Serd return { Database: __expectString(output.Database), Host: __expectString(output.Host), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -21891,7 +21892,7 @@ const deserializeAws_restJson1ThemeAlias = (output: any, context: __SerdeContext return { AliasName: __expectString(output.AliasName), Arn: __expectString(output.Arn), - ThemeVersionNumber: __expectInt(output.ThemeVersionNumber), + ThemeVersionNumber: __expectLong(output.ThemeVersionNumber), } as any; }; @@ -21952,7 +21953,7 @@ const deserializeAws_restJson1ThemeSummary = (output: any, context: __SerdeConte output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null ? new Date(Math.round(output.LastUpdatedTime * 1000)) : undefined, - LatestVersionNumber: __expectInt(output.LatestVersionNumber), + LatestVersionNumber: __expectLong(output.LatestVersionNumber), Name: __expectString(output.Name), ThemeId: __expectString(output.ThemeId), } as any; @@ -21987,7 +21988,7 @@ const deserializeAws_restJson1ThemeVersion = (output: any, context: __SerdeConte ? deserializeAws_restJson1ThemeErrorList(output.Errors, context) : undefined, Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -22000,7 +22001,7 @@ const deserializeAws_restJson1ThemeVersionSummary = (output: any, context: __Ser : undefined, Description: __expectString(output.Description), Status: __expectString(output.Status), - VersionNumber: __expectInt(output.VersionNumber), + VersionNumber: __expectLong(output.VersionNumber), } as any; }; @@ -22087,7 +22088,7 @@ const deserializeAws_restJson1TransformOperationList = (output: any, context: __ const deserializeAws_restJson1TwitterParameters = (output: any, context: __SerdeContext): TwitterParameters => { return { - MaxRows: __expectInt(output.MaxRows), + MaxRows: __expectInt32(output.MaxRows), Query: __expectString(output.Query), } as any; }; @@ -22118,7 +22119,7 @@ const deserializeAws_restJson1UploadSettings = (output: any, context: __SerdeCon ContainsHeader: __expectBoolean(output.ContainsHeader), Delimiter: __expectString(output.Delimiter), Format: __expectString(output.Format), - StartFromRow: __expectInt(output.StartFromRow), + StartFromRow: __expectInt32(output.StartFromRow), TextQualifier: __expectString(output.TextQualifier), } as any; }; diff --git a/clients/client-rds-data/protocols/Aws_restJson1.ts b/clients/client-rds-data/protocols/Aws_restJson1.ts index efbbe6a14575d..ea4a2382b625e 100644 --- a/clients/client-rds-data/protocols/Aws_restJson1.ts +++ b/clients/client-rds-data/protocols/Aws_restJson1.ts @@ -33,9 +33,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -597,7 +599,7 @@ export const deserializeAws_restJson1ExecuteStatementCommand = async ( contents.generatedFields = deserializeAws_restJson1FieldList(data.generatedFields, context); } if (data.numberOfRecordsUpdated !== undefined && data.numberOfRecordsUpdated !== null) { - contents.numberOfRecordsUpdated = __expectInt(data.numberOfRecordsUpdated); + contents.numberOfRecordsUpdated = __expectLong(data.numberOfRecordsUpdated); } if (data.records !== undefined && data.records !== null) { contents.records = deserializeAws_restJson1SqlRecords(data.records, context); @@ -859,7 +861,7 @@ const deserializeAws_restJson1StatementTimeoutExceptionResponse = async ( }; const data: any = parsedOutput.body; if (data.dbConnectionId !== undefined && data.dbConnectionId !== null) { - contents.dbConnectionId = __expectInt(data.dbConnectionId); + contents.dbConnectionId = __expectLong(data.dbConnectionId); } if (data.message !== undefined && data.message !== null) { contents.message = __expectString(data.message); @@ -1048,19 +1050,19 @@ const deserializeAws_restJson1BooleanArray = (output: any, context: __SerdeConte const deserializeAws_restJson1ColumnMetadata = (output: any, context: __SerdeContext): ColumnMetadata => { return { - arrayBaseColumnType: __expectInt(output.arrayBaseColumnType), + arrayBaseColumnType: __expectInt32(output.arrayBaseColumnType), isAutoIncrement: __expectBoolean(output.isAutoIncrement), isCaseSensitive: __expectBoolean(output.isCaseSensitive), isCurrency: __expectBoolean(output.isCurrency), isSigned: __expectBoolean(output.isSigned), label: __expectString(output.label), name: __expectString(output.name), - nullable: __expectInt(output.nullable), - precision: __expectInt(output.precision), - scale: __expectInt(output.scale), + nullable: __expectInt32(output.nullable), + precision: __expectInt32(output.precision), + scale: __expectInt32(output.scale), schemaName: __expectString(output.schemaName), tableName: __expectString(output.tableName), - type: __expectInt(output.type), + type: __expectInt32(output.type), typeName: __expectString(output.typeName), } as any; }; @@ -1072,7 +1074,7 @@ const deserializeAws_restJson1DoubleArray = (output: any, context: __SerdeContex if (entry === null) { return null as any; } - return __limitedParseFloat(entry) as any; + return __limitedParseDouble(entry) as any; }); }; @@ -1090,14 +1092,14 @@ const deserializeAws_restJson1Field = (output: any, context: __SerdeContext): Fi if (__expectBoolean(output.booleanValue) !== undefined) { return { booleanValue: __expectBoolean(output.booleanValue) as any }; } - if (__limitedParseFloat(output.doubleValue) !== undefined) { - return { doubleValue: __limitedParseFloat(output.doubleValue) as any }; + if (__limitedParseDouble(output.doubleValue) !== undefined) { + return { doubleValue: __limitedParseDouble(output.doubleValue) as any }; } if (__expectBoolean(output.isNull) !== undefined) { return { isNull: __expectBoolean(output.isNull) as any }; } - if (__expectInt(output.longValue) !== undefined) { - return { longValue: __expectInt(output.longValue) as any }; + if (__expectLong(output.longValue) !== undefined) { + return { longValue: __expectLong(output.longValue) as any }; } if (__expectString(output.stringValue) !== undefined) { return { stringValue: __expectString(output.stringValue) as any }; @@ -1123,7 +1125,7 @@ const deserializeAws_restJson1LongArray = (output: any, context: __SerdeContext) if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectLong(entry) as any; }); }; @@ -1173,7 +1175,7 @@ const deserializeAws_restJson1ResultFrame = (output: any, context: __SerdeContex const deserializeAws_restJson1ResultSetMetadata = (output: any, context: __SerdeContext): ResultSetMetadata => { return { - columnCount: __expectInt(output.columnCount), + columnCount: __expectLong(output.columnCount), columnMetadata: output.columnMetadata !== undefined && output.columnMetadata !== null ? deserializeAws_restJson1Metadata(output.columnMetadata, context) @@ -1205,7 +1207,7 @@ const deserializeAws_restJson1SqlRecords = (output: any, context: __SerdeContext const deserializeAws_restJson1SqlStatementResult = (output: any, context: __SerdeContext): SqlStatementResult => { return { - numberOfRecordsUpdated: __expectInt(output.numberOfRecordsUpdated), + numberOfRecordsUpdated: __expectLong(output.numberOfRecordsUpdated), resultFrame: output.resultFrame !== undefined && output.resultFrame !== null ? deserializeAws_restJson1ResultFrame(output.resultFrame, context) @@ -1270,8 +1272,8 @@ const deserializeAws_restJson1Value = (output: any, context: __SerdeContext): Va arrayValues: deserializeAws_restJson1ArrayValueList(output.arrayValues, context), }; } - if (__expectInt(output.bigIntValue) !== undefined) { - return { bigIntValue: __expectInt(output.bigIntValue) as any }; + if (__expectLong(output.bigIntValue) !== undefined) { + return { bigIntValue: __expectLong(output.bigIntValue) as any }; } if (__expectBoolean(output.bitValue) !== undefined) { return { bitValue: __expectBoolean(output.bitValue) as any }; @@ -1281,17 +1283,17 @@ const deserializeAws_restJson1Value = (output: any, context: __SerdeContext): Va blobValue: context.base64Decoder(output.blobValue), }; } - if (__limitedParseFloat(output.doubleValue) !== undefined) { - return { doubleValue: __limitedParseFloat(output.doubleValue) as any }; + if (__limitedParseDouble(output.doubleValue) !== undefined) { + return { doubleValue: __limitedParseDouble(output.doubleValue) as any }; } - if (__expectInt(output.intValue) !== undefined) { - return { intValue: __expectInt(output.intValue) as any }; + if (__expectInt32(output.intValue) !== undefined) { + return { intValue: __expectInt32(output.intValue) as any }; } if (__expectBoolean(output.isNull) !== undefined) { return { isNull: __expectBoolean(output.isNull) as any }; } - if (__limitedParseFloat(output.realValue) !== undefined) { - return { realValue: __limitedParseFloat(output.realValue) as any }; + if (__limitedParseFloat32(output.realValue) !== undefined) { + return { realValue: __limitedParseFloat32(output.realValue) as any }; } if (__expectString(output.stringValue) !== undefined) { return { stringValue: __expectString(output.stringValue) as any }; diff --git a/clients/client-rds/protocols/Aws_query.ts b/clients/client-rds/protocols/Aws_query.ts index 04fa6801df88a..a101b1fba7ee6 100644 --- a/clients/client-rds/protocols/Aws_query.ts +++ b/clients/client-rds/protocols/Aws_query.ts @@ -914,7 +914,8 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -20079,10 +20080,10 @@ const deserializeAws_queryAccountQuota = (output: any, context: __SerdeContext): contents.AccountQuotaName = __expectString(output["AccountQuotaName"]); } if (output["Used"] !== undefined) { - contents.Used = __strictParseInt(output["Used"]) as number; + contents.Used = __strictParseLong(output["Used"]) as number; } if (output["Max"] !== undefined) { - contents.Max = __strictParseInt(output["Max"]) as number; + contents.Max = __strictParseLong(output["Max"]) as number; } return contents; }; @@ -20421,13 +20422,13 @@ const deserializeAws_queryConnectionPoolConfigurationInfo = ( InitQuery: undefined, }; if (output["MaxConnectionsPercent"] !== undefined) { - contents.MaxConnectionsPercent = __strictParseInt(output["MaxConnectionsPercent"]) as number; + contents.MaxConnectionsPercent = __strictParseInt32(output["MaxConnectionsPercent"]) as number; } if (output["MaxIdleConnectionsPercent"] !== undefined) { - contents.MaxIdleConnectionsPercent = __strictParseInt(output["MaxIdleConnectionsPercent"]) as number; + contents.MaxIdleConnectionsPercent = __strictParseInt32(output["MaxIdleConnectionsPercent"]) as number; } if (output["ConnectionBorrowTimeout"] !== undefined) { - contents.ConnectionBorrowTimeout = __strictParseInt(output["ConnectionBorrowTimeout"]) as number; + contents.ConnectionBorrowTimeout = __strictParseInt32(output["ConnectionBorrowTimeout"]) as number; } if (output.SessionPinningFilters === "") { contents.SessionPinningFilters = []; @@ -20854,7 +20855,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB PendingModifiedValues: undefined, }; if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output.AvailabilityZones === "") { contents.AvailabilityZones = []; @@ -20866,7 +20867,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB ); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["CharacterSetName"] !== undefined) { contents.CharacterSetName = __expectString(output["CharacterSetName"]); @@ -20923,7 +20924,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB contents.LatestRestorableTime = new Date(output["LatestRestorableTime"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["MasterUsername"] !== undefined) { contents.MasterUsername = __expectString(output["MasterUsername"]); @@ -21019,10 +21020,10 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB contents.EarliestBacktrackTime = new Date(output["EarliestBacktrackTime"]); } if (output["BacktrackWindow"] !== undefined) { - contents.BacktrackWindow = __strictParseInt(output["BacktrackWindow"]) as number; + contents.BacktrackWindow = __strictParseLong(output["BacktrackWindow"]) as number; } if (output["BacktrackConsumedChangeRecords"] !== undefined) { - contents.BacktrackConsumedChangeRecords = __strictParseInt(output["BacktrackConsumedChangeRecords"]) as number; + contents.BacktrackConsumedChangeRecords = __strictParseLong(output["BacktrackConsumedChangeRecords"]) as number; } if (output.EnabledCloudwatchLogsExports === "") { contents.EnabledCloudwatchLogsExports = []; @@ -21037,7 +21038,7 @@ const deserializeAws_queryDBCluster = (output: any, context: __SerdeContext): DB ); } if (output["Capacity"] !== undefined) { - contents.Capacity = __strictParseInt(output["Capacity"]) as number; + contents.Capacity = __strictParseInt32(output["Capacity"]) as number; } if (output["EngineMode"] !== undefined) { contents.EngineMode = __expectString(output["EngineMode"]); @@ -21207,13 +21208,13 @@ const deserializeAws_queryDBClusterCapacityInfo = (output: any, context: __Serde contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); } if (output["PendingCapacity"] !== undefined) { - contents.PendingCapacity = __strictParseInt(output["PendingCapacity"]) as number; + contents.PendingCapacity = __strictParseInt32(output["PendingCapacity"]) as number; } if (output["CurrentCapacity"] !== undefined) { - contents.CurrentCapacity = __strictParseInt(output["CurrentCapacity"]) as number; + contents.CurrentCapacity = __strictParseInt32(output["CurrentCapacity"]) as number; } if (output["SecondsBeforeTimeout"] !== undefined) { - contents.SecondsBeforeTimeout = __strictParseInt(output["SecondsBeforeTimeout"]) as number; + contents.SecondsBeforeTimeout = __strictParseInt32(output["SecondsBeforeTimeout"]) as number; } if (output["TimeoutAction"] !== undefined) { contents.TimeoutAction = __expectString(output["TimeoutAction"]); @@ -21383,7 +21384,7 @@ const deserializeAws_queryDBClusterMember = (output: any, context: __SerdeContex contents.DBClusterParameterGroupStatus = __expectString(output["DBClusterParameterGroupStatus"]); } if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt(output["PromotionTier"]) as number; + contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; } return contents; }; @@ -21702,13 +21703,13 @@ const deserializeAws_queryDBClusterSnapshot = (output: any, context: __SerdeCont contents.EngineMode = __expectString(output["EngineMode"]); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["Status"] !== undefined) { contents.Status = __expectString(output["Status"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["VpcId"] !== undefined) { contents.VpcId = __expectString(output["VpcId"]); @@ -21729,7 +21730,7 @@ const deserializeAws_queryDBClusterSnapshot = (output: any, context: __SerdeCont contents.SnapshotType = __expectString(output["SnapshotType"]); } if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt(output["PercentProgress"]) as number; + contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; } if (output["StorageEncrypted"] !== undefined) { contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); @@ -22133,7 +22134,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.Endpoint = deserializeAws_queryEndpoint(output["Endpoint"], context); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["InstanceCreateTime"] !== undefined) { contents.InstanceCreateTime = new Date(output["InstanceCreateTime"]); @@ -22142,7 +22143,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output.DBSecurityGroups === "") { contents.DBSecurityGroups = []; @@ -22235,7 +22236,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.LicenseModel = __expectString(output["LicenseModel"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output.OptionGroupMemberships === "") { contents.OptionGroupMemberships = []; @@ -22277,7 +22278,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.TdeCredentialArn = __expectString(output["TdeCredentialArn"]); } if (output["DbInstancePort"] !== undefined) { - contents.DbInstancePort = __strictParseInt(output["DbInstancePort"]) as number; + contents.DbInstancePort = __strictParseInt32(output["DbInstancePort"]) as number; } if (output["DBClusterIdentifier"] !== undefined) { contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); @@ -22307,7 +22308,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); } if (output["MonitoringInterval"] !== undefined) { - contents.MonitoringInterval = __strictParseInt(output["MonitoringInterval"]) as number; + contents.MonitoringInterval = __strictParseInt32(output["MonitoringInterval"]) as number; } if (output["EnhancedMonitoringResourceArn"] !== undefined) { contents.EnhancedMonitoringResourceArn = __expectString(output["EnhancedMonitoringResourceArn"]); @@ -22316,7 +22317,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.MonitoringRoleArn = __expectString(output["MonitoringRoleArn"]); } if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt(output["PromotionTier"]) as number; + contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; } if (output["DBInstanceArn"] !== undefined) { contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); @@ -22334,7 +22335,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.PerformanceInsightsKMSKeyId = __expectString(output["PerformanceInsightsKMSKeyId"]); } if (output["PerformanceInsightsRetentionPeriod"] !== undefined) { - contents.PerformanceInsightsRetentionPeriod = __strictParseInt( + contents.PerformanceInsightsRetentionPeriod = __strictParseInt32( output["PerformanceInsightsRetentionPeriod"] ) as number; } @@ -22375,7 +22376,7 @@ const deserializeAws_queryDBInstance = (output: any, context: __SerdeContext): D contents.ListenerEndpoint = deserializeAws_queryEndpoint(output["ListenerEndpoint"], context); } if (output["MaxAllocatedStorage"] !== undefined) { - contents.MaxAllocatedStorage = __strictParseInt(output["MaxAllocatedStorage"]) as number; + contents.MaxAllocatedStorage = __strictParseInt32(output["MaxAllocatedStorage"]) as number; } if (output.TagList === "") { contents.TagList = []; @@ -22482,13 +22483,13 @@ const deserializeAws_queryDBInstanceAutomatedBackup = ( contents.RestoreWindow = deserializeAws_queryRestoreWindow(output["RestoreWindow"], context); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["Status"] !== undefined) { contents.Status = __expectString(output["Status"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["AvailabilityZone"] !== undefined) { contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); @@ -22512,7 +22513,7 @@ const deserializeAws_queryDBInstanceAutomatedBackup = ( contents.LicenseModel = __expectString(output["LicenseModel"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output["OptionGroupName"] !== undefined) { contents.OptionGroupName = __expectString(output["OptionGroupName"]); @@ -22536,7 +22537,7 @@ const deserializeAws_queryDBInstanceAutomatedBackup = ( contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["DBInstanceAutomatedBackupsArn"] !== undefined) { contents.DBInstanceAutomatedBackupsArn = __expectString(output["DBInstanceAutomatedBackupsArn"]); @@ -23027,7 +23028,7 @@ const deserializeAws_queryDBProxy = (output: any, context: __SerdeContext): DBPr contents.RequireTLS = __parseBoolean(output["RequireTLS"]); } if (output["IdleClientTimeout"] !== undefined) { - contents.IdleClientTimeout = __strictParseInt(output["IdleClientTimeout"]) as number; + contents.IdleClientTimeout = __strictParseInt32(output["IdleClientTimeout"]) as number; } if (output["DebugLogging"] !== undefined) { contents.DebugLogging = __parseBoolean(output["DebugLogging"]); @@ -23224,7 +23225,7 @@ const deserializeAws_queryDBProxyTarget = (output: any, context: __SerdeContext) contents.RdsResourceId = __expectString(output["RdsResourceId"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["Type"] !== undefined) { contents.Type = __expectString(output["Type"]); @@ -23521,13 +23522,13 @@ const deserializeAws_queryDBSnapshot = (output: any, context: __SerdeContext): D contents.Engine = __expectString(output["Engine"]); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["Status"] !== undefined) { contents.Status = __expectString(output["Status"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["AvailabilityZone"] !== undefined) { contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); @@ -23551,13 +23552,13 @@ const deserializeAws_queryDBSnapshot = (output: any, context: __SerdeContext): D contents.SnapshotType = __expectString(output["SnapshotType"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output["OptionGroupName"] !== undefined) { contents.OptionGroupName = __expectString(output["OptionGroupName"]); } if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt(output["PercentProgress"]) as number; + contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; } if (output["SourceRegion"] !== undefined) { contents.SourceRegion = __expectString(output["SourceRegion"]); @@ -24037,10 +24038,10 @@ const deserializeAws_queryDescribeDBLogFilesDetails = ( contents.LogFileName = __expectString(output["LogFileName"]); } if (output["LastWritten"] !== undefined) { - contents.LastWritten = __strictParseInt(output["LastWritten"]) as number; + contents.LastWritten = __strictParseLong(output["LastWritten"]) as number; } if (output["Size"] !== undefined) { - contents.Size = __strictParseInt(output["Size"]) as number; + contents.Size = __strictParseLong(output["Size"]) as number; } return contents; }; @@ -24364,7 +24365,7 @@ const deserializeAws_queryEndpoint = (output: any, context: __SerdeContext): End contents.Address = __expectString(output["Address"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["HostedZoneId"] !== undefined) { contents.HostedZoneId = __expectString(output["HostedZoneId"]); @@ -24698,10 +24699,10 @@ const deserializeAws_queryExportTask = (output: any, context: __SerdeContext): E contents.Status = __expectString(output["Status"]); } if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt(output["PercentProgress"]) as number; + contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; } if (output["TotalExtractedDataInGB"] !== undefined) { - contents.TotalExtractedDataInGB = __strictParseInt(output["TotalExtractedDataInGB"]) as number; + contents.TotalExtractedDataInGB = __strictParseInt32(output["TotalExtractedDataInGB"]) as number; } if (output["FailureCause"] !== undefined) { contents.FailureCause = __expectString(output["FailureCause"]); @@ -25747,7 +25748,7 @@ const deserializeAws_queryOption = (output: any, context: __SerdeContext): Optio contents.Permanent = __parseBoolean(output["Permanent"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["OptionVersion"] !== undefined) { contents.OptionVersion = __expectString(output["OptionVersion"]); @@ -25921,7 +25922,7 @@ const deserializeAws_queryOptionGroupOption = (output: any, context: __SerdeCont contents.PortRequired = __parseBoolean(output["PortRequired"]); } if (output["DefaultPort"] !== undefined) { - contents.DefaultPort = __strictParseInt(output["DefaultPort"]) as number; + contents.DefaultPort = __strictParseInt32(output["DefaultPort"]) as number; } if (output.OptionsDependedOn === "") { contents.OptionsDependedOn = []; @@ -26325,16 +26326,16 @@ const deserializeAws_queryOrderableDBInstanceOption = ( contents.SupportsPerformanceInsights = __parseBoolean(output["SupportsPerformanceInsights"]); } if (output["MinStorageSize"] !== undefined) { - contents.MinStorageSize = __strictParseInt(output["MinStorageSize"]) as number; + contents.MinStorageSize = __strictParseInt32(output["MinStorageSize"]) as number; } if (output["MaxStorageSize"] !== undefined) { - contents.MaxStorageSize = __strictParseInt(output["MaxStorageSize"]) as number; + contents.MaxStorageSize = __strictParseInt32(output["MaxStorageSize"]) as number; } if (output["MinIopsPerDbInstance"] !== undefined) { - contents.MinIopsPerDbInstance = __strictParseInt(output["MinIopsPerDbInstance"]) as number; + contents.MinIopsPerDbInstance = __strictParseInt32(output["MinIopsPerDbInstance"]) as number; } if (output["MaxIopsPerDbInstance"] !== undefined) { - contents.MaxIopsPerDbInstance = __strictParseInt(output["MaxIopsPerDbInstance"]) as number; + contents.MaxIopsPerDbInstance = __strictParseInt32(output["MaxIopsPerDbInstance"]) as number; } if (output["MinIopsPerGib"] !== undefined) { contents.MinIopsPerGib = __strictParseFloat(output["MinIopsPerGib"]) as number; @@ -26646,16 +26647,16 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); } if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt(output["AllocatedStorage"]) as number; + contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; } if (output["MasterUserPassword"] !== undefined) { contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt(output["BackupRetentionPeriod"]) as number; + contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; } if (output["MultiAZ"] !== undefined) { contents.MultiAZ = __parseBoolean(output["MultiAZ"]); @@ -26667,7 +26668,7 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.LicenseModel = __expectString(output["LicenseModel"]); } if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt(output["Iops"]) as number; + contents.Iops = __strictParseInt32(output["Iops"]) as number; } if (output["DBInstanceIdentifier"] !== undefined) { contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); @@ -26799,13 +26800,13 @@ const deserializeAws_queryRange = (output: any, context: __SerdeContext): Range Step: undefined, }; if (output["From"] !== undefined) { - contents.From = __strictParseInt(output["From"]) as number; + contents.From = __strictParseInt32(output["From"]) as number; } if (output["To"] !== undefined) { - contents.To = __strictParseInt(output["To"]) as number; + contents.To = __strictParseInt32(output["To"]) as number; } if (output["Step"] !== undefined) { - contents.Step = __strictParseInt(output["Step"]) as number; + contents.Step = __strictParseInt32(output["Step"]) as number; } return contents; }; @@ -26977,7 +26978,7 @@ const deserializeAws_queryReservedDBInstance = (output: any, context: __SerdeCon contents.StartTime = new Date(output["StartTime"]); } if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["FixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; @@ -26989,7 +26990,7 @@ const deserializeAws_queryReservedDBInstance = (output: any, context: __SerdeCon contents.CurrencyCode = __expectString(output["CurrencyCode"]); } if (output["DBInstanceCount"] !== undefined) { - contents.DBInstanceCount = __strictParseInt(output["DBInstanceCount"]) as number; + contents.DBInstanceCount = __strictParseInt32(output["DBInstanceCount"]) as number; } if (output["ProductDescription"] !== undefined) { contents.ProductDescription = __expectString(output["ProductDescription"]); @@ -27120,7 +27121,7 @@ const deserializeAws_queryReservedDBInstancesOffering = ( contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); } if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["FixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; @@ -27358,16 +27359,16 @@ const deserializeAws_queryScalingConfigurationInfo = ( TimeoutAction: undefined, }; if (output["MinCapacity"] !== undefined) { - contents.MinCapacity = __strictParseInt(output["MinCapacity"]) as number; + contents.MinCapacity = __strictParseInt32(output["MinCapacity"]) as number; } if (output["MaxCapacity"] !== undefined) { - contents.MaxCapacity = __strictParseInt(output["MaxCapacity"]) as number; + contents.MaxCapacity = __strictParseInt32(output["MaxCapacity"]) as number; } if (output["AutoPause"] !== undefined) { contents.AutoPause = __parseBoolean(output["AutoPause"]); } if (output["SecondsUntilAutoPause"] !== undefined) { - contents.SecondsUntilAutoPause = __strictParseInt(output["SecondsUntilAutoPause"]) as number; + contents.SecondsUntilAutoPause = __strictParseInt32(output["SecondsUntilAutoPause"]) as number; } if (output["TimeoutAction"] !== undefined) { contents.TimeoutAction = __expectString(output["TimeoutAction"]); diff --git a/clients/client-redshift-data/protocols/Aws_json1_1.ts b/clients/client-redshift-data/protocols/Aws_json1_1.ts index c6807f22d9a98..aa13688ff124f 100644 --- a/clients/client-redshift-data/protocols/Aws_json1_1.ts +++ b/clients/client-redshift-data/protocols/Aws_json1_1.ts @@ -48,9 +48,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1158,11 +1159,11 @@ const deserializeAws_json1_1ColumnMetadata = (output: any, context: __SerdeConte isCurrency: __expectBoolean(output.isCurrency), isSigned: __expectBoolean(output.isSigned), label: __expectString(output.label), - length: __expectInt(output.length), + length: __expectInt32(output.length), name: __expectString(output.name), - nullable: __expectInt(output.nullable), - precision: __expectInt(output.precision), - scale: __expectInt(output.scale), + nullable: __expectInt32(output.nullable), + precision: __expectInt32(output.precision), + scale: __expectInt32(output.scale), schemaName: __expectString(output.schemaName), tableName: __expectString(output.tableName), typeName: __expectString(output.typeName), @@ -1203,7 +1204,7 @@ const deserializeAws_json1_1DescribeStatementResponse = ( : undefined, Database: __expectString(output.Database), DbUser: __expectString(output.DbUser), - Duration: __expectInt(output.Duration), + Duration: __expectLong(output.Duration), Error: __expectString(output.Error), HasResultSet: __expectBoolean(output.HasResultSet), Id: __expectString(output.Id), @@ -1212,10 +1213,10 @@ const deserializeAws_json1_1DescribeStatementResponse = ( ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context) : undefined, QueryString: __expectString(output.QueryString), - RedshiftPid: __expectInt(output.RedshiftPid), - RedshiftQueryId: __expectInt(output.RedshiftQueryId), - ResultRows: __expectInt(output.ResultRows), - ResultSize: __expectInt(output.ResultSize), + RedshiftPid: __expectLong(output.RedshiftPid), + RedshiftQueryId: __expectLong(output.RedshiftQueryId), + ResultRows: __expectLong(output.ResultRows), + ResultSize: __expectLong(output.ResultSize), SecretArn: __expectString(output.SecretArn), Status: __expectString(output.Status), SubStatements: @@ -1273,14 +1274,14 @@ const deserializeAws_json1_1Field = (output: any, context: __SerdeContext): Fiel if (__expectBoolean(output.booleanValue) !== undefined) { return { booleanValue: __expectBoolean(output.booleanValue) as any }; } - if (__limitedParseFloat(output.doubleValue) !== undefined) { - return { doubleValue: __limitedParseFloat(output.doubleValue) as any }; + if (__limitedParseDouble(output.doubleValue) !== undefined) { + return { doubleValue: __limitedParseDouble(output.doubleValue) as any }; } if (__expectBoolean(output.isNull) !== undefined) { return { isNull: __expectBoolean(output.isNull) as any }; } - if (__expectInt(output.longValue) !== undefined) { - return { longValue: __expectInt(output.longValue) as any }; + if (__expectLong(output.longValue) !== undefined) { + return { longValue: __expectLong(output.longValue) as any }; } if (__expectString(output.stringValue) !== undefined) { return { stringValue: __expectString(output.stringValue) as any }; @@ -1313,7 +1314,7 @@ const deserializeAws_json1_1GetStatementResultResponse = ( output.Records !== undefined && output.Records !== null ? deserializeAws_json1_1SqlRecords(output.Records, context) : undefined, - TotalNumRows: __expectInt(output.TotalNumRows), + TotalNumRows: __expectLong(output.TotalNumRows), } as any; }; @@ -1471,14 +1472,14 @@ const deserializeAws_json1_1SubStatementData = (output: any, context: __SerdeCon output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) : undefined, - Duration: __expectInt(output.Duration), + Duration: __expectLong(output.Duration), Error: __expectString(output.Error), HasResultSet: __expectBoolean(output.HasResultSet), Id: __expectString(output.Id), QueryString: __expectString(output.QueryString), - RedshiftQueryId: __expectInt(output.RedshiftQueryId), - ResultRows: __expectInt(output.ResultRows), - ResultSize: __expectInt(output.ResultSize), + RedshiftQueryId: __expectLong(output.RedshiftQueryId), + ResultRows: __expectLong(output.ResultRows), + ResultSize: __expectLong(output.ResultSize), Status: __expectString(output.Status), UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null diff --git a/clients/client-redshift/protocols/Aws_query.ts b/clients/client-redshift/protocols/Aws_query.ts index 7a87e6756403d..e5261f862d3b0 100644 --- a/clients/client-redshift/protocols/Aws_query.ts +++ b/clients/client-redshift/protocols/Aws_query.ts @@ -782,7 +782,8 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -16749,10 +16750,12 @@ const deserializeAws_queryCluster = (output: any, context: __SerdeContext): Clus contents.ClusterCreateTime = new Date(output["ClusterCreateTime"]); } if (output["AutomatedSnapshotRetentionPeriod"] !== undefined) { - contents.AutomatedSnapshotRetentionPeriod = __strictParseInt(output["AutomatedSnapshotRetentionPeriod"]) as number; + contents.AutomatedSnapshotRetentionPeriod = __strictParseInt32( + output["AutomatedSnapshotRetentionPeriod"] + ) as number; } if (output["ManualSnapshotRetentionPeriod"] !== undefined) { - contents.ManualSnapshotRetentionPeriod = __strictParseInt(output["ManualSnapshotRetentionPeriod"]) as number; + contents.ManualSnapshotRetentionPeriod = __strictParseInt32(output["ManualSnapshotRetentionPeriod"]) as number; } if (output.ClusterSecurityGroups === "") { contents.ClusterSecurityGroups = []; @@ -16812,7 +16815,7 @@ const deserializeAws_queryCluster = (output: any, context: __SerdeContext): Clus contents.AllowVersionUpgrade = __parseBoolean(output["AllowVersionUpgrade"]); } if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt(output["NumberOfNodes"]) as number; + contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; } if (output["PubliclyAccessible"] !== undefined) { contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); @@ -16926,7 +16929,7 @@ const deserializeAws_queryCluster = (output: any, context: __SerdeContext): Clus contents.ClusterNamespaceArn = __expectString(output["ClusterNamespaceArn"]); } if (output["TotalStorageCapacityInMegaBytes"] !== undefined) { - contents.TotalStorageCapacityInMegaBytes = __strictParseInt(output["TotalStorageCapacityInMegaBytes"]) as number; + contents.TotalStorageCapacityInMegaBytes = __strictParseLong(output["TotalStorageCapacityInMegaBytes"]) as number; } if (output["AquaConfiguration"] !== undefined) { contents.AquaConfiguration = deserializeAws_queryAquaConfiguration(output["AquaConfiguration"], context); @@ -17537,10 +17540,10 @@ const deserializeAws_queryClusterSnapshotCopyStatus = ( contents.DestinationRegion = __expectString(output["DestinationRegion"]); } if (output["RetentionPeriod"] !== undefined) { - contents.RetentionPeriod = __strictParseInt(output["RetentionPeriod"]) as number; + contents.RetentionPeriod = __strictParseLong(output["RetentionPeriod"]) as number; } if (output["ManualSnapshotRetentionPeriod"] !== undefined) { - contents.ManualSnapshotRetentionPeriod = __strictParseInt(output["ManualSnapshotRetentionPeriod"]) as number; + contents.ManualSnapshotRetentionPeriod = __strictParseInt32(output["ManualSnapshotRetentionPeriod"]) as number; } if (output["SnapshotCopyGrantName"] !== undefined) { contents.SnapshotCopyGrantName = __expectString(output["SnapshotCopyGrantName"]); @@ -18012,18 +18015,18 @@ const deserializeAws_queryDataTransferProgress = (output: any, context: __SerdeC contents.CurrentRateInMegaBytesPerSecond = __strictParseFloat(output["CurrentRateInMegaBytesPerSecond"]) as number; } if (output["TotalDataInMegaBytes"] !== undefined) { - contents.TotalDataInMegaBytes = __strictParseInt(output["TotalDataInMegaBytes"]) as number; + contents.TotalDataInMegaBytes = __strictParseLong(output["TotalDataInMegaBytes"]) as number; } if (output["DataTransferredInMegaBytes"] !== undefined) { - contents.DataTransferredInMegaBytes = __strictParseInt(output["DataTransferredInMegaBytes"]) as number; + contents.DataTransferredInMegaBytes = __strictParseLong(output["DataTransferredInMegaBytes"]) as number; } if (output["EstimatedTimeToCompletionInSeconds"] !== undefined) { - contents.EstimatedTimeToCompletionInSeconds = __strictParseInt( + contents.EstimatedTimeToCompletionInSeconds = __strictParseLong( output["EstimatedTimeToCompletionInSeconds"] ) as number; } if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseInt(output["ElapsedTimeInSeconds"]) as number; + contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; } return contents; }; @@ -18398,7 +18401,7 @@ const deserializeAws_queryEndpoint = (output: any, context: __SerdeContext): End contents.Address = __expectString(output["Address"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output.VpcEndpoints === "") { contents.VpcEndpoints = []; @@ -18444,7 +18447,7 @@ const deserializeAws_queryEndpointAccess = (output: any, context: __SerdeContext contents.EndpointCreateTime = new Date(output["EndpointCreateTime"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["Address"] !== undefined) { contents.Address = __expectString(output["Address"]); @@ -18551,7 +18554,7 @@ const deserializeAws_queryEndpointAuthorization = (output: any, context: __Serde ); } if (output["EndpointCount"] !== undefined) { - contents.EndpointCount = __strictParseInt(output["EndpointCount"]) as number; + contents.EndpointCount = __strictParseInt32(output["EndpointCount"]) as number; } return contents; }; @@ -19907,7 +19910,7 @@ const deserializeAws_queryNodeConfigurationOption = (output: any, context: __Ser contents.NodeType = __expectString(output["NodeType"]); } if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt(output["NumberOfNodes"]) as number; + contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; } if (output["EstimatedDiskUtilizationPercent"] !== undefined) { contents.EstimatedDiskUtilizationPercent = __strictParseFloat(output["EstimatedDiskUtilizationPercent"]) as number; @@ -20239,7 +20242,7 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.NodeType = __expectString(output["NodeType"]); } if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt(output["NumberOfNodes"]) as number; + contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; } if (output["ClusterType"] !== undefined) { contents.ClusterType = __expectString(output["ClusterType"]); @@ -20248,7 +20251,9 @@ const deserializeAws_queryPendingModifiedValues = (output: any, context: __Serde contents.ClusterVersion = __expectString(output["ClusterVersion"]); } if (output["AutomatedSnapshotRetentionPeriod"] !== undefined) { - contents.AutomatedSnapshotRetentionPeriod = __strictParseInt(output["AutomatedSnapshotRetentionPeriod"]) as number; + contents.AutomatedSnapshotRetentionPeriod = __strictParseInt32( + output["AutomatedSnapshotRetentionPeriod"] + ) as number; } if (output["ClusterIdentifier"] !== undefined) { contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); @@ -20345,7 +20350,7 @@ const deserializeAws_queryReservedNode = (output: any, context: __SerdeContext): contents.StartTime = new Date(output["StartTime"]); } if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["FixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; @@ -20357,7 +20362,7 @@ const deserializeAws_queryReservedNode = (output: any, context: __SerdeContext): contents.CurrencyCode = __expectString(output["CurrencyCode"]); } if (output["NodeCount"] !== undefined) { - contents.NodeCount = __strictParseInt(output["NodeCount"]) as number; + contents.NodeCount = __strictParseInt32(output["NodeCount"]) as number; } if (output["State"] !== undefined) { contents.State = __expectString(output["State"]); @@ -20449,7 +20454,7 @@ const deserializeAws_queryReservedNodeOffering = (output: any, context: __SerdeC contents.NodeType = __expectString(output["NodeType"]); } if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt(output["Duration"]) as number; + contents.Duration = __strictParseInt32(output["Duration"]) as number; } if (output["FixedPrice"] !== undefined) { contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; @@ -20579,7 +20584,7 @@ const deserializeAws_queryResizeClusterMessage = (output: any, context: __SerdeC contents.NodeType = __expectString(output["NodeType"]); } if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt(output["NumberOfNodes"]) as number; + contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; } if (output["Classic"] !== undefined) { contents.Classic = __parseBoolean(output["Classic"]); @@ -20644,7 +20649,7 @@ const deserializeAws_queryResizeProgressMessage = (output: any, context: __Serde contents.TargetNodeType = __expectString(output["TargetNodeType"]); } if (output["TargetNumberOfNodes"] !== undefined) { - contents.TargetNumberOfNodes = __strictParseInt(output["TargetNumberOfNodes"]) as number; + contents.TargetNumberOfNodes = __strictParseInt32(output["TargetNumberOfNodes"]) as number; } if (output["TargetClusterType"] !== undefined) { contents.TargetClusterType = __expectString(output["TargetClusterType"]); @@ -20685,16 +20690,16 @@ const deserializeAws_queryResizeProgressMessage = (output: any, context: __Serde ) as number; } if (output["TotalResizeDataInMegaBytes"] !== undefined) { - contents.TotalResizeDataInMegaBytes = __strictParseInt(output["TotalResizeDataInMegaBytes"]) as number; + contents.TotalResizeDataInMegaBytes = __strictParseLong(output["TotalResizeDataInMegaBytes"]) as number; } if (output["ProgressInMegaBytes"] !== undefined) { - contents.ProgressInMegaBytes = __strictParseInt(output["ProgressInMegaBytes"]) as number; + contents.ProgressInMegaBytes = __strictParseLong(output["ProgressInMegaBytes"]) as number; } if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseInt(output["ElapsedTimeInSeconds"]) as number; + contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; } if (output["EstimatedTimeToCompletionInSeconds"] !== undefined) { - contents.EstimatedTimeToCompletionInSeconds = __strictParseInt( + contents.EstimatedTimeToCompletionInSeconds = __strictParseLong( output["EstimatedTimeToCompletionInSeconds"] ) as number; } @@ -20765,16 +20770,16 @@ const deserializeAws_queryRestoreStatus = (output: any, context: __SerdeContext) ) as number; } if (output["SnapshotSizeInMegaBytes"] !== undefined) { - contents.SnapshotSizeInMegaBytes = __strictParseInt(output["SnapshotSizeInMegaBytes"]) as number; + contents.SnapshotSizeInMegaBytes = __strictParseLong(output["SnapshotSizeInMegaBytes"]) as number; } if (output["ProgressInMegaBytes"] !== undefined) { - contents.ProgressInMegaBytes = __strictParseInt(output["ProgressInMegaBytes"]) as number; + contents.ProgressInMegaBytes = __strictParseLong(output["ProgressInMegaBytes"]) as number; } if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseInt(output["ElapsedTimeInSeconds"]) as number; + contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; } if (output["EstimatedTimeToCompletionInSeconds"] !== undefined) { - contents.EstimatedTimeToCompletionInSeconds = __strictParseInt( + contents.EstimatedTimeToCompletionInSeconds = __strictParseLong( output["EstimatedTimeToCompletionInSeconds"] ) as number; } @@ -21127,7 +21132,7 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna contents.Status = __expectString(output["Status"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["AvailabilityZone"] !== undefined) { contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); @@ -21151,7 +21156,7 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna contents.NodeType = __expectString(output["NodeType"]); } if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt(output["NumberOfNodes"]) as number; + contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; } if (output["DBName"] !== undefined) { contents.DBName = __expectString(output["DBName"]); @@ -21200,10 +21205,10 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna ) as number; } if (output["EstimatedSecondsToCompletion"] !== undefined) { - contents.EstimatedSecondsToCompletion = __strictParseInt(output["EstimatedSecondsToCompletion"]) as number; + contents.EstimatedSecondsToCompletion = __strictParseLong(output["EstimatedSecondsToCompletion"]) as number; } if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseInt(output["ElapsedTimeInSeconds"]) as number; + contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; } if (output["SourceRegion"] !== undefined) { contents.SourceRegion = __expectString(output["SourceRegion"]); @@ -21230,10 +21235,10 @@ const deserializeAws_querySnapshot = (output: any, context: __SerdeContext): Sna contents.MaintenanceTrackName = __expectString(output["MaintenanceTrackName"]); } if (output["ManualSnapshotRetentionPeriod"] !== undefined) { - contents.ManualSnapshotRetentionPeriod = __strictParseInt(output["ManualSnapshotRetentionPeriod"]) as number; + contents.ManualSnapshotRetentionPeriod = __strictParseInt32(output["ManualSnapshotRetentionPeriod"]) as number; } if (output["ManualSnapshotRemainingDays"] !== undefined) { - contents.ManualSnapshotRemainingDays = __strictParseInt(output["ManualSnapshotRemainingDays"]) as number; + contents.ManualSnapshotRemainingDays = __strictParseInt32(output["ManualSnapshotRemainingDays"]) as number; } if (output["SnapshotRetentionStartTime"] !== undefined) { contents.SnapshotRetentionStartTime = new Date(output["SnapshotRetentionStartTime"]); @@ -21482,7 +21487,7 @@ const deserializeAws_querySnapshotSchedule = (output: any, context: __SerdeConte ); } if (output["AssociatedClusterCount"] !== undefined) { - contents.AssociatedClusterCount = __strictParseInt(output["AssociatedClusterCount"]) as number; + contents.AssociatedClusterCount = __strictParseInt32(output["AssociatedClusterCount"]) as number; } if (output.AssociatedClusters === "") { contents.AssociatedClusters = []; @@ -21815,10 +21820,10 @@ const deserializeAws_queryTableRestoreStatus = (output: any, context: __SerdeCon contents.RequestTime = new Date(output["RequestTime"]); } if (output["ProgressInMegaBytes"] !== undefined) { - contents.ProgressInMegaBytes = __strictParseInt(output["ProgressInMegaBytes"]) as number; + contents.ProgressInMegaBytes = __strictParseLong(output["ProgressInMegaBytes"]) as number; } if (output["TotalDataInMegaBytes"] !== undefined) { - contents.TotalDataInMegaBytes = __strictParseInt(output["TotalDataInMegaBytes"]) as number; + contents.TotalDataInMegaBytes = __strictParseLong(output["TotalDataInMegaBytes"]) as number; } if (output["ClusterIdentifier"] !== undefined) { contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); @@ -22112,7 +22117,7 @@ const deserializeAws_queryUsageLimit = (output: any, context: __SerdeContext): U contents.LimitType = __expectString(output["LimitType"]); } if (output["Amount"] !== undefined) { - contents.Amount = __strictParseInt(output["Amount"]) as number; + contents.Amount = __strictParseLong(output["Amount"]) as number; } if (output["Period"] !== undefined) { contents.Period = __expectString(output["Period"]); diff --git a/clients/client-rekognition/protocols/Aws_json1_1.ts b/clients/client-rekognition/protocols/Aws_json1_1.ts index 5b981c7876ace..e7debffc41b46 100644 --- a/clients/client-rekognition/protocols/Aws_json1_1.ts +++ b/clients/client-rekognition/protocols/Aws_json1_1.ts @@ -332,9 +332,10 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { LazyJsonString as __LazyJsonString, expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -7670,8 +7671,8 @@ const deserializeAws_json1_1AccessDeniedException = (output: any, context: __Ser const deserializeAws_json1_1AgeRange = (output: any, context: __SerdeContext): AgeRange => { return { - High: __expectInt(output.High), - Low: __expectInt(output.Low), + High: __expectInt32(output.High), + Low: __expectInt32(output.Low), } as any; }; @@ -7698,9 +7699,9 @@ const deserializeAws_json1_1Assets = (output: any, context: __SerdeContext): Ass const deserializeAws_json1_1AudioMetadata = (output: any, context: __SerdeContext): AudioMetadata => { return { Codec: __expectString(output.Codec), - DurationMillis: __expectInt(output.DurationMillis), - NumberOfChannels: __expectInt(output.NumberOfChannels), - SampleRate: __expectInt(output.SampleRate), + DurationMillis: __expectLong(output.DurationMillis), + NumberOfChannels: __expectLong(output.NumberOfChannels), + SampleRate: __expectLong(output.SampleRate), } as any; }; @@ -7717,7 +7718,7 @@ const deserializeAws_json1_1AudioMetadataList = (output: any, context: __SerdeCo const deserializeAws_json1_1Beard = (output: any, context: __SerdeContext): Beard => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; @@ -7735,10 +7736,10 @@ const deserializeAws_json1_1BodyParts = (output: any, context: __SerdeContext): const deserializeAws_json1_1BoundingBox = (output: any, context: __SerdeContext): BoundingBox => { return { - Height: __limitedParseFloat(output.Height), - Left: __limitedParseFloat(output.Left), - Top: __limitedParseFloat(output.Top), - Width: __limitedParseFloat(output.Width), + Height: __limitedParseFloat32(output.Height), + Left: __limitedParseFloat32(output.Left), + Top: __limitedParseFloat32(output.Top), + Width: __limitedParseFloat32(output.Width), } as any; }; @@ -7749,7 +7750,7 @@ const deserializeAws_json1_1Celebrity = (output: any, context: __SerdeContext): ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined, Id: __expectString(output.Id), - MatchConfidence: __limitedParseFloat(output.MatchConfidence), + MatchConfidence: __limitedParseFloat32(output.MatchConfidence), Name: __expectString(output.Name), Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined, @@ -7762,7 +7763,7 @@ const deserializeAws_json1_1CelebrityDetail = (output: any, context: __SerdeCont output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1FaceDetail(output.Face, context) @@ -7791,7 +7792,7 @@ const deserializeAws_json1_1CelebrityRecognition = (output: any, context: __Serd output.Celebrity !== undefined && output.Celebrity !== null ? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -7823,7 +7824,7 @@ const deserializeAws_json1_1ComparedFace = (output: any, context: __SerdeContext output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Landmarks: output.Landmarks !== undefined && output.Landmarks !== null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) @@ -7857,7 +7858,7 @@ const deserializeAws_json1_1ComparedSourceImageFace = ( output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), } as any; }; @@ -7867,7 +7868,7 @@ const deserializeAws_json1_1CompareFacesMatch = (output: any, context: __SerdeCo output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined, - Similarity: __limitedParseFloat(output.Similarity), + Similarity: __limitedParseFloat32(output.Similarity), } as any; }; @@ -7921,7 +7922,7 @@ const deserializeAws_json1_1ContentModerationDetection = ( output.ModerationLabel !== undefined && output.ModerationLabel !== null ? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -7941,7 +7942,7 @@ const deserializeAws_json1_1ContentModerationDetections = ( const deserializeAws_json1_1CoversBodyPart = (output: any, context: __SerdeContext): CoversBodyPart => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; @@ -7953,7 +7954,7 @@ const deserializeAws_json1_1CreateCollectionResponse = ( return { CollectionArn: __expectString(output.CollectionArn), FaceModelVersion: __expectString(output.FaceModelVersion), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), } as any; }; @@ -7983,7 +7984,7 @@ const deserializeAws_json1_1CreateStreamProcessorResponse = ( const deserializeAws_json1_1CustomLabel = (output: any, context: __SerdeContext): CustomLabel => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Geometry: output.Geometry !== undefined && output.Geometry !== null ? deserializeAws_json1_1Geometry(output.Geometry, context) @@ -8008,7 +8009,7 @@ const deserializeAws_json1_1DeleteCollectionResponse = ( context: __SerdeContext ): DeleteCollectionResponse => { return { - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), } as any; }; @@ -8053,7 +8054,7 @@ const deserializeAws_json1_1DescribeCollectionResponse = ( output.CreationTimestamp !== undefined && output.CreationTimestamp !== null ? new Date(Math.round(output.CreationTimestamp * 1000)) : undefined, - FaceCount: __expectInt(output.FaceCount), + FaceCount: __expectLong(output.FaceCount), FaceModelVersion: __expectString(output.FaceModelVersion), } as any; }; @@ -8196,7 +8197,7 @@ const deserializeAws_json1_1DetectTextResponse = (output: any, context: __SerdeC const deserializeAws_json1_1Emotion = (output: any, context: __SerdeContext): Emotion => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Type: __expectString(output.Type), } as any; }; @@ -8218,7 +8219,7 @@ const deserializeAws_json1_1EquipmentDetection = (output: any, context: __SerdeC output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), CoversBodyPart: output.CoversBodyPart !== undefined && output.CoversBodyPart !== null ? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context) @@ -8240,7 +8241,7 @@ const deserializeAws_json1_1EquipmentDetections = (output: any, context: __Serde const deserializeAws_json1_1EvaluationResult = (output: any, context: __SerdeContext): EvaluationResult => { return { - F1Score: __limitedParseFloat(output.F1Score), + F1Score: __limitedParseFloat32(output.F1Score), Summary: output.Summary !== undefined && output.Summary !== null ? deserializeAws_json1_1Summary(output.Summary, context) @@ -8250,14 +8251,14 @@ const deserializeAws_json1_1EvaluationResult = (output: any, context: __SerdeCon const deserializeAws_json1_1Eyeglasses = (output: any, context: __SerdeContext): Eyeglasses => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; const deserializeAws_json1_1EyeOpen = (output: any, context: __SerdeContext): EyeOpen => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; @@ -8268,7 +8269,7 @@ const deserializeAws_json1_1Face = (output: any, context: __SerdeContext): Face output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), ExternalImageId: __expectString(output.ExternalImageId), FaceId: __expectString(output.FaceId), ImageId: __expectString(output.ImageId), @@ -8289,7 +8290,7 @@ const deserializeAws_json1_1FaceDetail = (output: any, context: __SerdeContext): output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Emotions: output.Emotions !== undefined && output.Emotions !== null ? deserializeAws_json1_1Emotions(output.Emotions, context) @@ -8352,7 +8353,7 @@ const deserializeAws_json1_1FaceDetection = (output: any, context: __SerdeContex output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -8393,7 +8394,7 @@ const deserializeAws_json1_1FaceMatch = (output: any, context: __SerdeContext): return { Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1Face(output.Face, context) : undefined, - Similarity: __limitedParseFloat(output.Similarity), + Similarity: __limitedParseFloat32(output.Similarity), } as any; }; @@ -8444,13 +8445,13 @@ const deserializeAws_json1_1FaceRecordList = (output: any, context: __SerdeConte const deserializeAws_json1_1FaceSearchSettings = (output: any, context: __SerdeContext): FaceSearchSettings => { return { CollectionId: __expectString(output.CollectionId), - FaceMatchThreshold: __limitedParseFloat(output.FaceMatchThreshold), + FaceMatchThreshold: __limitedParseFloat32(output.FaceMatchThreshold), } as any; }; const deserializeAws_json1_1Gender = (output: any, context: __SerdeContext): Gender => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectString(output.Value), } as any; }; @@ -8704,8 +8705,8 @@ const deserializeAws_json1_1IdempotentParameterMismatchException = ( const deserializeAws_json1_1ImageQuality = (output: any, context: __SerdeContext): ImageQuality => { return { - Brightness: __limitedParseFloat(output.Brightness), - Sharpness: __limitedParseFloat(output.Sharpness), + Brightness: __limitedParseFloat32(output.Brightness), + Sharpness: __limitedParseFloat32(output.Sharpness), } as any; }; @@ -8738,7 +8739,7 @@ const deserializeAws_json1_1Instance = (output: any, context: __SerdeContext): I output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), } as any; }; @@ -8819,7 +8820,7 @@ const deserializeAws_json1_1KinesisVideoStream = (output: any, context: __SerdeC const deserializeAws_json1_1Label = (output: any, context: __SerdeContext): Label => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Instances: output.Instances !== undefined && output.Instances !== null ? deserializeAws_json1_1Instances(output.Instances, context) @@ -8838,7 +8839,7 @@ const deserializeAws_json1_1LabelDetection = (output: any, context: __SerdeConte output.Label !== undefined && output.Label !== null ? deserializeAws_json1_1Label(output.Label, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -8867,8 +8868,8 @@ const deserializeAws_json1_1Labels = (output: any, context: __SerdeContext): Lab const deserializeAws_json1_1Landmark = (output: any, context: __SerdeContext): Landmark => { return { Type: __expectString(output.Type), - X: __limitedParseFloat(output.X), - Y: __limitedParseFloat(output.Y), + X: __limitedParseFloat32(output.X), + Y: __limitedParseFloat32(output.Y), } as any; }; @@ -8946,7 +8947,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( const deserializeAws_json1_1ModerationLabel = (output: any, context: __SerdeContext): ModerationLabel => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Name: __expectString(output.Name), ParentName: __expectString(output.ParentName), } as any; @@ -8965,14 +8966,14 @@ const deserializeAws_json1_1ModerationLabels = (output: any, context: __SerdeCon const deserializeAws_json1_1MouthOpen = (output: any, context: __SerdeContext): MouthOpen => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; const deserializeAws_json1_1Mustache = (output: any, context: __SerdeContext): Mustache => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; @@ -9011,7 +9012,7 @@ const deserializeAws_json1_1PersonDetail = (output: any, context: __SerdeContext output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined, - Index: __expectInt(output.Index), + Index: __expectLong(output.Index), } as any; }; @@ -9021,7 +9022,7 @@ const deserializeAws_json1_1PersonDetection = (output: any, context: __SerdeCont output.Person !== undefined && output.Person !== null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -9046,7 +9047,7 @@ const deserializeAws_json1_1PersonMatch = (output: any, context: __SerdeContext) output.Person !== undefined && output.Person !== null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -9063,8 +9064,8 @@ const deserializeAws_json1_1PersonMatches = (output: any, context: __SerdeContex const deserializeAws_json1_1Point = (output: any, context: __SerdeContext): Point => { return { - X: __limitedParseFloat(output.X), - Y: __limitedParseFloat(output.Y), + X: __limitedParseFloat32(output.X), + Y: __limitedParseFloat32(output.Y), } as any; }; @@ -9081,9 +9082,9 @@ const deserializeAws_json1_1Polygon = (output: any, context: __SerdeContext): Po const deserializeAws_json1_1Pose = (output: any, context: __SerdeContext): Pose => { return { - Pitch: __limitedParseFloat(output.Pitch), - Roll: __limitedParseFloat(output.Roll), - Yaw: __limitedParseFloat(output.Yaw), + Pitch: __limitedParseFloat32(output.Pitch), + Roll: __limitedParseFloat32(output.Roll), + Yaw: __limitedParseFloat32(output.Yaw), } as any; }; @@ -9114,7 +9115,7 @@ const deserializeAws_json1_1ProjectVersionDescription = ( context: __SerdeContext ): ProjectVersionDescription => { return { - BillableTrainingTimeInSeconds: __expectInt(output.BillableTrainingTimeInSeconds), + BillableTrainingTimeInSeconds: __expectLong(output.BillableTrainingTimeInSeconds), CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null ? new Date(Math.round(output.CreationTimestamp * 1000)) @@ -9128,7 +9129,7 @@ const deserializeAws_json1_1ProjectVersionDescription = ( output.ManifestSummary !== undefined && output.ManifestSummary !== null ? deserializeAws_json1_1GroundTruthManifest(output.ManifestSummary, context) : undefined, - MinInferenceUnits: __expectInt(output.MinInferenceUnits), + MinInferenceUnits: __expectInt32(output.MinInferenceUnits), OutputConfig: output.OutputConfig !== undefined && output.OutputConfig !== null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) @@ -9170,7 +9171,7 @@ const deserializeAws_json1_1ProtectiveEquipmentBodyPart = ( context: __SerdeContext ): ProtectiveEquipmentBodyPart => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), EquipmentDetections: output.EquipmentDetections !== undefined && output.EquipmentDetections !== null ? deserializeAws_json1_1EquipmentDetections(output.EquipmentDetections, context) @@ -9192,8 +9193,8 @@ const deserializeAws_json1_1ProtectiveEquipmentPerson = ( output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, - Confidence: __limitedParseFloat(output.Confidence), - Id: __expectInt(output.Id), + Confidence: __limitedParseFloat32(output.Confidence), + Id: __expectInt32(output.Id), } as any; }; @@ -9204,7 +9205,7 @@ const deserializeAws_json1_1ProtectiveEquipmentPersonIds = (output: any, context if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -9344,7 +9345,7 @@ const deserializeAws_json1_1SearchFacesByImageResponse = ( output.SearchedFaceBoundingBox !== undefined && output.SearchedFaceBoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context) : undefined, - SearchedFaceConfidence: __limitedParseFloat(output.SearchedFaceConfidence), + SearchedFaceConfidence: __limitedParseFloat32(output.SearchedFaceConfidence), } as any; }; @@ -9361,19 +9362,19 @@ const deserializeAws_json1_1SearchFacesResponse = (output: any, context: __Serde const deserializeAws_json1_1SegmentDetection = (output: any, context: __SerdeContext): SegmentDetection => { return { - DurationFrames: __expectInt(output.DurationFrames), - DurationMillis: __expectInt(output.DurationMillis), + DurationFrames: __expectLong(output.DurationFrames), + DurationMillis: __expectLong(output.DurationMillis), DurationSMPTE: __expectString(output.DurationSMPTE), - EndFrameNumber: __expectInt(output.EndFrameNumber), + EndFrameNumber: __expectLong(output.EndFrameNumber), EndTimecodeSMPTE: __expectString(output.EndTimecodeSMPTE), - EndTimestampMillis: __expectInt(output.EndTimestampMillis), + EndTimestampMillis: __expectLong(output.EndTimestampMillis), ShotSegment: output.ShotSegment !== undefined && output.ShotSegment !== null ? deserializeAws_json1_1ShotSegment(output.ShotSegment, context) : undefined, - StartFrameNumber: __expectInt(output.StartFrameNumber), + StartFrameNumber: __expectLong(output.StartFrameNumber), StartTimecodeSMPTE: __expectString(output.StartTimecodeSMPTE), - StartTimestampMillis: __expectInt(output.StartTimestampMillis), + StartTimestampMillis: __expectLong(output.StartTimestampMillis), TechnicalCueSegment: output.TechnicalCueSegment !== undefined && output.TechnicalCueSegment !== null ? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context) @@ -9424,14 +9425,14 @@ const deserializeAws_json1_1ServiceQuotaExceededException = ( const deserializeAws_json1_1ShotSegment = (output: any, context: __SerdeContext): ShotSegment => { return { - Confidence: __limitedParseFloat(output.Confidence), - Index: __expectInt(output.Index), + Confidence: __limitedParseFloat32(output.Confidence), + Index: __expectLong(output.Index), } as any; }; const deserializeAws_json1_1Smile = (output: any, context: __SerdeContext): Smile => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; @@ -9599,7 +9600,7 @@ const deserializeAws_json1_1Summary = (output: any, context: __SerdeContext): Su const deserializeAws_json1_1Sunglasses = (output: any, context: __SerdeContext): Sunglasses => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Value: __expectBoolean(output.Value), } as any; }; @@ -9622,7 +9623,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde const deserializeAws_json1_1TechnicalCueSegment = (output: any, context: __SerdeContext): TechnicalCueSegment => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Type: __expectString(output.Type), } as any; }; @@ -9656,14 +9657,14 @@ const deserializeAws_json1_1TestingDataResult = (output: any, context: __SerdeCo const deserializeAws_json1_1TextDetection = (output: any, context: __SerdeContext): TextDetection => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), DetectedText: __expectString(output.DetectedText), Geometry: output.Geometry !== undefined && output.Geometry !== null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined, - Id: __expectInt(output.Id), - ParentId: __expectInt(output.ParentId), + Id: __expectInt32(output.Id), + ParentId: __expectInt32(output.ParentId), Type: __expectString(output.Type), } as any; }; @@ -9685,7 +9686,7 @@ const deserializeAws_json1_1TextDetectionResult = (output: any, context: __Serde output.TextDetection !== undefined && output.TextDetection !== null ? deserializeAws_json1_1TextDetection(output.TextDetection, context) : undefined, - Timestamp: __expectInt(output.Timestamp), + Timestamp: __expectLong(output.Timestamp), } as any; }; @@ -9786,11 +9787,11 @@ const deserializeAws_json1_1VideoMetadata = (output: any, context: __SerdeContex return { Codec: __expectString(output.Codec), ColorRange: __expectString(output.ColorRange), - DurationMillis: __expectInt(output.DurationMillis), + DurationMillis: __expectLong(output.DurationMillis), Format: __expectString(output.Format), - FrameHeight: __expectInt(output.FrameHeight), - FrameRate: __limitedParseFloat(output.FrameRate), - FrameWidth: __expectInt(output.FrameWidth), + FrameHeight: __expectLong(output.FrameHeight), + FrameRate: __limitedParseFloat32(output.FrameRate), + FrameWidth: __expectLong(output.FrameWidth), } as any; }; diff --git a/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts b/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts index 4d3f807436688..8c1d25b5cae47 100644 --- a/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts +++ b/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts @@ -49,7 +49,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -1169,7 +1170,7 @@ const deserializeAws_json1_1FailureInfo = (output: any, context: __SerdeContext) return { ErrorCode: __expectString(output.ErrorCode), ErrorMessage: __expectString(output.ErrorMessage), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), } as any; }; @@ -1278,7 +1279,7 @@ const deserializeAws_json1_1StartReportCreationOutput = ( const deserializeAws_json1_1Summary = (output: any, context: __SerdeContext): Summary => { return { LastUpdated: __expectString(output.LastUpdated), - NonCompliantResources: __expectInt(output.NonCompliantResources), + NonCompliantResources: __expectLong(output.NonCompliantResources), Region: __expectString(output.Region), ResourceType: __expectString(output.ResourceType), TargetId: __expectString(output.TargetId), diff --git a/clients/client-robomaker/protocols/Aws_restJson1.ts b/clients/client-robomaker/protocols/Aws_restJson1.ts index b763dbb9d36c0..bb65220ab6d8e 100644 --- a/clients/client-robomaker/protocols/Aws_restJson1.ts +++ b/clients/client-robomaker/protocols/Aws_restJson1.ts @@ -233,10 +233,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3253,7 +3254,7 @@ export const deserializeAws_restJson1CreateSimulationJobCommand = async ( contents.loggingConfig = deserializeAws_restJson1LoggingConfig(data.loggingConfig, context); } if (data.maxJobDurationInSeconds !== undefined && data.maxJobDurationInSeconds !== null) { - contents.maxJobDurationInSeconds = __expectInt(data.maxJobDurationInSeconds); + contents.maxJobDurationInSeconds = __expectLong(data.maxJobDurationInSeconds); } if (data.outputLocation !== undefined && data.outputLocation !== null) { contents.outputLocation = deserializeAws_restJson1OutputLocation(data.outputLocation, context); @@ -3268,7 +3269,7 @@ export const deserializeAws_restJson1CreateSimulationJobCommand = async ( ); } if (data.simulationTimeMillis !== undefined && data.simulationTimeMillis !== null) { - contents.simulationTimeMillis = __expectInt(data.simulationTimeMillis); + contents.simulationTimeMillis = __expectLong(data.simulationTimeMillis); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -4796,7 +4797,7 @@ export const deserializeAws_restJson1DescribeSimulationJobCommand = async ( contents.loggingConfig = deserializeAws_restJson1LoggingConfig(data.loggingConfig, context); } if (data.maxJobDurationInSeconds !== undefined && data.maxJobDurationInSeconds !== null) { - contents.maxJobDurationInSeconds = __expectInt(data.maxJobDurationInSeconds); + contents.maxJobDurationInSeconds = __expectLong(data.maxJobDurationInSeconds); } if (data.name !== undefined && data.name !== null) { contents.name = __expectString(data.name); @@ -4817,7 +4818,7 @@ export const deserializeAws_restJson1DescribeSimulationJobCommand = async ( ); } if (data.simulationTimeMillis !== undefined && data.simulationTimeMillis !== null) { - contents.simulationTimeMillis = __expectInt(data.simulationTimeMillis); + contents.simulationTimeMillis = __expectLong(data.simulationTimeMillis); } if (data.status !== undefined && data.status !== null) { contents.status = __expectString(data.status); @@ -8064,20 +8065,20 @@ const deserializeAws_restJson1Arns = (output: any, context: __SerdeContext): str const deserializeAws_restJson1BatchPolicy = (output: any, context: __SerdeContext): BatchPolicy => { return { - maxConcurrency: __expectInt(output.maxConcurrency), - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + maxConcurrency: __expectInt32(output.maxConcurrency), + timeoutInSeconds: __expectLong(output.timeoutInSeconds), } as any; }; const deserializeAws_restJson1Compute = (output: any, context: __SerdeContext): Compute => { return { - simulationUnitLimit: __expectInt(output.simulationUnitLimit), + simulationUnitLimit: __expectInt32(output.simulationUnitLimit), } as any; }; const deserializeAws_restJson1ComputeResponse = (output: any, context: __SerdeContext): ComputeResponse => { return { - simulationUnitLimit: __expectInt(output.simulationUnitLimit), + simulationUnitLimit: __expectInt32(output.simulationUnitLimit), } as any; }; @@ -8180,13 +8181,13 @@ const deserializeAws_restJson1DeploymentApplicationConfigs = ( const deserializeAws_restJson1DeploymentConfig = (output: any, context: __SerdeContext): DeploymentConfig => { return { - concurrentDeploymentPercentage: __expectInt(output.concurrentDeploymentPercentage), + concurrentDeploymentPercentage: __expectInt32(output.concurrentDeploymentPercentage), downloadConditionFile: output.downloadConditionFile !== undefined && output.downloadConditionFile !== null ? deserializeAws_restJson1S3Object(output.downloadConditionFile, context) : undefined, - failureThresholdPercentage: __expectInt(output.failureThresholdPercentage), - robotDeploymentTimeoutInSeconds: __expectInt(output.robotDeploymentTimeoutInSeconds), + failureThresholdPercentage: __expectInt32(output.failureThresholdPercentage), + robotDeploymentTimeoutInSeconds: __expectLong(output.robotDeploymentTimeoutInSeconds), } as any; }; @@ -8292,7 +8293,7 @@ const deserializeAws_restJson1FailureSummary = (output: any, context: __SerdeCon output.failures !== undefined && output.failures !== null ? deserializeAws_restJson1WorldFailures(output.failures, context) : undefined, - totalFailureCount: __expectInt(output.totalFailureCount), + totalFailureCount: __expectInt32(output.totalFailureCount), } as any; }; @@ -8302,7 +8303,7 @@ const deserializeAws_restJson1FinishedWorldsSummary = (output: any, context: __S output.failureSummary !== undefined && output.failureSummary !== null ? deserializeAws_restJson1FailureSummary(output.failureSummary, context) : undefined, - finishedCount: __expectInt(output.finishedCount), + finishedCount: __expectInt32(output.finishedCount), succeededWorlds: output.succeededWorlds !== undefined && output.succeededWorlds !== null ? deserializeAws_restJson1Arns(output.succeededWorlds, context) @@ -8386,9 +8387,9 @@ const deserializeAws_restJson1PortForwardingConfig = (output: any, context: __Se const deserializeAws_restJson1PortMapping = (output: any, context: __SerdeContext): PortMapping => { return { - applicationPort: __expectInt(output.applicationPort), + applicationPort: __expectInt32(output.applicationPort), enableOnPublicIp: __expectBoolean(output.enableOnPublicIp), - jobPort: __expectInt(output.jobPort), + jobPort: __expectInt32(output.jobPort), } as any; }; @@ -8406,8 +8407,8 @@ const deserializeAws_restJson1PortMappingList = (output: any, context: __SerdeCo const deserializeAws_restJson1ProgressDetail = (output: any, context: __SerdeContext): ProgressDetail => { return { currentProgress: __expectString(output.currentProgress), - estimatedTimeRemainingSeconds: __expectInt(output.estimatedTimeRemainingSeconds), - percentDone: __limitedParseFloat(output.percentDone), + estimatedTimeRemainingSeconds: __expectInt32(output.estimatedTimeRemainingSeconds), + percentDone: __limitedParseFloat32(output.percentDone), targetResource: __expectString(output.targetResource), } as any; }; @@ -8737,7 +8738,7 @@ const deserializeAws_restJson1SimulationJob = (output: any, context: __SerdeCont output.loggingConfig !== undefined && output.loggingConfig !== null ? deserializeAws_restJson1LoggingConfig(output.loggingConfig, context) : undefined, - maxJobDurationInSeconds: __expectInt(output.maxJobDurationInSeconds), + maxJobDurationInSeconds: __expectLong(output.maxJobDurationInSeconds), name: __expectString(output.name), networkInterface: output.networkInterface !== undefined && output.networkInterface !== null @@ -8755,7 +8756,7 @@ const deserializeAws_restJson1SimulationJob = (output: any, context: __SerdeCont output.simulationApplications !== undefined && output.simulationApplications !== null ? deserializeAws_restJson1SimulationApplicationConfigs(output.simulationApplications, context) : undefined, - simulationTimeMillis: __expectInt(output.simulationTimeMillis), + simulationTimeMillis: __expectLong(output.simulationTimeMillis), status: __expectString(output.status), tags: output.tags !== undefined && output.tags !== null @@ -8792,13 +8793,13 @@ const deserializeAws_restJson1SimulationJobBatchSummary = ( output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - createdRequestCount: __expectInt(output.createdRequestCount), - failedRequestCount: __expectInt(output.failedRequestCount), + createdRequestCount: __expectInt32(output.createdRequestCount), + failedRequestCount: __expectInt32(output.failedRequestCount), lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null ? new Date(Math.round(output.lastUpdatedAt * 1000)) : undefined, - pendingRequestCount: __expectInt(output.pendingRequestCount), + pendingRequestCount: __expectInt32(output.pendingRequestCount), status: __expectString(output.status), } as any; }; @@ -8819,7 +8820,7 @@ const deserializeAws_restJson1SimulationJobRequest = (output: any, context: __Se output.loggingConfig !== undefined && output.loggingConfig !== null ? deserializeAws_restJson1LoggingConfig(output.loggingConfig, context) : undefined, - maxJobDurationInSeconds: __expectInt(output.maxJobDurationInSeconds), + maxJobDurationInSeconds: __expectLong(output.maxJobDurationInSeconds), outputLocation: output.outputLocation !== undefined && output.outputLocation !== null ? deserializeAws_restJson1OutputLocation(output.outputLocation, context) @@ -9061,8 +9062,8 @@ const deserializeAws_restJson1WorldConfigs = (output: any, context: __SerdeConte const deserializeAws_restJson1WorldCount = (output: any, context: __SerdeContext): WorldCount => { return { - floorplanCount: __expectInt(output.floorplanCount), - interiorCountPerFloorplan: __expectInt(output.interiorCountPerFloorplan), + floorplanCount: __expectInt32(output.floorplanCount), + interiorCountPerFloorplan: __expectInt32(output.interiorCountPerFloorplan), } as any; }; @@ -9098,7 +9099,7 @@ const deserializeAws_restJson1WorldExportJobSummary = (output: any, context: __S const deserializeAws_restJson1WorldFailure = (output: any, context: __SerdeContext): WorldFailure => { return { failureCode: __expectString(output.failureCode), - failureCount: __expectInt(output.failureCount), + failureCount: __expectInt32(output.failureCount), sampleFailureReason: __expectString(output.sampleFailureReason), } as any; }; @@ -9138,9 +9139,9 @@ const deserializeAws_restJson1WorldGenerationJobSummary = ( output.createdAt !== undefined && output.createdAt !== null ? new Date(Math.round(output.createdAt * 1000)) : undefined, - failedWorldCount: __expectInt(output.failedWorldCount), + failedWorldCount: __expectInt32(output.failedWorldCount), status: __expectString(output.status), - succeededWorldCount: __expectInt(output.succeededWorldCount), + succeededWorldCount: __expectInt32(output.succeededWorldCount), template: __expectString(output.template), worldCount: output.worldCount !== undefined && output.worldCount !== null diff --git a/clients/client-route-53-domains/protocols/Aws_json1_1.ts b/clients/client-route-53-domains/protocols/Aws_json1_1.ts index ffb7d5a3c8d12..85438dbc8ca6d 100644 --- a/clients/client-route-53-domains/protocols/Aws_json1_1.ts +++ b/clients/client-route-53-domains/protocols/Aws_json1_1.ts @@ -160,7 +160,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { expectBoolean as __expectBoolean, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3028,7 +3028,7 @@ const deserializeAws_json1_1BillingRecord = (output: any, context: __SerdeContex DomainName: __expectString(output.DomainName), InvoiceId: __expectString(output.InvoiceId), Operation: __expectString(output.Operation), - Price: __limitedParseFloat(output.Price), + Price: __limitedParseDouble(output.Price), } as any; }; diff --git a/clients/client-route-53/protocols/Aws_restXml.ts b/clients/client-route-53/protocols/Aws_restXml.ts index 64ebbc20f2013..becc264786be8 100644 --- a/clients/client-route-53/protocols/Aws_restXml.ts +++ b/clients/client-route-53/protocols/Aws_restXml.ts @@ -305,7 +305,8 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4920,7 +4921,7 @@ export const deserializeAws_restXmlGetAccountLimitCommand = async ( }; const data: any = await parseBody(output.body, context); if (data["Count"] !== undefined) { - contents.Count = __strictParseInt(data["Count"]) as number; + contents.Count = __strictParseLong(data["Count"]) as number; } if (data["Limit"] !== undefined) { contents.Limit = deserializeAws_restXmlAccountLimit(data["Limit"], context); @@ -5309,7 +5310,7 @@ export const deserializeAws_restXmlGetHealthCheckCountCommand = async ( }; const data: any = await parseBody(output.body, context); if (data["HealthCheckCount"] !== undefined) { - contents.HealthCheckCount = __strictParseInt(data["HealthCheckCount"]) as number; + contents.HealthCheckCount = __strictParseLong(data["HealthCheckCount"]) as number; } return Promise.resolve(contents); }; @@ -5574,7 +5575,7 @@ export const deserializeAws_restXmlGetHostedZoneCountCommand = async ( }; const data: any = await parseBody(output.body, context); if (data["HostedZoneCount"] !== undefined) { - contents.HostedZoneCount = __strictParseInt(data["HostedZoneCount"]) as number; + contents.HostedZoneCount = __strictParseLong(data["HostedZoneCount"]) as number; } return Promise.resolve(contents); }; @@ -5630,7 +5631,7 @@ export const deserializeAws_restXmlGetHostedZoneLimitCommand = async ( }; const data: any = await parseBody(output.body, context); if (data["Count"] !== undefined) { - contents.Count = __strictParseInt(data["Count"]) as number; + contents.Count = __strictParseLong(data["Count"]) as number; } if (data["Limit"] !== undefined) { contents.Limit = deserializeAws_restXmlHostedZoneLimit(data["Limit"], context); @@ -5839,7 +5840,7 @@ export const deserializeAws_restXmlGetReusableDelegationSetLimitCommand = async }; const data: any = await parseBody(output.body, context); if (data["Count"] !== undefined) { - contents.Count = __strictParseInt(data["Count"]) as number; + contents.Count = __strictParseLong(data["Count"]) as number; } if (data["Limit"] !== undefined) { contents.Limit = deserializeAws_restXmlReusableDelegationSetLimit(data["Limit"], context); @@ -6034,7 +6035,7 @@ export const deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand = async }; const data: any = await parseBody(output.body, context); if (data["TrafficPolicyInstanceCount"] !== undefined) { - contents.TrafficPolicyInstanceCount = __strictParseInt(data["TrafficPolicyInstanceCount"]) as number; + contents.TrafficPolicyInstanceCount = __strictParseInt32(data["TrafficPolicyInstanceCount"]) as number; } return Promise.resolve(contents); }; @@ -6101,7 +6102,7 @@ export const deserializeAws_restXmlListGeoLocationsCommand = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextContinentCode"] !== undefined) { contents.NextContinentCode = __expectString(data["NextContinentCode"]); @@ -6184,7 +6185,7 @@ export const deserializeAws_restXmlListHealthChecksCommand = async ( contents.Marker = __expectString(data["Marker"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextMarker"] !== undefined) { contents.NextMarker = __expectString(data["NextMarker"]); @@ -6269,7 +6270,7 @@ export const deserializeAws_restXmlListHostedZonesCommand = async ( contents.Marker = __expectString(data["Marker"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextMarker"] !== undefined) { contents.NextMarker = __expectString(data["NextMarker"]); @@ -6367,7 +6368,7 @@ export const deserializeAws_restXmlListHostedZonesByNameCommand = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextDNSName"] !== undefined) { contents.NextDNSName = __expectString(data["NextDNSName"]); @@ -6447,7 +6448,7 @@ export const deserializeAws_restXmlListHostedZonesByVPCCommand = async ( ); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextToken"] !== undefined) { contents.NextToken = __expectString(data["NextToken"]); @@ -6602,7 +6603,7 @@ export const deserializeAws_restXmlListResourceRecordSetsCommand = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextRecordIdentifier"] !== undefined) { contents.NextRecordIdentifier = __expectString(data["NextRecordIdentifier"]); @@ -6702,7 +6703,7 @@ export const deserializeAws_restXmlListReusableDelegationSetsCommand = async ( contents.Marker = __expectString(data["Marker"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["NextMarker"] !== undefined) { contents.NextMarker = __expectString(data["NextMarker"]); @@ -6946,7 +6947,7 @@ export const deserializeAws_restXmlListTrafficPoliciesCommand = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["TrafficPolicyIdMarker"] !== undefined) { contents.TrafficPolicyIdMarker = __expectString(data["TrafficPolicyIdMarker"]); @@ -7027,7 +7028,7 @@ export const deserializeAws_restXmlListTrafficPolicyInstancesCommand = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["TrafficPolicyInstanceNameMarker"] !== undefined) { contents.TrafficPolicyInstanceNameMarker = __expectString(data["TrafficPolicyInstanceNameMarker"]); @@ -7115,7 +7116,7 @@ export const deserializeAws_restXmlListTrafficPolicyInstancesByHostedZoneCommand contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["TrafficPolicyInstanceNameMarker"] !== undefined) { contents.TrafficPolicyInstanceNameMarker = __expectString(data["TrafficPolicyInstanceNameMarker"]); @@ -7215,7 +7216,7 @@ export const deserializeAws_restXmlListTrafficPolicyInstancesByPolicyCommand = a contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data["TrafficPolicyInstanceNameMarker"] !== undefined) { contents.TrafficPolicyInstanceNameMarker = __expectString(data["TrafficPolicyInstanceNameMarker"]); @@ -7310,7 +7311,7 @@ export const deserializeAws_restXmlListTrafficPolicyVersionsCommand = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt(data["MaxItems"]) as number; + contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; } if (data.TrafficPolicies === "") { contents.TrafficPolicies = []; @@ -9337,7 +9338,7 @@ const deserializeAws_restXmlAccountLimit = (output: any, context: __SerdeContext contents.Type = __expectString(output["Type"]); } if (output["Value"] !== undefined) { - contents.Value = __strictParseInt(output["Value"]) as number; + contents.Value = __strictParseLong(output["Value"]) as number; } return contents; }; @@ -9433,7 +9434,7 @@ const deserializeAws_restXmlCloudWatchAlarmConfiguration = ( Dimensions: undefined, }; if (output["EvaluationPeriods"] !== undefined) { - contents.EvaluationPeriods = __strictParseInt(output["EvaluationPeriods"]) as number; + contents.EvaluationPeriods = __strictParseInt32(output["EvaluationPeriods"]) as number; } if (output["Threshold"] !== undefined) { contents.Threshold = __strictParseFloat(output["Threshold"]) as number; @@ -9442,7 +9443,7 @@ const deserializeAws_restXmlCloudWatchAlarmConfiguration = ( contents.ComparisonOperator = __expectString(output["ComparisonOperator"]); } if (output["Period"] !== undefined) { - contents.Period = __strictParseInt(output["Period"]) as number; + contents.Period = __strictParseInt32(output["Period"]) as number; } if (output["MetricName"] !== undefined) { contents.MetricName = __expectString(output["MetricName"]); @@ -9642,7 +9643,7 @@ const deserializeAws_restXmlHealthCheck = (output: any, context: __SerdeContext) contents.HealthCheckConfig = deserializeAws_restXmlHealthCheckConfig(output["HealthCheckConfig"], context); } if (output["HealthCheckVersion"] !== undefined) { - contents.HealthCheckVersion = __strictParseInt(output["HealthCheckVersion"]) as number; + contents.HealthCheckVersion = __strictParseLong(output["HealthCheckVersion"]) as number; } if (output["CloudWatchAlarmConfiguration"] !== undefined) { contents.CloudWatchAlarmConfiguration = deserializeAws_restXmlCloudWatchAlarmConfiguration( @@ -9678,7 +9679,7 @@ const deserializeAws_restXmlHealthCheckConfig = (output: any, context: __SerdeCo contents.IPAddress = __expectString(output["IPAddress"]); } if (output["Port"] !== undefined) { - contents.Port = __strictParseInt(output["Port"]) as number; + contents.Port = __strictParseInt32(output["Port"]) as number; } if (output["Type"] !== undefined) { contents.Type = __expectString(output["Type"]); @@ -9693,10 +9694,10 @@ const deserializeAws_restXmlHealthCheckConfig = (output: any, context: __SerdeCo contents.SearchString = __expectString(output["SearchString"]); } if (output["RequestInterval"] !== undefined) { - contents.RequestInterval = __strictParseInt(output["RequestInterval"]) as number; + contents.RequestInterval = __strictParseInt32(output["RequestInterval"]) as number; } if (output["FailureThreshold"] !== undefined) { - contents.FailureThreshold = __strictParseInt(output["FailureThreshold"]) as number; + contents.FailureThreshold = __strictParseInt32(output["FailureThreshold"]) as number; } if (output["MeasureLatency"] !== undefined) { contents.MeasureLatency = __parseBoolean(output["MeasureLatency"]); @@ -9708,7 +9709,7 @@ const deserializeAws_restXmlHealthCheckConfig = (output: any, context: __SerdeCo contents.Disabled = __parseBoolean(output["Disabled"]); } if (output["HealthThreshold"] !== undefined) { - contents.HealthThreshold = __strictParseInt(output["HealthThreshold"]) as number; + contents.HealthThreshold = __strictParseInt32(output["HealthThreshold"]) as number; } if (output.ChildHealthChecks === "") { contents.ChildHealthChecks = []; @@ -9822,7 +9823,7 @@ const deserializeAws_restXmlHostedZone = (output: any, context: __SerdeContext): contents.Config = deserializeAws_restXmlHostedZoneConfig(output["Config"], context); } if (output["ResourceRecordSetCount"] !== undefined) { - contents.ResourceRecordSetCount = __strictParseInt(output["ResourceRecordSetCount"]) as number; + contents.ResourceRecordSetCount = __strictParseLong(output["ResourceRecordSetCount"]) as number; } if (output["LinkedService"] !== undefined) { contents.LinkedService = deserializeAws_restXmlLinkedService(output["LinkedService"], context); @@ -9853,7 +9854,7 @@ const deserializeAws_restXmlHostedZoneLimit = (output: any, context: __SerdeCont contents.Type = __expectString(output["Type"]); } if (output["Value"] !== undefined) { - contents.Value = __strictParseInt(output["Value"]) as number; + contents.Value = __strictParseLong(output["Value"]) as number; } return contents; }; @@ -9938,22 +9939,22 @@ const deserializeAws_restXmlKeySigningKey = (output: any, context: __SerdeContex contents.KmsArn = __expectString(output["KmsArn"]); } if (output["Flag"] !== undefined) { - contents.Flag = __strictParseInt(output["Flag"]) as number; + contents.Flag = __strictParseInt32(output["Flag"]) as number; } if (output["SigningAlgorithmMnemonic"] !== undefined) { contents.SigningAlgorithmMnemonic = __expectString(output["SigningAlgorithmMnemonic"]); } if (output["SigningAlgorithmType"] !== undefined) { - contents.SigningAlgorithmType = __strictParseInt(output["SigningAlgorithmType"]) as number; + contents.SigningAlgorithmType = __strictParseInt32(output["SigningAlgorithmType"]) as number; } if (output["DigestAlgorithmMnemonic"] !== undefined) { contents.DigestAlgorithmMnemonic = __expectString(output["DigestAlgorithmMnemonic"]); } if (output["DigestAlgorithmType"] !== undefined) { - contents.DigestAlgorithmType = __strictParseInt(output["DigestAlgorithmType"]) as number; + contents.DigestAlgorithmType = __strictParseInt32(output["DigestAlgorithmType"]) as number; } if (output["KeyTag"] !== undefined) { - contents.KeyTag = __strictParseInt(output["KeyTag"]) as number; + contents.KeyTag = __strictParseInt32(output["KeyTag"]) as number; } if (output["DigestValue"] !== undefined) { contents.DigestValue = __expectString(output["DigestValue"]); @@ -10094,7 +10095,7 @@ const deserializeAws_restXmlResourceRecordSet = (output: any, context: __SerdeCo contents.SetIdentifier = __expectString(output["SetIdentifier"]); } if (output["Weight"] !== undefined) { - contents.Weight = __strictParseInt(output["Weight"]) as number; + contents.Weight = __strictParseLong(output["Weight"]) as number; } if (output["Region"] !== undefined) { contents.Region = __expectString(output["Region"]); @@ -10109,7 +10110,7 @@ const deserializeAws_restXmlResourceRecordSet = (output: any, context: __SerdeCo contents.MultiValueAnswer = __parseBoolean(output["MultiValueAnswer"]); } if (output["TTL"] !== undefined) { - contents.TTL = __strictParseInt(output["TTL"]) as number; + contents.TTL = __strictParseLong(output["TTL"]) as number; } if (output.ResourceRecords === "") { contents.ResourceRecords = []; @@ -10187,7 +10188,7 @@ const deserializeAws_restXmlReusableDelegationSetLimit = ( contents.Type = __expectString(output["Type"]); } if (output["Value"] !== undefined) { - contents.Value = __strictParseInt(output["Value"]) as number; + contents.Value = __strictParseLong(output["Value"]) as number; } return contents; }; @@ -10255,7 +10256,7 @@ const deserializeAws_restXmlTrafficPolicy = (output: any, context: __SerdeContex contents.Id = __expectString(output["Id"]); } if (output["Version"] !== undefined) { - contents.Version = __strictParseInt(output["Version"]) as number; + contents.Version = __strictParseInt32(output["Version"]) as number; } if (output["Name"] !== undefined) { contents.Name = __expectString(output["Name"]); @@ -10294,7 +10295,7 @@ const deserializeAws_restXmlTrafficPolicyInstance = (output: any, context: __Ser contents.Name = __expectString(output["Name"]); } if (output["TTL"] !== undefined) { - contents.TTL = __strictParseInt(output["TTL"]) as number; + contents.TTL = __strictParseLong(output["TTL"]) as number; } if (output["State"] !== undefined) { contents.State = __expectString(output["State"]); @@ -10306,7 +10307,7 @@ const deserializeAws_restXmlTrafficPolicyInstance = (output: any, context: __Ser contents.TrafficPolicyId = __expectString(output["TrafficPolicyId"]); } if (output["TrafficPolicyVersion"] !== undefined) { - contents.TrafficPolicyVersion = __strictParseInt(output["TrafficPolicyVersion"]) as number; + contents.TrafficPolicyVersion = __strictParseInt32(output["TrafficPolicyVersion"]) as number; } if (output["TrafficPolicyType"] !== undefined) { contents.TrafficPolicyType = __expectString(output["TrafficPolicyType"]); @@ -10357,10 +10358,10 @@ const deserializeAws_restXmlTrafficPolicySummary = (output: any, context: __Serd contents.Type = __expectString(output["Type"]); } if (output["LatestVersion"] !== undefined) { - contents.LatestVersion = __strictParseInt(output["LatestVersion"]) as number; + contents.LatestVersion = __strictParseInt32(output["LatestVersion"]) as number; } if (output["TrafficPolicyCount"] !== undefined) { - contents.TrafficPolicyCount = __strictParseInt(output["TrafficPolicyCount"]) as number; + contents.TrafficPolicyCount = __strictParseInt32(output["TrafficPolicyCount"]) as number; } return contents; }; diff --git a/clients/client-route53-recovery-cluster/protocols/Aws_json1_0.ts b/clients/client-route53-recovery-cluster/protocols/Aws_json1_0.ts index 1723335e52296..39d57ef4d555e 100644 --- a/clients/client-route53-recovery-cluster/protocols/Aws_json1_0.ts +++ b/clients/client-route53-recovery-cluster/protocols/Aws_json1_0.ts @@ -28,7 +28,7 @@ import { ValidationExceptionField, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectInt32 as __expectInt32, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -582,7 +582,7 @@ const deserializeAws_json1_0InternalServerException = ( ): InternalServerException => { return { message: __expectString(output.message), - retryAfterSeconds: __expectInt(output.retryAfterSeconds), + retryAfterSeconds: __expectInt32(output.retryAfterSeconds), } as any; }; @@ -600,7 +600,7 @@ const deserializeAws_json1_0ResourceNotFoundException = ( const deserializeAws_json1_0ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => { return { message: __expectString(output.message), - retryAfterSeconds: __expectInt(output.retryAfterSeconds), + retryAfterSeconds: __expectInt32(output.retryAfterSeconds), } as any; }; diff --git a/clients/client-route53-recovery-control-config/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-control-config/protocols/Aws_restJson1.ts index bc3dad2d61d60..52f08b372fe5b 100644 --- a/clients/client-route53-recovery-control-config/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-control-config/protocols/Aws_restJson1.ts @@ -63,7 +63,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2696,7 +2696,7 @@ const deserializeAws_restJson1AssertionRule = (output: any, context: __SerdeCont : undefined, SafetyRuleArn: __expectString(output.SafetyRuleArn), Status: __expectString(output.Status), - WaitPeriodMs: __expectInt(output.WaitPeriodMs), + WaitPeriodMs: __expectInt32(output.WaitPeriodMs), } as any; }; @@ -2725,7 +2725,7 @@ const deserializeAws_restJson1ControlPanel = (output: any, context: __SerdeConte ControlPanelArn: __expectString(output.ControlPanelArn), DefaultControlPanel: __expectBoolean(output.DefaultControlPanel), Name: __expectString(output.Name), - RoutingControlCount: __expectInt(output.RoutingControlCount), + RoutingControlCount: __expectInt32(output.RoutingControlCount), Status: __expectString(output.Status), } as any; }; @@ -2748,7 +2748,7 @@ const deserializeAws_restJson1GatingRule = (output: any, context: __SerdeContext output.TargetControls !== undefined && output.TargetControls !== null ? deserializeAws_restJson1__listOf__string(output.TargetControls, context) : undefined, - WaitPeriodMs: __expectInt(output.WaitPeriodMs), + WaitPeriodMs: __expectInt32(output.WaitPeriodMs), } as any; }; @@ -2777,7 +2777,7 @@ const deserializeAws_restJson1Rule = (output: any, context: __SerdeContext): Rul const deserializeAws_restJson1RuleConfig = (output: any, context: __SerdeContext): RuleConfig => { return { Inverted: __expectBoolean(output.Inverted), - Threshold: __expectInt(output.Threshold), + Threshold: __expectInt32(output.Threshold), Type: __expectString(output.Type), } as any; }; diff --git a/clients/client-route53resolver/protocols/Aws_json1_1.ts b/clients/client-route53resolver/protocols/Aws_json1_1.ts index 3ba5fa6e9f408..3d37f3b072493 100644 --- a/clients/client-route53resolver/protocols/Aws_json1_1.ts +++ b/clients/client-route53resolver/protocols/Aws_json1_1.ts @@ -363,7 +363,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -7902,7 +7902,7 @@ const deserializeAws_json1_1FirewallDomainList = (output: any, context: __SerdeC Arn: __expectString(output.Arn), CreationTime: __expectString(output.CreationTime), CreatorRequestId: __expectString(output.CreatorRequestId), - DomainCount: __expectInt(output.DomainCount), + DomainCount: __expectInt32(output.DomainCount), Id: __expectString(output.Id), ManagedOwnerName: __expectString(output.ManagedOwnerName), ModificationTime: __expectString(output.ModificationTime), @@ -7955,7 +7955,7 @@ const deserializeAws_json1_1FirewallRule = (output: any, context: __SerdeContext Action: __expectString(output.Action), BlockOverrideDnsType: __expectString(output.BlockOverrideDnsType), BlockOverrideDomain: __expectString(output.BlockOverrideDomain), - BlockOverrideTtl: __expectInt(output.BlockOverrideTtl), + BlockOverrideTtl: __expectInt32(output.BlockOverrideTtl), BlockResponse: __expectString(output.BlockResponse), CreationTime: __expectString(output.CreationTime), CreatorRequestId: __expectString(output.CreatorRequestId), @@ -7963,7 +7963,7 @@ const deserializeAws_json1_1FirewallRule = (output: any, context: __SerdeContext FirewallRuleGroupId: __expectString(output.FirewallRuleGroupId), ModificationTime: __expectString(output.ModificationTime), Name: __expectString(output.Name), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), } as any; }; @@ -7976,7 +7976,7 @@ const deserializeAws_json1_1FirewallRuleGroup = (output: any, context: __SerdeCo ModificationTime: __expectString(output.ModificationTime), Name: __expectString(output.Name), OwnerId: __expectString(output.OwnerId), - RuleCount: __expectInt(output.RuleCount), + RuleCount: __expectInt32(output.RuleCount), ShareStatus: __expectString(output.ShareStatus), Status: __expectString(output.Status), StatusMessage: __expectString(output.StatusMessage), @@ -7997,7 +7997,7 @@ const deserializeAws_json1_1FirewallRuleGroupAssociation = ( ModificationTime: __expectString(output.ModificationTime), MutationProtection: __expectString(output.MutationProtection), Name: __expectString(output.Name), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), Status: __expectString(output.Status), StatusMessage: __expectString(output.StatusMessage), VpcId: __expectString(output.VpcId), @@ -8395,7 +8395,7 @@ const deserializeAws_json1_1ListResolverEndpointIpAddressesResponse = ( output.IpAddresses !== undefined && output.IpAddresses !== null ? deserializeAws_json1_1IpAddressesResponse(output.IpAddresses, context) : undefined, - MaxResults: __expectInt(output.MaxResults), + MaxResults: __expectInt32(output.MaxResults), NextToken: __expectString(output.NextToken), } as any; }; @@ -8405,7 +8405,7 @@ const deserializeAws_json1_1ListResolverEndpointsResponse = ( context: __SerdeContext ): ListResolverEndpointsResponse => { return { - MaxResults: __expectInt(output.MaxResults), + MaxResults: __expectInt32(output.MaxResults), NextToken: __expectString(output.NextToken), ResolverEndpoints: output.ResolverEndpoints !== undefined && output.ResolverEndpoints !== null @@ -8427,8 +8427,8 @@ const deserializeAws_json1_1ListResolverQueryLogConfigAssociationsResponse = ( context ) : undefined, - TotalCount: __expectInt(output.TotalCount), - TotalFilteredCount: __expectInt(output.TotalFilteredCount), + TotalCount: __expectInt32(output.TotalCount), + TotalFilteredCount: __expectInt32(output.TotalFilteredCount), } as any; }; @@ -8442,8 +8442,8 @@ const deserializeAws_json1_1ListResolverQueryLogConfigsResponse = ( output.ResolverQueryLogConfigs !== undefined && output.ResolverQueryLogConfigs !== null ? deserializeAws_json1_1ResolverQueryLogConfigList(output.ResolverQueryLogConfigs, context) : undefined, - TotalCount: __expectInt(output.TotalCount), - TotalFilteredCount: __expectInt(output.TotalFilteredCount), + TotalCount: __expectInt32(output.TotalCount), + TotalFilteredCount: __expectInt32(output.TotalFilteredCount), } as any; }; @@ -8452,7 +8452,7 @@ const deserializeAws_json1_1ListResolverRuleAssociationsResponse = ( context: __SerdeContext ): ListResolverRuleAssociationsResponse => { return { - MaxResults: __expectInt(output.MaxResults), + MaxResults: __expectInt32(output.MaxResults), NextToken: __expectString(output.NextToken), ResolverRuleAssociations: output.ResolverRuleAssociations !== undefined && output.ResolverRuleAssociations !== null @@ -8466,7 +8466,7 @@ const deserializeAws_json1_1ListResolverRulesResponse = ( context: __SerdeContext ): ListResolverRulesResponse => { return { - MaxResults: __expectInt(output.MaxResults), + MaxResults: __expectInt32(output.MaxResults), NextToken: __expectString(output.NextToken), ResolverRules: output.ResolverRules !== undefined && output.ResolverRules !== null @@ -8546,7 +8546,7 @@ const deserializeAws_json1_1ResolverEndpoint = (output: any, context: __SerdeCon Direction: __expectString(output.Direction), HostVPCId: __expectString(output.HostVPCId), Id: __expectString(output.Id), - IpAddressCount: __expectInt(output.IpAddressCount), + IpAddressCount: __expectInt32(output.IpAddressCount), ModificationTime: __expectString(output.ModificationTime), Name: __expectString(output.Name), SecurityGroupIds: @@ -8572,7 +8572,7 @@ const deserializeAws_json1_1ResolverEndpoints = (output: any, context: __SerdeCo const deserializeAws_json1_1ResolverQueryLogConfig = (output: any, context: __SerdeContext): ResolverQueryLogConfig => { return { Arn: __expectString(output.Arn), - AssociationCount: __expectInt(output.AssociationCount), + AssociationCount: __expectInt32(output.AssociationCount), CreationTime: __expectString(output.CreationTime), CreatorRequestId: __expectString(output.CreatorRequestId), DestinationArn: __expectString(output.DestinationArn), @@ -8761,7 +8761,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde const deserializeAws_json1_1TargetAddress = (output: any, context: __SerdeContext): TargetAddress => { return { Ip: __expectString(output.Ip), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; diff --git a/clients/client-s3-control/protocols/Aws_restXml.ts b/clients/client-s3-control/protocols/Aws_restXml.ts index 116a2d98ff750..7430ed024eaf9 100644 --- a/clients/client-s3-control/protocols/Aws_restXml.ts +++ b/clients/client-s3-control/protocols/Aws_restXml.ts @@ -227,7 +227,8 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4929,7 +4930,7 @@ export const deserializeAws_restXmlUpdateJobPriorityCommand = async ( contents.JobId = __expectString(data["JobId"]); } if (data["Priority"] !== undefined) { - contents.Priority = __strictParseInt(data["Priority"]) as number; + contents.Priority = __strictParseInt32(data["Priority"]) as number; } return Promise.resolve(contents); }; @@ -6609,7 +6610,7 @@ const deserializeAws_restXmlAbortIncompleteMultipartUpload = ( DaysAfterInitiation: undefined, }; if (output["DaysAfterInitiation"] !== undefined) { - contents.DaysAfterInitiation = __strictParseInt(output["DaysAfterInitiation"]) as number; + contents.DaysAfterInitiation = __strictParseInt32(output["DaysAfterInitiation"]) as number; } return contents; }; @@ -6815,7 +6816,7 @@ const deserializeAws_restXmlJobDescriptor = (output: any, context: __SerdeContex contents.Operation = deserializeAws_restXmlJobOperation(output["Operation"], context); } if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt(output["Priority"]) as number; + contents.Priority = __strictParseInt32(output["Priority"]) as number; } if (output["ProgressSummary"] !== undefined) { contents.ProgressSummary = deserializeAws_restXmlJobProgressSummary(output["ProgressSummary"], context); @@ -6899,7 +6900,7 @@ const deserializeAws_restXmlJobListDescriptor = (output: any, context: __SerdeCo contents.Operation = __expectString(output["Operation"]); } if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt(output["Priority"]) as number; + contents.Priority = __strictParseInt32(output["Priority"]) as number; } if (output["Status"] !== undefined) { contents.Status = __expectString(output["Status"]); @@ -7053,13 +7054,13 @@ const deserializeAws_restXmlJobProgressSummary = (output: any, context: __SerdeC NumberOfTasksFailed: undefined, }; if (output["TotalNumberOfTasks"] !== undefined) { - contents.TotalNumberOfTasks = __strictParseInt(output["TotalNumberOfTasks"]) as number; + contents.TotalNumberOfTasks = __strictParseLong(output["TotalNumberOfTasks"]) as number; } if (output["NumberOfTasksSucceeded"] !== undefined) { - contents.NumberOfTasksSucceeded = __strictParseInt(output["NumberOfTasksSucceeded"]) as number; + contents.NumberOfTasksSucceeded = __strictParseLong(output["NumberOfTasksSucceeded"]) as number; } if (output["NumberOfTasksFailed"] !== undefined) { - contents.NumberOfTasksFailed = __strictParseInt(output["NumberOfTasksFailed"]) as number; + contents.NumberOfTasksFailed = __strictParseLong(output["NumberOfTasksFailed"]) as number; } return contents; }; @@ -7110,7 +7111,7 @@ const deserializeAws_restXmlLifecycleExpiration = (output: any, context: __Serde contents.Date = new Date(output["Date"]); } if (output["Days"] !== undefined) { - contents.Days = __strictParseInt(output["Days"]) as number; + contents.Days = __strictParseInt32(output["Days"]) as number; } if (output["ExpiredObjectDeleteMarker"] !== undefined) { contents.ExpiredObjectDeleteMarker = __parseBoolean(output["ExpiredObjectDeleteMarker"]); @@ -7259,7 +7260,7 @@ const deserializeAws_restXmlNoncurrentVersionExpiration = ( NoncurrentDays: undefined, }; if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt(output["NoncurrentDays"]) as number; + contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; } return contents; }; @@ -7273,7 +7274,7 @@ const deserializeAws_restXmlNoncurrentVersionTransition = ( StorageClass: undefined, }; if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt(output["NoncurrentDays"]) as number; + contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; } if (output["StorageClass"] !== undefined) { contents.StorageClass = __expectString(output["StorageClass"]); @@ -7763,7 +7764,7 @@ const deserializeAws_restXmlS3InitiateRestoreObjectOperation = ( GlacierJobTier: undefined, }; if (output["ExpirationInDays"] !== undefined) { - contents.ExpirationInDays = __strictParseInt(output["ExpirationInDays"]) as number; + contents.ExpirationInDays = __strictParseInt32(output["ExpirationInDays"]) as number; } if (output["GlacierJobTier"] !== undefined) { contents.GlacierJobTier = __expectString(output["GlacierJobTier"]); @@ -7817,7 +7818,7 @@ const deserializeAws_restXmlS3ObjectMetadata = (output: any, context: __SerdeCon ); } if (output["ContentLength"] !== undefined) { - contents.ContentLength = __strictParseInt(output["ContentLength"]) as number; + contents.ContentLength = __strictParseLong(output["ContentLength"]) as number; } if (output["ContentMD5"] !== undefined) { contents.ContentMD5 = __expectString(output["ContentMD5"]); @@ -7971,7 +7972,7 @@ const deserializeAws_restXmlSelectionCriteria = (output: any, context: __SerdeCo contents.Delimiter = __expectString(output["Delimiter"]); } if (output["MaxDepth"] !== undefined) { - contents.MaxDepth = __strictParseInt(output["MaxDepth"]) as number; + contents.MaxDepth = __strictParseInt32(output["MaxDepth"]) as number; } if (output["MinStorageBytesPercentage"] !== undefined) { contents.MinStorageBytesPercentage = __strictParseFloat(output["MinStorageBytesPercentage"]) as number; @@ -8121,7 +8122,7 @@ const deserializeAws_restXmlTransition = (output: any, context: __SerdeContext): contents.Date = new Date(output["Date"]); } if (output["Days"] !== undefined) { - contents.Days = __strictParseInt(output["Days"]) as number; + contents.Days = __strictParseInt32(output["Days"]) as number; } if (output["StorageClass"] !== undefined) { contents.StorageClass = __expectString(output["StorageClass"]); diff --git a/clients/client-s3/protocols/Aws_restXml.ts b/clients/client-s3/protocols/Aws_restXml.ts index 11310b5878059..48d7bceeaaf44 100644 --- a/clients/client-s3/protocols/Aws_restXml.ts +++ b/clients/client-s3/protocols/Aws_restXml.ts @@ -397,7 +397,8 @@ import { getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -7120,13 +7121,13 @@ export const deserializeAws_restXmlGetObjectCommand = async ( contents.LastModified = new Date(output.headers["last-modified"]); } if (output.headers["content-length"] !== undefined) { - contents.ContentLength = __strictParseInt(output.headers["content-length"]); + contents.ContentLength = __strictParseLong(output.headers["content-length"]); } if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } if (output.headers["x-amz-missing-meta"] !== undefined) { - contents.MissingMeta = __strictParseInt(output.headers["x-amz-missing-meta"]); + contents.MissingMeta = __strictParseInt32(output.headers["x-amz-missing-meta"]); } if (output.headers["x-amz-version-id"] !== undefined) { contents.VersionId = output.headers["x-amz-version-id"]; @@ -7180,10 +7181,10 @@ export const deserializeAws_restXmlGetObjectCommand = async ( contents.ReplicationStatus = output.headers["x-amz-replication-status"]; } if (output.headers["x-amz-mp-parts-count"] !== undefined) { - contents.PartsCount = __strictParseInt(output.headers["x-amz-mp-parts-count"]); + contents.PartsCount = __strictParseInt32(output.headers["x-amz-mp-parts-count"]); } if (output.headers["x-amz-tagging-count"] !== undefined) { - contents.TagCount = __strictParseInt(output.headers["x-amz-tagging-count"]); + contents.TagCount = __strictParseInt32(output.headers["x-amz-tagging-count"]); } if (output.headers["x-amz-object-lock-mode"] !== undefined) { contents.ObjectLockMode = output.headers["x-amz-object-lock-mode"]; @@ -7711,13 +7712,13 @@ export const deserializeAws_restXmlHeadObjectCommand = async ( contents.LastModified = new Date(output.headers["last-modified"]); } if (output.headers["content-length"] !== undefined) { - contents.ContentLength = __strictParseInt(output.headers["content-length"]); + contents.ContentLength = __strictParseLong(output.headers["content-length"]); } if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } if (output.headers["x-amz-missing-meta"] !== undefined) { - contents.MissingMeta = __strictParseInt(output.headers["x-amz-missing-meta"]); + contents.MissingMeta = __strictParseInt32(output.headers["x-amz-missing-meta"]); } if (output.headers["x-amz-version-id"] !== undefined) { contents.VersionId = output.headers["x-amz-version-id"]; @@ -7768,7 +7769,7 @@ export const deserializeAws_restXmlHeadObjectCommand = async ( contents.ReplicationStatus = output.headers["x-amz-replication-status"]; } if (output.headers["x-amz-mp-parts-count"] !== undefined) { - contents.PartsCount = __strictParseInt(output.headers["x-amz-mp-parts-count"]); + contents.PartsCount = __strictParseInt32(output.headers["x-amz-mp-parts-count"]); } if (output.headers["x-amz-object-lock-mode"] !== undefined) { contents.ObjectLockMode = output.headers["x-amz-object-lock-mode"]; @@ -8190,7 +8191,7 @@ export const deserializeAws_restXmlListMultipartUploadsCommand = async ( contents.KeyMarker = __expectString(data["KeyMarker"]); } if (data["MaxUploads"] !== undefined) { - contents.MaxUploads = __strictParseInt(data["MaxUploads"]) as number; + contents.MaxUploads = __strictParseInt32(data["MaxUploads"]) as number; } if (data["NextKeyMarker"] !== undefined) { contents.NextKeyMarker = __expectString(data["NextKeyMarker"]); @@ -8291,7 +8292,7 @@ export const deserializeAws_restXmlListObjectsCommand = async ( contents.Marker = __expectString(data["Marker"]); } if (data["MaxKeys"] !== undefined) { - contents.MaxKeys = __strictParseInt(data["MaxKeys"]) as number; + contents.MaxKeys = __strictParseInt32(data["MaxKeys"]) as number; } if (data["Name"] !== undefined) { contents.Name = __expectString(data["Name"]); @@ -8393,10 +8394,10 @@ export const deserializeAws_restXmlListObjectsV2Command = async ( contents.IsTruncated = __parseBoolean(data["IsTruncated"]); } if (data["KeyCount"] !== undefined) { - contents.KeyCount = __strictParseInt(data["KeyCount"]) as number; + contents.KeyCount = __strictParseInt32(data["KeyCount"]) as number; } if (data["MaxKeys"] !== undefined) { - contents.MaxKeys = __strictParseInt(data["MaxKeys"]) as number; + contents.MaxKeys = __strictParseInt32(data["MaxKeys"]) as number; } if (data["Name"] !== undefined) { contents.Name = __expectString(data["Name"]); @@ -8502,7 +8503,7 @@ export const deserializeAws_restXmlListObjectVersionsCommand = async ( contents.KeyMarker = __expectString(data["KeyMarker"]); } if (data["MaxKeys"] !== undefined) { - contents.MaxKeys = __strictParseInt(data["MaxKeys"]) as number; + contents.MaxKeys = __strictParseInt32(data["MaxKeys"]) as number; } if (data["Name"] !== undefined) { contents.Name = __expectString(data["Name"]); @@ -8604,7 +8605,7 @@ export const deserializeAws_restXmlListPartsCommand = async ( contents.Key = __expectString(data["Key"]); } if (data["MaxParts"] !== undefined) { - contents.MaxParts = __strictParseInt(data["MaxParts"]) as number; + contents.MaxParts = __strictParseInt32(data["MaxParts"]) as number; } if (data["NextPartNumberMarker"] !== undefined) { contents.NextPartNumberMarker = __expectString(data["NextPartNumberMarker"]); @@ -12536,7 +12537,7 @@ const deserializeAws_restXmlAbortIncompleteMultipartUpload = ( DaysAfterInitiation: undefined, }; if (output["DaysAfterInitiation"] !== undefined) { - contents.DaysAfterInitiation = __strictParseInt(output["DaysAfterInitiation"]) as number; + contents.DaysAfterInitiation = __strictParseInt32(output["DaysAfterInitiation"]) as number; } return contents; }; @@ -12838,7 +12839,7 @@ const deserializeAws_restXmlCORSRule = (output: any, context: __SerdeContext): C ); } if (output["MaxAgeSeconds"] !== undefined) { - contents.MaxAgeSeconds = __strictParseInt(output["MaxAgeSeconds"]) as number; + contents.MaxAgeSeconds = __strictParseInt32(output["MaxAgeSeconds"]) as number; } return contents; }; @@ -12864,10 +12865,10 @@ const deserializeAws_restXmlDefaultRetention = (output: any, context: __SerdeCon contents.Mode = __expectString(output["Mode"]); } if (output["Days"] !== undefined) { - contents.Days = __strictParseInt(output["Days"]) as number; + contents.Days = __strictParseInt32(output["Days"]) as number; } if (output["Years"] !== undefined) { - contents.Years = __strictParseInt(output["Years"]) as number; + contents.Years = __strictParseInt32(output["Years"]) as number; } return contents; }; @@ -13470,7 +13471,7 @@ const deserializeAws_restXmlLifecycleExpiration = (output: any, context: __Serde contents.Date = new Date(output["Date"]); } if (output["Days"] !== undefined) { - contents.Days = __strictParseInt(output["Days"]) as number; + contents.Days = __strictParseInt32(output["Days"]) as number; } if (output["ExpiredObjectDeleteMarker"] !== undefined) { contents.ExpiredObjectDeleteMarker = __parseBoolean(output["ExpiredObjectDeleteMarker"]); @@ -13736,7 +13737,7 @@ const deserializeAws_restXmlNoncurrentVersionExpiration = ( NoncurrentDays: undefined, }; if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt(output["NoncurrentDays"]) as number; + contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; } return contents; }; @@ -13750,7 +13751,7 @@ const deserializeAws_restXmlNoncurrentVersionTransition = ( StorageClass: undefined, }; if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt(output["NoncurrentDays"]) as number; + contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; } if (output["StorageClass"] !== undefined) { contents.StorageClass = __expectString(output["StorageClass"]); @@ -13804,7 +13805,7 @@ const deserializeAws_restXml_Object = (output: any, context: __SerdeContext): _O contents.ETag = __expectString(output["ETag"]); } if (output["Size"] !== undefined) { - contents.Size = __strictParseInt(output["Size"]) as number; + contents.Size = __strictParseInt32(output["Size"]) as number; } if (output["StorageClass"] !== undefined) { contents.StorageClass = __expectString(output["StorageClass"]); @@ -13892,7 +13893,7 @@ const deserializeAws_restXmlObjectVersion = (output: any, context: __SerdeContex contents.ETag = __expectString(output["ETag"]); } if (output["Size"] !== undefined) { - contents.Size = __strictParseInt(output["Size"]) as number; + contents.Size = __strictParseInt32(output["Size"]) as number; } if (output["StorageClass"] !== undefined) { contents.StorageClass = __expectString(output["StorageClass"]); @@ -13985,7 +13986,7 @@ const deserializeAws_restXmlPart = (output: any, context: __SerdeContext): Part Size: undefined, }; if (output["PartNumber"] !== undefined) { - contents.PartNumber = __strictParseInt(output["PartNumber"]) as number; + contents.PartNumber = __strictParseInt32(output["PartNumber"]) as number; } if (output["LastModified"] !== undefined) { contents.LastModified = new Date(output["LastModified"]); @@ -13994,7 +13995,7 @@ const deserializeAws_restXmlPart = (output: any, context: __SerdeContext): Part contents.ETag = __expectString(output["ETag"]); } if (output["Size"] !== undefined) { - contents.Size = __strictParseInt(output["Size"]) as number; + contents.Size = __strictParseInt32(output["Size"]) as number; } return contents; }; @@ -14027,13 +14028,13 @@ const deserializeAws_restXmlProgress = (output: any, context: __SerdeContext): P BytesReturned: undefined, }; if (output["BytesScanned"] !== undefined) { - contents.BytesScanned = __strictParseInt(output["BytesScanned"]) as number; + contents.BytesScanned = __strictParseLong(output["BytesScanned"]) as number; } if (output["BytesProcessed"] !== undefined) { - contents.BytesProcessed = __strictParseInt(output["BytesProcessed"]) as number; + contents.BytesProcessed = __strictParseLong(output["BytesProcessed"]) as number; } if (output["BytesReturned"] !== undefined) { - contents.BytesReturned = __strictParseInt(output["BytesReturned"]) as number; + contents.BytesReturned = __strictParseLong(output["BytesReturned"]) as number; } return contents; }; @@ -14205,7 +14206,7 @@ const deserializeAws_restXmlReplicationRule = (output: any, context: __SerdeCont contents.ID = __expectString(output["ID"]); } if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt(output["Priority"]) as number; + contents.Priority = __strictParseInt32(output["Priority"]) as number; } if (output["Prefix"] !== undefined) { contents.Prefix = __expectString(output["Prefix"]); @@ -14309,7 +14310,7 @@ const deserializeAws_restXmlReplicationTimeValue = (output: any, context: __Serd Minutes: undefined, }; if (output["Minutes"] !== undefined) { - contents.Minutes = __strictParseInt(output["Minutes"]) as number; + contents.Minutes = __strictParseInt32(output["Minutes"]) as number; } return contents; }; @@ -14503,13 +14504,13 @@ const deserializeAws_restXmlStats = (output: any, context: __SerdeContext): Stat BytesReturned: undefined, }; if (output["BytesScanned"] !== undefined) { - contents.BytesScanned = __strictParseInt(output["BytesScanned"]) as number; + contents.BytesScanned = __strictParseLong(output["BytesScanned"]) as number; } if (output["BytesProcessed"] !== undefined) { - contents.BytesProcessed = __strictParseInt(output["BytesProcessed"]) as number; + contents.BytesProcessed = __strictParseLong(output["BytesProcessed"]) as number; } if (output["BytesReturned"] !== undefined) { - contents.BytesReturned = __strictParseInt(output["BytesReturned"]) as number; + contents.BytesReturned = __strictParseLong(output["BytesReturned"]) as number; } return contents; }; @@ -14607,7 +14608,7 @@ const deserializeAws_restXmlTiering = (output: any, context: __SerdeContext): Ti AccessTier: undefined, }; if (output["Days"] !== undefined) { - contents.Days = __strictParseInt(output["Days"]) as number; + contents.Days = __strictParseInt32(output["Days"]) as number; } if (output["AccessTier"] !== undefined) { contents.AccessTier = __expectString(output["AccessTier"]); @@ -14672,7 +14673,7 @@ const deserializeAws_restXmlTransition = (output: any, context: __SerdeContext): contents.Date = new Date(output["Date"]); } if (output["Days"] !== undefined) { - contents.Days = __strictParseInt(output["Days"]) as number; + contents.Days = __strictParseInt32(output["Days"]) as number; } if (output["StorageClass"] !== undefined) { contents.StorageClass = __expectString(output["StorageClass"]); diff --git a/clients/client-sagemaker-runtime/protocols/Aws_restJson1.ts b/clients/client-sagemaker-runtime/protocols/Aws_restJson1.ts index d6020b39d5388..074193c874936 100644 --- a/clients/client-sagemaker-runtime/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-runtime/protocols/Aws_restJson1.ts @@ -6,7 +6,7 @@ import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "../comm import { InternalFailure, ModelError, ServiceUnavailable, ValidationError } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -309,7 +309,7 @@ const deserializeAws_restJson1ModelErrorResponse = async ( contents.OriginalMessage = __expectString(data.OriginalMessage); } if (data.OriginalStatusCode !== undefined && data.OriginalStatusCode !== null) { - contents.OriginalStatusCode = __expectInt(data.OriginalStatusCode); + contents.OriginalStatusCode = __expectInt32(data.OriginalStatusCode); } return contents; }; diff --git a/clients/client-sagemaker/protocols/Aws_json1_1.ts b/clients/client-sagemaker/protocols/Aws_json1_1.ts index 0e23e2a3e1420..65241733361ab 100644 --- a/clients/client-sagemaker/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/protocols/Aws_json1_1.ts @@ -1357,9 +1357,11 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { LazyJsonString as __LazyJsonString, expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -24176,7 +24178,7 @@ const deserializeAws_json1_1AddTagsOutput = (output: any, context: __SerdeContex const deserializeAws_json1_1AgentVersion = (output: any, context: __SerdeContext): AgentVersion => { return { - AgentCount: __expectInt(output.AgentCount), + AgentCount: __expectLong(output.AgentCount), Version: __expectString(output.Version), } as any; }; @@ -24505,7 +24507,7 @@ const deserializeAws_json1_1AsyncInferenceClientConfig = ( context: __SerdeContext ): AsyncInferenceClientConfig => { return { - MaxConcurrentInvocationsPerInstance: __expectInt(output.MaxConcurrentInvocationsPerInstance), + MaxConcurrentInvocationsPerInstance: __expectInt32(output.MaxConcurrentInvocationsPerInstance), } as any; }; @@ -24698,9 +24700,9 @@ const deserializeAws_json1_1AutoMLJobCompletionCriteria = ( context: __SerdeContext ): AutoMLJobCompletionCriteria => { return { - MaxAutoMLJobRuntimeInSeconds: __expectInt(output.MaxAutoMLJobRuntimeInSeconds), - MaxCandidates: __expectInt(output.MaxCandidates), - MaxRuntimePerTrainingJobInSeconds: __expectInt(output.MaxRuntimePerTrainingJobInSeconds), + MaxAutoMLJobRuntimeInSeconds: __expectInt32(output.MaxAutoMLJobRuntimeInSeconds), + MaxCandidates: __expectInt32(output.MaxCandidates), + MaxRuntimePerTrainingJobInSeconds: __expectInt32(output.MaxRuntimePerTrainingJobInSeconds), } as any; }; @@ -24826,8 +24828,8 @@ const deserializeAws_json1_1Bias = (output: any, context: __SerdeContext): Bias const deserializeAws_json1_1BlueGreenUpdatePolicy = (output: any, context: __SerdeContext): BlueGreenUpdatePolicy => { return { - MaximumExecutionTimeoutInSeconds: __expectInt(output.MaximumExecutionTimeoutInSeconds), - TerminationWaitInSeconds: __expectInt(output.TerminationWaitInSeconds), + MaximumExecutionTimeoutInSeconds: __expectInt32(output.MaximumExecutionTimeoutInSeconds), + TerminationWaitInSeconds: __expectInt32(output.TerminationWaitInSeconds), TrafficRoutingConfiguration: output.TrafficRoutingConfiguration !== undefined && output.TrafficRoutingConfiguration !== null ? deserializeAws_json1_1TrafficRoutingConfig(output.TrafficRoutingConfiguration, context) @@ -24888,7 +24890,7 @@ const deserializeAws_json1_1CandidateSteps = (output: any, context: __SerdeConte const deserializeAws_json1_1CapacitySize = (output: any, context: __SerdeContext): CapacitySize => { return { Type: __expectString(output.Type), - Value: __expectInt(output.Value), + Value: __expectInt32(output.Value), } as any; }; @@ -25700,7 +25702,7 @@ const deserializeAws_json1_1CustomImage = (output: any, context: __SerdeContext) return { AppImageConfigName: __expectString(output.AppImageConfigName), ImageName: __expectString(output.ImageName), - ImageVersionNumber: __expectInt(output.ImageVersionNumber), + ImageVersionNumber: __expectInt32(output.ImageVersionNumber), } as any; }; @@ -25727,7 +25729,7 @@ const deserializeAws_json1_1DataCaptureConfig = (output: any, context: __SerdeCo : undefined, DestinationS3Uri: __expectString(output.DestinationS3Uri), EnableCapture: __expectBoolean(output.EnableCapture), - InitialSamplingPercentage: __expectInt(output.InitialSamplingPercentage), + InitialSamplingPercentage: __expectInt32(output.InitialSamplingPercentage), KmsKeyId: __expectString(output.KmsKeyId), } as any; }; @@ -25738,7 +25740,7 @@ const deserializeAws_json1_1DataCaptureConfigSummary = ( ): DataCaptureConfigSummary => { return { CaptureStatus: __expectString(output.CaptureStatus), - CurrentSamplingPercentage: __expectInt(output.CurrentSamplingPercentage), + CurrentSamplingPercentage: __expectInt32(output.CurrentSamplingPercentage), DestinationS3Uri: __expectString(output.DestinationS3Uri), EnableCapture: __expectBoolean(output.EnableCapture), KmsKeyId: __expectString(output.KmsKeyId), @@ -25865,7 +25867,7 @@ const deserializeAws_json1_1DebugRuleConfiguration = (output: any, context: __Se ? deserializeAws_json1_1RuleParameters(output.RuleParameters, context) : undefined, S3OutputPath: __expectString(output.S3OutputPath), - VolumeSizeInGB: __expectInt(output.VolumeSizeInGB), + VolumeSizeInGB: __expectInt32(output.VolumeSizeInGB), } as any; }; @@ -26466,7 +26468,7 @@ const deserializeAws_json1_1DescribeDeviceResponse = (output: any, context: __Se output.LatestHeartbeat !== undefined && output.LatestHeartbeat !== null ? new Date(Math.round(output.LatestHeartbeat * 1000)) : undefined, - MaxModels: __expectInt(output.MaxModels), + MaxModels: __expectInt32(output.MaxModels), Models: output.Models !== undefined && output.Models !== null ? deserializeAws_json1_1EdgeModels(output.Models, context) @@ -26825,7 +26827,7 @@ const deserializeAws_json1_1DescribeImageVersionResponse = ( output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) : undefined, - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -27065,7 +27067,7 @@ const deserializeAws_json1_1DescribeModelPackageOutput = ( output.ModelPackageStatusDetails !== undefined && output.ModelPackageStatusDetails !== null ? deserializeAws_json1_1ModelPackageStatusDetails(output.ModelPackageStatusDetails, context) : undefined, - ModelPackageVersion: __expectInt(output.ModelPackageVersion), + ModelPackageVersion: __expectInt32(output.ModelPackageVersion), SourceAlgorithmSpecification: output.SourceAlgorithmSpecification !== undefined && output.SourceAlgorithmSpecification !== null ? deserializeAws_json1_1SourceAlgorithmSpecification(output.SourceAlgorithmSpecification, context) @@ -27216,7 +27218,7 @@ const deserializeAws_json1_1DescribeNotebookInstanceOutput = ( : undefined, SubnetId: __expectString(output.SubnetId), Url: __expectString(output.Url), - VolumeSizeInGB: __expectInt(output.VolumeSizeInGB), + VolumeSizeInGB: __expectInt32(output.VolumeSizeInGB), } as any; }; @@ -27419,7 +27421,7 @@ const deserializeAws_json1_1DescribeTrainingJobResponse = ( ? deserializeAws_json1_1AlgorithmSpecification(output.AlgorithmSpecification, context) : undefined, AutoMLJobArn: __expectString(output.AutoMLJobArn), - BillableTimeInSeconds: __expectInt(output.BillableTimeInSeconds), + BillableTimeInSeconds: __expectInt32(output.BillableTimeInSeconds), CheckpointConfig: output.CheckpointConfig !== undefined && output.CheckpointConfig !== null ? deserializeAws_json1_1CheckpointConfig(output.CheckpointConfig, context) @@ -27523,7 +27525,7 @@ const deserializeAws_json1_1DescribeTrainingJobResponse = ( output.TrainingStartTime !== undefined && output.TrainingStartTime !== null ? new Date(Math.round(output.TrainingStartTime * 1000)) : undefined, - TrainingTimeInSeconds: __expectInt(output.TrainingTimeInSeconds), + TrainingTimeInSeconds: __expectInt32(output.TrainingTimeInSeconds), TuningJobArn: __expectString(output.TuningJobArn), VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null @@ -27557,8 +27559,8 @@ const deserializeAws_json1_1DescribeTransformJobResponse = ( : undefined, FailureReason: __expectString(output.FailureReason), LabelingJobArn: __expectString(output.LabelingJobArn), - MaxConcurrentTransforms: __expectInt(output.MaxConcurrentTransforms), - MaxPayloadInMB: __expectInt(output.MaxPayloadInMB), + MaxConcurrentTransforms: __expectInt32(output.MaxConcurrentTransforms), + MaxPayloadInMB: __expectInt32(output.MaxPayloadInMB), ModelClientConfig: output.ModelClientConfig !== undefined && output.ModelClientConfig !== null ? deserializeAws_json1_1ModelClientConfig(output.ModelClientConfig, context) @@ -27764,8 +27766,8 @@ const deserializeAws_json1_1DeviceFleetSummary = (output: any, context: __SerdeC const deserializeAws_json1_1DeviceStats = (output: any, context: __SerdeContext): DeviceStats => { return { - ConnectedDeviceCount: __expectInt(output.ConnectedDeviceCount), - RegisteredDeviceCount: __expectInt(output.RegisteredDeviceCount), + ConnectedDeviceCount: __expectLong(output.ConnectedDeviceCount), + RegisteredDeviceCount: __expectLong(output.RegisteredDeviceCount), } as any; }; @@ -27876,12 +27878,12 @@ const deserializeAws_json1_1EdgeModels = (output: any, context: __SerdeContext): const deserializeAws_json1_1EdgeModelStat = (output: any, context: __SerdeContext): EdgeModelStat => { return { - ActiveDeviceCount: __expectInt(output.ActiveDeviceCount), - ConnectedDeviceCount: __expectInt(output.ConnectedDeviceCount), + ActiveDeviceCount: __expectLong(output.ActiveDeviceCount), + ConnectedDeviceCount: __expectLong(output.ConnectedDeviceCount), ModelName: __expectString(output.ModelName), ModelVersion: __expectString(output.ModelVersion), - OfflineDeviceCount: __expectInt(output.OfflineDeviceCount), - SamplingDeviceCount: __expectInt(output.SamplingDeviceCount), + OfflineDeviceCount: __expectLong(output.OfflineDeviceCount), + SamplingDeviceCount: __expectLong(output.SamplingDeviceCount), } as any; }; @@ -28045,7 +28047,7 @@ const deserializeAws_json1_1EndpointInput = (output: any, context: __SerdeContex InferenceAttribute: __expectString(output.InferenceAttribute), LocalPath: __expectString(output.LocalPath), ProbabilityAttribute: __expectString(output.ProbabilityAttribute), - ProbabilityThresholdAttribute: __limitedParseFloat(output.ProbabilityThresholdAttribute), + ProbabilityThresholdAttribute: __limitedParseDouble(output.ProbabilityThresholdAttribute), S3DataDistributionType: __expectString(output.S3DataDistributionType), S3InputMode: __expectString(output.S3InputMode), StartTimeOffset: __expectString(output.StartTimeOffset), @@ -28263,8 +28265,8 @@ const deserializeAws_json1_1FeatureGroupSummary = (output: any, context: __Serde const deserializeAws_json1_1FileSystemConfig = (output: any, context: __SerdeContext): FileSystemConfig => { return { - DefaultGid: __expectInt(output.DefaultGid), - DefaultUid: __expectInt(output.DefaultUid), + DefaultGid: __expectInt32(output.DefaultGid), + DefaultUid: __expectInt32(output.DefaultUid), MountPath: __expectString(output.MountPath), } as any; }; @@ -28285,7 +28287,7 @@ const deserializeAws_json1_1FinalAutoMLJobObjectiveMetric = ( return { MetricName: __expectString(output.MetricName), Type: __expectString(output.Type), - Value: __limitedParseFloat(output.Value), + Value: __limitedParseFloat32(output.Value), } as any; }; @@ -28296,7 +28298,7 @@ const deserializeAws_json1_1FinalHyperParameterTuningJobObjectiveMetric = ( return { MetricName: __expectString(output.MetricName), Type: __expectString(output.Type), - Value: __limitedParseFloat(output.Value), + Value: __limitedParseFloat32(output.Value), } as any; }; @@ -28482,14 +28484,14 @@ const deserializeAws_json1_1HumanLoopConfig = (output: any, context: __SerdeCont output.PublicWorkforceTaskPrice !== undefined && output.PublicWorkforceTaskPrice !== null ? deserializeAws_json1_1PublicWorkforceTaskPrice(output.PublicWorkforceTaskPrice, context) : undefined, - TaskAvailabilityLifetimeInSeconds: __expectInt(output.TaskAvailabilityLifetimeInSeconds), - TaskCount: __expectInt(output.TaskCount), + TaskAvailabilityLifetimeInSeconds: __expectInt32(output.TaskAvailabilityLifetimeInSeconds), + TaskCount: __expectInt32(output.TaskCount), TaskDescription: __expectString(output.TaskDescription), TaskKeywords: output.TaskKeywords !== undefined && output.TaskKeywords !== null ? deserializeAws_json1_1FlowDefinitionTaskKeywords(output.TaskKeywords, context) : undefined, - TaskTimeLimitInSeconds: __expectInt(output.TaskTimeLimitInSeconds), + TaskTimeLimitInSeconds: __expectInt32(output.TaskTimeLimitInSeconds), TaskTitle: __expectString(output.TaskTitle), WorkteamArn: __expectString(output.WorkteamArn), } as any; @@ -28507,20 +28509,20 @@ const deserializeAws_json1_1HumanTaskConfig = (output: any, context: __SerdeCont output.AnnotationConsolidationConfig !== undefined && output.AnnotationConsolidationConfig !== null ? deserializeAws_json1_1AnnotationConsolidationConfig(output.AnnotationConsolidationConfig, context) : undefined, - MaxConcurrentTaskCount: __expectInt(output.MaxConcurrentTaskCount), - NumberOfHumanWorkersPerDataObject: __expectInt(output.NumberOfHumanWorkersPerDataObject), + MaxConcurrentTaskCount: __expectInt32(output.MaxConcurrentTaskCount), + NumberOfHumanWorkersPerDataObject: __expectInt32(output.NumberOfHumanWorkersPerDataObject), PreHumanTaskLambdaArn: __expectString(output.PreHumanTaskLambdaArn), PublicWorkforceTaskPrice: output.PublicWorkforceTaskPrice !== undefined && output.PublicWorkforceTaskPrice !== null ? deserializeAws_json1_1PublicWorkforceTaskPrice(output.PublicWorkforceTaskPrice, context) : undefined, - TaskAvailabilityLifetimeInSeconds: __expectInt(output.TaskAvailabilityLifetimeInSeconds), + TaskAvailabilityLifetimeInSeconds: __expectInt32(output.TaskAvailabilityLifetimeInSeconds), TaskDescription: __expectString(output.TaskDescription), TaskKeywords: output.TaskKeywords !== undefined && output.TaskKeywords !== null ? deserializeAws_json1_1TaskKeywords(output.TaskKeywords, context) : undefined, - TaskTimeLimitInSeconds: __expectInt(output.TaskTimeLimitInSeconds), + TaskTimeLimitInSeconds: __expectInt32(output.TaskTimeLimitInSeconds), TaskTitle: __expectString(output.TaskTitle), UiConfig: output.UiConfig !== undefined && output.UiConfig !== null @@ -28902,7 +28904,7 @@ const deserializeAws_json1_1ImageVersion = (output: any, context: __SerdeContext output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) : undefined, - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -29091,11 +29093,11 @@ const deserializeAws_json1_1KernelSpecs = (output: any, context: __SerdeContext) const deserializeAws_json1_1LabelCounters = (output: any, context: __SerdeContext): LabelCounters => { return { - FailedNonRetryableError: __expectInt(output.FailedNonRetryableError), - HumanLabeled: __expectInt(output.HumanLabeled), - MachineLabeled: __expectInt(output.MachineLabeled), - TotalLabeled: __expectInt(output.TotalLabeled), - Unlabeled: __expectInt(output.Unlabeled), + FailedNonRetryableError: __expectInt32(output.FailedNonRetryableError), + HumanLabeled: __expectInt32(output.HumanLabeled), + MachineLabeled: __expectInt32(output.MachineLabeled), + TotalLabeled: __expectInt32(output.TotalLabeled), + Unlabeled: __expectInt32(output.Unlabeled), } as any; }; @@ -29104,9 +29106,9 @@ const deserializeAws_json1_1LabelCountersForWorkteam = ( context: __SerdeContext ): LabelCountersForWorkteam => { return { - HumanLabeled: __expectInt(output.HumanLabeled), - PendingHuman: __expectInt(output.PendingHuman), - Total: __expectInt(output.Total), + HumanLabeled: __expectInt32(output.HumanLabeled), + PendingHuman: __expectInt32(output.PendingHuman), + Total: __expectInt32(output.Total), } as any; }; @@ -29164,7 +29166,7 @@ const deserializeAws_json1_1LabelingJobForWorkteamSummary = ( ? deserializeAws_json1_1LabelCountersForWorkteam(output.LabelCounters, context) : undefined, LabelingJobName: __expectString(output.LabelingJobName), - NumberOfHumanWorkersPerDataObject: __expectInt(output.NumberOfHumanWorkersPerDataObject), + NumberOfHumanWorkersPerDataObject: __expectInt32(output.NumberOfHumanWorkersPerDataObject), WorkRequesterAccountId: __expectString(output.WorkRequesterAccountId), } as any; }; @@ -29246,8 +29248,8 @@ const deserializeAws_json1_1LabelingJobStoppingConditions = ( context: __SerdeContext ): LabelingJobStoppingConditions => { return { - MaxHumanLabeledObjectCount: __expectInt(output.MaxHumanLabeledObjectCount), - MaxPercentageOfInputDatasetLabeled: __expectInt(output.MaxPercentageOfInputDatasetLabeled), + MaxHumanLabeledObjectCount: __expectInt32(output.MaxHumanLabeledObjectCount), + MaxPercentageOfInputDatasetLabeled: __expectInt32(output.MaxPercentageOfInputDatasetLabeled), } as any; }; @@ -30000,7 +30002,7 @@ const deserializeAws_json1_1MetricData = (output: any, context: __SerdeContext): output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Value: __limitedParseFloat(output.Value), + Value: __limitedParseFloat32(output.Value), } as any; }; @@ -30019,7 +30021,7 @@ const deserializeAws_json1_1MetricDatum = (output: any, context: __SerdeContext) return { MetricName: __expectString(output.MetricName), Set: __expectString(output.Set), - Value: __limitedParseFloat(output.Value), + Value: __limitedParseFloat32(output.Value), } as any; }; @@ -30097,8 +30099,8 @@ const deserializeAws_json1_1ModelBiasJobInput = (output: any, context: __SerdeCo const deserializeAws_json1_1ModelClientConfig = (output: any, context: __SerdeContext): ModelClientConfig => { return { - InvocationsMaxRetries: __expectInt(output.InvocationsMaxRetries), - InvocationsTimeoutInSeconds: __expectInt(output.InvocationsTimeoutInSeconds), + InvocationsMaxRetries: __expectInt32(output.InvocationsMaxRetries), + InvocationsTimeoutInSeconds: __expectInt32(output.InvocationsTimeoutInSeconds), } as any; }; @@ -30234,7 +30236,7 @@ const deserializeAws_json1_1ModelPackage = (output: any, context: __SerdeContext output.ModelPackageStatusDetails !== undefined && output.ModelPackageStatusDetails !== null ? deserializeAws_json1_1ModelPackageStatusDetails(output.ModelPackageStatusDetails, context) : undefined, - ModelPackageVersion: __expectInt(output.ModelPackageVersion), + ModelPackageVersion: __expectInt32(output.ModelPackageVersion), SourceAlgorithmSpecification: output.SourceAlgorithmSpecification !== undefined && output.SourceAlgorithmSpecification !== null ? deserializeAws_json1_1SourceAlgorithmSpecification(output.SourceAlgorithmSpecification, context) @@ -30382,7 +30384,7 @@ const deserializeAws_json1_1ModelPackageSummary = (output: any, context: __Serde ModelPackageGroupName: __expectString(output.ModelPackageGroupName), ModelPackageName: __expectString(output.ModelPackageName), ModelPackageStatus: __expectString(output.ModelPackageStatus), - ModelPackageVersion: __expectInt(output.ModelPackageVersion), + ModelPackageVersion: __expectInt32(output.ModelPackageVersion), } as any; }; @@ -30569,10 +30571,10 @@ const deserializeAws_json1_1MonitoringClusterConfig = ( context: __SerdeContext ): MonitoringClusterConfig => { return { - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceType: __expectString(output.InstanceType), VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId), - VolumeSizeInGB: __expectInt(output.VolumeSizeInGB), + VolumeSizeInGB: __expectInt32(output.VolumeSizeInGB), } as any; }; @@ -30922,7 +30924,7 @@ const deserializeAws_json1_1MonitoringStoppingCondition = ( context: __SerdeContext ): MonitoringStoppingCondition => { return { - MaxRuntimeInSeconds: __expectInt(output.MaxRuntimeInSeconds), + MaxRuntimeInSeconds: __expectInt32(output.MaxRuntimeInSeconds), } as any; }; @@ -31102,9 +31104,9 @@ const deserializeAws_json1_1ObjectiveStatusCounters = ( context: __SerdeContext ): ObjectiveStatusCounters => { return { - Failed: __expectInt(output.Failed), - Pending: __expectInt(output.Pending), - Succeeded: __expectInt(output.Succeeded), + Failed: __expectInt32(output.Failed), + Pending: __expectInt32(output.Pending), + Succeeded: __expectInt32(output.Succeeded), } as any; }; @@ -31547,10 +31549,10 @@ const deserializeAws_json1_1ProcessingClusterConfig = ( context: __SerdeContext ): ProcessingClusterConfig => { return { - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceType: __expectString(output.InstanceType), VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId), - VolumeSizeInGB: __expectInt(output.VolumeSizeInGB), + VolumeSizeInGB: __expectInt32(output.VolumeSizeInGB), } as any; }; @@ -31781,7 +31783,7 @@ const deserializeAws_json1_1ProcessingStoppingCondition = ( context: __SerdeContext ): ProcessingStoppingCondition => { return { - MaxRuntimeInSeconds: __expectInt(output.MaxRuntimeInSeconds), + MaxRuntimeInSeconds: __expectInt32(output.MaxRuntimeInSeconds), } as any; }; @@ -31792,8 +31794,8 @@ const deserializeAws_json1_1ProductionVariant = (output: any, context: __SerdeCo output.CoreDumpConfig !== undefined && output.CoreDumpConfig !== null ? deserializeAws_json1_1ProductionVariantCoreDumpConfig(output.CoreDumpConfig, context) : undefined, - InitialInstanceCount: __expectInt(output.InitialInstanceCount), - InitialVariantWeight: __limitedParseFloat(output.InitialVariantWeight), + InitialInstanceCount: __expectInt32(output.InitialInstanceCount), + InitialVariantWeight: __limitedParseFloat32(output.InitialVariantWeight), InstanceType: __expectString(output.InstanceType), ModelName: __expectString(output.ModelName), VariantName: __expectString(output.VariantName), @@ -31826,14 +31828,14 @@ const deserializeAws_json1_1ProductionVariantSummary = ( context: __SerdeContext ): ProductionVariantSummary => { return { - CurrentInstanceCount: __expectInt(output.CurrentInstanceCount), - CurrentWeight: __limitedParseFloat(output.CurrentWeight), + CurrentInstanceCount: __expectInt32(output.CurrentInstanceCount), + CurrentWeight: __limitedParseFloat32(output.CurrentWeight), DeployedImages: output.DeployedImages !== undefined && output.DeployedImages !== null ? deserializeAws_json1_1DeployedImages(output.DeployedImages, context) : undefined, - DesiredInstanceCount: __expectInt(output.DesiredInstanceCount), - DesiredWeight: __limitedParseFloat(output.DesiredWeight), + DesiredInstanceCount: __expectInt32(output.DesiredInstanceCount), + DesiredWeight: __limitedParseFloat32(output.DesiredWeight), VariantName: __expectString(output.VariantName), } as any; }; @@ -31865,7 +31867,7 @@ const deserializeAws_json1_1ProductListings = (output: any, context: __SerdeCont const deserializeAws_json1_1ProfilerConfig = (output: any, context: __SerdeContext): ProfilerConfig => { return { - ProfilingIntervalInMilliseconds: __expectInt(output.ProfilingIntervalInMilliseconds), + ProfilingIntervalInMilliseconds: __expectLong(output.ProfilingIntervalInMilliseconds), ProfilingParameters: output.ProfilingParameters !== undefined && output.ProfilingParameters !== null ? deserializeAws_json1_1ProfilingParameters(output.ProfilingParameters, context) @@ -31888,7 +31890,7 @@ const deserializeAws_json1_1ProfilerRuleConfiguration = ( ? deserializeAws_json1_1RuleParameters(output.RuleParameters, context) : undefined, S3OutputPath: __expectString(output.S3OutputPath), - VolumeSizeInGB: __expectInt(output.VolumeSizeInGB), + VolumeSizeInGB: __expectInt32(output.VolumeSizeInGB), } as any; }; @@ -32128,10 +32130,10 @@ const deserializeAws_json1_1ResolvedAttributes = (output: any, context: __SerdeC const deserializeAws_json1_1ResourceConfig = (output: any, context: __SerdeContext): ResourceConfig => { return { - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceType: __expectString(output.InstanceType), VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId), - VolumeSizeInGB: __expectInt(output.VolumeSizeInGB), + VolumeSizeInGB: __expectInt32(output.VolumeSizeInGB), } as any; }; @@ -32149,8 +32151,8 @@ const deserializeAws_json1_1ResourceLimitExceeded = (output: any, context: __Ser const deserializeAws_json1_1ResourceLimits = (output: any, context: __SerdeContext): ResourceLimits => { return { - MaxNumberOfTrainingJobs: __expectInt(output.MaxNumberOfTrainingJobs), - MaxParallelTrainingJobs: __expectInt(output.MaxParallelTrainingJobs), + MaxNumberOfTrainingJobs: __expectInt32(output.MaxNumberOfTrainingJobs), + MaxParallelTrainingJobs: __expectInt32(output.MaxParallelTrainingJobs), } as any; }; @@ -32181,7 +32183,7 @@ const deserializeAws_json1_1ResponseMIMETypes = (output: any, context: __SerdeCo const deserializeAws_json1_1RetryStrategy = (output: any, context: __SerdeContext): RetryStrategy => { return { - MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts), + MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts), } as any; }; @@ -32383,7 +32385,7 @@ const deserializeAws_json1_1SharingSettings = (output: any, context: __SerdeCont const deserializeAws_json1_1ShuffleConfig = (output: any, context: __SerdeContext): ShuffleConfig => { return { - Seed: __expectInt(output.Seed), + Seed: __expectLong(output.Seed), } as any; }; @@ -32437,8 +32439,8 @@ const deserializeAws_json1_1StartPipelineExecutionResponse = ( const deserializeAws_json1_1StoppingCondition = (output: any, context: __SerdeContext): StoppingCondition => { return { - MaxRuntimeInSeconds: __expectInt(output.MaxRuntimeInSeconds), - MaxWaitTimeInSeconds: __expectInt(output.MaxWaitTimeInSeconds), + MaxRuntimeInSeconds: __expectInt32(output.MaxRuntimeInSeconds), + MaxWaitTimeInSeconds: __expectInt32(output.MaxWaitTimeInSeconds), } as any; }; @@ -32546,7 +32548,7 @@ const deserializeAws_json1_1TrafficRoutingConfig = (output: any, context: __Serd ? deserializeAws_json1_1CapacitySize(output.CanarySize, context) : undefined, Type: __expectString(output.Type), - WaitIntervalInSeconds: __expectInt(output.WaitIntervalInSeconds), + WaitIntervalInSeconds: __expectInt32(output.WaitIntervalInSeconds), } as any; }; @@ -32586,7 +32588,7 @@ const deserializeAws_json1_1TrainingJob = (output: any, context: __SerdeContext) ? deserializeAws_json1_1AlgorithmSpecification(output.AlgorithmSpecification, context) : undefined, AutoMLJobArn: __expectString(output.AutoMLJobArn), - BillableTimeInSeconds: __expectInt(output.BillableTimeInSeconds), + BillableTimeInSeconds: __expectInt32(output.BillableTimeInSeconds), CheckpointConfig: output.CheckpointConfig !== undefined && output.CheckpointConfig !== null ? deserializeAws_json1_1CheckpointConfig(output.CheckpointConfig, context) @@ -32681,7 +32683,7 @@ const deserializeAws_json1_1TrainingJob = (output: any, context: __SerdeContext) output.TrainingStartTime !== undefined && output.TrainingStartTime !== null ? new Date(Math.round(output.TrainingStartTime * 1000)) : undefined, - TrainingTimeInSeconds: __expectInt(output.TrainingTimeInSeconds), + TrainingTimeInSeconds: __expectInt32(output.TrainingTimeInSeconds), TuningJobArn: __expectString(output.TuningJobArn), VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null @@ -32721,11 +32723,11 @@ const deserializeAws_json1_1TrainingJobStatusCounters = ( context: __SerdeContext ): TrainingJobStatusCounters => { return { - Completed: __expectInt(output.Completed), - InProgress: __expectInt(output.InProgress), - NonRetryableError: __expectInt(output.NonRetryableError), - RetryableError: __expectInt(output.RetryableError), - Stopped: __expectInt(output.Stopped), + Completed: __expectInt32(output.Completed), + InProgress: __expectInt32(output.InProgress), + NonRetryableError: __expectInt32(output.NonRetryableError), + RetryableError: __expectInt32(output.RetryableError), + Stopped: __expectInt32(output.Stopped), } as any; }; @@ -32869,8 +32871,8 @@ const deserializeAws_json1_1TransformJob = (output: any, context: __SerdeContext : undefined, FailureReason: __expectString(output.FailureReason), LabelingJobArn: __expectString(output.LabelingJobArn), - MaxConcurrentTransforms: __expectInt(output.MaxConcurrentTransforms), - MaxPayloadInMB: __expectInt(output.MaxPayloadInMB), + MaxConcurrentTransforms: __expectInt32(output.MaxConcurrentTransforms), + MaxPayloadInMB: __expectInt32(output.MaxPayloadInMB), ModelClientConfig: output.ModelClientConfig !== undefined && output.ModelClientConfig !== null ? deserializeAws_json1_1ModelClientConfig(output.ModelClientConfig, context) @@ -32913,8 +32915,8 @@ const deserializeAws_json1_1TransformJobDefinition = (output: any, context: __Se output.Environment !== undefined && output.Environment !== null ? deserializeAws_json1_1TransformEnvironmentMap(output.Environment, context) : undefined, - MaxConcurrentTransforms: __expectInt(output.MaxConcurrentTransforms), - MaxPayloadInMB: __expectInt(output.MaxPayloadInMB), + MaxConcurrentTransforms: __expectInt32(output.MaxConcurrentTransforms), + MaxPayloadInMB: __expectInt32(output.MaxPayloadInMB), TransformInput: output.TransformInput !== undefined && output.TransformInput !== null ? deserializeAws_json1_1TransformInput(output.TransformInput, context) @@ -32982,7 +32984,7 @@ const deserializeAws_json1_1TransformOutput = (output: any, context: __SerdeCont const deserializeAws_json1_1TransformResources = (output: any, context: __SerdeContext): TransformResources => { return { - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceType: __expectString(output.InstanceType), VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId), } as any; @@ -33150,14 +33152,14 @@ const deserializeAws_json1_1TrialComponentMetricSummary = ( context: __SerdeContext ): TrialComponentMetricSummary => { return { - Avg: __limitedParseFloat(output.Avg), - Count: __expectInt(output.Count), - Last: __limitedParseFloat(output.Last), - Max: __limitedParseFloat(output.Max), + Avg: __limitedParseDouble(output.Avg), + Count: __expectInt32(output.Count), + Last: __limitedParseDouble(output.Last), + Max: __limitedParseDouble(output.Max), MetricName: __expectString(output.MetricName), - Min: __limitedParseFloat(output.Min), + Min: __limitedParseDouble(output.Min), SourceArn: __expectString(output.SourceArn), - StdDev: __limitedParseFloat(output.StdDev), + StdDev: __limitedParseDouble(output.StdDev), TimeStamp: output.TimeStamp !== undefined && output.TimeStamp !== null ? new Date(Math.round(output.TimeStamp * 1000)) @@ -33187,8 +33189,8 @@ const deserializeAws_json1_1TrialComponentParameterValue = ( output: any, context: __SerdeContext ): TrialComponentParameterValue => { - if (__limitedParseFloat(output.NumberValue) !== undefined) { - return { NumberValue: __limitedParseFloat(output.NumberValue) as any }; + if (__limitedParseDouble(output.NumberValue) !== undefined) { + return { NumberValue: __limitedParseDouble(output.NumberValue) as any }; } if (__expectString(output.StringValue) !== undefined) { return { StringValue: __expectString(output.StringValue) as any }; @@ -33362,7 +33364,7 @@ const deserializeAws_json1_1TuningJobCompletionCriteria = ( context: __SerdeContext ): TuningJobCompletionCriteria => { return { - TargetObjectiveMetricValue: __limitedParseFloat(output.TargetObjectiveMetricValue), + TargetObjectiveMetricValue: __limitedParseFloat32(output.TargetObjectiveMetricValue), } as any; }; @@ -33561,9 +33563,9 @@ const deserializeAws_json1_1UpdateWorkteamResponse = (output: any, context: __Se const deserializeAws_json1_1USD = (output: any, context: __SerdeContext): USD => { return { - Cents: __expectInt(output.Cents), - Dollars: __expectInt(output.Dollars), - TenthFractionsOfACent: __expectInt(output.TenthFractionsOfACent), + Cents: __expectInt32(output.Cents), + Dollars: __expectInt32(output.Dollars), + TenthFractionsOfACent: __expectInt32(output.TenthFractionsOfACent), } as any; }; diff --git a/clients/client-savingsplans/protocols/Aws_restJson1.ts b/clients/client-savingsplans/protocols/Aws_restJson1.ts index 3af4e83ba52ef..ec1afad637c05 100644 --- a/clients/client-savingsplans/protocols/Aws_restJson1.ts +++ b/clients/client-savingsplans/protocols/Aws_restJson1.ts @@ -50,7 +50,7 @@ import { ValidationException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { expectLong as __expectLong, expectString as __expectString } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -1417,7 +1417,7 @@ const deserializeAws_restJson1ParentSavingsPlanOffering = ( ): ParentSavingsPlanOffering => { return { currency: __expectString(output.currency), - durationSeconds: __expectInt(output.durationSeconds), + durationSeconds: __expectLong(output.durationSeconds), offeringId: __expectString(output.offeringId), paymentOption: __expectString(output.paymentOption), planDescription: __expectString(output.planDescription), @@ -1449,7 +1449,7 @@ const deserializeAws_restJson1SavingsPlan = (output: any, context: __SerdeContex output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined, - termDurationInSeconds: __expectInt(output.termDurationInSeconds), + termDurationInSeconds: __expectLong(output.termDurationInSeconds), upfrontPaymentAmount: __expectString(output.upfrontPaymentAmount), } as any; }; @@ -1469,7 +1469,7 @@ const deserializeAws_restJson1SavingsPlanOffering = (output: any, context: __Ser return { currency: __expectString(output.currency), description: __expectString(output.description), - durationSeconds: __expectInt(output.durationSeconds), + durationSeconds: __expectLong(output.durationSeconds), offeringId: __expectString(output.offeringId), operation: __expectString(output.operation), paymentOption: __expectString(output.paymentOption), diff --git a/clients/client-schemas/protocols/Aws_restJson1.ts b/clients/client-schemas/protocols/Aws_restJson1.ts index b07987b8a52fd..e7b0a6e1ce4a6 100644 --- a/clients/client-schemas/protocols/Aws_restJson1.ts +++ b/clients/client-schemas/protocols/Aws_restJson1.ts @@ -68,7 +68,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { LazyJsonString as __LazyJsonString, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -4607,7 +4607,7 @@ const deserializeAws_restJson1SchemaSummary = (output: any, context: __SerdeCont output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1Tags(output.tags, context) : undefined, - VersionCount: __expectInt(output.VersionCount), + VersionCount: __expectLong(output.VersionCount), } as any; }; diff --git a/clients/client-secrets-manager/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/protocols/Aws_json1_1.ts index dba8291d94264..e0b61466b4631 100644 --- a/clients/client-secrets-manager/protocols/Aws_json1_1.ts +++ b/clients/client-secrets-manager/protocols/Aws_json1_1.ts @@ -108,7 +108,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3131,7 +3131,7 @@ const deserializeAws_json1_1RotateSecretResponse = (output: any, context: __Serd const deserializeAws_json1_1RotationRulesType = (output: any, context: __SerdeContext): RotationRulesType => { return { - AutomaticallyAfterDays: __expectInt(output.AutomaticallyAfterDays), + AutomaticallyAfterDays: __expectLong(output.AutomaticallyAfterDays), } as any; }; diff --git a/clients/client-securityhub/protocols/Aws_restJson1.ts b/clients/client-securityhub/protocols/Aws_restJson1.ts index 32530aeb6bb0d..7be3c9726483b 100644 --- a/clients/client-securityhub/protocols/Aws_restJson1.ts +++ b/clients/client-securityhub/protocols/Aws_restJson1.ts @@ -465,10 +465,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -2262,13 +2263,13 @@ export const deserializeAws_restJson1BatchImportFindingsCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.FailedCount !== undefined && data.FailedCount !== null) { - contents.FailedCount = __expectInt(data.FailedCount); + contents.FailedCount = __expectInt32(data.FailedCount); } if (data.FailedFindings !== undefined && data.FailedFindings !== null) { contents.FailedFindings = deserializeAws_restJson1ImportFindingsErrorList(data.FailedFindings, context); } if (data.SuccessCount !== undefined && data.SuccessCount !== null) { - contents.SuccessCount = __expectInt(data.SuccessCount); + contents.SuccessCount = __expectInt32(data.SuccessCount); } return Promise.resolve(contents); }; @@ -4779,7 +4780,7 @@ export const deserializeAws_restJson1GetInvitationsCountCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.InvitationsCount !== undefined && data.InvitationsCount !== null) { - contents.InvitationsCount = __expectInt(data.InvitationsCount); + contents.InvitationsCount = __expectInt32(data.InvitationsCount); } return Promise.resolve(contents); }; @@ -14113,7 +14114,7 @@ const deserializeAws_restJson1ActionLocalPortDetails = ( context: __SerdeContext ): ActionLocalPortDetails => { return { - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), PortName: __expectString(output.PortName), } as any; }; @@ -14145,7 +14146,7 @@ const deserializeAws_restJson1ActionRemotePortDetails = ( context: __SerdeContext ): ActionRemotePortDetails => { return { - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), PortName: __expectString(output.PortName), } as any; }; @@ -14252,7 +14253,7 @@ const deserializeAws_restJson1AwsApiGatewayCanarySettings = ( ): AwsApiGatewayCanarySettings => { return { DeploymentId: __expectString(output.DeploymentId), - PercentTraffic: __limitedParseFloat(output.PercentTraffic), + PercentTraffic: __limitedParseDouble(output.PercentTraffic), StageVariableOverrides: output.StageVariableOverrides !== undefined && output.StageVariableOverrides !== null ? deserializeAws_restJson1FieldMap(output.StageVariableOverrides, context) @@ -14279,7 +14280,7 @@ const deserializeAws_restJson1AwsApiGatewayMethodSettings = ( ): AwsApiGatewayMethodSettings => { return { CacheDataEncrypted: __expectBoolean(output.CacheDataEncrypted), - CacheTtlInSeconds: __expectInt(output.CacheTtlInSeconds), + CacheTtlInSeconds: __expectInt32(output.CacheTtlInSeconds), CachingEnabled: __expectBoolean(output.CachingEnabled), DataTraceEnabled: __expectBoolean(output.DataTraceEnabled), HttpMethod: __expectString(output.HttpMethod), @@ -14287,8 +14288,8 @@ const deserializeAws_restJson1AwsApiGatewayMethodSettings = ( MetricsEnabled: __expectBoolean(output.MetricsEnabled), RequireAuthorizationForCacheControl: __expectBoolean(output.RequireAuthorizationForCacheControl), ResourcePath: __expectString(output.ResourcePath), - ThrottlingBurstLimit: __expectInt(output.ThrottlingBurstLimit), - ThrottlingRateLimit: __limitedParseFloat(output.ThrottlingRateLimit), + ThrottlingBurstLimit: __expectInt32(output.ThrottlingBurstLimit), + ThrottlingRateLimit: __limitedParseDouble(output.ThrottlingRateLimit), UnauthorizedCacheControlHeaderStrategy: __expectString(output.UnauthorizedCacheControlHeaderStrategy), } as any; }; @@ -14324,7 +14325,7 @@ const deserializeAws_restJson1AwsApiGatewayRestApiDetails = ( ? deserializeAws_restJson1AwsApiGatewayEndpointConfiguration(output.EndpointConfiguration, context) : undefined, Id: __expectString(output.Id), - MinimumCompressionSize: __expectInt(output.MinimumCompressionSize), + MinimumCompressionSize: __expectInt32(output.MinimumCompressionSize), Name: __expectString(output.Name), Version: __expectString(output.Version), } as any; @@ -14395,8 +14396,8 @@ const deserializeAws_restJson1AwsApiGatewayV2RouteSettings = ( DataTraceEnabled: __expectBoolean(output.DataTraceEnabled), DetailedMetricsEnabled: __expectBoolean(output.DetailedMetricsEnabled), LoggingLevel: __expectString(output.LoggingLevel), - ThrottlingBurstLimit: __expectInt(output.ThrottlingBurstLimit), - ThrottlingRateLimit: __limitedParseFloat(output.ThrottlingRateLimit), + ThrottlingBurstLimit: __expectInt32(output.ThrottlingBurstLimit), + ThrottlingRateLimit: __limitedParseDouble(output.ThrottlingRateLimit), } as any; }; @@ -14439,7 +14440,7 @@ const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupDetails = ( ): AwsAutoScalingAutoScalingGroupDetails => { return { CreatedTime: __expectString(output.CreatedTime), - HealthCheckGracePeriod: __expectInt(output.HealthCheckGracePeriod), + HealthCheckGracePeriod: __expectInt32(output.HealthCheckGracePeriod), HealthCheckType: __expectString(output.HealthCheckType), LaunchConfigurationName: __expectString(output.LaunchConfigurationName), LoadBalancerNames: @@ -14746,7 +14747,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupFailoverStatus output.Items !== undefined && output.Items !== null ? deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupFailoverStatusCodesItemList(output.Items, context) : undefined, - Quantity: __expectInt(output.Quantity), + Quantity: __expectInt32(output.Quantity), } as any; }; @@ -14760,7 +14761,7 @@ const deserializeAws_restJson1AwsCloudFrontDistributionOriginGroupFailoverStatus if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -14916,7 +14917,7 @@ const deserializeAws_restJson1AwsCodeBuildProjectSource = ( context: __SerdeContext ): AwsCodeBuildProjectSource => { return { - GitCloneDepth: __expectInt(output.GitCloneDepth), + GitCloneDepth: __expectInt32(output.GitCloneDepth), InsecureSsl: __expectBoolean(output.InsecureSsl), Location: __expectString(output.Location), Type: __expectString(output.Type), @@ -14959,7 +14960,7 @@ const deserializeAws_restJson1AwsCorsConfiguration = (output: any, context: __Se output.ExposeHeaders !== undefined && output.ExposeHeaders !== null ? deserializeAws_restJson1NonEmptyStringList(output.ExposeHeaders, context) : undefined, - MaxAge: __expectInt(output.MaxAge), + MaxAge: __expectInt32(output.MaxAge), } as any; }; @@ -15016,7 +15017,7 @@ const deserializeAws_restJson1AwsDynamoDbTableDetails = ( ? deserializeAws_restJson1AwsDynamoDbTableGlobalSecondaryIndexList(output.GlobalSecondaryIndexes, context) : undefined, GlobalTableVersion: __expectString(output.GlobalTableVersion), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectInt32(output.ItemCount), KeySchema: output.KeySchema !== undefined && output.KeySchema !== null ? deserializeAws_restJson1AwsDynamoDbTableKeySchemaList(output.KeySchema, context) @@ -15049,7 +15050,7 @@ const deserializeAws_restJson1AwsDynamoDbTableDetails = ( : undefined, TableId: __expectString(output.TableId), TableName: __expectString(output.TableName), - TableSizeBytes: __expectInt(output.TableSizeBytes), + TableSizeBytes: __expectLong(output.TableSizeBytes), TableStatus: __expectString(output.TableStatus), } as any; }; @@ -15062,9 +15063,9 @@ const deserializeAws_restJson1AwsDynamoDbTableGlobalSecondaryIndex = ( Backfilling: __expectBoolean(output.Backfilling), IndexArn: __expectString(output.IndexArn), IndexName: __expectString(output.IndexName), - IndexSizeBytes: __expectInt(output.IndexSizeBytes), + IndexSizeBytes: __expectLong(output.IndexSizeBytes), IndexStatus: __expectString(output.IndexStatus), - ItemCount: __expectInt(output.ItemCount), + ItemCount: __expectInt32(output.ItemCount), KeySchema: output.KeySchema !== undefined && output.KeySchema !== null ? deserializeAws_restJson1AwsDynamoDbTableKeySchemaList(output.KeySchema, context) @@ -15170,9 +15171,9 @@ const deserializeAws_restJson1AwsDynamoDbTableProvisionedThroughput = ( return { LastDecreaseDateTime: __expectString(output.LastDecreaseDateTime), LastIncreaseDateTime: __expectString(output.LastIncreaseDateTime), - NumberOfDecreasesToday: __expectInt(output.NumberOfDecreasesToday), - ReadCapacityUnits: __expectInt(output.ReadCapacityUnits), - WriteCapacityUnits: __expectInt(output.WriteCapacityUnits), + NumberOfDecreasesToday: __expectInt32(output.NumberOfDecreasesToday), + ReadCapacityUnits: __expectInt32(output.ReadCapacityUnits), + WriteCapacityUnits: __expectInt32(output.WriteCapacityUnits), } as any; }; @@ -15181,7 +15182,7 @@ const deserializeAws_restJson1AwsDynamoDbTableProvisionedThroughputOverride = ( context: __SerdeContext ): AwsDynamoDbTableProvisionedThroughputOverride => { return { - ReadCapacityUnits: __expectInt(output.ReadCapacityUnits), + ReadCapacityUnits: __expectInt32(output.ReadCapacityUnits), } as any; }; @@ -15411,7 +15412,7 @@ const deserializeAws_restJson1AwsEc2NetworkAclEntry = (output: any, context: __S : undefined, Protocol: __expectString(output.Protocol), RuleAction: __expectString(output.RuleAction), - RuleNumber: __expectInt(output.RuleNumber), + RuleNumber: __expectInt32(output.RuleNumber), } as any; }; @@ -15437,7 +15438,7 @@ const deserializeAws_restJson1AwsEc2NetworkInterfaceAttachment = ( AttachTime: __expectString(output.AttachTime), AttachmentId: __expectString(output.AttachmentId), DeleteOnTermination: __expectBoolean(output.DeleteOnTermination), - DeviceIndex: __expectInt(output.DeviceIndex), + DeviceIndex: __expectInt32(output.DeviceIndex), InstanceId: __expectString(output.InstanceId), InstanceOwnerId: __expectString(output.InstanceOwnerId), Status: __expectString(output.Status), @@ -15568,7 +15569,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpPermission = ( context: __SerdeContext ): AwsEc2SecurityGroupIpPermission => { return { - FromPort: __expectInt(output.FromPort), + FromPort: __expectInt32(output.FromPort), IpProtocol: __expectString(output.IpProtocol), IpRanges: output.IpRanges !== undefined && output.IpRanges !== null @@ -15582,7 +15583,7 @@ const deserializeAws_restJson1AwsEc2SecurityGroupIpPermission = ( output.PrefixListIds !== undefined && output.PrefixListIds !== null ? deserializeAws_restJson1AwsEc2SecurityGroupPrefixListIdList(output.PrefixListIds, context) : undefined, - ToPort: __expectInt(output.ToPort), + ToPort: __expectInt32(output.ToPort), UserIdGroupPairs: output.UserIdGroupPairs !== undefined && output.UserIdGroupPairs !== null ? deserializeAws_restJson1AwsEc2SecurityGroupUserIdGroupPairList(output.UserIdGroupPairs, context) @@ -15706,7 +15707,7 @@ const deserializeAws_restJson1AwsEc2SubnetDetails = (output: any, context: __Ser AssignIpv6AddressOnCreation: __expectBoolean(output.AssignIpv6AddressOnCreation), AvailabilityZone: __expectString(output.AvailabilityZone), AvailabilityZoneId: __expectString(output.AvailabilityZoneId), - AvailableIpAddressCount: __expectInt(output.AvailableIpAddressCount), + AvailableIpAddressCount: __expectInt32(output.AvailableIpAddressCount), CidrBlock: __expectString(output.CidrBlock), DefaultForAz: __expectBoolean(output.DefaultForAz), Ipv6CidrBlockAssociationSet: @@ -15757,7 +15758,7 @@ const deserializeAws_restJson1AwsEc2VolumeDetails = (output: any, context: __Ser CreateTime: __expectString(output.CreateTime), Encrypted: __expectBoolean(output.Encrypted), KmsKeyId: __expectString(output.KmsKeyId), - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), SnapshotId: __expectString(output.SnapshotId), Status: __expectString(output.Status), } as any; @@ -15852,9 +15853,9 @@ const deserializeAws_restJson1AwsEcsClusterDefaultCapacityProviderStrategyDetail context: __SerdeContext ): AwsEcsClusterDefaultCapacityProviderStrategyDetails => { return { - Base: __expectInt(output.Base), + Base: __expectInt32(output.Base), CapacityProvider: __expectString(output.CapacityProvider), - Weight: __expectInt(output.Weight), + Weight: __expectInt32(output.Weight), } as any; }; @@ -15901,9 +15902,9 @@ const deserializeAws_restJson1AwsEcsServiceCapacityProviderStrategyDetails = ( context: __SerdeContext ): AwsEcsServiceCapacityProviderStrategyDetails => { return { - Base: __expectInt(output.Base), + Base: __expectInt32(output.Base), CapacityProvider: __expectString(output.CapacityProvider), - Weight: __expectInt(output.Weight), + Weight: __expectInt32(output.Weight), } as any; }; @@ -15943,8 +15944,8 @@ const deserializeAws_restJson1AwsEcsServiceDeploymentConfigurationDetails = ( context ) : undefined, - MaximumPercent: __expectInt(output.MaximumPercent), - MinimumHealthyPercent: __expectInt(output.MinimumHealthyPercent), + MaximumPercent: __expectInt32(output.MaximumPercent), + MinimumHealthyPercent: __expectInt32(output.MinimumHealthyPercent), } as any; }; @@ -15972,10 +15973,10 @@ const deserializeAws_restJson1AwsEcsServiceDetails = (output: any, context: __Se output.DeploymentController !== undefined && output.DeploymentController !== null ? deserializeAws_restJson1AwsEcsServiceDeploymentControllerDetails(output.DeploymentController, context) : undefined, - DesiredCount: __expectInt(output.DesiredCount), + DesiredCount: __expectInt32(output.DesiredCount), EnableEcsManagedTags: __expectBoolean(output.EnableEcsManagedTags), EnableExecuteCommand: __expectBoolean(output.EnableExecuteCommand), - HealthCheckGracePeriodSeconds: __expectInt(output.HealthCheckGracePeriodSeconds), + HealthCheckGracePeriodSeconds: __expectInt32(output.HealthCheckGracePeriodSeconds), LaunchType: __expectString(output.LaunchType), LoadBalancers: output.LoadBalancers !== undefined && output.LoadBalancers !== null @@ -16014,7 +16015,7 @@ const deserializeAws_restJson1AwsEcsServiceLoadBalancersDetails = ( ): AwsEcsServiceLoadBalancersDetails => { return { ContainerName: __expectString(output.ContainerName), - ContainerPort: __expectInt(output.ContainerPort), + ContainerPort: __expectInt32(output.ContainerPort), LoadBalancerName: __expectString(output.LoadBalancerName), TargetGroupArn: __expectString(output.TargetGroupArn), } as any; @@ -16120,8 +16121,8 @@ const deserializeAws_restJson1AwsEcsServiceServiceRegistriesDetails = ( ): AwsEcsServiceServiceRegistriesDetails => { return { ContainerName: __expectString(output.ContainerName), - ContainerPort: __expectInt(output.ContainerPort), - Port: __expectInt(output.Port), + ContainerPort: __expectInt32(output.ContainerPort), + Port: __expectInt32(output.Port), RegistryArn: __expectString(output.RegistryArn), } as any; }; @@ -16173,7 +16174,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDetails = output.Command !== undefined && output.Command !== null ? deserializeAws_restJson1NonEmptyStringList(output.Command, context) : undefined, - Cpu: __expectInt(output.Cpu), + Cpu: __expectInt32(output.Cpu), DependsOn: output.DependsOn !== undefined && output.DependsOn !== null ? deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDependsOnList(output.DependsOn, context) @@ -16250,8 +16251,8 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDetails = context ) : undefined, - Memory: __expectInt(output.Memory), - MemoryReservation: __expectInt(output.MemoryReservation), + Memory: __expectInt32(output.Memory), + MemoryReservation: __expectInt32(output.MemoryReservation), MountPoints: output.MountPoints !== undefined && output.MountPoints !== null ? deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsMountPointsList(output.MountPoints, context) @@ -16282,8 +16283,8 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsDetails = output.Secrets !== undefined && output.Secrets !== null ? deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSecretsList(output.Secrets, context) : undefined, - StartTimeout: __expectInt(output.StartTimeout), - StopTimeout: __expectInt(output.StopTimeout), + StartTimeout: __expectInt32(output.StartTimeout), + StopTimeout: __expectInt32(output.StopTimeout), SystemControls: output.SystemControls !== undefined && output.SystemControls !== null ? deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsSystemControlsList( @@ -16398,10 +16399,10 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsHealthChec output.Command !== undefined && output.Command !== null ? deserializeAws_restJson1NonEmptyStringList(output.Command, context) : undefined, - Interval: __expectInt(output.Interval), - Retries: __expectInt(output.Retries), - StartPeriod: __expectInt(output.StartPeriod), - Timeout: __expectInt(output.Timeout), + Interval: __expectInt32(output.Interval), + Retries: __expectInt32(output.Retries), + StartPeriod: __expectInt32(output.StartPeriod), + Timeout: __expectInt32(output.Timeout), } as any; }; @@ -16441,9 +16442,9 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParam ) : undefined, InitProcessEnabled: __expectBoolean(output.InitProcessEnabled), - MaxSwap: __expectInt(output.MaxSwap), - SharedMemorySize: __expectInt(output.SharedMemorySize), - Swappiness: __expectInt(output.Swappiness), + MaxSwap: __expectInt32(output.MaxSwap), + SharedMemorySize: __expectInt32(output.SharedMemorySize), + Swappiness: __expectInt32(output.Swappiness), Tmpfs: output.Tmpfs !== undefined && output.Tmpfs !== null ? deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsList( @@ -16495,7 +16496,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsLinuxParam output.MountOptions !== undefined && output.MountOptions !== null ? deserializeAws_restJson1NonEmptyStringList(output.MountOptions, context) : undefined, - Size: __expectInt(output.Size), + Size: __expectInt32(output.Size), } as any; }; @@ -16607,8 +16608,8 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsPortMappin context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails => { return { - ContainerPort: __expectInt(output.ContainerPort), - HostPort: __expectInt(output.HostPort), + ContainerPort: __expectInt32(output.ContainerPort), + HostPort: __expectInt32(output.HostPort), Protocol: __expectString(output.Protocol), } as any; }; @@ -16716,9 +16717,9 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionContainerDefinitionsUlimitsDet context: __SerdeContext ): AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails => { return { - HardLimit: __expectInt(output.HardLimit), + HardLimit: __expectInt32(output.HardLimit), Name: __expectString(output.Name), - SoftLimit: __expectInt(output.SoftLimit), + SoftLimit: __expectInt32(output.SoftLimit), } as any; }; @@ -16963,7 +16964,7 @@ const deserializeAws_restJson1AwsEcsTaskDefinitionVolumesEfsVolumeConfigurationD FilesystemId: __expectString(output.FilesystemId), RootDirectory: __expectString(output.RootDirectory), TransitEncryption: __expectString(output.TransitEncryption), - TransitEncryptionPort: __expectInt(output.TransitEncryptionPort), + TransitEncryptionPort: __expectInt32(output.TransitEncryptionPort), } as any; }; @@ -17150,10 +17151,10 @@ const deserializeAws_restJson1AwsElasticsearchDomainElasticsearchClusterConfigDe context: __SerdeContext ): AwsElasticsearchDomainElasticsearchClusterConfigDetails => { return { - DedicatedMasterCount: __expectInt(output.DedicatedMasterCount), + DedicatedMasterCount: __expectInt32(output.DedicatedMasterCount), DedicatedMasterEnabled: __expectBoolean(output.DedicatedMasterEnabled), DedicatedMasterType: __expectString(output.DedicatedMasterType), - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), InstanceType: __expectString(output.InstanceType), ZoneAwarenessConfig: output.ZoneAwarenessConfig !== undefined && output.ZoneAwarenessConfig !== null @@ -17171,7 +17172,7 @@ const deserializeAws_restJson1AwsElasticsearchDomainElasticsearchClusterConfigZo context: __SerdeContext ): AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails => { return { - AvailabilityZoneCount: __expectInt(output.AvailabilityZoneCount), + AvailabilityZoneCount: __expectInt32(output.AvailabilityZoneCount), } as any; }; @@ -17303,7 +17304,7 @@ const deserializeAws_restJson1AwsElbLbCookieStickinessPolicy = ( context: __SerdeContext ): AwsElbLbCookieStickinessPolicy => { return { - CookieExpirationPeriod: __expectInt(output.CookieExpirationPeriod), + CookieExpirationPeriod: __expectLong(output.CookieExpirationPeriod), PolicyName: __expectString(output.PolicyName), } as any; }; @@ -17313,7 +17314,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerAccessLog = ( context: __SerdeContext ): AwsElbLoadBalancerAccessLog => { return { - EmitInterval: __expectInt(output.EmitInterval), + EmitInterval: __expectInt32(output.EmitInterval), Enabled: __expectBoolean(output.Enabled), S3BucketName: __expectString(output.S3BucketName), S3BucketPrefix: __expectString(output.S3BucketPrefix), @@ -17349,7 +17350,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerBackendServerDescription = ( context: __SerdeContext ): AwsElbLoadBalancerBackendServerDescription => { return { - InstancePort: __expectInt(output.InstancePort), + InstancePort: __expectInt32(output.InstancePort), PolicyNames: output.PolicyNames !== undefined && output.PolicyNames !== null ? deserializeAws_restJson1StringList(output.PolicyNames, context) @@ -17377,7 +17378,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerConnectionDraining = ( ): AwsElbLoadBalancerConnectionDraining => { return { Enabled: __expectBoolean(output.Enabled), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), } as any; }; @@ -17386,7 +17387,7 @@ const deserializeAws_restJson1AwsElbLoadBalancerConnectionSettings = ( context: __SerdeContext ): AwsElbLoadBalancerConnectionSettings => { return { - IdleTimeout: __expectInt(output.IdleTimeout), + IdleTimeout: __expectInt32(output.IdleTimeout), } as any; }; @@ -17459,11 +17460,11 @@ const deserializeAws_restJson1AwsElbLoadBalancerHealthCheck = ( context: __SerdeContext ): AwsElbLoadBalancerHealthCheck => { return { - HealthyThreshold: __expectInt(output.HealthyThreshold), - Interval: __expectInt(output.Interval), + HealthyThreshold: __expectInt32(output.HealthyThreshold), + Interval: __expectInt32(output.Interval), Target: __expectString(output.Target), - Timeout: __expectInt(output.Timeout), - UnhealthyThreshold: __expectInt(output.UnhealthyThreshold), + Timeout: __expectInt32(output.Timeout), + UnhealthyThreshold: __expectInt32(output.UnhealthyThreshold), } as any; }; @@ -17495,9 +17496,9 @@ const deserializeAws_restJson1AwsElbLoadBalancerListener = ( context: __SerdeContext ): AwsElbLoadBalancerListener => { return { - InstancePort: __expectInt(output.InstancePort), + InstancePort: __expectInt32(output.InstancePort), InstanceProtocol: __expectString(output.InstanceProtocol), - LoadBalancerPort: __expectInt(output.LoadBalancerPort), + LoadBalancerPort: __expectInt32(output.LoadBalancerPort), Protocol: __expectString(output.Protocol), SslCertificateId: __expectString(output.SslCertificateId), } as any; @@ -17775,13 +17776,13 @@ const deserializeAws_restJson1AwsIamPermissionsBoundary = ( const deserializeAws_restJson1AwsIamPolicyDetails = (output: any, context: __SerdeContext): AwsIamPolicyDetails => { return { - AttachmentCount: __expectInt(output.AttachmentCount), + AttachmentCount: __expectInt32(output.AttachmentCount), CreateDate: __expectString(output.CreateDate), DefaultVersionId: __expectString(output.DefaultVersionId), Description: __expectString(output.Description), IsAttachable: __expectBoolean(output.IsAttachable), Path: __expectString(output.Path), - PermissionsBoundaryUsageCount: __expectInt(output.PermissionsBoundaryUsageCount), + PermissionsBoundaryUsageCount: __expectInt32(output.PermissionsBoundaryUsageCount), PolicyId: __expectString(output.PolicyId), PolicyName: __expectString(output.PolicyName), PolicyVersionList: @@ -17826,7 +17827,7 @@ const deserializeAws_restJson1AwsIamRoleDetails = (output: any, context: __Serde output.InstanceProfileList !== undefined && output.InstanceProfileList !== null ? deserializeAws_restJson1AwsIamInstanceProfileList(output.InstanceProfileList, context) : undefined, - MaxSessionDuration: __expectInt(output.MaxSessionDuration), + MaxSessionDuration: __expectInt32(output.MaxSessionDuration), Path: __expectString(output.Path), PermissionsBoundary: output.PermissionsBoundary !== undefined && output.PermissionsBoundary !== null @@ -17903,7 +17904,7 @@ const deserializeAws_restJson1AwsIamUserPolicyList = (output: any, context: __Se const deserializeAws_restJson1AwsKmsKeyDetails = (output: any, context: __SerdeContext): AwsKmsKeyDetails => { return { AWSAccountId: __expectString(output.AWSAccountId), - CreationDate: __limitedParseFloat(output.CreationDate), + CreationDate: __limitedParseDouble(output.CreationDate), Description: __expectString(output.Description), KeyId: __expectString(output.KeyId), KeyManager: __expectString(output.KeyManager), @@ -17957,11 +17958,11 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = ( ? deserializeAws_restJson1AwsLambdaFunctionLayerList(output.Layers, context) : undefined, MasterArn: __expectString(output.MasterArn), - MemorySize: __expectInt(output.MemorySize), + MemorySize: __expectInt32(output.MemorySize), RevisionId: __expectString(output.RevisionId), Role: __expectString(output.Role), Runtime: __expectString(output.Runtime), - Timeout: __expectInt(output.Timeout), + Timeout: __expectInt32(output.Timeout), TracingConfig: output.TracingConfig !== undefined && output.TracingConfig !== null ? deserializeAws_restJson1AwsLambdaFunctionTracingConfig(output.TracingConfig, context) @@ -18006,7 +18007,7 @@ const deserializeAws_restJson1AwsLambdaFunctionLayer = ( ): AwsLambdaFunctionLayer => { return { Arn: __expectString(output.Arn), - CodeSize: __expectInt(output.CodeSize), + CodeSize: __expectInt32(output.CodeSize), } as any; }; @@ -18060,7 +18061,7 @@ const deserializeAws_restJson1AwsLambdaLayerVersionDetails = ( ? deserializeAws_restJson1NonEmptyStringList(output.CompatibleRuntimes, context) : undefined, CreatedDate: __expectString(output.CreatedDate), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -18094,7 +18095,7 @@ const deserializeAws_restJson1AwsRdsDbClusterDetails = ( ): AwsRdsDbClusterDetails => { return { ActivityStreamStatus: __expectString(output.ActivityStreamStatus), - AllocatedStorage: __expectInt(output.AllocatedStorage), + AllocatedStorage: __expectInt32(output.AllocatedStorage), AssociatedRoles: output.AssociatedRoles !== undefined && output.AssociatedRoles !== null ? deserializeAws_restJson1AwsRdsDbClusterAssociatedRoles(output.AssociatedRoles, context) @@ -18103,7 +18104,7 @@ const deserializeAws_restJson1AwsRdsDbClusterDetails = ( output.AvailabilityZones !== undefined && output.AvailabilityZones !== null ? deserializeAws_restJson1StringList(output.AvailabilityZones, context) : undefined, - BackupRetentionPeriod: __expectInt(output.BackupRetentionPeriod), + BackupRetentionPeriod: __expectInt32(output.BackupRetentionPeriod), ClusterCreateTime: __expectString(output.ClusterCreateTime), CopyTagsToSnapshot: __expectBoolean(output.CopyTagsToSnapshot), CrossAccountClone: __expectBoolean(output.CrossAccountClone), @@ -18143,7 +18144,7 @@ const deserializeAws_restJson1AwsRdsDbClusterDetails = ( KmsKeyId: __expectString(output.KmsKeyId), MasterUsername: __expectString(output.MasterUsername), MultiAz: __expectBoolean(output.MultiAz), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), PreferredBackupWindow: __expectString(output.PreferredBackupWindow), PreferredMaintenanceWindow: __expectString(output.PreferredMaintenanceWindow), ReadReplicaIdentifiers: @@ -18165,7 +18166,7 @@ const deserializeAws_restJson1AwsRdsDbClusterMember = (output: any, context: __S DbClusterParameterGroupStatus: __expectString(output.DbClusterParameterGroupStatus), DbInstanceIdentifier: __expectString(output.DbInstanceIdentifier), IsClusterWriter: __expectBoolean(output.IsClusterWriter), - PromotionTier: __expectInt(output.PromotionTier), + PromotionTier: __expectInt32(output.PromotionTier), } as any; }; @@ -18212,7 +18213,7 @@ const deserializeAws_restJson1AwsRdsDbClusterSnapshotDetails = ( context: __SerdeContext ): AwsRdsDbClusterSnapshotDetails => { return { - AllocatedStorage: __expectInt(output.AllocatedStorage), + AllocatedStorage: __expectInt32(output.AllocatedStorage), AvailabilityZones: output.AvailabilityZones !== undefined && output.AvailabilityZones !== null ? deserializeAws_restJson1StringList(output.AvailabilityZones, context) @@ -18226,8 +18227,8 @@ const deserializeAws_restJson1AwsRdsDbClusterSnapshotDetails = ( KmsKeyId: __expectString(output.KmsKeyId), LicenseModel: __expectString(output.LicenseModel), MasterUsername: __expectString(output.MasterUsername), - PercentProgress: __expectInt(output.PercentProgress), - Port: __expectInt(output.Port), + PercentProgress: __expectInt32(output.PercentProgress), + Port: __expectInt32(output.Port), SnapshotCreateTime: __expectString(output.SnapshotCreateTime), SnapshotType: __expectString(output.SnapshotType), Status: __expectString(output.Status), @@ -18292,14 +18293,14 @@ const deserializeAws_restJson1AwsRdsDbInstanceDetails = ( context: __SerdeContext ): AwsRdsDbInstanceDetails => { return { - AllocatedStorage: __expectInt(output.AllocatedStorage), + AllocatedStorage: __expectInt32(output.AllocatedStorage), AssociatedRoles: output.AssociatedRoles !== undefined && output.AssociatedRoles !== null ? deserializeAws_restJson1AwsRdsDbInstanceAssociatedRoles(output.AssociatedRoles, context) : undefined, AutoMinorVersionUpgrade: __expectBoolean(output.AutoMinorVersionUpgrade), AvailabilityZone: __expectString(output.AvailabilityZone), - BackupRetentionPeriod: __expectInt(output.BackupRetentionPeriod), + BackupRetentionPeriod: __expectInt32(output.BackupRetentionPeriod), CACertificateIdentifier: __expectString(output.CACertificateIdentifier), CharacterSetName: __expectString(output.CharacterSetName), CopyTagsToSnapshot: __expectBoolean(output.CopyTagsToSnapshot), @@ -18307,7 +18308,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceDetails = ( DBInstanceClass: __expectString(output.DBInstanceClass), DBInstanceIdentifier: __expectString(output.DBInstanceIdentifier), DBName: __expectString(output.DBName), - DbInstancePort: __expectInt(output.DbInstancePort), + DbInstancePort: __expectInt32(output.DbInstancePort), DbInstanceStatus: __expectString(output.DbInstanceStatus), DbParameterGroups: output.DbParameterGroups !== undefined && output.DbParameterGroups !== null @@ -18340,7 +18341,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceDetails = ( EnhancedMonitoringResourceArn: __expectString(output.EnhancedMonitoringResourceArn), IAMDatabaseAuthenticationEnabled: __expectBoolean(output.IAMDatabaseAuthenticationEnabled), InstanceCreateTime: __expectString(output.InstanceCreateTime), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), KmsKeyId: __expectString(output.KmsKeyId), LatestRestorableTime: __expectString(output.LatestRestorableTime), LicenseModel: __expectString(output.LicenseModel), @@ -18349,8 +18350,8 @@ const deserializeAws_restJson1AwsRdsDbInstanceDetails = ( ? deserializeAws_restJson1AwsRdsDbInstanceEndpoint(output.ListenerEndpoint, context) : undefined, MasterUsername: __expectString(output.MasterUsername), - MaxAllocatedStorage: __expectInt(output.MaxAllocatedStorage), - MonitoringInterval: __expectInt(output.MonitoringInterval), + MaxAllocatedStorage: __expectInt32(output.MaxAllocatedStorage), + MonitoringInterval: __expectInt32(output.MonitoringInterval), MonitoringRoleArn: __expectString(output.MonitoringRoleArn), MultiAz: __expectBoolean(output.MultiAz), OptionGroupMemberships: @@ -18363,14 +18364,14 @@ const deserializeAws_restJson1AwsRdsDbInstanceDetails = ( : undefined, PerformanceInsightsEnabled: __expectBoolean(output.PerformanceInsightsEnabled), PerformanceInsightsKmsKeyId: __expectString(output.PerformanceInsightsKmsKeyId), - PerformanceInsightsRetentionPeriod: __expectInt(output.PerformanceInsightsRetentionPeriod), + PerformanceInsightsRetentionPeriod: __expectInt32(output.PerformanceInsightsRetentionPeriod), PreferredBackupWindow: __expectString(output.PreferredBackupWindow), PreferredMaintenanceWindow: __expectString(output.PreferredMaintenanceWindow), ProcessorFeatures: output.ProcessorFeatures !== undefined && output.ProcessorFeatures !== null ? deserializeAws_restJson1AwsRdsDbProcessorFeatures(output.ProcessorFeatures, context) : undefined, - PromotionTier: __expectInt(output.PromotionTier), + PromotionTier: __expectInt32(output.PromotionTier), PubliclyAccessible: __expectBoolean(output.PubliclyAccessible), ReadReplicaDBClusterIdentifiers: output.ReadReplicaDBClusterIdentifiers !== undefined && output.ReadReplicaDBClusterIdentifiers !== null @@ -18404,7 +18405,7 @@ const deserializeAws_restJson1AwsRdsDbInstanceEndpoint = ( return { Address: __expectString(output.Address), HostedZoneId: __expectString(output.HostedZoneId), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -18485,14 +18486,14 @@ const deserializeAws_restJson1AwsRdsDbPendingModifiedValues = ( context: __SerdeContext ): AwsRdsDbPendingModifiedValues => { return { - AllocatedStorage: __expectInt(output.AllocatedStorage), - BackupRetentionPeriod: __expectInt(output.BackupRetentionPeriod), + AllocatedStorage: __expectInt32(output.AllocatedStorage), + BackupRetentionPeriod: __expectInt32(output.BackupRetentionPeriod), CaCertificateIdentifier: __expectString(output.CaCertificateIdentifier), DbInstanceClass: __expectString(output.DbInstanceClass), DbInstanceIdentifier: __expectString(output.DbInstanceIdentifier), DbSubnetGroupName: __expectString(output.DbSubnetGroupName), EngineVersion: __expectString(output.EngineVersion), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), LicenseModel: __expectString(output.LicenseModel), MasterUserPassword: __expectString(output.MasterUserPassword), MultiAZ: __expectBoolean(output.MultiAZ), @@ -18500,7 +18501,7 @@ const deserializeAws_restJson1AwsRdsDbPendingModifiedValues = ( output.PendingCloudWatchLogsExports !== undefined && output.PendingCloudWatchLogsExports !== null ? deserializeAws_restJson1AwsRdsPendingCloudWatchLogsExports(output.PendingCloudWatchLogsExports, context) : undefined, - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), ProcessorFeatures: output.ProcessorFeatures !== undefined && output.ProcessorFeatures !== null ? deserializeAws_restJson1AwsRdsDbProcessorFeatures(output.ProcessorFeatures, context) @@ -18538,7 +18539,7 @@ const deserializeAws_restJson1AwsRdsDbSnapshotDetails = ( context: __SerdeContext ): AwsRdsDbSnapshotDetails => { return { - AllocatedStorage: __expectInt(output.AllocatedStorage), + AllocatedStorage: __expectInt32(output.AllocatedStorage), AvailabilityZone: __expectString(output.AvailabilityZone), DbInstanceIdentifier: __expectString(output.DbInstanceIdentifier), DbSnapshotIdentifier: __expectString(output.DbSnapshotIdentifier), @@ -18548,13 +18549,13 @@ const deserializeAws_restJson1AwsRdsDbSnapshotDetails = ( EngineVersion: __expectString(output.EngineVersion), IamDatabaseAuthenticationEnabled: __expectBoolean(output.IamDatabaseAuthenticationEnabled), InstanceCreateTime: __expectString(output.InstanceCreateTime), - Iops: __expectInt(output.Iops), + Iops: __expectInt32(output.Iops), KmsKeyId: __expectString(output.KmsKeyId), LicenseModel: __expectString(output.LicenseModel), MasterUsername: __expectString(output.MasterUsername), OptionGroupName: __expectString(output.OptionGroupName), - PercentProgress: __expectInt(output.PercentProgress), - Port: __expectInt(output.Port), + PercentProgress: __expectInt32(output.PercentProgress), + Port: __expectInt32(output.Port), ProcessorFeatures: output.ProcessorFeatures !== undefined && output.ProcessorFeatures !== null ? deserializeAws_restJson1AwsRdsDbProcessorFeatures(output.ProcessorFeatures, context) @@ -18793,8 +18794,8 @@ const deserializeAws_restJson1AwsRedshiftClusterClusterSnapshotCopyStatus = ( ): AwsRedshiftClusterClusterSnapshotCopyStatus => { return { DestinationRegion: __expectString(output.DestinationRegion), - ManualSnapshotRetentionPeriod: __expectInt(output.ManualSnapshotRetentionPeriod), - RetentionPeriod: __expectInt(output.RetentionPeriod), + ManualSnapshotRetentionPeriod: __expectInt32(output.ManualSnapshotRetentionPeriod), + RetentionPeriod: __expectInt32(output.RetentionPeriod), SnapshotCopyGrantName: __expectString(output.SnapshotCopyGrantName), } as any; }; @@ -18830,7 +18831,7 @@ const deserializeAws_restJson1AwsRedshiftClusterDetails = ( ): AwsRedshiftClusterDetails => { return { AllowVersionUpgrade: __expectBoolean(output.AllowVersionUpgrade), - AutomatedSnapshotRetentionPeriod: __expectInt(output.AutomatedSnapshotRetentionPeriod), + AutomatedSnapshotRetentionPeriod: __expectInt32(output.AutomatedSnapshotRetentionPeriod), AvailabilityZone: __expectString(output.AvailabilityZone), ClusterAvailabilityStatus: __expectString(output.ClusterAvailabilityStatus), ClusterCreateTime: __expectString(output.ClusterCreateTime), @@ -18887,11 +18888,11 @@ const deserializeAws_restJson1AwsRedshiftClusterDetails = ( : undefined, KmsKeyId: __expectString(output.KmsKeyId), MaintenanceTrackName: __expectString(output.MaintenanceTrackName), - ManualSnapshotRetentionPeriod: __expectInt(output.ManualSnapshotRetentionPeriod), + ManualSnapshotRetentionPeriod: __expectInt32(output.ManualSnapshotRetentionPeriod), MasterUsername: __expectString(output.MasterUsername), NextMaintenanceWindowStartTime: __expectString(output.NextMaintenanceWindowStartTime), NodeType: __expectString(output.NodeType), - NumberOfNodes: __expectInt(output.NumberOfNodes), + NumberOfNodes: __expectInt32(output.NumberOfNodes), PendingActions: output.PendingActions !== undefined && output.PendingActions !== null ? deserializeAws_restJson1StringList(output.PendingActions, context) @@ -18936,7 +18937,7 @@ const deserializeAws_restJson1AwsRedshiftClusterEndpoint = ( ): AwsRedshiftClusterEndpoint => { return { Address: __expectString(output.Address), - Port: __expectInt(output.Port), + Port: __expectInt32(output.Port), } as any; }; @@ -18980,7 +18981,7 @@ const deserializeAws_restJson1AwsRedshiftClusterPendingModifiedValues = ( context: __SerdeContext ): AwsRedshiftClusterPendingModifiedValues => { return { - AutomatedSnapshotRetentionPeriod: __expectInt(output.AutomatedSnapshotRetentionPeriod), + AutomatedSnapshotRetentionPeriod: __expectInt32(output.AutomatedSnapshotRetentionPeriod), ClusterIdentifier: __expectString(output.ClusterIdentifier), ClusterType: __expectString(output.ClusterType), ClusterVersion: __expectString(output.ClusterVersion), @@ -18989,7 +18990,7 @@ const deserializeAws_restJson1AwsRedshiftClusterPendingModifiedValues = ( MaintenanceTrackName: __expectString(output.MaintenanceTrackName), MasterUserPassword: __expectString(output.MasterUserPassword), NodeType: __expectString(output.NodeType), - NumberOfNodes: __expectInt(output.NumberOfNodes), + NumberOfNodes: __expectInt32(output.NumberOfNodes), PubliclyAccessible: __expectBoolean(output.PubliclyAccessible), } as any; }; @@ -19009,11 +19010,11 @@ const deserializeAws_restJson1AwsRedshiftClusterRestoreStatus = ( context: __SerdeContext ): AwsRedshiftClusterRestoreStatus => { return { - CurrentRestoreRateInMegaBytesPerSecond: __limitedParseFloat(output.CurrentRestoreRateInMegaBytesPerSecond), - ElapsedTimeInSeconds: __expectInt(output.ElapsedTimeInSeconds), - EstimatedTimeToCompletionInSeconds: __expectInt(output.EstimatedTimeToCompletionInSeconds), - ProgressInMegaBytes: __expectInt(output.ProgressInMegaBytes), - SnapshotSizeInMegaBytes: __expectInt(output.SnapshotSizeInMegaBytes), + CurrentRestoreRateInMegaBytesPerSecond: __limitedParseDouble(output.CurrentRestoreRateInMegaBytesPerSecond), + ElapsedTimeInSeconds: __expectLong(output.ElapsedTimeInSeconds), + EstimatedTimeToCompletionInSeconds: __expectLong(output.EstimatedTimeToCompletionInSeconds), + ProgressInMegaBytes: __expectLong(output.ProgressInMegaBytes), + SnapshotSizeInMegaBytes: __expectLong(output.SnapshotSizeInMegaBytes), Status: __expectString(output.Status), } as any; }; @@ -19071,7 +19072,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesAbortI context: __SerdeContext ): AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails => { return { - DaysAfterInitiation: __expectInt(output.DaysAfterInitiation), + DaysAfterInitiation: __expectInt32(output.DaysAfterInitiation), } as any; }; @@ -19088,14 +19089,14 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesDetail ) : undefined, ExpirationDate: __expectString(output.ExpirationDate), - ExpirationInDays: __expectInt(output.ExpirationInDays), + ExpirationInDays: __expectInt32(output.ExpirationInDays), ExpiredObjectDeleteMarker: __expectBoolean(output.ExpiredObjectDeleteMarker), Filter: output.Filter !== undefined && output.Filter !== null ? deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails(output.Filter, context) : undefined, ID: __expectString(output.ID), - NoncurrentVersionExpirationInDays: __expectInt(output.NoncurrentVersionExpirationInDays), + NoncurrentVersionExpirationInDays: __expectInt32(output.NoncurrentVersionExpirationInDays), NoncurrentVersionTransitions: output.NoncurrentVersionTransitions !== undefined && output.NoncurrentVersionTransitions !== null ? deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsList( @@ -19227,7 +19228,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesNoncur context: __SerdeContext ): AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails => { return { - Days: __expectInt(output.Days), + Days: __expectInt32(output.Days), StorageClass: __expectString(output.StorageClass), } as any; }; @@ -19255,7 +19256,7 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransi ): AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails => { return { Date: __expectString(output.Date), - Days: __expectInt(output.Days), + Days: __expectInt32(output.Days), StorageClass: __expectString(output.StorageClass), } as any; }; @@ -19386,7 +19387,7 @@ const deserializeAws_restJson1AwsSecretsManagerSecretRotationRules = ( context: __SerdeContext ): AwsSecretsManagerSecretRotationRules => { return { - AutomaticallyAfterDays: __expectInt(output.AutomaticallyAfterDays), + AutomaticallyAfterDays: __expectInt32(output.AutomaticallyAfterDays), } as any; }; @@ -19402,9 +19403,9 @@ const deserializeAws_restJson1AwsSecurityFinding = (output: any, context: __Serd output.Compliance !== undefined && output.Compliance !== null ? deserializeAws_restJson1Compliance(output.Compliance, context) : undefined, - Confidence: __expectInt(output.Confidence), + Confidence: __expectInt32(output.Confidence), CreatedAt: __expectString(output.CreatedAt), - Criticality: __expectInt(output.Criticality), + Criticality: __expectInt32(output.Criticality), Description: __expectString(output.Description), FindingProviderFields: output.FindingProviderFields !== undefined && output.FindingProviderFields !== null @@ -19953,7 +19954,7 @@ const deserializeAws_restJson1AwsSnsTopicSubscriptionList = ( const deserializeAws_restJson1AwsSqsQueueDetails = (output: any, context: __SerdeContext): AwsSqsQueueDetails => { return { DeadLetterTargetArn: __expectString(output.DeadLetterTargetArn), - KmsDataKeyReusePeriodSeconds: __expectInt(output.KmsDataKeyReusePeriodSeconds), + KmsDataKeyReusePeriodSeconds: __expectInt32(output.KmsDataKeyReusePeriodSeconds), KmsMasterKeyId: __expectString(output.KmsMasterKeyId), QueueName: __expectString(output.QueueName), } as any; @@ -19965,19 +19966,19 @@ const deserializeAws_restJson1AwsSsmComplianceSummary = ( ): AwsSsmComplianceSummary => { return { ComplianceType: __expectString(output.ComplianceType), - CompliantCriticalCount: __expectInt(output.CompliantCriticalCount), - CompliantHighCount: __expectInt(output.CompliantHighCount), - CompliantInformationalCount: __expectInt(output.CompliantInformationalCount), - CompliantLowCount: __expectInt(output.CompliantLowCount), - CompliantMediumCount: __expectInt(output.CompliantMediumCount), - CompliantUnspecifiedCount: __expectInt(output.CompliantUnspecifiedCount), + CompliantCriticalCount: __expectInt32(output.CompliantCriticalCount), + CompliantHighCount: __expectInt32(output.CompliantHighCount), + CompliantInformationalCount: __expectInt32(output.CompliantInformationalCount), + CompliantLowCount: __expectInt32(output.CompliantLowCount), + CompliantMediumCount: __expectInt32(output.CompliantMediumCount), + CompliantUnspecifiedCount: __expectInt32(output.CompliantUnspecifiedCount), ExecutionType: __expectString(output.ExecutionType), - NonCompliantCriticalCount: __expectInt(output.NonCompliantCriticalCount), - NonCompliantHighCount: __expectInt(output.NonCompliantHighCount), - NonCompliantInformationalCount: __expectInt(output.NonCompliantInformationalCount), - NonCompliantLowCount: __expectInt(output.NonCompliantLowCount), - NonCompliantMediumCount: __expectInt(output.NonCompliantMediumCount), - NonCompliantUnspecifiedCount: __expectInt(output.NonCompliantUnspecifiedCount), + NonCompliantCriticalCount: __expectInt32(output.NonCompliantCriticalCount), + NonCompliantHighCount: __expectInt32(output.NonCompliantHighCount), + NonCompliantInformationalCount: __expectInt32(output.NonCompliantInformationalCount), + NonCompliantLowCount: __expectInt32(output.NonCompliantLowCount), + NonCompliantMediumCount: __expectInt32(output.NonCompliantMediumCount), + NonCompliantUnspecifiedCount: __expectInt32(output.NonCompliantUnspecifiedCount), OverallSeverity: __expectString(output.OverallSeverity), PatchBaselineId: __expectString(output.PatchBaselineId), PatchGroup: __expectString(output.PatchGroup), @@ -20032,7 +20033,7 @@ const deserializeAws_restJson1AwsWafWebAclRule = (output: any, context: __SerdeC output.OverrideAction !== undefined && output.OverrideAction !== null ? deserializeAws_restJson1WafOverrideAction(output.OverrideAction, context) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), RuleId: __expectString(output.RuleId), Type: __expectString(output.Type), } as any; @@ -20091,9 +20092,9 @@ const deserializeAws_restJson1CategoryList = (output: any, context: __SerdeConte const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cell => { return { CellReference: __expectString(output.CellReference), - Column: __expectInt(output.Column), + Column: __expectLong(output.Column), ColumnName: __expectString(output.ColumnName), - Row: __expectInt(output.Row), + Row: __expectLong(output.Row), } as any; }; @@ -20148,7 +20149,7 @@ const deserializeAws_restJson1ClassificationResult = (output: any, context: __Se output.SensitiveData !== undefined && output.SensitiveData !== null ? deserializeAws_restJson1SensitiveDataResultList(output.SensitiveData, context) : undefined, - SizeClassified: __expectInt(output.SizeClassified), + SizeClassified: __expectLong(output.SizeClassified), Status: output.Status !== undefined && output.Status !== null ? deserializeAws_restJson1ClassificationStatus(output.Status, context) @@ -20199,7 +20200,7 @@ const deserializeAws_restJson1CustomDataIdentifiersDetections = ( ): CustomDataIdentifiersDetections => { return { Arn: __expectString(output.Arn), - Count: __expectInt(output.Count), + Count: __expectLong(output.Count), Name: __expectString(output.Name), Occurrences: output.Occurrences !== undefined && output.Occurrences !== null @@ -20231,13 +20232,13 @@ const deserializeAws_restJson1CustomDataIdentifiersResult = ( output.Detections !== undefined && output.Detections !== null ? deserializeAws_restJson1CustomDataIdentifiersDetectionsList(output.Detections, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectLong(output.TotalCount), } as any; }; const deserializeAws_restJson1Cvss = (output: any, context: __SerdeContext): Cvss => { return { - BaseScore: __limitedParseFloat(output.BaseScore), + BaseScore: __limitedParseDouble(output.BaseScore), BaseVector: __expectString(output.BaseVector), Version: __expectString(output.Version), } as any; @@ -20292,7 +20293,7 @@ const deserializeAws_restJson1DateFilterList = (output: any, context: __SerdeCon const deserializeAws_restJson1DateRange = (output: any, context: __SerdeContext): DateRange => { return { Unit: __expectString(output.Unit), - Value: __expectInt(output.Value), + Value: __expectInt32(output.Value), } as any; }; @@ -20318,8 +20319,8 @@ const deserializeAws_restJson1FieldMap = (output: any, context: __SerdeContext): const deserializeAws_restJson1FindingProviderFields = (output: any, context: __SerdeContext): FindingProviderFields => { return { - Confidence: __expectInt(output.Confidence), - Criticality: __expectInt(output.Criticality), + Confidence: __expectInt32(output.Confidence), + Criticality: __expectInt32(output.Criticality), RelatedFindings: output.RelatedFindings !== undefined && output.RelatedFindings !== null ? deserializeAws_restJson1RelatedFindingList(output.RelatedFindings, context) @@ -20347,15 +20348,15 @@ const deserializeAws_restJson1FindingProviderSeverity = ( const deserializeAws_restJson1GeoLocation = (output: any, context: __SerdeContext): GeoLocation => { return { - Lat: __limitedParseFloat(output.Lat), - Lon: __limitedParseFloat(output.Lon), + Lat: __limitedParseDouble(output.Lat), + Lon: __limitedParseDouble(output.Lon), } as any; }; const deserializeAws_restJson1IcmpTypeCode = (output: any, context: __SerdeContext): IcmpTypeCode => { return { - Code: __expectInt(output.Code), - Type: __expectInt(output.Type), + Code: __expectInt32(output.Code), + Type: __expectInt32(output.Type), } as any; }; @@ -20417,7 +20418,7 @@ const deserializeAws_restJson1InsightResults = (output: any, context: __SerdeCon const deserializeAws_restJson1InsightResultValue = (output: any, context: __SerdeContext): InsightResultValue => { return { - Count: __expectInt(output.Count), + Count: __expectInt32(output.Count), GroupByAttributeValue: __expectString(output.GroupByAttributeValue), } as any; }; @@ -20486,7 +20487,7 @@ const deserializeAws_restJson1IpFilterList = (output: any, context: __SerdeConte const deserializeAws_restJson1IpOrganizationDetails = (output: any, context: __SerdeContext): IpOrganizationDetails => { return { - Asn: __expectInt(output.Asn), + Asn: __expectInt32(output.Asn), AsnOrg: __expectString(output.AsnOrg), Isp: __expectString(output.Isp), Org: __expectString(output.Org), @@ -20609,7 +20610,7 @@ const deserializeAws_restJson1Network = (output: any, context: __SerdeContext): DestinationDomain: __expectString(output.DestinationDomain), DestinationIpV4: __expectString(output.DestinationIpV4), DestinationIpV6: __expectString(output.DestinationIpV6), - DestinationPort: __expectInt(output.DestinationPort), + DestinationPort: __expectInt32(output.DestinationPort), Direction: __expectString(output.Direction), OpenPortRange: output.OpenPortRange !== undefined && output.OpenPortRange !== null @@ -20620,7 +20621,7 @@ const deserializeAws_restJson1Network = (output: any, context: __SerdeContext): SourceIpV4: __expectString(output.SourceIpV4), SourceIpV6: __expectString(output.SourceIpV6), SourceMac: __expectString(output.SourceMac), - SourcePort: __expectInt(output.SourcePort), + SourcePort: __expectInt32(output.SourcePort), } as any; }; @@ -20724,9 +20725,9 @@ const deserializeAws_restJson1Note = (output: any, context: __SerdeContext): Not const deserializeAws_restJson1NumberFilter = (output: any, context: __SerdeContext): NumberFilter => { return { - Eq: __limitedParseFloat(output.Eq), - Gte: __limitedParseFloat(output.Gte), - Lte: __limitedParseFloat(output.Lte), + Eq: __limitedParseDouble(output.Eq), + Gte: __limitedParseDouble(output.Gte), + Lte: __limitedParseDouble(output.Lte), } as any; }; @@ -20776,7 +20777,7 @@ const deserializeAws_restJson1Page = (output: any, context: __SerdeContext): Pag output.OffsetRange !== undefined && output.OffsetRange !== null ? deserializeAws_restJson1Range(output.OffsetRange, context) : undefined, - PageNumber: __expectInt(output.PageNumber), + PageNumber: __expectLong(output.PageNumber), } as any; }; @@ -20793,13 +20794,13 @@ const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): Pa const deserializeAws_restJson1PatchSummary = (output: any, context: __SerdeContext): PatchSummary => { return { - FailedCount: __expectInt(output.FailedCount), + FailedCount: __expectInt32(output.FailedCount), Id: __expectString(output.Id), - InstalledCount: __expectInt(output.InstalledCount), - InstalledOtherCount: __expectInt(output.InstalledOtherCount), - InstalledPendingReboot: __expectInt(output.InstalledPendingReboot), - InstalledRejectedCount: __expectInt(output.InstalledRejectedCount), - MissingCount: __expectInt(output.MissingCount), + InstalledCount: __expectInt32(output.InstalledCount), + InstalledOtherCount: __expectInt32(output.InstalledOtherCount), + InstalledPendingReboot: __expectInt32(output.InstalledPendingReboot), + InstalledRejectedCount: __expectInt32(output.InstalledRejectedCount), + MissingCount: __expectInt32(output.MissingCount), Operation: __expectString(output.Operation), OperationEndTime: __expectString(output.OperationEndTime), OperationStartTime: __expectString(output.OperationStartTime), @@ -20847,15 +20848,15 @@ const deserializeAws_restJson1PortProbeDetailList = (output: any, context: __Ser const deserializeAws_restJson1PortRange = (output: any, context: __SerdeContext): PortRange => { return { - Begin: __expectInt(output.Begin), - End: __expectInt(output.End), + Begin: __expectInt32(output.Begin), + End: __expectInt32(output.End), } as any; }; const deserializeAws_restJson1PortRangeFromTo = (output: any, context: __SerdeContext): PortRangeFromTo => { return { - From: __expectInt(output.From), - To: __expectInt(output.To), + From: __expectInt32(output.From), + To: __expectInt32(output.To), } as any; }; @@ -20874,9 +20875,9 @@ const deserializeAws_restJson1ProcessDetails = (output: any, context: __SerdeCon return { LaunchedAt: __expectString(output.LaunchedAt), Name: __expectString(output.Name), - ParentPid: __expectInt(output.ParentPid), + ParentPid: __expectInt32(output.ParentPid), Path: __expectString(output.Path), - Pid: __expectInt(output.Pid), + Pid: __expectInt32(output.Pid), TerminatedAt: __expectString(output.TerminatedAt), } as any; }; @@ -20925,9 +20926,9 @@ const deserializeAws_restJson1ProductSubscriptionArnList = (output: any, context const deserializeAws_restJson1Range = (output: any, context: __SerdeContext): Range => { return { - End: __expectInt(output.End), - Start: __expectInt(output.Start), - StartColumn: __expectInt(output.StartColumn), + End: __expectLong(output.End), + Start: __expectLong(output.Start), + StartColumn: __expectLong(output.StartColumn), } as any; }; @@ -20952,7 +20953,7 @@ const deserializeAws_restJson1Recommendation = (output: any, context: __SerdeCon const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): _Record => { return { JsonPath: __expectString(output.JsonPath), - RecordIndex: __expectInt(output.RecordIndex), + RecordIndex: __expectLong(output.RecordIndex), } as any; }; @@ -21276,7 +21277,7 @@ const deserializeAws_restJson1SensitiveDataDetections = ( context: __SerdeContext ): SensitiveDataDetections => { return { - Count: __expectInt(output.Count), + Count: __expectLong(output.Count), Occurrences: output.Occurrences !== undefined && output.Occurrences !== null ? deserializeAws_restJson1Occurrences(output.Occurrences, context) @@ -21306,7 +21307,7 @@ const deserializeAws_restJson1SensitiveDataResult = (output: any, context: __Ser output.Detections !== undefined && output.Detections !== null ? deserializeAws_restJson1SensitiveDataDetectionsList(output.Detections, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectLong(output.TotalCount), } as any; }; @@ -21327,9 +21328,9 @@ const deserializeAws_restJson1SensitiveDataResultList = ( const deserializeAws_restJson1Severity = (output: any, context: __SerdeContext): Severity => { return { Label: __expectString(output.Label), - Normalized: __expectInt(output.Normalized), + Normalized: __expectInt32(output.Normalized), Original: __expectString(output.Original), - Product: __limitedParseFloat(output.Product), + Product: __limitedParseDouble(output.Product), } as any; }; diff --git a/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1.ts b/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1.ts index 98882cabc05a1..7d885e6602063 100644 --- a/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1.ts +++ b/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1.ts @@ -58,7 +58,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -2432,10 +2432,10 @@ const deserializeAws_restJson1ParameterDefinition = (output: any, context: __Ser ConstraintDescription: __expectString(output.constraintDescription), DefaultValue: __expectString(output.defaultValue), Description: __expectString(output.description), - MaxLength: __expectInt(output.maxLength), - MaxValue: __expectInt(output.maxValue), - MinLength: __expectInt(output.minLength), - MinValue: __expectInt(output.minValue), + MaxLength: __expectInt32(output.maxLength), + MaxValue: __expectInt32(output.maxValue), + MinLength: __expectInt32(output.minLength), + MinValue: __expectInt32(output.minValue), Name: __expectString(output.name), NoEcho: __expectBoolean(output.noEcho), ReferencedByResources: diff --git a/clients/client-service-catalog-appregistry/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/protocols/Aws_restJson1.ts index 72bade29fc56a..c055f7a5f6fab 100644 --- a/clients/client-service-catalog-appregistry/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/protocols/Aws_restJson1.ts @@ -62,7 +62,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1362,7 +1362,7 @@ export const deserializeAws_restJson1GetApplicationCommand = async ( contents.arn = __expectString(data.arn); } if (data.associatedResourceCount !== undefined && data.associatedResourceCount !== null) { - contents.associatedResourceCount = __expectInt(data.associatedResourceCount); + contents.associatedResourceCount = __expectInt32(data.associatedResourceCount); } if (data.creationTime !== undefined && data.creationTime !== null) { contents.creationTime = new Date(data.creationTime); diff --git a/clients/client-service-catalog/protocols/Aws_json1_1.ts b/clients/client-service-catalog/protocols/Aws_json1_1.ts index 3ff9554269f22..a026af72fa0ad 100644 --- a/clients/client-service-catalog/protocols/Aws_json1_1.ts +++ b/clients/client-service-catalog/protocols/Aws_json1_1.ts @@ -518,7 +518,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -10254,7 +10254,7 @@ const deserializeAws_json1_1ProductViewAggregationValue = ( context: __SerdeContext ): ProductViewAggregationValue => { return { - ApproximateCount: __expectInt(output.ApproximateCount), + ApproximateCount: __expectInt32(output.ApproximateCount), Value: __expectString(output.Value), } as any; }; @@ -10969,7 +10969,7 @@ const deserializeAws_json1_1SearchProvisionedProductsOutput = ( output.ProvisionedProducts !== undefined && output.ProvisionedProducts !== null ? deserializeAws_json1_1ProvisionedProductAttributes(output.ProvisionedProducts, context) : undefined, - TotalResultsCount: __expectInt(output.TotalResultsCount), + TotalResultsCount: __expectInt32(output.TotalResultsCount), } as any; }; diff --git a/clients/client-service-quotas/protocols/Aws_json1_1.ts b/clients/client-service-quotas/protocols/Aws_json1_1.ts index 66941220290cd..9af8f56a24993 100644 --- a/clients/client-service-quotas/protocols/Aws_json1_1.ts +++ b/clients/client-service-quotas/protocols/Aws_json1_1.ts @@ -127,9 +127,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -3092,7 +3092,7 @@ const deserializeAws_json1_1QuotaExceededException = (output: any, context: __Se const deserializeAws_json1_1QuotaPeriod = (output: any, context: __SerdeContext): QuotaPeriod => { return { PeriodUnit: __expectString(output.PeriodUnit), - PeriodValue: __expectInt(output.PeriodValue), + PeriodValue: __expectInt32(output.PeriodValue), } as any; }; @@ -3104,7 +3104,7 @@ const deserializeAws_json1_1RequestedServiceQuotaChange = ( CaseId: __expectString(output.CaseId), Created: output.Created !== undefined && output.Created !== null ? new Date(Math.round(output.Created * 1000)) : undefined, - DesiredValue: __limitedParseFloat(output.DesiredValue), + DesiredValue: __limitedParseDouble(output.DesiredValue), GlobalQuota: __expectBoolean(output.GlobalQuota), Id: __expectString(output.Id), LastUpdated: @@ -3203,7 +3203,7 @@ const deserializeAws_json1_1ServiceQuota = (output: any, context: __SerdeContext output.UsageMetric !== undefined && output.UsageMetric !== null ? deserializeAws_json1_1MetricInfo(output.UsageMetric, context) : undefined, - Value: __limitedParseFloat(output.Value), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -3213,7 +3213,7 @@ const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate = ( ): ServiceQuotaIncreaseRequestInTemplate => { return { AwsRegion: __expectString(output.AwsRegion), - DesiredValue: __limitedParseFloat(output.DesiredValue), + DesiredValue: __limitedParseDouble(output.DesiredValue), GlobalQuota: __expectBoolean(output.GlobalQuota), QuotaCode: __expectString(output.QuotaCode), QuotaName: __expectString(output.QuotaName), diff --git a/clients/client-servicediscovery/protocols/Aws_json1_1.ts b/clients/client-servicediscovery/protocols/Aws_json1_1.ts index 3a412f74a0054..b14de95ffae48 100644 --- a/clients/client-servicediscovery/protocols/Aws_json1_1.ts +++ b/clients/client-servicediscovery/protocols/Aws_json1_1.ts @@ -160,7 +160,11 @@ import { HttpResponse as __HttpResponse, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectString as __expectString, +} from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -3286,7 +3290,7 @@ const deserializeAws_json1_1DnsProperties = (output: any, context: __SerdeContex const deserializeAws_json1_1DnsRecord = (output: any, context: __SerdeContext): DnsRecord => { return { - TTL: __expectInt(output.TTL), + TTL: __expectLong(output.TTL), Type: __expectString(output.Type), } as any; }; @@ -3360,7 +3364,7 @@ const deserializeAws_json1_1GetServiceResponse = (output: any, context: __SerdeC const deserializeAws_json1_1HealthCheckConfig = (output: any, context: __SerdeContext): HealthCheckConfig => { return { - FailureThreshold: __expectInt(output.FailureThreshold), + FailureThreshold: __expectInt32(output.FailureThreshold), ResourcePath: __expectString(output.ResourcePath), Type: __expectString(output.Type), } as any; @@ -3371,7 +3375,7 @@ const deserializeAws_json1_1HealthCheckCustomConfig = ( context: __SerdeContext ): HealthCheckCustomConfig => { return { - FailureThreshold: __expectInt(output.FailureThreshold), + FailureThreshold: __expectInt32(output.FailureThreshold), } as any; }; @@ -3531,7 +3535,7 @@ const deserializeAws_json1_1Namespace = (output: any, context: __SerdeContext): output.Properties !== undefined && output.Properties !== null ? deserializeAws_json1_1NamespaceProperties(output.Properties, context) : undefined, - ServiceCount: __expectInt(output.ServiceCount), + ServiceCount: __expectInt32(output.ServiceCount), Type: __expectString(output.Type), } as any; }; @@ -3588,7 +3592,7 @@ const deserializeAws_json1_1NamespaceSummary = (output: any, context: __SerdeCon output.Properties !== undefined && output.Properties !== null ? deserializeAws_json1_1NamespaceProperties(output.Properties, context) : undefined, - ServiceCount: __expectInt(output.ServiceCount), + ServiceCount: __expectInt32(output.ServiceCount), Type: __expectString(output.Type), } as any; }; @@ -3712,7 +3716,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context) : undefined, Id: __expectString(output.Id), - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), Name: __expectString(output.Name), NamespaceId: __expectString(output.NamespaceId), Type: __expectString(output.Type), @@ -3765,7 +3769,7 @@ const deserializeAws_json1_1ServiceSummary = (output: any, context: __SerdeConte ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context) : undefined, Id: __expectString(output.Id), - InstanceCount: __expectInt(output.InstanceCount), + InstanceCount: __expectInt32(output.InstanceCount), Name: __expectString(output.Name), Type: __expectString(output.Type), } as any; @@ -3773,7 +3777,7 @@ const deserializeAws_json1_1ServiceSummary = (output: any, context: __SerdeConte const deserializeAws_json1_1SOA = (output: any, context: __SerdeContext): SOA => { return { - TTL: __expectInt(output.TTL), + TTL: __expectLong(output.TTL), } as any; }; diff --git a/clients/client-ses/protocols/Aws_query.ts b/clients/client-ses/protocols/Aws_query.ts index 5fb55370ecc1d..7e9632c28b406 100644 --- a/clients/client-ses/protocols/Aws_query.ts +++ b/clients/client-ses/protocols/Aws_query.ts @@ -436,7 +436,7 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -9888,16 +9888,16 @@ const deserializeAws_querySendDataPoint = (output: any, context: __SerdeContext) contents.Timestamp = new Date(output["Timestamp"]); } if (output["DeliveryAttempts"] !== undefined) { - contents.DeliveryAttempts = __strictParseInt(output["DeliveryAttempts"]) as number; + contents.DeliveryAttempts = __strictParseLong(output["DeliveryAttempts"]) as number; } if (output["Bounces"] !== undefined) { - contents.Bounces = __strictParseInt(output["Bounces"]) as number; + contents.Bounces = __strictParseLong(output["Bounces"]) as number; } if (output["Complaints"] !== undefined) { - contents.Complaints = __strictParseInt(output["Complaints"]) as number; + contents.Complaints = __strictParseLong(output["Complaints"]) as number; } if (output["Rejects"] !== undefined) { - contents.Rejects = __strictParseInt(output["Rejects"]) as number; + contents.Rejects = __strictParseLong(output["Rejects"]) as number; } return contents; }; diff --git a/clients/client-sesv2/protocols/Aws_restJson1.ts b/clients/client-sesv2/protocols/Aws_restJson1.ts index a41f54d106789..da335a9a1decb 100644 --- a/clients/client-sesv2/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/protocols/Aws_restJson1.ts @@ -334,10 +334,11 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -6015,7 +6016,7 @@ export const deserializeAws_restJson1GetImportJobCommand = async ( contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000)); } if (data.FailedRecordsCount !== undefined && data.FailedRecordsCount !== null) { - contents.FailedRecordsCount = __expectInt(data.FailedRecordsCount); + contents.FailedRecordsCount = __expectInt32(data.FailedRecordsCount); } if (data.FailureInfo !== undefined && data.FailureInfo !== null) { contents.FailureInfo = deserializeAws_restJson1FailureInfo(data.FailureInfo, context); @@ -6033,7 +6034,7 @@ export const deserializeAws_restJson1GetImportJobCommand = async ( contents.JobStatus = __expectString(data.JobStatus); } if (data.ProcessedRecordsCount !== undefined && data.ProcessedRecordsCount !== null) { - contents.ProcessedRecordsCount = __expectInt(data.ProcessedRecordsCount); + contents.ProcessedRecordsCount = __expectInt32(data.ProcessedRecordsCount); } return Promise.resolve(contents); }; @@ -10130,7 +10131,7 @@ const deserializeAws_restJson1DedicatedIp = (output: any, context: __SerdeContex return { Ip: __expectString(output.Ip), PoolName: __expectString(output.PoolName), - WarmupPercentage: __expectInt(output.WarmupPercentage), + WarmupPercentage: __expectInt32(output.WarmupPercentage), WarmupStatus: __expectString(output.WarmupStatus), } as any; }; @@ -10213,7 +10214,7 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = ( ): DomainDeliverabilityCampaign => { return { CampaignId: __expectString(output.CampaignId), - DeleteRate: __limitedParseFloat(output.DeleteRate), + DeleteRate: __limitedParseDouble(output.DeleteRate), Esps: output.Esps !== undefined && output.Esps !== null ? deserializeAws_restJson1Esps(output.Esps, context) @@ -10224,19 +10225,19 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = ( : undefined, FromAddress: __expectString(output.FromAddress), ImageUrl: __expectString(output.ImageUrl), - InboxCount: __expectInt(output.InboxCount), + InboxCount: __expectLong(output.InboxCount), LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null ? new Date(Math.round(output.LastSeenDateTime * 1000)) : undefined, - ProjectedVolume: __expectInt(output.ProjectedVolume), - ReadDeleteRate: __limitedParseFloat(output.ReadDeleteRate), - ReadRate: __limitedParseFloat(output.ReadRate), + ProjectedVolume: __expectLong(output.ProjectedVolume), + ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate), + ReadRate: __limitedParseDouble(output.ReadRate), SendingIps: output.SendingIps !== undefined && output.SendingIps !== null ? deserializeAws_restJson1IpList(output.SendingIps, context) : undefined, - SpamCount: __expectInt(output.SpamCount), + SpamCount: __expectLong(output.SpamCount), Subject: __expectString(output.Subject), } as any; }; @@ -10288,11 +10289,11 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = ( const deserializeAws_restJson1DomainIspPlacement = (output: any, context: __SerdeContext): DomainIspPlacement => { return { - InboxPercentage: __limitedParseFloat(output.InboxPercentage), - InboxRawCount: __expectInt(output.InboxRawCount), + InboxPercentage: __limitedParseDouble(output.InboxPercentage), + InboxRawCount: __expectLong(output.InboxRawCount), IspName: __expectString(output.IspName), - SpamPercentage: __limitedParseFloat(output.SpamPercentage), - SpamRawCount: __expectInt(output.SpamRawCount), + SpamPercentage: __limitedParseDouble(output.SpamPercentage), + SpamRawCount: __expectLong(output.SpamRawCount), } as any; }; @@ -10584,7 +10585,7 @@ const deserializeAws_restJson1OverallVolume = (output: any, context: __SerdeCont output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context) : undefined, - ReadRatePercent: __limitedParseFloat(output.ReadRatePercent), + ReadRatePercent: __limitedParseDouble(output.ReadRatePercent), VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context) @@ -10600,11 +10601,11 @@ const deserializeAws_restJson1PinpointDestination = (output: any, context: __Ser const deserializeAws_restJson1PlacementStatistics = (output: any, context: __SerdeContext): PlacementStatistics => { return { - DkimPercentage: __limitedParseFloat(output.DkimPercentage), - InboxPercentage: __limitedParseFloat(output.InboxPercentage), - MissingPercentage: __limitedParseFloat(output.MissingPercentage), - SpamPercentage: __limitedParseFloat(output.SpamPercentage), - SpfPercentage: __limitedParseFloat(output.SpfPercentage), + DkimPercentage: __limitedParseDouble(output.DkimPercentage), + InboxPercentage: __limitedParseDouble(output.InboxPercentage), + MissingPercentage: __limitedParseDouble(output.MissingPercentage), + SpamPercentage: __limitedParseDouble(output.SpamPercentage), + SpfPercentage: __limitedParseDouble(output.SpfPercentage), } as any; }; @@ -10645,9 +10646,9 @@ const deserializeAws_restJson1SendingOptions = (output: any, context: __SerdeCon const deserializeAws_restJson1SendQuota = (output: any, context: __SerdeContext): SendQuota => { return { - Max24HourSend: __limitedParseFloat(output.Max24HourSend), - MaxSendRate: __limitedParseFloat(output.MaxSendRate), - SentLast24Hours: __limitedParseFloat(output.SentLast24Hours), + Max24HourSend: __limitedParseDouble(output.Max24HourSend), + MaxSendRate: __limitedParseDouble(output.MaxSendRate), + SentLast24Hours: __limitedParseDouble(output.SentLast24Hours), } as any; }; @@ -10815,10 +10816,10 @@ const deserializeAws_restJson1TrackingOptions = (output: any, context: __SerdeCo const deserializeAws_restJson1VolumeStatistics = (output: any, context: __SerdeContext): VolumeStatistics => { return { - InboxRawCount: __expectInt(output.InboxRawCount), - ProjectedInbox: __expectInt(output.ProjectedInbox), - ProjectedSpam: __expectInt(output.ProjectedSpam), - SpamRawCount: __expectInt(output.SpamRawCount), + InboxRawCount: __expectLong(output.InboxRawCount), + ProjectedInbox: __expectLong(output.ProjectedInbox), + ProjectedSpam: __expectLong(output.ProjectedSpam), + SpamRawCount: __expectLong(output.SpamRawCount), } as any; }; diff --git a/clients/client-sfn/protocols/Aws_json1_0.ts b/clients/client-sfn/protocols/Aws_json1_0.ts index 3a5fcff7afdd5..35eeebf2ab42e 100644 --- a/clients/client-sfn/protocols/Aws_json1_0.ts +++ b/clients/client-sfn/protocols/Aws_json1_0.ts @@ -153,7 +153,8 @@ import { } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -2807,14 +2808,14 @@ const deserializeAws_json1_0ActivityScheduledEventDetails = ( context: __SerdeContext ): ActivityScheduledEventDetails => { return { - heartbeatInSeconds: __expectInt(output.heartbeatInSeconds), + heartbeatInSeconds: __expectLong(output.heartbeatInSeconds), input: __expectString(output.input), inputDetails: output.inputDetails !== undefined && output.inputDetails !== null ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined, resource: __expectString(output.resource), - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + timeoutInSeconds: __expectLong(output.timeoutInSeconds), } as any; }; @@ -2871,8 +2872,8 @@ const deserializeAws_json1_0ActivityWorkerLimitExceeded = ( const deserializeAws_json1_0BillingDetails = (output: any, context: __SerdeContext): BillingDetails => { return { - billedDurationInMilliseconds: __expectInt(output.billedDurationInMilliseconds), - billedMemoryUsedInMB: __expectInt(output.billedMemoryUsedInMB), + billedDurationInMilliseconds: __expectLong(output.billedDurationInMilliseconds), + billedMemoryUsedInMB: __expectLong(output.billedMemoryUsedInMB), } as any; }; @@ -3186,7 +3187,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext output.executionTimedOutEventDetails !== undefined && output.executionTimedOutEventDetails !== null ? deserializeAws_json1_0ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context) : undefined, - id: __expectInt(output.id), + id: __expectLong(output.id), lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails !== undefined && output.lambdaFunctionFailedEventDetails !== null ? deserializeAws_json1_0LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context) @@ -3239,7 +3240,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext output.mapStateStartedEventDetails !== undefined && output.mapStateStartedEventDetails !== null ? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context) : undefined, - previousEventId: __expectInt(output.previousEventId), + previousEventId: __expectLong(output.previousEventId), stateEnteredEventDetails: output.stateEnteredEventDetails !== undefined && output.stateEnteredEventDetails !== null ? deserializeAws_json1_0StateEnteredEventDetails(output.stateEnteredEventDetails, context) @@ -3383,7 +3384,7 @@ const deserializeAws_json1_0LambdaFunctionScheduledEventDetails = ( ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined, resource: __expectString(output.resource), - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + timeoutInSeconds: __expectLong(output.timeoutInSeconds), } as any; }; @@ -3511,7 +3512,7 @@ const deserializeAws_json1_0MapIterationEventDetails = ( context: __SerdeContext ): MapIterationEventDetails => { return { - index: __expectInt(output.index), + index: __expectInt32(output.index), name: __expectString(output.name), } as any; }; @@ -3521,7 +3522,7 @@ const deserializeAws_json1_0MapStateStartedEventDetails = ( context: __SerdeContext ): MapStateStartedEventDetails => { return { - length: __expectInt(output.length), + length: __expectInt32(output.length), } as any; }; @@ -3747,12 +3748,12 @@ const deserializeAws_json1_0TaskScheduledEventDetails = ( context: __SerdeContext ): TaskScheduledEventDetails => { return { - heartbeatInSeconds: __expectInt(output.heartbeatInSeconds), + heartbeatInSeconds: __expectLong(output.heartbeatInSeconds), parameters: __expectString(output.parameters), region: __expectString(output.region), resource: __expectString(output.resource), resourceType: __expectString(output.resourceType), - timeoutInSeconds: __expectInt(output.timeoutInSeconds), + timeoutInSeconds: __expectLong(output.timeoutInSeconds), } as any; }; diff --git a/clients/client-shield/protocols/Aws_json1_1.ts b/clients/client-shield/protocols/Aws_json1_1.ts index 104e4d06056e8..1eff08833edec 100644 --- a/clients/client-shield/protocols/Aws_json1_1.ts +++ b/clients/client-shield/protocols/Aws_json1_1.ts @@ -199,9 +199,10 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3814,7 +3815,7 @@ const deserializeAws_json1_1AttackProperty = (output: any, context: __SerdeConte output.TopContributors !== undefined && output.TopContributors !== null ? deserializeAws_json1_1TopContributors(output.TopContributors, context) : undefined, - Total: __expectInt(output.Total), + Total: __expectLong(output.Total), Unit: __expectString(output.Unit), } as any; }; @@ -3824,7 +3825,7 @@ const deserializeAws_json1_1AttackStatisticsDataItem = ( context: __SerdeContext ): AttackStatisticsDataItem => { return { - AttackCount: __expectInt(output.AttackCount), + AttackCount: __expectLong(output.AttackCount), AttackVolume: output.AttackVolume !== undefined && output.AttackVolume !== null ? deserializeAws_json1_1AttackVolume(output.AttackVolume, context) @@ -3916,14 +3917,14 @@ const deserializeAws_json1_1AttackVolume = (output: any, context: __SerdeContext const deserializeAws_json1_1AttackVolumeStatistics = (output: any, context: __SerdeContext): AttackVolumeStatistics => { return { - Max: __limitedParseFloat(output.Max), + Max: __limitedParseDouble(output.Max), } as any; }; const deserializeAws_json1_1Contributor = (output: any, context: __SerdeContext): Contributor => { return { Name: __expectString(output.Name), - Value: __expectInt(output.Value), + Value: __expectLong(output.Value), } as any; }; @@ -4180,7 +4181,7 @@ const deserializeAws_json1_1InvalidResourceException = ( const deserializeAws_json1_1Limit = (output: any, context: __SerdeContext): Limit => { return { - Max: __expectInt(output.Max), + Max: __expectLong(output.Max), Type: __expectString(output.Type), } as any; }; @@ -4201,7 +4202,7 @@ const deserializeAws_json1_1LimitsExceededException = ( context: __SerdeContext ): LimitsExceededException => { return { - Limit: __expectInt(output.Limit), + Limit: __expectLong(output.Limit), Type: __expectString(output.Type), message: __expectString(output.message), } as any; @@ -4355,13 +4356,13 @@ const deserializeAws_json1_1ProtectionGroupArbitraryPatternLimits = ( context: __SerdeContext ): ProtectionGroupArbitraryPatternLimits => { return { - MaxMembers: __expectInt(output.MaxMembers), + MaxMembers: __expectLong(output.MaxMembers), } as any; }; const deserializeAws_json1_1ProtectionGroupLimits = (output: any, context: __SerdeContext): ProtectionGroupLimits => { return { - MaxProtectionGroups: __expectInt(output.MaxProtectionGroups), + MaxProtectionGroups: __expectLong(output.MaxProtectionGroups), PatternTypeLimits: output.PatternTypeLimits !== undefined && output.PatternTypeLimits !== null ? deserializeAws_json1_1ProtectionGroupPatternTypeLimits(output.PatternTypeLimits, context) @@ -4499,7 +4500,7 @@ const deserializeAws_json1_1Subscription = (output: any, context: __SerdeContext output.SubscriptionLimits !== undefined && output.SubscriptionLimits !== null ? deserializeAws_json1_1SubscriptionLimits(output.SubscriptionLimits, context) : undefined, - TimeCommitmentInSeconds: __expectInt(output.TimeCommitmentInSeconds), + TimeCommitmentInSeconds: __expectLong(output.TimeCommitmentInSeconds), } as any; }; @@ -4542,11 +4543,11 @@ const deserializeAws_json1_1SummarizedAttackVectorList = ( const deserializeAws_json1_1SummarizedCounter = (output: any, context: __SerdeContext): SummarizedCounter => { return { - Average: __limitedParseFloat(output.Average), - Max: __limitedParseFloat(output.Max), - N: __expectInt(output.N), + Average: __limitedParseDouble(output.Average), + Max: __limitedParseDouble(output.Max), + N: __expectInt32(output.N), Name: __expectString(output.Name), - Sum: __limitedParseFloat(output.Sum), + Sum: __limitedParseDouble(output.Sum), Unit: __expectString(output.Unit), } as any; }; diff --git a/clients/client-signer/protocols/Aws_restJson1.ts b/clients/client-signer/protocols/Aws_restJson1.ts index 7c4d1acd53812..8bfdef7f2a382 100644 --- a/clients/client-signer/protocols/Aws_restJson1.ts +++ b/clients/client-signer/protocols/Aws_restJson1.ts @@ -77,7 +77,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1018,7 +1018,7 @@ export const deserializeAws_restJson1GetSigningPlatformCommand = async ( contents.displayName = __expectString(data.displayName); } if (data.maxSizeInMB !== undefined && data.maxSizeInMB !== null) { - contents.maxSizeInMB = __expectInt(data.maxSizeInMB); + contents.maxSizeInMB = __expectInt32(data.maxSizeInMB); } if (data.partner !== undefined && data.partner !== null) { contents.partner = __expectString(data.partner); @@ -1258,7 +1258,7 @@ export const deserializeAws_restJson1ListProfilePermissionsCommand = async ( contents.permissions = deserializeAws_restJson1Permissions(data.permissions, context); } if (data.policySizeBytes !== undefined && data.policySizeBytes !== null) { - contents.policySizeBytes = __expectInt(data.policySizeBytes); + contents.policySizeBytes = __expectInt32(data.policySizeBytes); } if (data.revisionId !== undefined && data.revisionId !== null) { contents.revisionId = __expectString(data.revisionId); @@ -2663,7 +2663,7 @@ const deserializeAws_restJson1SignatureValidityPeriod = ( ): SignatureValidityPeriod => { return { type: __expectString(output.type), - value: __expectInt(output.value), + value: __expectInt32(output.value), } as any; }; @@ -2790,7 +2790,7 @@ const deserializeAws_restJson1SigningPlatform = (output: any, context: __SerdeCo return { category: __expectString(output.category), displayName: __expectString(output.displayName), - maxSizeInMB: __expectInt(output.maxSizeInMB), + maxSizeInMB: __expectInt32(output.maxSizeInMB), partner: __expectString(output.partner), platformId: __expectString(output.platformId), revocationSupported: __expectBoolean(output.revocationSupported), diff --git a/clients/client-sms/protocols/Aws_json1_1.ts b/clients/client-sms/protocols/Aws_json1_1.ts index d9e35877d22e6..d586a25c2d1b1 100644 --- a/clients/client-sms/protocols/Aws_json1_1.ts +++ b/clients/client-sms/protocols/Aws_json1_1.ts @@ -210,7 +210,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -4666,8 +4666,8 @@ const deserializeAws_json1_1AppSummary = (output: any, context: __SerdeContext): roleName: __expectString(output.roleName), status: __expectString(output.status), statusMessage: __expectString(output.statusMessage), - totalServerGroups: __expectInt(output.totalServerGroups), - totalServers: __expectInt(output.totalServers), + totalServerGroups: __expectInt32(output.totalServerGroups), + totalServers: __expectInt32(output.totalServers), } as any; }; @@ -5097,7 +5097,7 @@ const deserializeAws_json1_1ReplicationJob = (output: any, context: __SerdeConte return { description: __expectString(output.description), encrypted: __expectBoolean(output.encrypted), - frequency: __expectInt(output.frequency), + frequency: __expectInt32(output.frequency), kmsKeyId: __expectString(output.kmsKeyId), latestAmiId: __expectString(output.latestAmiId), licenseType: __expectString(output.licenseType), @@ -5105,7 +5105,7 @@ const deserializeAws_json1_1ReplicationJob = (output: any, context: __SerdeConte output.nextReplicationRunStartTime !== undefined && output.nextReplicationRunStartTime !== null ? new Date(Math.round(output.nextReplicationRunStartTime * 1000)) : undefined, - numberOfRecentAmisToKeep: __expectInt(output.numberOfRecentAmisToKeep), + numberOfRecentAmisToKeep: __expectInt32(output.numberOfRecentAmisToKeep), replicationJobId: __expectString(output.replicationJobId), replicationRunList: output.replicationRunList !== undefined && output.replicationRunList !== null @@ -5257,7 +5257,7 @@ const deserializeAws_json1_1ServerGroupLaunchConfiguration = ( context: __SerdeContext ): ServerGroupLaunchConfiguration => { return { - launchOrder: __expectInt(output.launchOrder), + launchOrder: __expectInt32(output.launchOrder), serverGroupId: __expectString(output.serverGroupId), serverLaunchConfigurations: output.serverLaunchConfigurations !== undefined && output.serverLaunchConfigurations !== null @@ -5435,10 +5435,10 @@ const deserializeAws_json1_1ServerReplicationParameters = ( ): ServerReplicationParameters => { return { encrypted: __expectBoolean(output.encrypted), - frequency: __expectInt(output.frequency), + frequency: __expectInt32(output.frequency), kmsKeyId: __expectString(output.kmsKeyId), licenseType: __expectString(output.licenseType), - numberOfRecentAmisToKeep: __expectInt(output.numberOfRecentAmisToKeep), + numberOfRecentAmisToKeep: __expectInt32(output.numberOfRecentAmisToKeep), runOnce: __expectBoolean(output.runOnce), seedTime: output.seedTime !== undefined && output.seedTime !== null @@ -5513,7 +5513,7 @@ const deserializeAws_json1_1SSMValidationParameters = ( ): SSMValidationParameters => { return { command: __expectString(output.command), - executionTimeoutSeconds: __expectInt(output.executionTimeoutSeconds), + executionTimeoutSeconds: __expectInt32(output.executionTimeoutSeconds), instanceId: __expectString(output.instanceId), outputS3BucketName: __expectString(output.outputS3BucketName), scriptType: __expectString(output.scriptType), diff --git a/clients/client-snow-device-management/protocols/Aws_restJson1.ts b/clients/client-snow-device-management/protocols/Aws_restJson1.ts index c6f8a6395e864..d4f3f08848ce1 100644 --- a/clients/client-snow-device-management/protocols/Aws_restJson1.ts +++ b/clients/client-snow-device-management/protocols/Aws_restJson1.ts @@ -48,7 +48,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1797,11 +1798,11 @@ const serializeAws_restJson1Unlock = (input: Unlock, context: __SerdeContext): a const deserializeAws_restJson1Capacity = (output: any, context: __SerdeContext): Capacity => { return { - available: __expectInt(output.available), + available: __expectLong(output.available), name: __expectString(output.name), - total: __expectInt(output.total), + total: __expectLong(output.total), unit: __expectString(output.unit), - used: __expectInt(output.used), + used: __expectLong(output.used), } as any; }; @@ -1818,8 +1819,8 @@ const deserializeAws_restJson1CapacityList = (output: any, context: __SerdeConte const deserializeAws_restJson1CpuOptions = (output: any, context: __SerdeContext): CpuOptions => { return { - coreCount: __expectInt(output.coreCount), - threadsPerCore: __expectInt(output.threadsPerCore), + coreCount: __expectInt32(output.coreCount), + threadsPerCore: __expectInt32(output.threadsPerCore), } as any; }; @@ -1883,7 +1884,7 @@ const deserializeAws_restJson1ExecutionSummaryList = (output: any, context: __Se const deserializeAws_restJson1Instance = (output: any, context: __SerdeContext): Instance => { return { - amiLaunchIndex: __expectInt(output.amiLaunchIndex), + amiLaunchIndex: __expectInt32(output.amiLaunchIndex), blockDeviceMappings: output.blockDeviceMappings !== undefined && output.blockDeviceMappings !== null ? deserializeAws_restJson1InstanceBlockDeviceMappingList(output.blockDeviceMappings, context) @@ -1946,7 +1947,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappingList = ( const deserializeAws_restJson1InstanceState = (output: any, context: __SerdeContext): InstanceState => { return { - code: __expectInt(output.code), + code: __expectInt32(output.code), name: __expectString(output.name), } as any; }; diff --git a/clients/client-snowball/protocols/Aws_json1_1.ts b/clients/client-snowball/protocols/Aws_json1_1.ts index e68ff738ca993..ee0d7be164012 100644 --- a/clients/client-snowball/protocols/Aws_json1_1.ts +++ b/clients/client-snowball/protocols/Aws_json1_1.ts @@ -137,7 +137,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -2954,10 +2955,10 @@ const deserializeAws_json1_1CreateReturnShippingLabelResult = ( const deserializeAws_json1_1DataTransfer = (output: any, context: __SerdeContext): DataTransfer => { return { - BytesTransferred: __expectInt(output.BytesTransferred), - ObjectsTransferred: __expectInt(output.ObjectsTransferred), - TotalBytes: __expectInt(output.TotalBytes), - TotalObjects: __expectInt(output.TotalObjects), + BytesTransferred: __expectLong(output.BytesTransferred), + ObjectsTransferred: __expectLong(output.ObjectsTransferred), + TotalBytes: __expectLong(output.TotalBytes), + TotalObjects: __expectLong(output.TotalObjects), } as any; }; @@ -3088,8 +3089,8 @@ const deserializeAws_json1_1GetJobUnlockCodeResult = (output: any, context: __Se const deserializeAws_json1_1GetSnowballUsageResult = (output: any, context: __SerdeContext): GetSnowballUsageResult => { return { - SnowballLimit: __expectInt(output.SnowballLimit), - SnowballsInUse: __expectInt(output.SnowballsInUse), + SnowballLimit: __expectInt32(output.SnowballLimit), + SnowballsInUse: __expectInt32(output.SnowballsInUse), } as any; }; @@ -3431,7 +3432,7 @@ const deserializeAws_json1_1NFSOnDeviceServiceConfiguration = ( context: __SerdeContext ): NFSOnDeviceServiceConfiguration => { return { - StorageLimit: __expectInt(output.StorageLimit), + StorageLimit: __expectInt32(output.StorageLimit), StorageUnit: __expectString(output.StorageUnit), } as any; }; diff --git a/clients/client-ssm-contacts/protocols/Aws_json1_1.ts b/clients/client-ssm-contacts/protocols/Aws_json1_1.ts index 7e19a6b59bfea..a286445db67d1 100644 --- a/clients/client-ssm-contacts/protocols/Aws_json1_1.ts +++ b/clients/client-ssm-contacts/protocols/Aws_json1_1.ts @@ -130,7 +130,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3450,7 +3450,7 @@ const deserializeAws_json1_1ActivateContactChannelResult = ( const deserializeAws_json1_1ChannelTargetInfo = (output: any, context: __SerdeContext): ChannelTargetInfo => { return { ContactChannelId: __expectString(output.ContactChannelId), - RetryIntervalInMinutes: __expectInt(output.RetryIntervalInMinutes), + RetryIntervalInMinutes: __expectInt32(output.RetryIntervalInMinutes), } as any; }; @@ -3681,7 +3681,7 @@ const deserializeAws_json1_1InternalServerException = ( ): InternalServerException => { return { Message: __expectString(output.Message), - RetryAfterSeconds: __expectInt(output.RetryAfterSeconds), + RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds), } as any; }; @@ -3868,7 +3868,7 @@ const deserializeAws_json1_1ServiceQuotaExceededException = ( const deserializeAws_json1_1Stage = (output: any, context: __SerdeContext): Stage => { return { - DurationInMinutes: __expectInt(output.DurationInMinutes), + DurationInMinutes: __expectInt32(output.DurationInMinutes), Targets: output.Targets !== undefined && output.Targets !== null ? deserializeAws_json1_1TargetsList(output.Targets, context) @@ -3947,7 +3947,7 @@ const deserializeAws_json1_1ThrottlingException = (output: any, context: __Serde return { Message: __expectString(output.Message), QuotaCode: __expectString(output.QuotaCode), - RetryAfterSeconds: __expectInt(output.RetryAfterSeconds), + RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds), ServiceCode: __expectString(output.ServiceCode), } as any; }; diff --git a/clients/client-ssm-incidents/protocols/Aws_restJson1.ts b/clients/client-ssm-incidents/protocols/Aws_restJson1.ts index ad084010708b6..a5ea35e25bce3 100644 --- a/clients/client-ssm-incidents/protocols/Aws_restJson1.ts +++ b/clients/client-ssm-incidents/protocols/Aws_restJson1.ts @@ -109,7 +109,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -4082,7 +4082,7 @@ const deserializeAws_restJson1IncidentRecord = (output: any, context: __SerdeCon ? new Date(Math.round(output.creationTime * 1000)) : undefined, dedupeString: __expectString(output.dedupeString), - impact: __expectInt(output.impact), + impact: __expectInt32(output.impact), incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context) @@ -4122,7 +4122,7 @@ const deserializeAws_restJson1IncidentRecordSummary = (output: any, context: __S output.creationTime !== undefined && output.creationTime !== null ? new Date(Math.round(output.creationTime * 1000)) : undefined, - impact: __expectInt(output.impact), + impact: __expectInt32(output.impact), incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context) @@ -4153,7 +4153,7 @@ const deserializeAws_restJson1IncidentRecordSummaryList = ( const deserializeAws_restJson1IncidentTemplate = (output: any, context: __SerdeContext): IncidentTemplate => { return { dedupeString: __expectString(output.dedupeString), - impact: __expectInt(output.impact), + impact: __expectInt32(output.impact), notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context) diff --git a/clients/client-ssm/protocols/Aws_json1_1.ts b/clients/client-ssm/protocols/Aws_json1_1.ts index cc4f2d59c950b..1f1c0d4bb15ef 100644 --- a/clients/client-ssm/protocols/Aws_json1_1.ts +++ b/clients/client-ssm/protocols/Aws_json1_1.ts @@ -954,7 +954,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -18691,8 +18692,8 @@ const deserializeAws_json1_1Activation = (output: any, context: __SerdeContext): : undefined, Expired: __expectBoolean(output.Expired), IamRole: __expectString(output.IamRole), - RegistrationLimit: __expectInt(output.RegistrationLimit), - RegistrationsCount: __expectInt(output.RegistrationsCount), + RegistrationLimit: __expectInt32(output.RegistrationLimit), + RegistrationsCount: __expectInt32(output.RegistrationsCount), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) @@ -18977,7 +18978,7 @@ const deserializeAws_json1_1AssociationStatusAggregatedCount = ( } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -19050,7 +19051,7 @@ const deserializeAws_json1_1AttachmentContent = (output: any, context: __SerdeCo Hash: __expectString(output.Hash), HashType: __expectString(output.HashType), Name: __expectString(output.Name), - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), Url: __expectString(output.Url), } as any; }; @@ -19351,11 +19352,11 @@ const deserializeAws_json1_1Command = (output: any, context: __SerdeContext): Co : undefined, CommandId: __expectString(output.CommandId), Comment: __expectString(output.Comment), - CompletedCount: __expectInt(output.CompletedCount), - DeliveryTimedOutCount: __expectInt(output.DeliveryTimedOutCount), + CompletedCount: __expectInt32(output.CompletedCount), + DeliveryTimedOutCount: __expectInt32(output.DeliveryTimedOutCount), DocumentName: __expectString(output.DocumentName), DocumentVersion: __expectString(output.DocumentVersion), - ErrorCount: __expectInt(output.ErrorCount), + ErrorCount: __expectInt32(output.ErrorCount), ExpiresAfter: output.ExpiresAfter !== undefined && output.ExpiresAfter !== null ? new Date(Math.round(output.ExpiresAfter * 1000)) @@ -19384,12 +19385,12 @@ const deserializeAws_json1_1Command = (output: any, context: __SerdeContext): Co ServiceRole: __expectString(output.ServiceRole), Status: __expectString(output.Status), StatusDetails: __expectString(output.StatusDetails), - TargetCount: __expectInt(output.TargetCount), + TargetCount: __expectInt32(output.TargetCount), Targets: output.Targets !== undefined && output.Targets !== null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TimeoutSeconds: __expectInt(output.TimeoutSeconds), + TimeoutSeconds: __expectInt32(output.TimeoutSeconds), } as any; }; @@ -19455,7 +19456,7 @@ const deserializeAws_json1_1CommandPlugin = (output: any, context: __SerdeContex OutputS3BucketName: __expectString(output.OutputS3BucketName), OutputS3KeyPrefix: __expectString(output.OutputS3KeyPrefix), OutputS3Region: __expectString(output.OutputS3Region), - ResponseCode: __expectInt(output.ResponseCode), + ResponseCode: __expectInt32(output.ResponseCode), ResponseFinishDateTime: output.ResponseFinishDateTime !== undefined && output.ResponseFinishDateTime !== null ? new Date(Math.round(output.ResponseFinishDateTime * 1000)) @@ -19581,7 +19582,7 @@ const deserializeAws_json1_1ComplianceTypeCountLimitExceededException = ( const deserializeAws_json1_1CompliantSummary = (output: any, context: __SerdeContext): CompliantSummary => { return { - CompliantCount: __expectInt(output.CompliantCount), + CompliantCount: __expectInt32(output.CompliantCount), SeveritySummary: output.SeveritySummary !== undefined && output.SeveritySummary !== null ? deserializeAws_json1_1SeveritySummary(output.SeveritySummary, context) @@ -20221,18 +20222,18 @@ const deserializeAws_json1_1DescribePatchGroupStateResult = ( context: __SerdeContext ): DescribePatchGroupStateResult => { return { - Instances: __expectInt(output.Instances), - InstancesWithCriticalNonCompliantPatches: __expectInt(output.InstancesWithCriticalNonCompliantPatches), - InstancesWithFailedPatches: __expectInt(output.InstancesWithFailedPatches), - InstancesWithInstalledOtherPatches: __expectInt(output.InstancesWithInstalledOtherPatches), - InstancesWithInstalledPatches: __expectInt(output.InstancesWithInstalledPatches), - InstancesWithInstalledPendingRebootPatches: __expectInt(output.InstancesWithInstalledPendingRebootPatches), - InstancesWithInstalledRejectedPatches: __expectInt(output.InstancesWithInstalledRejectedPatches), - InstancesWithMissingPatches: __expectInt(output.InstancesWithMissingPatches), - InstancesWithNotApplicablePatches: __expectInt(output.InstancesWithNotApplicablePatches), - InstancesWithOtherNonCompliantPatches: __expectInt(output.InstancesWithOtherNonCompliantPatches), - InstancesWithSecurityNonCompliantPatches: __expectInt(output.InstancesWithSecurityNonCompliantPatches), - InstancesWithUnreportedNotApplicablePatches: __expectInt(output.InstancesWithUnreportedNotApplicablePatches), + Instances: __expectInt32(output.Instances), + InstancesWithCriticalNonCompliantPatches: __expectInt32(output.InstancesWithCriticalNonCompliantPatches), + InstancesWithFailedPatches: __expectInt32(output.InstancesWithFailedPatches), + InstancesWithInstalledOtherPatches: __expectInt32(output.InstancesWithInstalledOtherPatches), + InstancesWithInstalledPatches: __expectInt32(output.InstancesWithInstalledPatches), + InstancesWithInstalledPendingRebootPatches: __expectInt32(output.InstancesWithInstalledPendingRebootPatches), + InstancesWithInstalledRejectedPatches: __expectInt32(output.InstancesWithInstalledRejectedPatches), + InstancesWithMissingPatches: __expectInt32(output.InstancesWithMissingPatches), + InstancesWithNotApplicablePatches: __expectInt32(output.InstancesWithNotApplicablePatches), + InstancesWithOtherNonCompliantPatches: __expectInt32(output.InstancesWithOtherNonCompliantPatches), + InstancesWithSecurityNonCompliantPatches: __expectInt32(output.InstancesWithSecurityNonCompliantPatches), + InstancesWithUnreportedNotApplicablePatches: __expectInt32(output.InstancesWithUnreportedNotApplicablePatches), } as any; }; @@ -20687,7 +20688,7 @@ const deserializeAws_json1_1GetCommandInvocationResult = ( ExecutionStartDateTime: __expectString(output.ExecutionStartDateTime), InstanceId: __expectString(output.InstanceId), PluginName: __expectString(output.PluginName), - ResponseCode: __expectInt(output.ResponseCode), + ResponseCode: __expectInt32(output.ResponseCode), StandardErrorContent: __expectString(output.StandardErrorContent), StandardErrorUrl: __expectString(output.StandardErrorUrl), StandardOutputContent: __expectString(output.StandardOutputContent), @@ -20833,7 +20834,7 @@ const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskResult = ( output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, MaxConcurrency: __expectString(output.MaxConcurrency), MaxErrors: __expectString(output.MaxErrors), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), ServiceRole: __expectString(output.ServiceRole), StartTime: output.StartTime !== undefined && output.StartTime !== null @@ -20862,9 +20863,9 @@ const deserializeAws_json1_1GetMaintenanceWindowResult = ( output.CreatedDate !== undefined && output.CreatedDate !== null ? new Date(Math.round(output.CreatedDate * 1000)) : undefined, - Cutoff: __expectInt(output.Cutoff), + Cutoff: __expectInt32(output.Cutoff), Description: __expectString(output.Description), - Duration: __expectInt(output.Duration), + Duration: __expectInt32(output.Duration), Enabled: __expectBoolean(output.Enabled), EndDate: __expectString(output.EndDate), ModifiedDate: @@ -20874,7 +20875,7 @@ const deserializeAws_json1_1GetMaintenanceWindowResult = ( Name: __expectString(output.Name), NextExecutionTime: __expectString(output.NextExecutionTime), Schedule: __expectString(output.Schedule), - ScheduleOffset: __expectInt(output.ScheduleOffset), + ScheduleOffset: __expectInt32(output.ScheduleOffset), ScheduleTimezone: __expectString(output.ScheduleTimezone), StartDate: __expectString(output.StartDate), WindowId: __expectString(output.WindowId), @@ -20894,7 +20895,7 @@ const deserializeAws_json1_1GetMaintenanceWindowTaskResult = ( MaxConcurrency: __expectString(output.MaxConcurrency), MaxErrors: __expectString(output.MaxErrors), Name: __expectString(output.Name), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), ServiceRoleArn: __expectString(output.ServiceRoleArn), Targets: output.Targets !== undefined && output.Targets !== null @@ -21167,7 +21168,7 @@ const deserializeAws_json1_1InstanceAssociationStatusAggregatedCount = ( } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -21277,20 +21278,20 @@ const deserializeAws_json1_1InstanceInformationList = (output: any, context: __S const deserializeAws_json1_1InstancePatchState = (output: any, context: __SerdeContext): InstancePatchState => { return { BaselineId: __expectString(output.BaselineId), - CriticalNonCompliantCount: __expectInt(output.CriticalNonCompliantCount), - FailedCount: __expectInt(output.FailedCount), + CriticalNonCompliantCount: __expectInt32(output.CriticalNonCompliantCount), + FailedCount: __expectInt32(output.FailedCount), InstallOverrideList: __expectString(output.InstallOverrideList), - InstalledCount: __expectInt(output.InstalledCount), - InstalledOtherCount: __expectInt(output.InstalledOtherCount), - InstalledPendingRebootCount: __expectInt(output.InstalledPendingRebootCount), - InstalledRejectedCount: __expectInt(output.InstalledRejectedCount), + InstalledCount: __expectInt32(output.InstalledCount), + InstalledOtherCount: __expectInt32(output.InstalledOtherCount), + InstalledPendingRebootCount: __expectInt32(output.InstalledPendingRebootCount), + InstalledRejectedCount: __expectInt32(output.InstalledRejectedCount), InstanceId: __expectString(output.InstanceId), LastNoRebootInstallOperationTime: output.LastNoRebootInstallOperationTime !== undefined && output.LastNoRebootInstallOperationTime !== null ? new Date(Math.round(output.LastNoRebootInstallOperationTime * 1000)) : undefined, - MissingCount: __expectInt(output.MissingCount), - NotApplicableCount: __expectInt(output.NotApplicableCount), + MissingCount: __expectInt32(output.MissingCount), + NotApplicableCount: __expectInt32(output.NotApplicableCount), Operation: __expectString(output.Operation), OperationEndTime: output.OperationEndTime !== undefined && output.OperationEndTime !== null @@ -21300,13 +21301,13 @@ const deserializeAws_json1_1InstancePatchState = (output: any, context: __SerdeC output.OperationStartTime !== undefined && output.OperationStartTime !== null ? new Date(Math.round(output.OperationStartTime * 1000)) : undefined, - OtherNonCompliantCount: __expectInt(output.OtherNonCompliantCount), + OtherNonCompliantCount: __expectInt32(output.OtherNonCompliantCount), OwnerInformation: __expectString(output.OwnerInformation), PatchGroup: __expectString(output.PatchGroup), RebootOption: __expectString(output.RebootOption), - SecurityNonCompliantCount: __expectInt(output.SecurityNonCompliantCount), + SecurityNonCompliantCount: __expectInt32(output.SecurityNonCompliantCount), SnapshotId: __expectString(output.SnapshotId), - UnreportedNotApplicableCount: __expectInt(output.UnreportedNotApplicableCount), + UnreportedNotApplicableCount: __expectInt32(output.UnreportedNotApplicableCount), } as any; }; @@ -21710,12 +21711,12 @@ const deserializeAws_json1_1InventoryDeletionSummary = ( context: __SerdeContext ): InventoryDeletionSummary => { return { - RemainingCount: __expectInt(output.RemainingCount), + RemainingCount: __expectInt32(output.RemainingCount), SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null ? deserializeAws_json1_1InventoryDeletionSummaryItems(output.SummaryItems, context) : undefined, - TotalCount: __expectInt(output.TotalCount), + TotalCount: __expectInt32(output.TotalCount), } as any; }; @@ -21724,8 +21725,8 @@ const deserializeAws_json1_1InventoryDeletionSummaryItem = ( context: __SerdeContext ): InventoryDeletionSummaryItem => { return { - Count: __expectInt(output.Count), - RemainingCount: __expectInt(output.RemainingCount), + Count: __expectInt32(output.Count), + RemainingCount: __expectInt32(output.RemainingCount), Version: __expectString(output.Version), } as any; }; @@ -21902,7 +21903,7 @@ const deserializeAws_json1_1LabelParameterVersionResult = ( output.InvalidLabels !== undefined && output.InvalidLabels !== null ? deserializeAws_json1_1ParameterLabelList(output.InvalidLabels, context) : undefined, - ParameterVersion: __expectInt(output.ParameterVersion), + ParameterVersion: __expectLong(output.ParameterVersion), } as any; }; @@ -22249,15 +22250,15 @@ const deserializeAws_json1_1MaintenanceWindowIdentity = ( context: __SerdeContext ): MaintenanceWindowIdentity => { return { - Cutoff: __expectInt(output.Cutoff), + Cutoff: __expectInt32(output.Cutoff), Description: __expectString(output.Description), - Duration: __expectInt(output.Duration), + Duration: __expectInt32(output.Duration), Enabled: __expectBoolean(output.Enabled), EndDate: __expectString(output.EndDate), Name: __expectString(output.Name), NextExecutionTime: __expectString(output.NextExecutionTime), Schedule: __expectString(output.Schedule), - ScheduleOffset: __expectInt(output.ScheduleOffset), + ScheduleOffset: __expectInt32(output.ScheduleOffset), ScheduleTimezone: __expectString(output.ScheduleTimezone), StartDate: __expectString(output.StartDate), WindowId: __expectString(output.WindowId), @@ -22324,7 +22325,7 @@ const deserializeAws_json1_1MaintenanceWindowRunCommandParameters = ( ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, ServiceRoleArn: __expectString(output.ServiceRoleArn), - TimeoutSeconds: __expectInt(output.TimeoutSeconds), + TimeoutSeconds: __expectInt32(output.TimeoutSeconds), } as any; }; @@ -22394,7 +22395,7 @@ const deserializeAws_json1_1MaintenanceWindowTask = (output: any, context: __Ser MaxConcurrency: __expectString(output.MaxConcurrency), MaxErrors: __expectString(output.MaxErrors), Name: __expectString(output.Name), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), ServiceRoleArn: __expectString(output.ServiceRoleArn), Targets: output.Targets !== undefined && output.Targets !== null @@ -22543,7 +22544,7 @@ const deserializeAws_json1_1ModifyDocumentPermissionResponse = ( const deserializeAws_json1_1NonCompliantSummary = (output: any, context: __SerdeContext): NonCompliantSummary => { return { - NonCompliantCount: __expectInt(output.NonCompliantCount), + NonCompliantCount: __expectInt32(output.NonCompliantCount), SeveritySummary: output.SeveritySummary !== undefined && output.SeveritySummary !== null ? deserializeAws_json1_1SeveritySummary(output.SeveritySummary, context) @@ -22700,7 +22701,7 @@ const deserializeAws_json1_1OpsItem = (output: any, context: __SerdeContext): Op output.PlannedStartTime !== undefined && output.PlannedStartTime !== null ? new Date(Math.round(output.PlannedStartTime * 1000)) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), RelatedOpsItems: output.RelatedOpsItems !== undefined && output.RelatedOpsItems !== null ? deserializeAws_json1_1RelatedOpsItems(output.RelatedOpsItems, context) @@ -22783,7 +22784,7 @@ const deserializeAws_json1_1OpsItemLimitExceededException = ( context: __SerdeContext ): OpsItemLimitExceededException => { return { - Limit: __expectInt(output.Limit), + Limit: __expectInt32(output.Limit), LimitType: __expectString(output.LimitType), Message: __expectString(output.Message), ResourceTypes: @@ -22954,7 +22955,7 @@ const deserializeAws_json1_1OpsItemSummary = (output: any, context: __SerdeConte output.PlannedStartTime !== undefined && output.PlannedStartTime !== null ? new Date(Math.round(output.PlannedStartTime * 1000)) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), Severity: __expectString(output.Severity), Source: __expectString(output.Source), Status: __expectString(output.Status), @@ -23063,7 +23064,7 @@ const deserializeAws_json1_1Parameter = (output: any, context: __SerdeContext): SourceResult: __expectString(output.SourceResult), Type: __expectString(output.Type), Value: __expectString(output.Value), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -23096,7 +23097,7 @@ const deserializeAws_json1_1ParameterHistory = (output: any, context: __SerdeCon Tier: __expectString(output.Tier), Type: __expectString(output.Type), Value: __expectString(output.Value), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -23174,7 +23175,7 @@ const deserializeAws_json1_1ParameterMetadata = (output: any, context: __SerdeCo : undefined, Tier: __expectString(output.Tier), Type: __expectString(output.Type), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -23285,7 +23286,7 @@ const deserializeAws_json1_1Patch = (output: any, context: __SerdeContext): Patc Classification: __expectString(output.Classification), ContentUrl: __expectString(output.ContentUrl), Description: __expectString(output.Description), - Epoch: __expectInt(output.Epoch), + Epoch: __expectInt32(output.Epoch), Id: __expectString(output.Id), KbNumber: __expectString(output.KbNumber), Language: __expectString(output.Language), @@ -23519,7 +23520,7 @@ const deserializeAws_json1_1PatchPropertyEntry = (output: any, context: __SerdeC const deserializeAws_json1_1PatchRule = (output: any, context: __SerdeContext): PatchRule => { return { - ApproveAfterDays: __expectInt(output.ApproveAfterDays), + ApproveAfterDays: __expectInt32(output.ApproveAfterDays), ApproveUntilDate: __expectString(output.ApproveUntilDate), ComplianceLevel: __expectString(output.ComplianceLevel), EnableNonSecurity: __expectBoolean(output.EnableNonSecurity), @@ -23616,11 +23617,11 @@ const deserializeAws_json1_1PoliciesLimitExceededException = ( const deserializeAws_json1_1ProgressCounters = (output: any, context: __SerdeContext): ProgressCounters => { return { - CancelledSteps: __expectInt(output.CancelledSteps), - FailedSteps: __expectInt(output.FailedSteps), - SuccessSteps: __expectInt(output.SuccessSteps), - TimedOutSteps: __expectInt(output.TimedOutSteps), - TotalSteps: __expectInt(output.TotalSteps), + CancelledSteps: __expectInt32(output.CancelledSteps), + FailedSteps: __expectInt32(output.FailedSteps), + SuccessSteps: __expectInt32(output.SuccessSteps), + TimedOutSteps: __expectInt32(output.TimedOutSteps), + TotalSteps: __expectInt32(output.TotalSteps), } as any; }; @@ -23640,7 +23641,7 @@ const deserializeAws_json1_1PutInventoryResult = (output: any, context: __SerdeC const deserializeAws_json1_1PutParameterResult = (output: any, context: __SerdeContext): PutParameterResult => { return { Tier: __expectString(output.Tier), - Version: __expectInt(output.Version), + Version: __expectLong(output.Version), } as any; }; @@ -24161,12 +24162,12 @@ const deserializeAws_json1_1SessionManagerOutputUrl = ( const deserializeAws_json1_1SeveritySummary = (output: any, context: __SerdeContext): SeveritySummary => { return { - CriticalCount: __expectInt(output.CriticalCount), - HighCount: __expectInt(output.HighCount), - InformationalCount: __expectInt(output.InformationalCount), - LowCount: __expectInt(output.LowCount), - MediumCount: __expectInt(output.MediumCount), - UnspecifiedCount: __expectInt(output.UnspecifiedCount), + CriticalCount: __expectInt32(output.CriticalCount), + HighCount: __expectInt32(output.HighCount), + InformationalCount: __expectInt32(output.InformationalCount), + LowCount: __expectInt32(output.LowCount), + MediumCount: __expectInt32(output.MediumCount), + UnspecifiedCount: __expectInt32(output.UnspecifiedCount), } as any; }; @@ -24229,7 +24230,7 @@ const deserializeAws_json1_1StepExecution = (output: any, context: __SerdeContex : undefined, IsCritical: __expectBoolean(output.IsCritical), IsEnd: __expectBoolean(output.IsEnd), - MaxAttempts: __expectInt(output.MaxAttempts), + MaxAttempts: __expectInt32(output.MaxAttempts), NextStep: __expectString(output.NextStep), OnFailure: __expectString(output.OnFailure), Outputs: @@ -24253,7 +24254,7 @@ const deserializeAws_json1_1StepExecution = (output: any, context: __SerdeContex output.Targets !== undefined && output.Targets !== null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TimeoutSeconds: __expectInt(output.TimeoutSeconds), + TimeoutSeconds: __expectLong(output.TimeoutSeconds), ValidNextSteps: output.ValidNextSteps !== undefined && output.ValidNextSteps !== null ? deserializeAws_json1_1ValidNextStepList(output.ValidNextSteps, context) @@ -24588,14 +24589,14 @@ const deserializeAws_json1_1UpdateMaintenanceWindowResult = ( ): UpdateMaintenanceWindowResult => { return { AllowUnassociatedTargets: __expectBoolean(output.AllowUnassociatedTargets), - Cutoff: __expectInt(output.Cutoff), + Cutoff: __expectInt32(output.Cutoff), Description: __expectString(output.Description), - Duration: __expectInt(output.Duration), + Duration: __expectInt32(output.Duration), Enabled: __expectBoolean(output.Enabled), EndDate: __expectString(output.EndDate), Name: __expectString(output.Name), Schedule: __expectString(output.Schedule), - ScheduleOffset: __expectInt(output.ScheduleOffset), + ScheduleOffset: __expectInt32(output.ScheduleOffset), ScheduleTimezone: __expectString(output.ScheduleTimezone), StartDate: __expectString(output.StartDate), WindowId: __expectString(output.WindowId), @@ -24632,7 +24633,7 @@ const deserializeAws_json1_1UpdateMaintenanceWindowTaskResult = ( MaxConcurrency: __expectString(output.MaxConcurrency), MaxErrors: __expectString(output.MaxErrors), Name: __expectString(output.Name), - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), ServiceRoleArn: __expectString(output.ServiceRoleArn), Targets: output.Targets !== undefined && output.Targets !== null diff --git a/clients/client-sso-oidc/protocols/Aws_restJson1.ts b/clients/client-sso-oidc/protocols/Aws_restJson1.ts index 92bcbe5813215..ca1bd4a1fea6e 100644 --- a/clients/client-sso-oidc/protocols/Aws_restJson1.ts +++ b/clients/client-sso-oidc/protocols/Aws_restJson1.ts @@ -19,7 +19,11 @@ import { UnsupportedGrantTypeException, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectString as __expectString, +} from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, MetadataBearer as __MetadataBearer, @@ -133,7 +137,7 @@ export const deserializeAws_restJson1CreateTokenCommand = async ( contents.accessToken = __expectString(data.accessToken); } if (data.expiresIn !== undefined && data.expiresIn !== null) { - contents.expiresIn = __expectInt(data.expiresIn); + contents.expiresIn = __expectInt32(data.expiresIn); } if (data.idToken !== undefined && data.idToken !== null) { contents.idToken = __expectString(data.idToken); @@ -288,13 +292,13 @@ export const deserializeAws_restJson1RegisterClientCommand = async ( contents.clientId = __expectString(data.clientId); } if (data.clientIdIssuedAt !== undefined && data.clientIdIssuedAt !== null) { - contents.clientIdIssuedAt = __expectInt(data.clientIdIssuedAt); + contents.clientIdIssuedAt = __expectLong(data.clientIdIssuedAt); } if (data.clientSecret !== undefined && data.clientSecret !== null) { contents.clientSecret = __expectString(data.clientSecret); } if (data.clientSecretExpiresAt !== undefined && data.clientSecretExpiresAt !== null) { - contents.clientSecretExpiresAt = __expectInt(data.clientSecretExpiresAt); + contents.clientSecretExpiresAt = __expectLong(data.clientSecretExpiresAt); } if (data.tokenEndpoint !== undefined && data.tokenEndpoint !== null) { contents.tokenEndpoint = __expectString(data.tokenEndpoint); @@ -384,10 +388,10 @@ export const deserializeAws_restJson1StartDeviceAuthorizationCommand = async ( contents.deviceCode = __expectString(data.deviceCode); } if (data.expiresIn !== undefined && data.expiresIn !== null) { - contents.expiresIn = __expectInt(data.expiresIn); + contents.expiresIn = __expectInt32(data.expiresIn); } if (data.interval !== undefined && data.interval !== null) { - contents.interval = __expectInt(data.interval); + contents.interval = __expectInt32(data.interval); } if (data.userCode !== undefined && data.userCode !== null) { contents.userCode = __expectString(data.userCode); diff --git a/clients/client-sso/protocols/Aws_restJson1.ts b/clients/client-sso/protocols/Aws_restJson1.ts index d207022b132c4..f2d32283298a3 100644 --- a/clients/client-sso/protocols/Aws_restJson1.ts +++ b/clients/client-sso/protocols/Aws_restJson1.ts @@ -13,7 +13,7 @@ import { } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -527,7 +527,7 @@ const deserializeAws_restJson1AccountListType = (output: any, context: __SerdeCo const deserializeAws_restJson1RoleCredentials = (output: any, context: __SerdeContext): RoleCredentials => { return { accessKeyId: __expectString(output.accessKeyId), - expiration: __expectInt(output.expiration), + expiration: __expectLong(output.expiration), secretAccessKey: __expectString(output.secretAccessKey), sessionToken: __expectString(output.sessionToken), } as any; diff --git a/clients/client-storage-gateway/protocols/Aws_json1_1.ts b/clients/client-storage-gateway/protocols/Aws_json1_1.ts index 2940cf6a1a2e1..9a4a2c7178df0 100644 --- a/clients/client-storage-gateway/protocols/Aws_json1_1.ts +++ b/clients/client-storage-gateway/protocols/Aws_json1_1.ts @@ -453,9 +453,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -8604,10 +8605,10 @@ const deserializeAws_json1_1AutomaticTapeCreationRule = ( context: __SerdeContext ): AutomaticTapeCreationRule => { return { - MinimumNumTapes: __expectInt(output.MinimumNumTapes), + MinimumNumTapes: __expectInt32(output.MinimumNumTapes), PoolId: __expectString(output.PoolId), TapeBarcodePrefix: __expectString(output.TapeBarcodePrefix), - TapeSizeInBytes: __expectInt(output.TapeSizeInBytes), + TapeSizeInBytes: __expectLong(output.TapeSizeInBytes), Worm: __expectBoolean(output.Worm), } as any; }; @@ -8631,16 +8632,16 @@ const deserializeAws_json1_1BandwidthRateLimitInterval = ( context: __SerdeContext ): BandwidthRateLimitInterval => { return { - AverageDownloadRateLimitInBitsPerSec: __expectInt(output.AverageDownloadRateLimitInBitsPerSec), - AverageUploadRateLimitInBitsPerSec: __expectInt(output.AverageUploadRateLimitInBitsPerSec), + AverageDownloadRateLimitInBitsPerSec: __expectLong(output.AverageDownloadRateLimitInBitsPerSec), + AverageUploadRateLimitInBitsPerSec: __expectLong(output.AverageUploadRateLimitInBitsPerSec), DaysOfWeek: output.DaysOfWeek !== undefined && output.DaysOfWeek !== null ? deserializeAws_json1_1DaysOfWeek(output.DaysOfWeek, context) : undefined, - EndHourOfDay: __expectInt(output.EndHourOfDay), - EndMinuteOfHour: __expectInt(output.EndMinuteOfHour), - StartHourOfDay: __expectInt(output.StartHourOfDay), - StartMinuteOfHour: __expectInt(output.StartMinuteOfHour), + EndHourOfDay: __expectInt32(output.EndHourOfDay), + EndMinuteOfHour: __expectInt32(output.EndMinuteOfHour), + StartHourOfDay: __expectInt32(output.StartHourOfDay), + StartMinuteOfHour: __expectInt32(output.StartMinuteOfHour), } as any; }; @@ -8660,7 +8661,7 @@ const deserializeAws_json1_1BandwidthRateLimitIntervals = ( const deserializeAws_json1_1CacheAttributes = (output: any, context: __SerdeContext): CacheAttributes => { return { - CacheStaleTimeoutInSeconds: __expectInt(output.CacheStaleTimeoutInSeconds), + CacheStaleTimeoutInSeconds: __expectInt32(output.CacheStaleTimeoutInSeconds), } as any; }; @@ -8676,11 +8677,11 @@ const deserializeAws_json1_1CachediSCSIVolume = (output: any, context: __SerdeCo VolumeARN: __expectString(output.VolumeARN), VolumeAttachmentStatus: __expectString(output.VolumeAttachmentStatus), VolumeId: __expectString(output.VolumeId), - VolumeProgress: __limitedParseFloat(output.VolumeProgress), - VolumeSizeInBytes: __expectInt(output.VolumeSizeInBytes), + VolumeProgress: __limitedParseDouble(output.VolumeProgress), + VolumeSizeInBytes: __expectLong(output.VolumeSizeInBytes), VolumeStatus: __expectString(output.VolumeStatus), VolumeType: __expectString(output.VolumeType), - VolumeUsedInBytes: __expectInt(output.VolumeUsedInBytes), + VolumeUsedInBytes: __expectLong(output.VolumeUsedInBytes), VolumeiSCSIAttributes: output.VolumeiSCSIAttributes !== undefined && output.VolumeiSCSIAttributes !== null ? deserializeAws_json1_1VolumeiSCSIAttributes(output.VolumeiSCSIAttributes, context) @@ -8784,7 +8785,7 @@ const deserializeAws_json1_1CreateStorediSCSIVolumeOutput = ( return { TargetARN: __expectString(output.TargetARN), VolumeARN: __expectString(output.VolumeARN), - VolumeSizeInBytes: __expectInt(output.VolumeSizeInBytes), + VolumeSizeInBytes: __expectLong(output.VolumeSizeInBytes), } as any; }; @@ -8819,7 +8820,7 @@ const deserializeAws_json1_1DaysOfWeek = (output: any, context: __SerdeContext): if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; @@ -8918,8 +8919,8 @@ const deserializeAws_json1_1DescribeBandwidthRateLimitOutput = ( context: __SerdeContext ): DescribeBandwidthRateLimitOutput => { return { - AverageDownloadRateLimitInBitsPerSec: __expectInt(output.AverageDownloadRateLimitInBitsPerSec), - AverageUploadRateLimitInBitsPerSec: __expectInt(output.AverageUploadRateLimitInBitsPerSec), + AverageDownloadRateLimitInBitsPerSec: __expectLong(output.AverageDownloadRateLimitInBitsPerSec), + AverageUploadRateLimitInBitsPerSec: __expectLong(output.AverageUploadRateLimitInBitsPerSec), GatewayARN: __expectString(output.GatewayARN), } as any; }; @@ -8951,11 +8952,11 @@ const deserializeAws_json1_1DescribeCachediSCSIVolumesOutput = ( const deserializeAws_json1_1DescribeCacheOutput = (output: any, context: __SerdeContext): DescribeCacheOutput => { return { - CacheAllocatedInBytes: __expectInt(output.CacheAllocatedInBytes), - CacheDirtyPercentage: __limitedParseFloat(output.CacheDirtyPercentage), - CacheHitPercentage: __limitedParseFloat(output.CacheHitPercentage), - CacheMissPercentage: __limitedParseFloat(output.CacheMissPercentage), - CacheUsedPercentage: __limitedParseFloat(output.CacheUsedPercentage), + CacheAllocatedInBytes: __expectLong(output.CacheAllocatedInBytes), + CacheDirtyPercentage: __limitedParseDouble(output.CacheDirtyPercentage), + CacheHitPercentage: __limitedParseDouble(output.CacheHitPercentage), + CacheMissPercentage: __limitedParseDouble(output.CacheMissPercentage), + CacheUsedPercentage: __limitedParseDouble(output.CacheUsedPercentage), DiskIds: output.DiskIds !== undefined && output.DiskIds !== null ? deserializeAws_json1_1DiskIds(output.DiskIds, context) @@ -9028,11 +9029,11 @@ const deserializeAws_json1_1DescribeMaintenanceStartTimeOutput = ( context: __SerdeContext ): DescribeMaintenanceStartTimeOutput => { return { - DayOfMonth: __expectInt(output.DayOfMonth), - DayOfWeek: __expectInt(output.DayOfWeek), + DayOfMonth: __expectInt32(output.DayOfMonth), + DayOfWeek: __expectInt32(output.DayOfWeek), GatewayARN: __expectString(output.GatewayARN), - HourOfDay: __expectInt(output.HourOfDay), - MinuteOfHour: __expectInt(output.MinuteOfHour), + HourOfDay: __expectInt32(output.HourOfDay), + MinuteOfHour: __expectInt32(output.MinuteOfHour), Timezone: __expectString(output.Timezone), } as any; }; @@ -9081,8 +9082,8 @@ const deserializeAws_json1_1DescribeSnapshotScheduleOutput = ( ): DescribeSnapshotScheduleOutput => { return { Description: __expectString(output.Description), - RecurrenceInHours: __expectInt(output.RecurrenceInHours), - StartAt: __expectInt(output.StartAt), + RecurrenceInHours: __expectInt32(output.RecurrenceInHours), + StartAt: __expectInt32(output.StartAt), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined, Timezone: __expectString(output.Timezone), @@ -9149,8 +9150,8 @@ const deserializeAws_json1_1DescribeUploadBufferOutput = ( ? deserializeAws_json1_1DiskIds(output.DiskIds, context) : undefined, GatewayARN: __expectString(output.GatewayARN), - UploadBufferAllocatedInBytes: __expectInt(output.UploadBufferAllocatedInBytes), - UploadBufferUsedInBytes: __expectInt(output.UploadBufferUsedInBytes), + UploadBufferAllocatedInBytes: __expectLong(output.UploadBufferAllocatedInBytes), + UploadBufferUsedInBytes: __expectLong(output.UploadBufferUsedInBytes), } as any; }; @@ -9178,8 +9179,8 @@ const deserializeAws_json1_1DescribeWorkingStorageOutput = ( ? deserializeAws_json1_1DiskIds(output.DiskIds, context) : undefined, GatewayARN: __expectString(output.GatewayARN), - WorkingStorageAllocatedInBytes: __expectInt(output.WorkingStorageAllocatedInBytes), - WorkingStorageUsedInBytes: __expectInt(output.WorkingStorageUsedInBytes), + WorkingStorageAllocatedInBytes: __expectLong(output.WorkingStorageAllocatedInBytes), + WorkingStorageUsedInBytes: __expectLong(output.WorkingStorageUsedInBytes), } as any; }; @@ -9193,7 +9194,7 @@ const deserializeAws_json1_1DeviceiSCSIAttributes = (output: any, context: __Ser return { ChapEnabled: __expectBoolean(output.ChapEnabled), NetworkInterfaceId: __expectString(output.NetworkInterfaceId), - NetworkInterfacePort: __expectInt(output.NetworkInterfacePort), + NetworkInterfacePort: __expectInt32(output.NetworkInterfacePort), TargetARN: __expectString(output.TargetARN), } as any; }; @@ -9224,7 +9225,7 @@ const deserializeAws_json1_1Disk = (output: any, context: __SerdeContext): Disk DiskId: __expectString(output.DiskId), DiskNode: __expectString(output.DiskNode), DiskPath: __expectString(output.DiskPath), - DiskSizeInBytes: __expectInt(output.DiskSizeInBytes), + DiskSizeInBytes: __expectLong(output.DiskSizeInBytes), DiskStatus: __expectString(output.DiskStatus), } as any; }; @@ -9604,8 +9605,8 @@ const deserializeAws_json1_1NFSFileShareDefaults = (output: any, context: __Serd return { DirectoryMode: __expectString(output.DirectoryMode), FileMode: __expectString(output.FileMode), - GroupId: __expectInt(output.GroupId), - OwnerId: __expectInt(output.OwnerId), + GroupId: __expectLong(output.GroupId), + OwnerId: __expectLong(output.OwnerId), } as any; }; @@ -9673,7 +9674,7 @@ const deserializeAws_json1_1PoolInfo = (output: any, context: __SerdeContext): P PoolARN: __expectString(output.PoolARN), PoolName: __expectString(output.PoolName), PoolStatus: __expectString(output.PoolStatus), - RetentionLockTimeInDays: __expectInt(output.RetentionLockTimeInDays), + RetentionLockTimeInDays: __expectInt32(output.RetentionLockTimeInDays), RetentionLockType: __expectString(output.RetentionLockType), StorageClass: __expectString(output.StorageClass), } as any; @@ -9864,11 +9865,11 @@ const deserializeAws_json1_1StorediSCSIVolume = (output: any, context: __SerdeCo VolumeAttachmentStatus: __expectString(output.VolumeAttachmentStatus), VolumeDiskId: __expectString(output.VolumeDiskId), VolumeId: __expectString(output.VolumeId), - VolumeProgress: __limitedParseFloat(output.VolumeProgress), - VolumeSizeInBytes: __expectInt(output.VolumeSizeInBytes), + VolumeProgress: __limitedParseDouble(output.VolumeProgress), + VolumeSizeInBytes: __expectLong(output.VolumeSizeInBytes), VolumeStatus: __expectString(output.VolumeStatus), VolumeType: __expectString(output.VolumeType), - VolumeUsedInBytes: __expectInt(output.VolumeUsedInBytes), + VolumeUsedInBytes: __expectLong(output.VolumeUsedInBytes), VolumeiSCSIAttributes: output.VolumeiSCSIAttributes !== undefined && output.VolumeiSCSIAttributes !== null ? deserializeAws_json1_1VolumeiSCSIAttributes(output.VolumeiSCSIAttributes, context) @@ -9927,7 +9928,7 @@ const deserializeAws_json1_1Tape = (output: any, context: __SerdeContext): Tape ? new Date(Math.round(output.PoolEntryDate * 1000)) : undefined, PoolId: __expectString(output.PoolId), - Progress: __limitedParseFloat(output.Progress), + Progress: __limitedParseDouble(output.Progress), RetentionStartDate: output.RetentionStartDate !== undefined && output.RetentionStartDate !== null ? new Date(Math.round(output.RetentionStartDate * 1000)) @@ -9938,9 +9939,9 @@ const deserializeAws_json1_1Tape = (output: any, context: __SerdeContext): Tape output.TapeCreatedDate !== undefined && output.TapeCreatedDate !== null ? new Date(Math.round(output.TapeCreatedDate * 1000)) : undefined, - TapeSizeInBytes: __expectInt(output.TapeSizeInBytes), + TapeSizeInBytes: __expectLong(output.TapeSizeInBytes), TapeStatus: __expectString(output.TapeStatus), - TapeUsedInBytes: __expectInt(output.TapeUsedInBytes), + TapeUsedInBytes: __expectLong(output.TapeUsedInBytes), VTLDevice: __expectString(output.VTLDevice), Worm: __expectBoolean(output.Worm), } as any; @@ -9969,9 +9970,9 @@ const deserializeAws_json1_1TapeArchive = (output: any, context: __SerdeContext) output.TapeCreatedDate !== undefined && output.TapeCreatedDate !== null ? new Date(Math.round(output.TapeCreatedDate * 1000)) : undefined, - TapeSizeInBytes: __expectInt(output.TapeSizeInBytes), + TapeSizeInBytes: __expectLong(output.TapeSizeInBytes), TapeStatus: __expectString(output.TapeStatus), - TapeUsedInBytes: __expectInt(output.TapeUsedInBytes), + TapeUsedInBytes: __expectLong(output.TapeUsedInBytes), Worm: __expectBoolean(output.Worm), } as any; }; @@ -10012,7 +10013,7 @@ const deserializeAws_json1_1TapeInfo = (output: any, context: __SerdeContext): T : undefined, TapeARN: __expectString(output.TapeARN), TapeBarcode: __expectString(output.TapeBarcode), - TapeSizeInBytes: __expectInt(output.TapeSizeInBytes), + TapeSizeInBytes: __expectLong(output.TapeSizeInBytes), TapeStatus: __expectString(output.TapeStatus), } as any; }; @@ -10035,7 +10036,7 @@ const deserializeAws_json1_1TapeRecoveryPointInfo = (output: any, context: __Ser output.TapeRecoveryPointTime !== undefined && output.TapeRecoveryPointTime !== null ? new Date(Math.round(output.TapeRecoveryPointTime * 1000)) : undefined, - TapeSizeInBytes: __expectInt(output.TapeSizeInBytes), + TapeSizeInBytes: __expectLong(output.TapeSizeInBytes), TapeStatus: __expectString(output.TapeStatus), } as any; }; @@ -10211,7 +10212,7 @@ const deserializeAws_json1_1VolumeInfo = (output: any, context: __SerdeContext): VolumeARN: __expectString(output.VolumeARN), VolumeAttachmentStatus: __expectString(output.VolumeAttachmentStatus), VolumeId: __expectString(output.VolumeId), - VolumeSizeInBytes: __expectInt(output.VolumeSizeInBytes), + VolumeSizeInBytes: __expectLong(output.VolumeSizeInBytes), VolumeType: __expectString(output.VolumeType), } as any; }; @@ -10230,9 +10231,9 @@ const deserializeAws_json1_1VolumeInfos = (output: any, context: __SerdeContext) const deserializeAws_json1_1VolumeiSCSIAttributes = (output: any, context: __SerdeContext): VolumeiSCSIAttributes => { return { ChapEnabled: __expectBoolean(output.ChapEnabled), - LunNumber: __expectInt(output.LunNumber), + LunNumber: __expectInt32(output.LunNumber), NetworkInterfaceId: __expectString(output.NetworkInterfaceId), - NetworkInterfacePort: __expectInt(output.NetworkInterfacePort), + NetworkInterfacePort: __expectInt32(output.NetworkInterfacePort), TargetARN: __expectString(output.TargetARN), } as any; }; @@ -10244,8 +10245,8 @@ const deserializeAws_json1_1VolumeRecoveryPointInfo = ( return { VolumeARN: __expectString(output.VolumeARN), VolumeRecoveryPointTime: __expectString(output.VolumeRecoveryPointTime), - VolumeSizeInBytes: __expectInt(output.VolumeSizeInBytes), - VolumeUsageInBytes: __expectInt(output.VolumeUsageInBytes), + VolumeSizeInBytes: __expectLong(output.VolumeSizeInBytes), + VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes), } as any; }; diff --git a/clients/client-sts/protocols/Aws_query.ts b/clients/client-sts/protocols/Aws_query.ts index 9116ed0b3cfef..c5a096f8ccc25 100644 --- a/clients/client-sts/protocols/Aws_query.ts +++ b/clients/client-sts/protocols/Aws_query.ts @@ -48,7 +48,7 @@ import { expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1127,7 +1127,7 @@ const deserializeAws_queryAssumeRoleResponse = (output: any, context: __SerdeCon contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); } if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt(output["PackedPolicySize"]) as number; + contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; } if (output["SourceIdentity"] !== undefined) { contents.SourceIdentity = __expectString(output["SourceIdentity"]); @@ -1157,7 +1157,7 @@ const deserializeAws_queryAssumeRoleWithSAMLResponse = ( contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); } if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt(output["PackedPolicySize"]) as number; + contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; } if (output["Subject"] !== undefined) { contents.Subject = __expectString(output["Subject"]); @@ -1203,7 +1203,7 @@ const deserializeAws_queryAssumeRoleWithWebIdentityResponse = ( contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); } if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt(output["PackedPolicySize"]) as number; + contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; } if (output["Provider"] !== undefined) { contents.Provider = __expectString(output["Provider"]); @@ -1326,7 +1326,7 @@ const deserializeAws_queryGetFederationTokenResponse = ( contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context); } if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt(output["PackedPolicySize"]) as number; + contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; } return contents; }; diff --git a/clients/client-support/protocols/Aws_json1_1.ts b/clients/client-support/protocols/Aws_json1_1.ts index 96c25813dc080..4064b7749034e 100644 --- a/clients/client-support/protocols/Aws_json1_1.ts +++ b/clients/client-support/protocols/Aws_json1_1.ts @@ -97,9 +97,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1969,7 +1969,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus = ( ): TrustedAdvisorCheckRefreshStatus => { return { checkId: __expectString(output.checkId), - millisUntilNextRefreshable: __expectInt(output.millisUntilNextRefreshable), + millisUntilNextRefreshable: __expectLong(output.millisUntilNextRefreshable), status: __expectString(output.status), } as any; }; @@ -2050,8 +2050,8 @@ const deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary = ( context: __SerdeContext ): TrustedAdvisorCostOptimizingSummary => { return { - estimatedMonthlySavings: __limitedParseFloat(output.estimatedMonthlySavings), - estimatedPercentMonthlySavings: __limitedParseFloat(output.estimatedPercentMonthlySavings), + estimatedMonthlySavings: __limitedParseDouble(output.estimatedMonthlySavings), + estimatedPercentMonthlySavings: __limitedParseDouble(output.estimatedPercentMonthlySavings), } as any; }; @@ -2090,10 +2090,10 @@ const deserializeAws_json1_1TrustedAdvisorResourcesSummary = ( context: __SerdeContext ): TrustedAdvisorResourcesSummary => { return { - resourcesFlagged: __expectInt(output.resourcesFlagged), - resourcesIgnored: __expectInt(output.resourcesIgnored), - resourcesProcessed: __expectInt(output.resourcesProcessed), - resourcesSuppressed: __expectInt(output.resourcesSuppressed), + resourcesFlagged: __expectLong(output.resourcesFlagged), + resourcesIgnored: __expectLong(output.resourcesIgnored), + resourcesProcessed: __expectLong(output.resourcesProcessed), + resourcesSuppressed: __expectLong(output.resourcesSuppressed), } as any; }; diff --git a/clients/client-swf/protocols/Aws_json1_0.ts b/clients/client-swf/protocols/Aws_json1_0.ts index ccfd3b69f19df..6a04ef37967b6 100644 --- a/clients/client-swf/protocols/Aws_json1_0.ts +++ b/clients/client-swf/protocols/Aws_json1_0.ts @@ -275,7 +275,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -4250,7 +4251,7 @@ const deserializeAws_json1_0ActivityTask = (output: any, context: __SerdeContext ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined, input: __expectString(output.input), - startedEventId: __expectInt(output.startedEventId), + startedEventId: __expectLong(output.startedEventId), taskToken: __expectString(output.taskToken), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null @@ -4265,9 +4266,9 @@ const deserializeAws_json1_0ActivityTaskCanceledEventAttributes = ( ): ActivityTaskCanceledEventAttributes => { return { details: __expectString(output.details), - latestCancelRequestedEventId: __expectInt(output.latestCancelRequestedEventId), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + latestCancelRequestedEventId: __expectLong(output.latestCancelRequestedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), } as any; }; @@ -4277,7 +4278,7 @@ const deserializeAws_json1_0ActivityTaskCancelRequestedEventAttributes = ( ): ActivityTaskCancelRequestedEventAttributes => { return { activityId: __expectString(output.activityId), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -4287,8 +4288,8 @@ const deserializeAws_json1_0ActivityTaskCompletedEventAttributes = ( ): ActivityTaskCompletedEventAttributes => { return { result: __expectString(output.result), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), } as any; }; @@ -4299,8 +4300,8 @@ const deserializeAws_json1_0ActivityTaskFailedEventAttributes = ( return { details: __expectString(output.details), reason: __expectString(output.reason), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), } as any; }; @@ -4315,7 +4316,7 @@ const deserializeAws_json1_0ActivityTaskScheduledEventAttributes = ( ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined, control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), heartbeatTimeout: __expectString(output.heartbeatTimeout), input: __expectString(output.input), scheduleToCloseTimeout: __expectString(output.scheduleToCloseTimeout), @@ -4335,7 +4336,7 @@ const deserializeAws_json1_0ActivityTaskStartedEventAttributes = ( ): ActivityTaskStartedEventAttributes => { return { identity: __expectString(output.identity), - scheduledEventId: __expectInt(output.scheduledEventId), + scheduledEventId: __expectLong(output.scheduledEventId), } as any; }; @@ -4351,8 +4352,8 @@ const deserializeAws_json1_0ActivityTaskTimedOutEventAttributes = ( ): ActivityTaskTimedOutEventAttributes => { return { details: __expectString(output.details), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), timeoutType: __expectString(output.timeoutType), } as any; }; @@ -4440,7 +4441,7 @@ const deserializeAws_json1_0CancelTimerFailedEventAttributes = ( ): CancelTimerFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), timerId: __expectString(output.timerId), } as any; }; @@ -4451,7 +4452,7 @@ const deserializeAws_json1_0CancelWorkflowExecutionFailedEventAttributes = ( ): CancelWorkflowExecutionFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -4461,8 +4462,8 @@ const deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes = ( ): ChildWorkflowExecutionCanceledEventAttributes => { return { details: __expectString(output.details), - initiatedEventId: __expectInt(output.initiatedEventId), - startedEventId: __expectInt(output.startedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), + startedEventId: __expectLong(output.startedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4479,9 +4480,9 @@ const deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = ( context: __SerdeContext ): ChildWorkflowExecutionCompletedEventAttributes => { return { - initiatedEventId: __expectInt(output.initiatedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), result: __expectString(output.result), - startedEventId: __expectInt(output.startedEventId), + startedEventId: __expectLong(output.startedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4499,9 +4500,9 @@ const deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = ( ): ChildWorkflowExecutionFailedEventAttributes => { return { details: __expectString(output.details), - initiatedEventId: __expectInt(output.initiatedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), reason: __expectString(output.reason), - startedEventId: __expectInt(output.startedEventId), + startedEventId: __expectLong(output.startedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4518,7 +4519,7 @@ const deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes = ( context: __SerdeContext ): ChildWorkflowExecutionStartedEventAttributes => { return { - initiatedEventId: __expectInt(output.initiatedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4535,8 +4536,8 @@ const deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes = ( context: __SerdeContext ): ChildWorkflowExecutionTerminatedEventAttributes => { return { - initiatedEventId: __expectInt(output.initiatedEventId), - startedEventId: __expectInt(output.startedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), + startedEventId: __expectLong(output.startedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4553,8 +4554,8 @@ const deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = ( context: __SerdeContext ): ChildWorkflowExecutionTimedOutEventAttributes => { return { - initiatedEventId: __expectInt(output.initiatedEventId), - startedEventId: __expectInt(output.startedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), + startedEventId: __expectLong(output.startedEventId), timeoutType: __expectString(output.timeoutType), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null @@ -4573,7 +4574,7 @@ const deserializeAws_json1_0CompleteWorkflowExecutionFailedEventAttributes = ( ): CompleteWorkflowExecutionFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -4583,7 +4584,7 @@ const deserializeAws_json1_0ContinueAsNewWorkflowExecutionFailedEventAttributes ): ContinueAsNewWorkflowExecutionFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -4594,8 +4595,8 @@ const deserializeAws_json1_0DecisionTask = (output: any, context: __SerdeContext ? deserializeAws_json1_0HistoryEventList(output.events, context) : undefined, nextPageToken: __expectString(output.nextPageToken), - previousStartedEventId: __expectInt(output.previousStartedEventId), - startedEventId: __expectInt(output.startedEventId), + previousStartedEventId: __expectLong(output.previousStartedEventId), + startedEventId: __expectLong(output.startedEventId), taskToken: __expectString(output.taskToken), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null @@ -4614,8 +4615,8 @@ const deserializeAws_json1_0DecisionTaskCompletedEventAttributes = ( ): DecisionTaskCompletedEventAttributes => { return { executionContext: __expectString(output.executionContext), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), } as any; }; @@ -4639,7 +4640,7 @@ const deserializeAws_json1_0DecisionTaskStartedEventAttributes = ( ): DecisionTaskStartedEventAttributes => { return { identity: __expectString(output.identity), - scheduledEventId: __expectInt(output.scheduledEventId), + scheduledEventId: __expectLong(output.scheduledEventId), } as any; }; @@ -4648,8 +4649,8 @@ const deserializeAws_json1_0DecisionTaskTimedOutEventAttributes = ( context: __SerdeContext ): DecisionTaskTimedOutEventAttributes => { return { - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), timeoutType: __expectString(output.timeoutType), } as any; }; @@ -4729,7 +4730,7 @@ const deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttribu context: __SerdeContext ): ExternalWorkflowExecutionCancelRequestedEventAttributes => { return { - initiatedEventId: __expectInt(output.initiatedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4742,7 +4743,7 @@ const deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes = ( context: __SerdeContext ): ExternalWorkflowExecutionSignaledEventAttributes => { return { - initiatedEventId: __expectInt(output.initiatedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context) @@ -4756,7 +4757,7 @@ const deserializeAws_json1_0FailWorkflowExecutionFailedEventAttributes = ( ): FailWorkflowExecutionFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -4908,7 +4909,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext output.decisionTaskTimedOutEventAttributes !== undefined && output.decisionTaskTimedOutEventAttributes !== null ? deserializeAws_json1_0DecisionTaskTimedOutEventAttributes(output.decisionTaskTimedOutEventAttributes, context) : undefined, - eventId: __expectInt(output.eventId), + eventId: __expectLong(output.eventId), eventTimestamp: output.eventTimestamp !== undefined && output.eventTimestamp !== null ? new Date(Math.round(output.eventTimestamp * 1000)) @@ -5169,8 +5170,8 @@ const deserializeAws_json1_0LambdaFunctionCompletedEventAttributes = ( ): LambdaFunctionCompletedEventAttributes => { return { result: __expectString(output.result), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), } as any; }; @@ -5181,8 +5182,8 @@ const deserializeAws_json1_0LambdaFunctionFailedEventAttributes = ( return { details: __expectString(output.details), reason: __expectString(output.reason), - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), } as any; }; @@ -5192,7 +5193,7 @@ const deserializeAws_json1_0LambdaFunctionScheduledEventAttributes = ( ): LambdaFunctionScheduledEventAttributes => { return { control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), id: __expectString(output.id), input: __expectString(output.input), name: __expectString(output.name), @@ -5205,7 +5206,7 @@ const deserializeAws_json1_0LambdaFunctionStartedEventAttributes = ( context: __SerdeContext ): LambdaFunctionStartedEventAttributes => { return { - scheduledEventId: __expectInt(output.scheduledEventId), + scheduledEventId: __expectLong(output.scheduledEventId), } as any; }; @@ -5214,8 +5215,8 @@ const deserializeAws_json1_0LambdaFunctionTimedOutEventAttributes = ( context: __SerdeContext ): LambdaFunctionTimedOutEventAttributes => { return { - scheduledEventId: __expectInt(output.scheduledEventId), - startedEventId: __expectInt(output.startedEventId), + scheduledEventId: __expectLong(output.scheduledEventId), + startedEventId: __expectLong(output.startedEventId), timeoutType: __expectString(output.timeoutType), } as any; }; @@ -5243,7 +5244,7 @@ const deserializeAws_json1_0MarkerRecordedEventAttributes = ( context: __SerdeContext ): MarkerRecordedEventAttributes => { return { - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), details: __expectString(output.details), markerName: __expectString(output.markerName), } as any; @@ -5260,7 +5261,7 @@ const deserializeAws_json1_0OperationNotPermittedFault = ( const deserializeAws_json1_0PendingTaskCount = (output: any, context: __SerdeContext): PendingTaskCount => { return { - count: __expectInt(output.count), + count: __expectInt32(output.count), truncated: __expectBoolean(output.truncated), } as any; }; @@ -5271,7 +5272,7 @@ const deserializeAws_json1_0RecordMarkerFailedEventAttributes = ( ): RecordMarkerFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), markerName: __expectString(output.markerName), } as any; }; @@ -5283,7 +5284,7 @@ const deserializeAws_json1_0RequestCancelActivityTaskFailedEventAttributes = ( return { activityId: __expectString(output.activityId), cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -5294,8 +5295,8 @@ const deserializeAws_json1_0RequestCancelExternalWorkflowExecutionFailedEventAtt return { cause: __expectString(output.cause), control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), - initiatedEventId: __expectInt(output.initiatedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), runId: __expectString(output.runId), workflowId: __expectString(output.workflowId), } as any; @@ -5307,7 +5308,7 @@ const deserializeAws_json1_0RequestCancelExternalWorkflowExecutionInitiatedEvent ): RequestCancelExternalWorkflowExecutionInitiatedEventAttributes => { return { control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), runId: __expectString(output.runId), workflowId: __expectString(output.workflowId), } as any; @@ -5348,7 +5349,7 @@ const deserializeAws_json1_0ScheduleActivityTaskFailedEventAttributes = ( ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined, cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), } as any; }; @@ -5358,7 +5359,7 @@ const deserializeAws_json1_0ScheduleLambdaFunctionFailedEventAttributes = ( ): ScheduleLambdaFunctionFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), id: __expectString(output.id), name: __expectString(output.name), } as any; @@ -5371,8 +5372,8 @@ const deserializeAws_json1_0SignalExternalWorkflowExecutionFailedEventAttributes return { cause: __expectString(output.cause), control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), - initiatedEventId: __expectInt(output.initiatedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), runId: __expectString(output.runId), workflowId: __expectString(output.workflowId), } as any; @@ -5384,7 +5385,7 @@ const deserializeAws_json1_0SignalExternalWorkflowExecutionInitiatedEventAttribu ): SignalExternalWorkflowExecutionInitiatedEventAttributes => { return { control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), input: __expectString(output.input), runId: __expectString(output.runId), signalName: __expectString(output.signalName), @@ -5399,8 +5400,8 @@ const deserializeAws_json1_0StartChildWorkflowExecutionFailedEventAttributes = ( return { cause: __expectString(output.cause), control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), - initiatedEventId: __expectInt(output.initiatedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), + initiatedEventId: __expectLong(output.initiatedEventId), workflowId: __expectString(output.workflowId), workflowType: output.workflowType !== undefined && output.workflowType !== null @@ -5416,7 +5417,7 @@ const deserializeAws_json1_0StartChildWorkflowExecutionInitiatedEventAttributes return { childPolicy: __expectString(output.childPolicy), control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout), input: __expectString(output.input), lambdaRole: __expectString(output.lambdaRole), @@ -5445,7 +5446,7 @@ const deserializeAws_json1_0StartLambdaFunctionFailedEventAttributes = ( return { cause: __expectString(output.cause), message: __expectString(output.message), - scheduledEventId: __expectInt(output.scheduledEventId), + scheduledEventId: __expectLong(output.scheduledEventId), } as any; }; @@ -5455,7 +5456,7 @@ const deserializeAws_json1_0StartTimerFailedEventAttributes = ( ): StartTimerFailedEventAttributes => { return { cause: __expectString(output.cause), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), timerId: __expectString(output.timerId), } as any; }; @@ -5482,8 +5483,8 @@ const deserializeAws_json1_0TimerCanceledEventAttributes = ( context: __SerdeContext ): TimerCanceledEventAttributes => { return { - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), - startedEventId: __expectInt(output.startedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), + startedEventId: __expectLong(output.startedEventId), timerId: __expectString(output.timerId), } as any; }; @@ -5493,7 +5494,7 @@ const deserializeAws_json1_0TimerFiredEventAttributes = ( context: __SerdeContext ): TimerFiredEventAttributes => { return { - startedEventId: __expectInt(output.startedEventId), + startedEventId: __expectLong(output.startedEventId), timerId: __expectString(output.timerId), } as any; }; @@ -5504,7 +5505,7 @@ const deserializeAws_json1_0TimerStartedEventAttributes = ( ): TimerStartedEventAttributes => { return { control: __expectString(output.control), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), startToFireTimeout: __expectString(output.startToFireTimeout), timerId: __expectString(output.timerId), } as any; @@ -5555,7 +5556,7 @@ const deserializeAws_json1_0WorkflowExecutionCanceledEventAttributes = ( context: __SerdeContext ): WorkflowExecutionCanceledEventAttributes => { return { - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), details: __expectString(output.details), } as any; }; @@ -5566,7 +5567,7 @@ const deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes = ( ): WorkflowExecutionCancelRequestedEventAttributes => { return { cause: __expectString(output.cause), - externalInitiatedEventId: __expectInt(output.externalInitiatedEventId), + externalInitiatedEventId: __expectLong(output.externalInitiatedEventId), externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context) @@ -5579,7 +5580,7 @@ const deserializeAws_json1_0WorkflowExecutionCompletedEventAttributes = ( context: __SerdeContext ): WorkflowExecutionCompletedEventAttributes => { return { - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), result: __expectString(output.result), } as any; }; @@ -5607,7 +5608,7 @@ const deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = ( ): WorkflowExecutionContinuedAsNewEventAttributes => { return { childPolicy: __expectString(output.childPolicy), - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout), input: __expectString(output.input), lambdaRole: __expectString(output.lambdaRole), @@ -5631,7 +5632,7 @@ const deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = ( const deserializeAws_json1_0WorkflowExecutionCount = (output: any, context: __SerdeContext): WorkflowExecutionCount => { return { - count: __expectInt(output.count), + count: __expectInt32(output.count), truncated: __expectBoolean(output.truncated), } as any; }; @@ -5666,7 +5667,7 @@ const deserializeAws_json1_0WorkflowExecutionFailedEventAttributes = ( context: __SerdeContext ): WorkflowExecutionFailedEventAttributes => { return { - decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId), + decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId), details: __expectString(output.details), reason: __expectString(output.reason), } as any; @@ -5733,11 +5734,11 @@ const deserializeAws_json1_0WorkflowExecutionOpenCounts = ( context: __SerdeContext ): WorkflowExecutionOpenCounts => { return { - openActivityTasks: __expectInt(output.openActivityTasks), - openChildWorkflowExecutions: __expectInt(output.openChildWorkflowExecutions), - openDecisionTasks: __expectInt(output.openDecisionTasks), - openLambdaFunctions: __expectInt(output.openLambdaFunctions), - openTimers: __expectInt(output.openTimers), + openActivityTasks: __expectInt32(output.openActivityTasks), + openChildWorkflowExecutions: __expectInt32(output.openChildWorkflowExecutions), + openDecisionTasks: __expectInt32(output.openDecisionTasks), + openLambdaFunctions: __expectInt32(output.openLambdaFunctions), + openTimers: __expectInt32(output.openTimers), } as any; }; @@ -5746,7 +5747,7 @@ const deserializeAws_json1_0WorkflowExecutionSignaledEventAttributes = ( context: __SerdeContext ): WorkflowExecutionSignaledEventAttributes => { return { - externalInitiatedEventId: __expectInt(output.externalInitiatedEventId), + externalInitiatedEventId: __expectLong(output.externalInitiatedEventId), externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context) @@ -5766,7 +5767,7 @@ const deserializeAws_json1_0WorkflowExecutionStartedEventAttributes = ( executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout), input: __expectString(output.input), lambdaRole: __expectString(output.lambdaRole), - parentInitiatedEventId: __expectInt(output.parentInitiatedEventId), + parentInitiatedEventId: __expectLong(output.parentInitiatedEventId), parentWorkflowExecution: output.parentWorkflowExecution !== undefined && output.parentWorkflowExecution !== null ? deserializeAws_json1_0WorkflowExecution(output.parentWorkflowExecution, context) diff --git a/clients/client-synthetics/protocols/Aws_restJson1.ts b/clients/client-synthetics/protocols/Aws_restJson1.ts index c0e2638c8b4ce..bc3ccda092025 100644 --- a/clients/client-synthetics/protocols/Aws_restJson1.ts +++ b/clients/client-synthetics/protocols/Aws_restJson1.ts @@ -48,7 +48,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1650,7 +1651,7 @@ const deserializeAws_restJson1Canary = (output: any, context: __SerdeContext): C : undefined, EngineArn: __expectString(output.EngineArn), ExecutionRoleArn: __expectString(output.ExecutionRoleArn), - FailureRetentionPeriodInDays: __expectInt(output.FailureRetentionPeriodInDays), + FailureRetentionPeriodInDays: __expectInt32(output.FailureRetentionPeriodInDays), Id: __expectString(output.Id), Name: __expectString(output.Name), RunConfig: @@ -1666,7 +1667,7 @@ const deserializeAws_restJson1Canary = (output: any, context: __SerdeContext): C output.Status !== undefined && output.Status !== null ? deserializeAws_restJson1CanaryStatus(output.Status, context) : undefined, - SuccessRetentionPeriodInDays: __expectInt(output.SuccessRetentionPeriodInDays), + SuccessRetentionPeriodInDays: __expectInt32(output.SuccessRetentionPeriodInDays), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_restJson1TagMap(output.Tags, context) @@ -1722,8 +1723,8 @@ const deserializeAws_restJson1CanaryRun = (output: any, context: __SerdeContext) const deserializeAws_restJson1CanaryRunConfigOutput = (output: any, context: __SerdeContext): CanaryRunConfigOutput => { return { ActiveTracing: __expectBoolean(output.ActiveTracing), - MemoryInMB: __expectInt(output.MemoryInMB), - TimeoutInSeconds: __expectInt(output.TimeoutInSeconds), + MemoryInMB: __expectInt32(output.MemoryInMB), + TimeoutInSeconds: __expectInt32(output.TimeoutInSeconds), } as any; }; @@ -1759,7 +1760,7 @@ const deserializeAws_restJson1CanaryRunTimeline = (output: any, context: __Serde const deserializeAws_restJson1CanaryScheduleOutput = (output: any, context: __SerdeContext): CanaryScheduleOutput => { return { - DurationInSeconds: __expectInt(output.DurationInSeconds), + DurationInSeconds: __expectLong(output.DurationInSeconds), Expression: __expectString(output.Expression), } as any; }; diff --git a/clients/client-textract/protocols/Aws_json1_1.ts b/clients/client-textract/protocols/Aws_json1_1.ts index 40ac27fbe0026..b2787d0e96727 100644 --- a/clients/client-textract/protocols/Aws_json1_1.ts +++ b/clients/client-textract/protocols/Aws_json1_1.ts @@ -74,9 +74,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { LazyJsonString as __LazyJsonString, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1486,9 +1486,9 @@ const deserializeAws_json1_1BadDocumentException = (output: any, context: __Serd const deserializeAws_json1_1Block = (output: any, context: __SerdeContext): Block => { return { BlockType: __expectString(output.BlockType), - ColumnIndex: __expectInt(output.ColumnIndex), - ColumnSpan: __expectInt(output.ColumnSpan), - Confidence: __limitedParseFloat(output.Confidence), + ColumnIndex: __expectInt32(output.ColumnIndex), + ColumnSpan: __expectInt32(output.ColumnSpan), + Confidence: __limitedParseFloat32(output.Confidence), EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context) @@ -1498,13 +1498,13 @@ const deserializeAws_json1_1Block = (output: any, context: __SerdeContext): Bloc ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined, Id: __expectString(output.Id), - Page: __expectInt(output.Page), + Page: __expectInt32(output.Page), Relationships: output.Relationships !== undefined && output.Relationships !== null ? deserializeAws_json1_1RelationshipList(output.Relationships, context) : undefined, - RowIndex: __expectInt(output.RowIndex), - RowSpan: __expectInt(output.RowSpan), + RowIndex: __expectInt32(output.RowIndex), + RowSpan: __expectInt32(output.RowSpan), SelectionStatus: __expectString(output.SelectionStatus), Text: __expectString(output.Text), TextType: __expectString(output.TextType), @@ -1524,10 +1524,10 @@ const deserializeAws_json1_1BlockList = (output: any, context: __SerdeContext): const deserializeAws_json1_1BoundingBox = (output: any, context: __SerdeContext): BoundingBox => { return { - Height: __limitedParseFloat(output.Height), - Left: __limitedParseFloat(output.Left), - Top: __limitedParseFloat(output.Top), - Width: __limitedParseFloat(output.Width), + Height: __limitedParseFloat32(output.Height), + Left: __limitedParseFloat32(output.Left), + Top: __limitedParseFloat32(output.Top), + Width: __limitedParseFloat32(output.Width), } as any; }; @@ -1550,7 +1550,7 @@ const deserializeAws_json1_1DetectDocumentTextResponse = ( const deserializeAws_json1_1DocumentMetadata = (output: any, context: __SerdeContext): DocumentMetadata => { return { - Pages: __expectInt(output.Pages), + Pages: __expectInt32(output.Pages), } as any; }; @@ -1577,7 +1577,7 @@ const deserializeAws_json1_1EntityTypes = (output: any, context: __SerdeContext) const deserializeAws_json1_1ExpenseDetection = (output: any, context: __SerdeContext): ExpenseDetection => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Geometry: output.Geometry !== undefined && output.Geometry !== null ? deserializeAws_json1_1Geometry(output.Geometry, context) @@ -1588,7 +1588,7 @@ const deserializeAws_json1_1ExpenseDetection = (output: any, context: __SerdeCon const deserializeAws_json1_1ExpenseDocument = (output: any, context: __SerdeContext): ExpenseDocument => { return { - ExpenseIndex: __expectInt(output.ExpenseIndex), + ExpenseIndex: __expectInt32(output.ExpenseIndex), LineItemGroups: output.LineItemGroups !== undefined && output.LineItemGroups !== null ? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context) @@ -1617,7 +1617,7 @@ const deserializeAws_json1_1ExpenseField = (output: any, context: __SerdeContext output.LabelDetection !== undefined && output.LabelDetection !== null ? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context) : undefined, - PageNumber: __expectInt(output.PageNumber), + PageNumber: __expectInt32(output.PageNumber), Type: output.Type !== undefined && output.Type !== null ? deserializeAws_json1_1ExpenseType(output.Type, context) @@ -1642,7 +1642,7 @@ const deserializeAws_json1_1ExpenseFieldList = (output: any, context: __SerdeCon const deserializeAws_json1_1ExpenseType = (output: any, context: __SerdeContext): ExpenseType => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseFloat32(output.Confidence), Text: __expectString(output.Text), } as any; }; @@ -1830,7 +1830,7 @@ const deserializeAws_json1_1LineItemFields = (output: any, context: __SerdeConte const deserializeAws_json1_1LineItemGroup = (output: any, context: __SerdeContext): LineItemGroup => { return { - LineItemGroupIndex: __expectInt(output.LineItemGroupIndex), + LineItemGroupIndex: __expectInt32(output.LineItemGroupIndex), LineItems: output.LineItems !== undefined && output.LineItems !== null ? deserializeAws_json1_1LineItemList(output.LineItems, context) @@ -1867,14 +1867,14 @@ const deserializeAws_json1_1Pages = (output: any, context: __SerdeContext): numb if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; const deserializeAws_json1_1Point = (output: any, context: __SerdeContext): Point => { return { - X: __limitedParseFloat(output.X), - Y: __limitedParseFloat(output.Y), + X: __limitedParseFloat32(output.X), + Y: __limitedParseFloat32(output.Y), } as any; }; diff --git a/clients/client-timestream-query/protocols/Aws_json1_0.ts b/clients/client-timestream-query/protocols/Aws_json1_0.ts index e3ba1c00dd3c8..2b1dbc2d07f43 100644 --- a/clients/client-timestream-query/protocols/Aws_json1_0.ts +++ b/clients/client-timestream-query/protocols/Aws_json1_0.ts @@ -26,9 +26,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -546,7 +546,7 @@ const deserializeAws_json1_0DescribeEndpointsResponse = ( const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): Endpoint => { return { Address: __expectString(output.Address), - CachePeriodInMinutes: __expectInt(output.CachePeriodInMinutes), + CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes), } as any; }; @@ -609,9 +609,9 @@ const deserializeAws_json1_0QueryResponse = (output: any, context: __SerdeContex const deserializeAws_json1_0QueryStatus = (output: any, context: __SerdeContext): QueryStatus => { return { - CumulativeBytesMetered: __expectInt(output.CumulativeBytesMetered), - CumulativeBytesScanned: __expectInt(output.CumulativeBytesScanned), - ProgressPercentage: __limitedParseFloat(output.ProgressPercentage), + CumulativeBytesMetered: __expectLong(output.CumulativeBytesMetered), + CumulativeBytesScanned: __expectLong(output.CumulativeBytesScanned), + ProgressPercentage: __limitedParseDouble(output.ProgressPercentage), } as any; }; diff --git a/clients/client-timestream-write/protocols/Aws_json1_0.ts b/clients/client-timestream-write/protocols/Aws_json1_0.ts index 99d07e5588c29..368e7191525ad 100644 --- a/clients/client-timestream-write/protocols/Aws_json1_0.ts +++ b/clients/client-timestream-write/protocols/Aws_json1_0.ts @@ -63,7 +63,11 @@ import { _Record, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectString as __expectString, +} from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -2033,7 +2037,7 @@ const deserializeAws_json1_0Database = (output: any, context: __SerdeContext): D output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null ? new Date(Math.round(output.LastUpdatedTime * 1000)) : undefined, - TableCount: __expectInt(output.TableCount), + TableCount: __expectLong(output.TableCount), } as any; }; @@ -2084,7 +2088,7 @@ const deserializeAws_json1_0DescribeTableResponse = (output: any, context: __Ser const deserializeAws_json1_0Endpoint = (output: any, context: __SerdeContext): Endpoint => { return { Address: __expectString(output.Address), - CachePeriodInMinutes: __expectInt(output.CachePeriodInMinutes), + CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes), } as any; }; @@ -2151,9 +2155,9 @@ const deserializeAws_json1_0ListTagsForResourceResponse = ( const deserializeAws_json1_0RejectedRecord = (output: any, context: __SerdeContext): RejectedRecord => { return { - ExistingVersion: __expectInt(output.ExistingVersion), + ExistingVersion: __expectLong(output.ExistingVersion), Reason: __expectString(output.Reason), - RecordIndex: __expectInt(output.RecordIndex), + RecordIndex: __expectInt32(output.RecordIndex), } as any; }; @@ -2192,8 +2196,8 @@ const deserializeAws_json1_0ResourceNotFoundException = ( const deserializeAws_json1_0RetentionProperties = (output: any, context: __SerdeContext): RetentionProperties => { return { - MagneticStoreRetentionPeriodInDays: __expectInt(output.MagneticStoreRetentionPeriodInDays), - MemoryStoreRetentionPeriodInHours: __expectInt(output.MemoryStoreRetentionPeriodInHours), + MagneticStoreRetentionPeriodInDays: __expectLong(output.MagneticStoreRetentionPeriodInDays), + MemoryStoreRetentionPeriodInHours: __expectLong(output.MemoryStoreRetentionPeriodInHours), } as any; }; diff --git a/clients/client-transcribe-streaming/protocols/Aws_restJson1.ts b/clients/client-transcribe-streaming/protocols/Aws_restJson1.ts index a6ef1f78e30a7..955ab725b3c4e 100644 --- a/clients/client-transcribe-streaming/protocols/Aws_restJson1.ts +++ b/clients/client-transcribe-streaming/protocols/Aws_restJson1.ts @@ -32,9 +32,9 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { expectBoolean as __expectBoolean, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, parseBoolean as __parseBoolean, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -180,7 +180,7 @@ export const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = as contents.LanguageCode = output.headers["x-amzn-transcribe-language-code"]; } if (output.headers["x-amzn-transcribe-sample-rate"] !== undefined) { - contents.MediaSampleRateHertz = __strictParseInt(output.headers["x-amzn-transcribe-sample-rate"]); + contents.MediaSampleRateHertz = __strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]); } if (output.headers["x-amzn-transcribe-media-encoding"] !== undefined) { contents.MediaEncoding = output.headers["x-amzn-transcribe-media-encoding"]; @@ -206,7 +206,7 @@ export const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = as ); } if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { - contents.NumberOfChannels = __strictParseInt(output.headers["x-amzn-transcribe-number-of-channels"]); + contents.NumberOfChannels = __strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]); } if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) { contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"]; @@ -330,7 +330,7 @@ export const deserializeAws_restJson1StartStreamTranscriptionCommand = async ( contents.LanguageCode = output.headers["x-amzn-transcribe-language-code"]; } if (output.headers["x-amzn-transcribe-sample-rate"] !== undefined) { - contents.MediaSampleRateHertz = __strictParseInt(output.headers["x-amzn-transcribe-sample-rate"]); + contents.MediaSampleRateHertz = __strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]); } if (output.headers["x-amzn-transcribe-media-encoding"] !== undefined) { contents.MediaEncoding = output.headers["x-amzn-transcribe-media-encoding"]; @@ -356,7 +356,7 @@ export const deserializeAws_restJson1StartStreamTranscriptionCommand = async ( ); } if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { - contents.NumberOfChannels = __strictParseInt(output.headers["x-amzn-transcribe-number-of-channels"]); + contents.NumberOfChannels = __strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]); } if (output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] !== undefined) { contents.EnablePartialResultsStabilization = __parseBoolean( @@ -784,12 +784,12 @@ const deserializeAws_restJson1InternalFailureException = ( const deserializeAws_restJson1Item = (output: any, context: __SerdeContext): Item => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseDouble(output.Confidence), Content: __expectString(output.Content), - EndTime: __limitedParseFloat(output.EndTime), + EndTime: __limitedParseDouble(output.EndTime), Speaker: __expectString(output.Speaker), Stable: __expectBoolean(output.Stable), - StartTime: __limitedParseFloat(output.StartTime), + StartTime: __limitedParseDouble(output.StartTime), Type: __expectString(output.Type), VocabularyFilterMatch: __expectBoolean(output.VocabularyFilterMatch), } as any; @@ -843,10 +843,10 @@ const deserializeAws_restJson1MedicalAlternativeList = (output: any, context: __ const deserializeAws_restJson1MedicalEntity = (output: any, context: __SerdeContext): MedicalEntity => { return { Category: __expectString(output.Category), - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseDouble(output.Confidence), Content: __expectString(output.Content), - EndTime: __limitedParseFloat(output.EndTime), - StartTime: __limitedParseFloat(output.StartTime), + EndTime: __limitedParseDouble(output.EndTime), + StartTime: __limitedParseDouble(output.StartTime), } as any; }; @@ -863,11 +863,11 @@ const deserializeAws_restJson1MedicalEntityList = (output: any, context: __Serde const deserializeAws_restJson1MedicalItem = (output: any, context: __SerdeContext): MedicalItem => { return { - Confidence: __limitedParseFloat(output.Confidence), + Confidence: __limitedParseDouble(output.Confidence), Content: __expectString(output.Content), - EndTime: __limitedParseFloat(output.EndTime), + EndTime: __limitedParseDouble(output.EndTime), Speaker: __expectString(output.Speaker), - StartTime: __limitedParseFloat(output.StartTime), + StartTime: __limitedParseDouble(output.StartTime), Type: __expectString(output.Type), } as any; }; @@ -890,10 +890,10 @@ const deserializeAws_restJson1MedicalResult = (output: any, context: __SerdeCont ? deserializeAws_restJson1MedicalAlternativeList(output.Alternatives, context) : undefined, ChannelId: __expectString(output.ChannelId), - EndTime: __limitedParseFloat(output.EndTime), + EndTime: __limitedParseDouble(output.EndTime), IsPartial: __expectBoolean(output.IsPartial), ResultId: __expectString(output.ResultId), - StartTime: __limitedParseFloat(output.StartTime), + StartTime: __limitedParseDouble(output.StartTime), } as any; }; @@ -979,10 +979,10 @@ const deserializeAws_restJson1Result = (output: any, context: __SerdeContext): R ? deserializeAws_restJson1AlternativeList(output.Alternatives, context) : undefined, ChannelId: __expectString(output.ChannelId), - EndTime: __limitedParseFloat(output.EndTime), + EndTime: __limitedParseDouble(output.EndTime), IsPartial: __expectBoolean(output.IsPartial), ResultId: __expectString(output.ResultId), - StartTime: __limitedParseFloat(output.StartTime), + StartTime: __limitedParseDouble(output.StartTime), } as any; }; diff --git a/clients/client-transcribe/protocols/Aws_json1_1.ts b/clients/client-transcribe/protocols/Aws_json1_1.ts index 6af7dea26148f..f8c2a185eb2ea 100644 --- a/clients/client-transcribe/protocols/Aws_json1_1.ts +++ b/clients/client-transcribe/protocols/Aws_json1_1.ts @@ -230,9 +230,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -4250,10 +4251,10 @@ const serializeAws_json1_1Words = (input: string[], context: __SerdeContext): an const deserializeAws_json1_1AbsoluteTimeRange = (output: any, context: __SerdeContext): AbsoluteTimeRange => { return { - EndTime: __expectInt(output.EndTime), - First: __expectInt(output.First), - Last: __expectInt(output.Last), - StartTime: __expectInt(output.StartTime), + EndTime: __expectLong(output.EndTime), + First: __expectLong(output.First), + Last: __expectLong(output.Last), + StartTime: __expectLong(output.StartTime), } as any; }; @@ -4281,14 +4282,14 @@ const deserializeAws_json1_1CallAnalyticsJob = (output: any, context: __SerdeCon : undefined, DataAccessRoleArn: __expectString(output.DataAccessRoleArn), FailureReason: __expectString(output.FailureReason), - IdentifiedLanguageScore: __limitedParseFloat(output.IdentifiedLanguageScore), + IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore), LanguageCode: __expectString(output.LanguageCode), Media: output.Media !== undefined && output.Media !== null ? deserializeAws_json1_1Media(output.Media, context) : undefined, MediaFormat: __expectString(output.MediaFormat), - MediaSampleRateHertz: __expectInt(output.MediaSampleRateHertz), + MediaSampleRateHertz: __expectInt32(output.MediaSampleRateHertz), Settings: output.Settings !== undefined && output.Settings !== null ? deserializeAws_json1_1CallAnalyticsJobSettings(output.Settings, context) @@ -4393,7 +4394,7 @@ const deserializeAws_json1_1CategoryPropertiesList = (output: any, context: __Se const deserializeAws_json1_1ChannelDefinition = (output: any, context: __SerdeContext): ChannelDefinition => { return { - ChannelId: __expectInt(output.ChannelId), + ChannelId: __expectInt32(output.ChannelId), ParticipantRole: __expectString(output.ParticipantRole), } as any; }; @@ -4645,7 +4646,7 @@ const deserializeAws_json1_1InterruptionFilter = (output: any, context: __SerdeC output.RelativeTimeRange !== undefined && output.RelativeTimeRange !== null ? deserializeAws_json1_1RelativeTimeRange(output.RelativeTimeRange, context) : undefined, - Threshold: __expectInt(output.Threshold), + Threshold: __expectLong(output.Threshold), } as any; }; @@ -4839,7 +4840,7 @@ const deserializeAws_json1_1MedicalTranscriptionJob = ( ? deserializeAws_json1_1Media(output.Media, context) : undefined, MediaFormat: __expectString(output.MediaFormat), - MediaSampleRateHertz: __expectInt(output.MediaSampleRateHertz), + MediaSampleRateHertz: __expectInt32(output.MediaSampleRateHertz), MedicalTranscriptionJobName: __expectString(output.MedicalTranscriptionJobName), Settings: output.Settings !== undefined && output.Settings !== null @@ -4907,8 +4908,8 @@ const deserializeAws_json1_1MedicalTranscriptionSetting = ( ): MedicalTranscriptionSetting => { return { ChannelIdentification: __expectBoolean(output.ChannelIdentification), - MaxAlternatives: __expectInt(output.MaxAlternatives), - MaxSpeakerLabels: __expectInt(output.MaxSpeakerLabels), + MaxAlternatives: __expectInt32(output.MaxAlternatives), + MaxSpeakerLabels: __expectInt32(output.MaxSpeakerLabels), ShowAlternatives: __expectBoolean(output.ShowAlternatives), ShowSpeakerLabels: __expectBoolean(output.ShowSpeakerLabels), VocabularyName: __expectString(output.VocabularyName), @@ -4943,7 +4944,7 @@ const deserializeAws_json1_1NonTalkTimeFilter = (output: any, context: __SerdeCo output.RelativeTimeRange !== undefined && output.RelativeTimeRange !== null ? deserializeAws_json1_1RelativeTimeRange(output.RelativeTimeRange, context) : undefined, - Threshold: __expectInt(output.Threshold), + Threshold: __expectLong(output.Threshold), } as any; }; @@ -4955,10 +4956,10 @@ const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeCo const deserializeAws_json1_1RelativeTimeRange = (output: any, context: __SerdeContext): RelativeTimeRange => { return { - EndPercentage: __expectInt(output.EndPercentage), - First: __expectInt(output.First), - Last: __expectInt(output.Last), - StartPercentage: __expectInt(output.StartPercentage), + EndPercentage: __expectInt32(output.EndPercentage), + First: __expectInt32(output.First), + Last: __expectInt32(output.Last), + StartPercentage: __expectInt32(output.StartPercentage), } as any; }; @@ -5033,8 +5034,8 @@ const deserializeAws_json1_1SentimentValueList = ( const deserializeAws_json1_1Settings = (output: any, context: __SerdeContext): Settings => { return { ChannelIdentification: __expectBoolean(output.ChannelIdentification), - MaxAlternatives: __expectInt(output.MaxAlternatives), - MaxSpeakerLabels: __expectInt(output.MaxSpeakerLabels), + MaxAlternatives: __expectInt32(output.MaxAlternatives), + MaxSpeakerLabels: __expectInt32(output.MaxSpeakerLabels), ShowAlternatives: __expectBoolean(output.ShowAlternatives), ShowSpeakerLabels: __expectBoolean(output.ShowSpeakerLabels), VocabularyFilterMethod: __expectString(output.VocabularyFilterMethod), @@ -5132,7 +5133,7 @@ const deserializeAws_json1_1TranscriptionJob = (output: any, context: __SerdeCon ? new Date(Math.round(output.CreationTime * 1000)) : undefined, FailureReason: __expectString(output.FailureReason), - IdentifiedLanguageScore: __limitedParseFloat(output.IdentifiedLanguageScore), + IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore), IdentifyLanguage: __expectBoolean(output.IdentifyLanguage), JobExecutionSettings: output.JobExecutionSettings !== undefined && output.JobExecutionSettings !== null @@ -5148,7 +5149,7 @@ const deserializeAws_json1_1TranscriptionJob = (output: any, context: __SerdeCon ? deserializeAws_json1_1Media(output.Media, context) : undefined, MediaFormat: __expectString(output.MediaFormat), - MediaSampleRateHertz: __expectInt(output.MediaSampleRateHertz), + MediaSampleRateHertz: __expectInt32(output.MediaSampleRateHertz), ModelSettings: output.ModelSettings !== undefined && output.ModelSettings !== null ? deserializeAws_json1_1ModelSettings(output.ModelSettings, context) @@ -5202,7 +5203,7 @@ const deserializeAws_json1_1TranscriptionJobSummary = ( ? new Date(Math.round(output.CreationTime * 1000)) : undefined, FailureReason: __expectString(output.FailureReason), - IdentifiedLanguageScore: __limitedParseFloat(output.IdentifiedLanguageScore), + IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore), IdentifyLanguage: __expectBoolean(output.IdentifyLanguage), LanguageCode: __expectString(output.LanguageCode), ModelSettings: diff --git a/clients/client-transfer/protocols/Aws_json1_1.ts b/clients/client-transfer/protocols/Aws_json1_1.ts index 881a6a6da1a3e..fe36967a2293b 100644 --- a/clients/client-transfer/protocols/Aws_json1_1.ts +++ b/clients/client-transfer/protocols/Aws_json1_1.ts @@ -106,7 +106,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -3205,7 +3206,7 @@ const deserializeAws_json1_1DescribedServer = (output: any, context: __SerdeCont State: __expectString(output.State), Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined, - UserCount: __expectInt(output.UserCount), + UserCount: __expectInt32(output.UserCount), } as any; }; @@ -3388,7 +3389,7 @@ const deserializeAws_json1_1ListedServer = (output: any, context: __SerdeContext LoggingRole: __expectString(output.LoggingRole), ServerId: __expectString(output.ServerId), State: __expectString(output.State), - UserCount: __expectInt(output.UserCount), + UserCount: __expectInt32(output.UserCount), } as any; }; @@ -3409,7 +3410,7 @@ const deserializeAws_json1_1ListedUser = (output: any, context: __SerdeContext): HomeDirectory: __expectString(output.HomeDirectory), HomeDirectoryType: __expectString(output.HomeDirectoryType), Role: __expectString(output.Role), - SshPublicKeyCount: __expectInt(output.SshPublicKeyCount), + SshPublicKeyCount: __expectInt32(output.SshPublicKeyCount), UserName: __expectString(output.UserName), } as any; }; @@ -3473,12 +3474,12 @@ const deserializeAws_json1_1ListUsersResponse = (output: any, context: __SerdeCo const deserializeAws_json1_1PosixProfile = (output: any, context: __SerdeContext): PosixProfile => { return { - Gid: __expectInt(output.Gid), + Gid: __expectLong(output.Gid), SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null ? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context) : undefined, - Uid: __expectInt(output.Uid), + Uid: __expectLong(output.Uid), } as any; }; @@ -3528,7 +3529,7 @@ const deserializeAws_json1_1SecondaryGids = (output: any, context: __SerdeContex if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectLong(entry) as any; }); }; @@ -3632,7 +3633,7 @@ const deserializeAws_json1_1TestIdentityProviderResponse = ( return { Message: __expectString(output.Message), Response: __expectString(output.Response), - StatusCode: __expectInt(output.StatusCode), + StatusCode: __expectInt32(output.StatusCode), Url: __expectString(output.Url), } as any; }; diff --git a/clients/client-translate/protocols/Aws_json1_1.ts b/clients/client-translate/protocols/Aws_json1_1.ts index 6254cb4bde011..c90048b25e38d 100644 --- a/clients/client-translate/protocols/Aws_json1_1.ts +++ b/clients/client-translate/protocols/Aws_json1_1.ts @@ -81,7 +81,11 @@ import { UpdateParallelDataResponse, } from "../models/models_0"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; -import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client"; +import { + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectString as __expectString, +} from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, HeaderBag as __HeaderBag, @@ -2045,9 +2049,9 @@ const deserializeAws_json1_1InvalidRequestException = ( const deserializeAws_json1_1JobDetails = (output: any, context: __SerdeContext): JobDetails => { return { - DocumentsWithErrorsCount: __expectInt(output.DocumentsWithErrorsCount), - InputDocumentsCount: __expectInt(output.InputDocumentsCount), - TranslatedDocumentsCount: __expectInt(output.TranslatedDocumentsCount), + DocumentsWithErrorsCount: __expectInt32(output.DocumentsWithErrorsCount), + InputDocumentsCount: __expectInt32(output.InputDocumentsCount), + TranslatedDocumentsCount: __expectInt32(output.TranslatedDocumentsCount), } as any; }; @@ -2142,9 +2146,9 @@ const deserializeAws_json1_1ParallelDataProperties = (output: any, context: __Se output.EncryptionKey !== undefined && output.EncryptionKey !== null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined, - FailedRecordCount: __expectInt(output.FailedRecordCount), - ImportedDataSize: __expectInt(output.ImportedDataSize), - ImportedRecordCount: __expectInt(output.ImportedRecordCount), + FailedRecordCount: __expectLong(output.FailedRecordCount), + ImportedDataSize: __expectLong(output.ImportedDataSize), + ImportedRecordCount: __expectLong(output.ImportedRecordCount), LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null ? new Date(Math.round(output.LastUpdatedAt * 1000)) @@ -2160,7 +2164,7 @@ const deserializeAws_json1_1ParallelDataProperties = (output: any, context: __Se output.ParallelDataConfig !== undefined && output.ParallelDataConfig !== null ? deserializeAws_json1_1ParallelDataConfig(output.ParallelDataConfig, context) : undefined, - SkippedRecordCount: __expectInt(output.SkippedRecordCount), + SkippedRecordCount: __expectLong(output.SkippedRecordCount), SourceLanguageCode: __expectString(output.SourceLanguageCode), Status: __expectString(output.Status), TargetLanguageCodes: @@ -2278,13 +2282,13 @@ const deserializeAws_json1_1TerminologyProperties = (output: any, context: __Ser ? new Date(Math.round(output.LastUpdatedAt * 1000)) : undefined, Name: __expectString(output.Name), - SizeBytes: __expectInt(output.SizeBytes), + SizeBytes: __expectInt32(output.SizeBytes), SourceLanguageCode: __expectString(output.SourceLanguageCode), TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null ? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context) : undefined, - TermCount: __expectInt(output.TermCount), + TermCount: __expectInt32(output.TermCount), } as any; }; diff --git a/clients/client-waf-regional/protocols/Aws_json1_1.ts b/clients/client-waf-regional/protocols/Aws_json1_1.ts index a0d7547392f6a..0a2a840b46787 100644 --- a/clients/client-waf-regional/protocols/Aws_json1_1.ts +++ b/clients/client-waf-regional/protocols/Aws_json1_1.ts @@ -426,7 +426,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -9874,7 +9875,7 @@ const deserializeAws_json1_1ActivatedRule = (output: any, context: __SerdeContex output.OverrideAction !== undefined && output.OverrideAction !== null ? deserializeAws_json1_1WafOverrideAction(output.OverrideAction, context) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), RuleId: __expectString(output.RuleId), Type: __expectString(output.Type), } as any; @@ -10434,7 +10435,7 @@ const deserializeAws_json1_1GetSampledRequestsResponse = ( context: __SerdeContext ): GetSampledRequestsResponse => { return { - PopulationSize: __expectInt(output.PopulationSize), + PopulationSize: __expectLong(output.PopulationSize), SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context) @@ -10881,7 +10882,7 @@ const deserializeAws_json1_1RateBasedRule = (output: any, context: __SerdeContex MetricName: __expectString(output.MetricName), Name: __expectString(output.Name), RateKey: __expectString(output.RateKey), - RateLimit: __expectInt(output.RateLimit), + RateLimit: __expectLong(output.RateLimit), RuleId: __expectString(output.RuleId), } as any; }; @@ -11070,7 +11071,7 @@ const deserializeAws_json1_1SampledHTTPRequest = (output: any, context: __SerdeC output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Weight: __expectInt(output.Weight), + Weight: __expectLong(output.Weight), } as any; }; @@ -11092,7 +11093,7 @@ const deserializeAws_json1_1SizeConstraint = (output: any, context: __SerdeConte output.FieldToMatch !== undefined && output.FieldToMatch !== null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined, - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), TextTransformation: __expectString(output.TextTransformation), } as any; }; diff --git a/clients/client-waf/protocols/Aws_json1_1.ts b/clients/client-waf/protocols/Aws_json1_1.ts index ac74472280ca8..0a511cd7da16b 100644 --- a/clients/client-waf/protocols/Aws_json1_1.ts +++ b/clients/client-waf/protocols/Aws_json1_1.ts @@ -407,7 +407,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -9425,7 +9426,7 @@ const deserializeAws_json1_1ActivatedRule = (output: any, context: __SerdeContex output.OverrideAction !== undefined && output.OverrideAction !== null ? deserializeAws_json1_1WafOverrideAction(output.OverrideAction, context) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), RuleId: __expectString(output.RuleId), Type: __expectString(output.Type), } as any; @@ -9971,7 +9972,7 @@ const deserializeAws_json1_1GetSampledRequestsResponse = ( context: __SerdeContext ): GetSampledRequestsResponse => { return { - PopulationSize: __expectInt(output.PopulationSize), + PopulationSize: __expectLong(output.PopulationSize), SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context) @@ -10394,7 +10395,7 @@ const deserializeAws_json1_1RateBasedRule = (output: any, context: __SerdeContex MetricName: __expectString(output.MetricName), Name: __expectString(output.Name), RateKey: __expectString(output.RateKey), - RateLimit: __expectInt(output.RateLimit), + RateLimit: __expectLong(output.RateLimit), RuleId: __expectString(output.RuleId), } as any; }; @@ -10572,7 +10573,7 @@ const deserializeAws_json1_1SampledHTTPRequest = (output: any, context: __SerdeC output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Weight: __expectInt(output.Weight), + Weight: __expectLong(output.Weight), } as any; }; @@ -10594,7 +10595,7 @@ const deserializeAws_json1_1SizeConstraint = (output: any, context: __SerdeConte output.FieldToMatch !== undefined && output.FieldToMatch !== null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined, - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), TextTransformation: __expectString(output.TextTransformation), } as any; }; diff --git a/clients/client-wafv2/protocols/Aws_json1_1.ts b/clients/client-wafv2/protocols/Aws_json1_1.ts index 91549fa1e481d..5db27ddaa5b7f 100644 --- a/clients/client-wafv2/protocols/Aws_json1_1.ts +++ b/clients/client-wafv2/protocols/Aws_json1_1.ts @@ -297,7 +297,8 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -6554,7 +6555,7 @@ const deserializeAws_json1_1ByteMatchStatement = (output: any, context: __SerdeC const deserializeAws_json1_1CheckCapacityResponse = (output: any, context: __SerdeContext): CheckCapacityResponse => { return { - Capacity: __expectInt(output.Capacity), + Capacity: __expectLong(output.Capacity), } as any; }; @@ -6674,7 +6675,7 @@ const deserializeAws_json1_1CustomRequestHandling = (output: any, context: __Ser const deserializeAws_json1_1CustomResponse = (output: any, context: __SerdeContext): CustomResponse => { return { CustomResponseBodyKey: __expectString(output.CustomResponseBodyKey), - ResponseCode: __expectInt(output.ResponseCode), + ResponseCode: __expectInt32(output.ResponseCode), ResponseHeaders: output.ResponseHeaders !== undefined && output.ResponseHeaders !== null ? deserializeAws_json1_1CustomHTTPHeaders(output.ResponseHeaders, context) @@ -6771,7 +6772,7 @@ const deserializeAws_json1_1DescribeManagedRuleGroupResponse = ( output.AvailableLabels !== undefined && output.AvailableLabels !== null ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context) : undefined, - Capacity: __expectInt(output.Capacity), + Capacity: __expectLong(output.Capacity), ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) @@ -6881,7 +6882,7 @@ const deserializeAws_json1_1FirewallManagerRuleGroup = ( output.OverrideAction !== undefined && output.OverrideAction !== null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context) @@ -7027,7 +7028,7 @@ const deserializeAws_json1_1GetSampledRequestsResponse = ( context: __SerdeContext ): GetSampledRequestsResponse => { return { - PopulationSize: __expectInt(output.PopulationSize), + PopulationSize: __expectLong(output.PopulationSize), SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context) @@ -7524,12 +7525,12 @@ const deserializeAws_json1_1ManagedRuleSetSummary = (output: any, context: __Ser const deserializeAws_json1_1ManagedRuleSetVersion = (output: any, context: __SerdeContext): ManagedRuleSetVersion => { return { AssociatedRuleGroupArn: __expectString(output.AssociatedRuleGroupArn), - Capacity: __expectInt(output.Capacity), + Capacity: __expectLong(output.Capacity), ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null ? new Date(Math.round(output.ExpiryTimestamp * 1000)) : undefined, - ForecastedLifetime: __expectInt(output.ForecastedLifetime), + ForecastedLifetime: __expectInt32(output.ForecastedLifetime), LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null ? new Date(Math.round(output.LastUpdateTimestamp * 1000)) @@ -7634,7 +7635,7 @@ const deserializeAws_json1_1RateBasedStatement = (output: any, context: __SerdeC output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context) : undefined, - Limit: __expectInt(output.Limit), + Limit: __expectLong(output.Limit), ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context) @@ -7759,7 +7760,7 @@ const deserializeAws_json1_1Rule = (output: any, context: __SerdeContext): Rule output.OverrideAction !== undefined && output.OverrideAction !== null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined, - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), RuleLabels: output.RuleLabels !== undefined && output.RuleLabels !== null ? deserializeAws_json1_1Labels(output.RuleLabels, context) @@ -7799,7 +7800,7 @@ const deserializeAws_json1_1RuleGroup = (output: any, context: __SerdeContext): output.AvailableLabels !== undefined && output.AvailableLabels !== null ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context) : undefined, - Capacity: __expectInt(output.Capacity), + Capacity: __expectLong(output.Capacity), ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) @@ -7904,13 +7905,13 @@ const deserializeAws_json1_1SampledHTTPRequest = (output: any, context: __SerdeC output.RequestHeadersInserted !== undefined && output.RequestHeadersInserted !== null ? deserializeAws_json1_1HTTPHeaders(output.RequestHeadersInserted, context) : undefined, - ResponseCodeSent: __expectInt(output.ResponseCodeSent), + ResponseCodeSent: __expectInt32(output.ResponseCodeSent), RuleNameWithinRuleGroup: __expectString(output.RuleNameWithinRuleGroup), Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) : undefined, - Weight: __expectInt(output.Weight), + Weight: __expectLong(output.Weight), } as any; }; @@ -7947,7 +7948,7 @@ const deserializeAws_json1_1SizeConstraintStatement = ( output.FieldToMatch !== undefined && output.FieldToMatch !== null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined, - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context) @@ -8074,7 +8075,7 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde const deserializeAws_json1_1TextTransformation = (output: any, context: __SerdeContext): TextTransformation => { return { - Priority: __expectInt(output.Priority), + Priority: __expectInt32(output.Priority), Type: __expectString(output.Type), } as any; }; @@ -8311,7 +8312,7 @@ const deserializeAws_json1_1WAFUnavailableEntityException = ( const deserializeAws_json1_1WebACL = (output: any, context: __SerdeContext): WebACL => { return { ARN: __expectString(output.ARN), - Capacity: __expectInt(output.Capacity), + Capacity: __expectLong(output.Capacity), CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context) diff --git a/clients/client-wellarchitected/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/protocols/Aws_restJson1.ts index 35ccb67abb9ee..0d632e19814ca 100644 --- a/clients/client-wellarchitected/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/protocols/Aws_restJson1.ts @@ -95,7 +95,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -1402,7 +1402,7 @@ export const deserializeAws_restJson1CreateMilestoneCommand = async ( }; const data: any = await parseBody(output.body, context); if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.WorkloadId !== undefined && data.WorkloadId !== null) { contents.WorkloadId = __expectString(data.WorkloadId); @@ -1996,7 +1996,7 @@ export const deserializeAws_restJson1GetAnswerCommand = async ( contents.LensAlias = __expectString(data.LensAlias); } if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.WorkloadId !== undefined && data.WorkloadId !== null) { contents.WorkloadId = __expectString(data.WorkloadId); @@ -2091,7 +2091,7 @@ export const deserializeAws_restJson1GetLensReviewCommand = async ( contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context); } if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.WorkloadId !== undefined && data.WorkloadId !== null) { contents.WorkloadId = __expectString(data.WorkloadId); @@ -2186,7 +2186,7 @@ export const deserializeAws_restJson1GetLensReviewReportCommand = async ( contents.LensReviewReport = deserializeAws_restJson1LensReviewReport(data.LensReviewReport, context); } if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.WorkloadId !== undefined && data.WorkloadId !== null) { contents.WorkloadId = __expectString(data.WorkloadId); @@ -2563,7 +2563,7 @@ export const deserializeAws_restJson1ListAnswersCommand = async ( contents.LensAlias = __expectString(data.LensAlias); } if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.NextToken !== undefined && data.NextToken !== null) { contents.NextToken = __expectString(data.NextToken); @@ -2749,7 +2749,7 @@ export const deserializeAws_restJson1ListLensReviewImprovementsCommand = async ( contents.LensAlias = __expectString(data.LensAlias); } if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.NextToken !== undefined && data.NextToken !== null) { contents.NextToken = __expectString(data.NextToken); @@ -2848,7 +2848,7 @@ export const deserializeAws_restJson1ListLensReviewsCommand = async ( contents.LensReviewSummaries = deserializeAws_restJson1LensReviewSummaries(data.LensReviewSummaries, context); } if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) { - contents.MilestoneNumber = __expectInt(data.MilestoneNumber); + contents.MilestoneNumber = __expectInt32(data.MilestoneNumber); } if (data.NextToken !== undefined && data.NextToken !== null) { contents.NextToken = __expectString(data.NextToken); @@ -4655,7 +4655,7 @@ const deserializeAws_restJson1LensUpgradeSummary = (output: any, context: __Serd const deserializeAws_restJson1Milestone = (output: any, context: __SerdeContext): Milestone => { return { MilestoneName: __expectString(output.MilestoneName), - MilestoneNumber: __expectInt(output.MilestoneNumber), + MilestoneNumber: __expectInt32(output.MilestoneNumber), RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null ? new Date(Math.round(output.RecordedAt * 1000)) @@ -4681,7 +4681,7 @@ const deserializeAws_restJson1MilestoneSummaries = (output: any, context: __Serd const deserializeAws_restJson1MilestoneSummary = (output: any, context: __SerdeContext): MilestoneSummary => { return { MilestoneName: __expectString(output.MilestoneName), - MilestoneNumber: __expectInt(output.MilestoneNumber), + MilestoneNumber: __expectInt32(output.MilestoneNumber), RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null ? new Date(Math.round(output.RecordedAt * 1000)) @@ -4785,7 +4785,7 @@ const deserializeAws_restJson1RiskCounts = (output: any, context: __SerdeContext } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; diff --git a/clients/client-workdocs/protocols/Aws_restJson1.ts b/clients/client-workdocs/protocols/Aws_restJson1.ts index dc529d50307c8..425303a0b68b4 100644 --- a/clients/client-workdocs/protocols/Aws_restJson1.ts +++ b/clients/client-workdocs/protocols/Aws_restJson1.ts @@ -141,7 +141,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectLong as __expectLong, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client"; @@ -4060,7 +4060,7 @@ export const deserializeAws_restJson1DescribeUsersCommand = async ( contents.Marker = __expectString(data.Marker); } if (data.TotalNumberOfUsers !== undefined && data.TotalNumberOfUsers !== null) { - contents.TotalNumberOfUsers = __expectInt(data.TotalNumberOfUsers); + contents.TotalNumberOfUsers = __expectLong(data.TotalNumberOfUsers); } if (data.Users !== undefined && data.Users !== null) { contents.Users = deserializeAws_restJson1OrganizationUserList(data.Users, context); @@ -6266,7 +6266,7 @@ const deserializeAws_restJson1DocumentVersionMetadata = ( : undefined, Name: __expectString(output.Name), Signature: __expectString(output.Signature), - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), Source: output.Source !== undefined && output.Source !== null ? deserializeAws_restJson1DocumentSourceUrlMap(output.Source, context) @@ -6316,7 +6316,7 @@ const deserializeAws_restJson1FolderMetadata = (output: any, context: __SerdeCon output.Labels !== undefined && output.Labels !== null ? deserializeAws_restJson1SharedLabels(output.Labels, context) : undefined, - LatestVersionSize: __expectInt(output.LatestVersionSize), + LatestVersionSize: __expectLong(output.LatestVersionSize), ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null ? new Date(Math.round(output.ModifiedTimestamp * 1000)) @@ -6325,7 +6325,7 @@ const deserializeAws_restJson1FolderMetadata = (output: any, context: __SerdeCon ParentFolderId: __expectString(output.ParentFolderId), ResourceState: __expectString(output.ResourceState), Signature: __expectString(output.Signature), - Size: __expectInt(output.Size), + Size: __expectLong(output.Size), } as any; }; @@ -6514,7 +6514,7 @@ const deserializeAws_restJson1SignedHeaderMap = (output: any, context: __SerdeCo const deserializeAws_restJson1StorageRuleType = (output: any, context: __SerdeContext): StorageRuleType => { return { - StorageAllocatedInBytes: __expectInt(output.StorageAllocatedInBytes), + StorageAllocatedInBytes: __expectLong(output.StorageAllocatedInBytes), StorageType: __expectString(output.StorageType), } as any; }; @@ -6615,7 +6615,7 @@ const deserializeAws_restJson1UserStorageMetadata = (output: any, context: __Ser output.StorageRule !== undefined && output.StorageRule !== null ? deserializeAws_restJson1StorageRuleType(output.StorageRule, context) : undefined, - StorageUtilizedInBytes: __expectInt(output.StorageUtilizedInBytes), + StorageUtilizedInBytes: __expectLong(output.StorageUtilizedInBytes), } as any; }; diff --git a/clients/client-workmail/protocols/Aws_json1_1.ts b/clients/client-workmail/protocols/Aws_json1_1.ts index 66eb351c4f663..6e6f7ba7f5c3b 100644 --- a/clients/client-workmail/protocols/Aws_json1_1.ts +++ b/clients/client-workmail/protocols/Aws_json1_1.ts @@ -282,9 +282,9 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -6956,7 +6956,7 @@ const deserializeAws_json1_1DescribeMailboxExportJobResponse = ( output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, EntityId: __expectString(output.EntityId), ErrorInfo: __expectString(output.ErrorInfo), - EstimatedProgress: __expectInt(output.EstimatedProgress), + EstimatedProgress: __expectInt32(output.EstimatedProgress), KmsKeyArn: __expectString(output.KmsKeyArn), RoleArn: __expectString(output.RoleArn), S3BucketName: __expectString(output.S3BucketName), @@ -7156,7 +7156,7 @@ const deserializeAws_json1_1FolderConfiguration = (output: any, context: __Serde return { Action: __expectString(output.Action), Name: __expectString(output.Name), - Period: __expectInt(output.Period), + Period: __expectInt32(output.Period), } as any; }; @@ -7204,8 +7204,8 @@ const deserializeAws_json1_1GetMailboxDetailsResponse = ( context: __SerdeContext ): GetMailboxDetailsResponse => { return { - MailboxQuota: __expectInt(output.MailboxQuota), - MailboxSize: __limitedParseFloat(output.MailboxSize), + MailboxQuota: __expectInt32(output.MailboxQuota), + MailboxSize: __limitedParseDouble(output.MailboxSize), } as any; }; @@ -7450,7 +7450,7 @@ const deserializeAws_json1_1MailboxExportJob = (output: any, context: __SerdeCon EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, EntityId: __expectString(output.EntityId), - EstimatedProgress: __expectInt(output.EstimatedProgress), + EstimatedProgress: __expectInt32(output.EstimatedProgress), JobId: __expectString(output.JobId), S3BucketName: __expectString(output.S3BucketName), S3Path: __expectString(output.S3Path), diff --git a/clients/client-workspaces/protocols/Aws_json1_1.ts b/clients/client-workspaces/protocols/Aws_json1_1.ts index 1a2b69096a93f..2ae754c8d3251 100644 --- a/clients/client-workspaces/protocols/Aws_json1_1.ts +++ b/clients/client-workspaces/protocols/Aws_json1_1.ts @@ -310,7 +310,7 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client"; import { @@ -7299,10 +7299,10 @@ const deserializeAws_json1_1WorkspaceList = (output: any, context: __SerdeContex const deserializeAws_json1_1WorkspaceProperties = (output: any, context: __SerdeContext): WorkspaceProperties => { return { ComputeTypeName: __expectString(output.ComputeTypeName), - RootVolumeSizeGib: __expectInt(output.RootVolumeSizeGib), + RootVolumeSizeGib: __expectInt32(output.RootVolumeSizeGib), RunningMode: __expectString(output.RunningMode), - RunningModeAutoStopTimeoutInMinutes: __expectInt(output.RunningModeAutoStopTimeoutInMinutes), - UserVolumeSizeGib: __expectInt(output.UserVolumeSizeGib), + RunningModeAutoStopTimeoutInMinutes: __expectInt32(output.RunningModeAutoStopTimeoutInMinutes), + UserVolumeSizeGib: __expectInt32(output.UserVolumeSizeGib), } as any; }; diff --git a/clients/client-xray/protocols/Aws_restJson1.ts b/clients/client-xray/protocols/Aws_restJson1.ts index f23a7f5f2d792..b95fb00020f8d 100644 --- a/clients/client-xray/protocols/Aws_restJson1.ts +++ b/clients/client-xray/protocols/Aws_restJson1.ts @@ -115,9 +115,10 @@ import { import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -2133,7 +2134,7 @@ export const deserializeAws_restJson1GetTraceSummariesCommand = async ( contents.TraceSummaries = deserializeAws_restJson1TraceSummaryList(data.TraceSummaries, context); } if (data.TracesProcessedCount !== undefined && data.TracesProcessedCount !== null) { - contents.TracesProcessedCount = __expectInt(data.TracesProcessedCount); + contents.TracesProcessedCount = __expectLong(data.TracesProcessedCount); } return Promise.resolve(contents); }; @@ -3063,8 +3064,8 @@ const deserializeAws_restJson1AnnotationValue = (output: any, context: __SerdeCo if (__expectBoolean(output.BooleanValue) !== undefined) { return { BooleanValue: __expectBoolean(output.BooleanValue) as any }; } - if (__limitedParseFloat(output.NumberValue) !== undefined) { - return { NumberValue: __limitedParseFloat(output.NumberValue) as any }; + if (__limitedParseDouble(output.NumberValue) !== undefined) { + return { NumberValue: __limitedParseDouble(output.NumberValue) as any }; } if (__expectString(output.StringValue) !== undefined) { return { StringValue: __expectString(output.StringValue) as any }; @@ -3121,7 +3122,7 @@ const deserializeAws_restJson1Edge = (output: any, context: __SerdeContext): Edg : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, - ReferenceId: __expectInt(output.ReferenceId), + ReferenceId: __expectInt32(output.ReferenceId), ResponseTimeHistogram: output.ResponseTimeHistogram !== undefined && output.ResponseTimeHistogram !== null ? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context) @@ -3158,9 +3159,9 @@ const deserializeAws_restJson1EdgeStatistics = (output: any, context: __SerdeCon output.FaultStatistics !== undefined && output.FaultStatistics !== null ? deserializeAws_restJson1FaultStatistics(output.FaultStatistics, context) : undefined, - OkCount: __expectInt(output.OkCount), - TotalCount: __expectInt(output.TotalCount), - TotalResponseTime: __limitedParseFloat(output.TotalResponseTime), + OkCount: __expectLong(output.OkCount), + TotalCount: __expectLong(output.TotalCount), + TotalResponseTime: __limitedParseDouble(output.TotalResponseTime), } as any; }; @@ -3251,9 +3252,9 @@ const deserializeAws_restJson1ErrorRootCauseServices = ( const deserializeAws_restJson1ErrorStatistics = (output: any, context: __SerdeContext): ErrorStatistics => { return { - OtherCount: __expectInt(output.OtherCount), - ThrottleCount: __expectInt(output.ThrottleCount), - TotalCount: __expectInt(output.TotalCount), + OtherCount: __expectLong(output.OtherCount), + ThrottleCount: __expectLong(output.ThrottleCount), + TotalCount: __expectLong(output.TotalCount), } as any; }; @@ -3336,15 +3337,15 @@ const deserializeAws_restJson1FaultRootCauseServices = ( const deserializeAws_restJson1FaultStatistics = (output: any, context: __SerdeContext): FaultStatistics => { return { - OtherCount: __expectInt(output.OtherCount), - TotalCount: __expectInt(output.TotalCount), + OtherCount: __expectLong(output.OtherCount), + TotalCount: __expectLong(output.TotalCount), } as any; }; const deserializeAws_restJson1ForecastStatistics = (output: any, context: __SerdeContext): ForecastStatistics => { return { - FaultCountHigh: __expectInt(output.FaultCountHigh), - FaultCountLow: __expectInt(output.FaultCountLow), + FaultCountHigh: __expectLong(output.FaultCountHigh), + FaultCountLow: __expectLong(output.FaultCountLow), } as any; }; @@ -3396,8 +3397,8 @@ const deserializeAws_restJson1Histogram = (output: any, context: __SerdeContext) const deserializeAws_restJson1HistogramEntry = (output: any, context: __SerdeContext): HistogramEntry => { return { - Count: __expectInt(output.Count), - Value: __limitedParseFloat(output.Value), + Count: __expectInt32(output.Count), + Value: __limitedParseDouble(output.Value), } as any; }; @@ -3405,7 +3406,7 @@ const deserializeAws_restJson1Http = (output: any, context: __SerdeContext): Htt return { ClientIp: __expectString(output.ClientIp), HttpMethod: __expectString(output.HttpMethod), - HttpStatus: __expectInt(output.HttpStatus), + HttpStatus: __expectInt32(output.HttpStatus), HttpURL: __expectString(output.HttpURL), UserAgent: __expectString(output.UserAgent), } as any; @@ -3501,7 +3502,7 @@ const deserializeAws_restJson1InsightImpactGraphEdge = ( context: __SerdeContext ): InsightImpactGraphEdge => { return { - ReferenceId: __expectInt(output.ReferenceId), + ReferenceId: __expectInt32(output.ReferenceId), } as any; }; @@ -3534,7 +3535,7 @@ const deserializeAws_restJson1InsightImpactGraphService = ( output.Names !== undefined && output.Names !== null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined, - ReferenceId: __expectInt(output.ReferenceId), + ReferenceId: __expectInt32(output.ReferenceId), Type: __expectString(output.Type), } as any; }; @@ -3623,9 +3624,9 @@ const deserializeAws_restJson1RequestImpactStatistics = ( context: __SerdeContext ): RequestImpactStatistics => { return { - FaultCount: __expectInt(output.FaultCount), - OkCount: __expectInt(output.OkCount), - TotalCount: __expectInt(output.TotalCount), + FaultCount: __expectLong(output.FaultCount), + OkCount: __expectLong(output.OkCount), + TotalCount: __expectLong(output.TotalCount), } as any; }; @@ -3650,7 +3651,7 @@ const deserializeAws_restJson1ResponseTimeRootCauseEntity = ( context: __SerdeContext ): ResponseTimeRootCauseEntity => { return { - Coverage: __limitedParseFloat(output.Coverage), + Coverage: __limitedParseDouble(output.Coverage), Name: __expectString(output.Name), Remote: __expectBoolean(output.Remote), } as any; @@ -3742,18 +3743,18 @@ const deserializeAws_restJson1SamplingRule = (output: any, context: __SerdeConte output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_restJson1AttributeMap(output.Attributes, context) : undefined, - FixedRate: __limitedParseFloat(output.FixedRate), + FixedRate: __limitedParseDouble(output.FixedRate), HTTPMethod: __expectString(output.HTTPMethod), Host: __expectString(output.Host), - Priority: __expectInt(output.Priority), - ReservoirSize: __expectInt(output.ReservoirSize), + Priority: __expectInt32(output.Priority), + ReservoirSize: __expectInt32(output.ReservoirSize), ResourceARN: __expectString(output.ResourceARN), RuleARN: __expectString(output.RuleARN), RuleName: __expectString(output.RuleName), ServiceName: __expectString(output.ServiceName), ServiceType: __expectString(output.ServiceType), URLPath: __expectString(output.URLPath), - Version: __expectInt(output.Version), + Version: __expectInt32(output.Version), } as any; }; @@ -3790,10 +3791,10 @@ const deserializeAws_restJson1SamplingStatisticSummary = ( context: __SerdeContext ): SamplingStatisticSummary => { return { - BorrowCount: __expectInt(output.BorrowCount), - RequestCount: __expectInt(output.RequestCount), + BorrowCount: __expectInt32(output.BorrowCount), + RequestCount: __expectInt32(output.RequestCount), RuleName: __expectString(output.RuleName), - SampledCount: __expectInt(output.SampledCount), + SampledCount: __expectInt32(output.SampledCount), Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? new Date(Math.round(output.Timestamp * 1000)) @@ -3820,9 +3821,9 @@ const deserializeAws_restJson1SamplingTargetDocument = ( context: __SerdeContext ): SamplingTargetDocument => { return { - FixedRate: __limitedParseFloat(output.FixedRate), - Interval: __expectInt(output.Interval), - ReservoirQuota: __expectInt(output.ReservoirQuota), + FixedRate: __limitedParseDouble(output.FixedRate), + Interval: __expectInt32(output.Interval), + ReservoirQuota: __expectInt32(output.ReservoirQuota), ReservoirQuotaTTL: output.ReservoirQuotaTTL !== undefined && output.ReservoirQuotaTTL !== null ? new Date(Math.round(output.ReservoirQuotaTTL * 1000)) @@ -3881,7 +3882,7 @@ const deserializeAws_restJson1Service = (output: any, context: __SerdeContext): output.Names !== undefined && output.Names !== null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined, - ReferenceId: __expectInt(output.ReferenceId), + ReferenceId: __expectInt32(output.ReferenceId), ResponseTimeHistogram: output.ResponseTimeHistogram !== undefined && output.ResponseTimeHistogram !== null ? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context) @@ -3955,9 +3956,9 @@ const deserializeAws_restJson1ServiceStatistics = (output: any, context: __Serde output.FaultStatistics !== undefined && output.FaultStatistics !== null ? deserializeAws_restJson1FaultStatistics(output.FaultStatistics, context) : undefined, - OkCount: __expectInt(output.OkCount), - TotalCount: __expectInt(output.TotalCount), - TotalResponseTime: __limitedParseFloat(output.TotalResponseTime), + OkCount: __expectLong(output.OkCount), + TotalCount: __expectLong(output.TotalCount), + TotalResponseTime: __limitedParseDouble(output.TotalResponseTime), } as any; }; @@ -4023,7 +4024,7 @@ const deserializeAws_restJson1TimeSeriesServiceStatisticsList = ( const deserializeAws_restJson1Trace = (output: any, context: __SerdeContext): Trace => { return { - Duration: __limitedParseFloat(output.Duration), + Duration: __limitedParseDouble(output.Duration), Id: __expectString(output.Id), LimitExceeded: __expectBoolean(output.LimitExceeded), Segments: @@ -4090,7 +4091,7 @@ const deserializeAws_restJson1TraceSummary = (output: any, context: __SerdeConte output.AvailabilityZones !== undefined && output.AvailabilityZones !== null ? deserializeAws_restJson1TraceAvailabilityZones(output.AvailabilityZones, context) : undefined, - Duration: __limitedParseFloat(output.Duration), + Duration: __limitedParseDouble(output.Duration), EntryPoint: output.EntryPoint !== undefined && output.EntryPoint !== null ? deserializeAws_restJson1ServiceId(output.EntryPoint, context) @@ -4124,12 +4125,12 @@ const deserializeAws_restJson1TraceSummary = (output: any, context: __SerdeConte output.ResourceARNs !== undefined && output.ResourceARNs !== null ? deserializeAws_restJson1TraceResourceARNs(output.ResourceARNs, context) : undefined, - ResponseTime: __limitedParseFloat(output.ResponseTime), + ResponseTime: __limitedParseDouble(output.ResponseTime), ResponseTimeRootCauses: output.ResponseTimeRootCauses !== undefined && output.ResponseTimeRootCauses !== null ? deserializeAws_restJson1ResponseTimeRootCauses(output.ResponseTimeRootCauses, context) : undefined, - Revision: __expectInt(output.Revision), + Revision: __expectInt32(output.Revision), ServiceIds: output.ServiceIds !== undefined && output.ServiceIds !== null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) diff --git a/protocol_tests/aws-ec2/protocols/Aws_ec2.ts b/protocol_tests/aws-ec2/protocols/Aws_ec2.ts index e0efa922fe4c2..f5c1608d0f5d6 100644 --- a/protocol_tests/aws-ec2/protocols/Aws_ec2.ts +++ b/protocol_tests/aws-ec2/protocols/Aws_ec2.ts @@ -76,8 +76,11 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, + strictParseByte as __strictParseByte, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, + strictParseShort as __strictParseShort, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -1738,16 +1741,16 @@ const deserializeAws_ec2SimpleScalarXmlPropertiesOutput = ( contents.falseBooleanValue = __parseBoolean(output["falseBooleanValue"]); } if (output["byteValue"] !== undefined) { - contents.byteValue = __strictParseInt(output["byteValue"]) as number; + contents.byteValue = __strictParseByte(output["byteValue"]) as number; } if (output["shortValue"] !== undefined) { - contents.shortValue = __strictParseInt(output["shortValue"]) as number; + contents.shortValue = __strictParseShort(output["shortValue"]) as number; } if (output["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt(output["integerValue"]) as number; + contents.integerValue = __strictParseInt32(output["integerValue"]) as number; } if (output["longValue"] !== undefined) { - contents.longValue = __strictParseInt(output["longValue"]) as number; + contents.longValue = __strictParseLong(output["longValue"]) as number; } if (output["floatValue"] !== undefined) { contents.floatValue = __strictParseFloat(output["floatValue"]) as number; @@ -2074,7 +2077,7 @@ const deserializeAws_ec2IntegerList = (output: any, context: __SerdeContext): nu if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; diff --git a/protocol_tests/aws-json-10/protocols/Aws_json1_0.ts b/protocol_tests/aws-json-10/protocols/Aws_json1_0.ts index 407c3447190b9..a6a8cc76d5cc1 100644 --- a/protocol_tests/aws-json-10/protocols/Aws_json1_0.ts +++ b/protocol_tests/aws-json-10/protocols/Aws_json1_0.ts @@ -36,9 +36,10 @@ import { } from "@aws-sdk/protocol-http"; import { expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -737,8 +738,8 @@ const deserializeAws_json1_0MyUnion = (output: any, context: __SerdeContext): My mapValue: deserializeAws_json1_0StringMap(output.mapValue, context), }; } - if (__expectInt(output.numberValue) !== undefined) { - return { numberValue: __expectInt(output.numberValue) as any }; + if (__expectInt32(output.numberValue) !== undefined) { + return { numberValue: __expectInt32(output.numberValue) as any }; } if (__expectString(output.stringValue) !== undefined) { return { stringValue: __expectString(output.stringValue) as any }; @@ -765,8 +766,8 @@ const deserializeAws_json1_0SimpleScalarPropertiesInputOutput = ( context: __SerdeContext ): SimpleScalarPropertiesInputOutput => { return { - doubleValue: __limitedParseFloat(output.doubleValue), - floatValue: __limitedParseFloat(output.floatValue), + doubleValue: __limitedParseDouble(output.doubleValue), + floatValue: __limitedParseFloat32(output.floatValue), } as any; }; diff --git a/protocol_tests/aws-json/protocols/Aws_json1_1.ts b/protocol_tests/aws-json/protocols/Aws_json1_1.ts index d33ec58beb9a9..8e0dd84790ee1 100644 --- a/protocol_tests/aws-json/protocols/Aws_json1_1.ts +++ b/protocol_tests/aws-json/protocols/Aws_json1_1.ts @@ -55,9 +55,11 @@ import { LazyJsonString as __LazyJsonString, dateToUtcString as __dateToUtcString, expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectInt32 as __expectInt32, + expectLong as __expectLong, expectString as __expectString, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client"; import { @@ -1245,7 +1247,7 @@ const deserializeAws_json1_1ErrorWithMembers = (output: any, context: __SerdeCon output.ComplexData !== undefined && output.ComplexData !== null ? deserializeAws_json1_1KitchenSink(output.ComplexData, context) : undefined, - IntegerField: __expectInt(output.IntegerField), + IntegerField: __expectInt32(output.IntegerField), ListField: output.ListField !== undefined && output.ListField !== null ? deserializeAws_json1_1ListOfStrings(output.ListField, context) @@ -1306,17 +1308,17 @@ const deserializeAws_json1_1KitchenSink = (output: any, context: __SerdeContext) return { Blob: output.Blob !== undefined && output.Blob !== null ? context.base64Decoder(output.Blob) : undefined, Boolean: __expectBoolean(output.Boolean), - Double: __limitedParseFloat(output.Double), + Double: __limitedParseDouble(output.Double), EmptyStruct: output.EmptyStruct !== undefined && output.EmptyStruct !== null ? deserializeAws_json1_1EmptyStruct(output.EmptyStruct, context) : undefined, - Float: __limitedParseFloat(output.Float), + Float: __limitedParseFloat32(output.Float), HttpdateTimestamp: output.HttpdateTimestamp !== undefined && output.HttpdateTimestamp !== null ? new Date(Math.round(output.HttpdateTimestamp * 1000)) : undefined, - Integer: __expectInt(output.Integer), + Integer: __expectInt32(output.Integer), Iso8601Timestamp: output.Iso8601Timestamp !== undefined && output.Iso8601Timestamp !== null ? new Date(Math.round(output.Iso8601Timestamp * 1000)) @@ -1339,7 +1341,7 @@ const deserializeAws_json1_1KitchenSink = (output: any, context: __SerdeContext) output.ListOfStructs !== undefined && output.ListOfStructs !== null ? deserializeAws_json1_1ListOfStructs(output.ListOfStructs, context) : undefined, - Long: __expectInt(output.Long), + Long: __expectLong(output.Long), MapOfListsOfStrings: output.MapOfListsOfStrings !== undefined && output.MapOfListsOfStrings !== null ? deserializeAws_json1_1MapOfListsOfStrings(output.MapOfListsOfStrings, context) @@ -1540,8 +1542,8 @@ const deserializeAws_json1_1MyUnion = (output: any, context: __SerdeContext): My mapValue: deserializeAws_json1_1StringMap(output.mapValue, context), }; } - if (__expectInt(output.numberValue) !== undefined) { - return { numberValue: __expectInt(output.numberValue) as any }; + if (__expectInt32(output.numberValue) !== undefined) { + return { numberValue: __expectInt32(output.numberValue) as any }; } if (__expectString(output.stringValue) !== undefined) { return { stringValue: __expectString(output.stringValue) as any }; @@ -1593,8 +1595,8 @@ const deserializeAws_json1_1SimpleScalarPropertiesInputOutput = ( context: __SerdeContext ): SimpleScalarPropertiesInputOutput => { return { - doubleValue: __limitedParseFloat(output.doubleValue), - floatValue: __limitedParseFloat(output.floatValue), + doubleValue: __limitedParseDouble(output.doubleValue), + floatValue: __limitedParseFloat32(output.floatValue), } as any; }; diff --git a/protocol_tests/aws-query/protocols/Aws_query.ts b/protocol_tests/aws-query/protocols/Aws_query.ts index dbc1c58078365..3b7e90d3c8850 100644 --- a/protocol_tests/aws-query/protocols/Aws_query.ts +++ b/protocol_tests/aws-query/protocols/Aws_query.ts @@ -98,8 +98,11 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, + strictParseByte as __strictParseByte, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, + strictParseShort as __strictParseShort, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -2487,16 +2490,16 @@ const deserializeAws_querySimpleScalarXmlPropertiesOutput = ( contents.falseBooleanValue = __parseBoolean(output["falseBooleanValue"]); } if (output["byteValue"] !== undefined) { - contents.byteValue = __strictParseInt(output["byteValue"]) as number; + contents.byteValue = __strictParseByte(output["byteValue"]) as number; } if (output["shortValue"] !== undefined) { - contents.shortValue = __strictParseInt(output["shortValue"]) as number; + contents.shortValue = __strictParseShort(output["shortValue"]) as number; } if (output["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt(output["integerValue"]) as number; + contents.integerValue = __strictParseInt32(output["integerValue"]) as number; } if (output["longValue"] !== undefined) { - contents.longValue = __strictParseInt(output["longValue"]) as number; + contents.longValue = __strictParseLong(output["longValue"]) as number; } if (output["floatValue"] !== undefined) { contents.floatValue = __strictParseFloat(output["floatValue"]) as number; @@ -2904,7 +2907,7 @@ const deserializeAws_queryIntegerList = (output: any, context: __SerdeContext): if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; diff --git a/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts b/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts index ee01dfa74e169..7c3be807b8933 100644 --- a/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts +++ b/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts @@ -145,15 +145,23 @@ import { LazyJsonString as __LazyJsonString, dateToUtcString as __dateToUtcString, expectBoolean as __expectBoolean, - expectInt as __expectInt, + expectByte as __expectByte, + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectShort as __expectShort, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, - limitedParseFloat as __limitedParseFloat, + limitedParseDouble as __limitedParseDouble, + limitedParseFloat32 as __limitedParseFloat32, parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, splitEvery as __splitEvery, + strictParseByte as __strictParseByte, + strictParseDouble as __strictParseDouble, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, + strictParseShort as __strictParseShort, } from "@aws-sdk/smithy-client"; import { DocumentType as __DocumentType, @@ -2807,22 +2815,22 @@ export const deserializeAws_restJson1InputAndOutputWithHeadersCommand = async ( contents.headerString = output.headers["x-string"]; } if (output.headers["x-byte"] !== undefined) { - contents.headerByte = __strictParseInt(output.headers["x-byte"]); + contents.headerByte = __strictParseByte(output.headers["x-byte"]); } if (output.headers["x-short"] !== undefined) { - contents.headerShort = __strictParseInt(output.headers["x-short"]); + contents.headerShort = __strictParseShort(output.headers["x-short"]); } if (output.headers["x-integer"] !== undefined) { - contents.headerInteger = __strictParseInt(output.headers["x-integer"]); + contents.headerInteger = __strictParseInt32(output.headers["x-integer"]); } if (output.headers["x-long"] !== undefined) { - contents.headerLong = __strictParseInt(output.headers["x-long"]); + contents.headerLong = __strictParseLong(output.headers["x-long"]); } if (output.headers["x-float"] !== undefined) { contents.headerFloat = __strictParseFloat(output.headers["x-float"]); } if (output.headers["x-double"] !== undefined) { - contents.headerDouble = __strictParseFloat(output.headers["x-double"]); + contents.headerDouble = __strictParseDouble(output.headers["x-double"]); } if (output.headers["x-boolean1"] !== undefined) { contents.headerTrueBool = __parseBoolean(output.headers["x-boolean1"]); @@ -2839,7 +2847,7 @@ export const deserializeAws_restJson1InputAndOutputWithHeadersCommand = async ( if (output.headers["x-integerlist"] !== undefined) { contents.headerIntegerList = (output.headers["x-integerlist"] || "") .split(",") - .map((_entry) => __strictParseInt(_entry.trim()) as any); + .map((_entry) => __strictParseInt32(_entry.trim()) as any); } if (output.headers["x-booleanlist"] !== undefined) { contents.headerBooleanList = (output.headers["x-booleanlist"] || "") @@ -3759,25 +3767,25 @@ export const deserializeAws_restJson1SimpleScalarPropertiesCommand = async ( } const data: any = await parseBody(output.body, context); if (data.byteValue !== undefined && data.byteValue !== null) { - contents.byteValue = __expectInt(data.byteValue); + contents.byteValue = __expectByte(data.byteValue); } if (data.DoubleDribble !== undefined && data.DoubleDribble !== null) { - contents.doubleValue = __limitedParseFloat(data.DoubleDribble); + contents.doubleValue = __limitedParseDouble(data.DoubleDribble); } if (data.falseBooleanValue !== undefined && data.falseBooleanValue !== null) { contents.falseBooleanValue = __expectBoolean(data.falseBooleanValue); } if (data.floatValue !== undefined && data.floatValue !== null) { - contents.floatValue = __limitedParseFloat(data.floatValue); + contents.floatValue = __limitedParseFloat32(data.floatValue); } if (data.integerValue !== undefined && data.integerValue !== null) { - contents.integerValue = __expectInt(data.integerValue); + contents.integerValue = __expectInt32(data.integerValue); } if (data.longValue !== undefined && data.longValue !== null) { - contents.longValue = __expectInt(data.longValue); + contents.longValue = __expectLong(data.longValue); } if (data.shortValue !== undefined && data.shortValue !== null) { - contents.shortValue = __expectInt(data.shortValue); + contents.shortValue = __expectShort(data.shortValue); } if (data.stringValue !== undefined && data.stringValue !== null) { contents.stringValue = __expectString(data.stringValue); @@ -4450,7 +4458,7 @@ const deserializeAws_restJson1DenseNumberMap = (output: any, context: __SerdeCon } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -4520,8 +4528,8 @@ const deserializeAws_restJson1MyUnion = (output: any, context: __SerdeContext): mapValue: deserializeAws_restJson1StringMap(output.mapValue, context), }; } - if (__expectInt(output.numberValue) !== undefined) { - return { numberValue: __expectInt(output.numberValue) as any }; + if (__expectInt32(output.numberValue) !== undefined) { + return { numberValue: __expectInt32(output.numberValue) as any }; } if (output.renamedStructureValue !== undefined && output.renamedStructureValue !== null) { return { @@ -4596,7 +4604,7 @@ const deserializeAws_restJson1SparseNumberMap = (output: any, context: __SerdeCo } return { ...acc, - [key]: __expectInt(value) as any, + [key]: __expectInt32(value) as any, }; }, {}); }; @@ -4713,7 +4721,7 @@ const deserializeAws_restJson1IntegerList = (output: any, context: __SerdeContex if (entry === null) { return null as any; } - return __expectInt(entry) as any; + return __expectInt32(entry) as any; }); }; diff --git a/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts b/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts index 8044c576b59b0..029b0bb6707bf 100644 --- a/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts +++ b/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts @@ -3277,8 +3277,8 @@ it("RestJsonInputAndOutputWithNumericHeaders:Response", async () => { ...clientParams, requestHandler: new ResponseDeserializationTestHandler(true, 200, { "x-float": "1.1", - "x-byte": "1", "x-long": "123", + "x-byte": "1", "x-integer": "123", "x-integerlist": "1, 2, 3", "x-double": "1.1", @@ -7527,8 +7527,8 @@ it("RestJsonTimestampFormatHeaders:Response", async () => { requestHandler: new ResponseDeserializationTestHandler(true, 200, { "x-targetepochseconds": "1576540098", "x-memberdatetime": "2019-12-16T23:48:18Z", - "x-defaultformat": "Mon, 16 Dec 2019 23:48:18 GMT", "x-memberepochseconds": "1576540098", + "x-defaultformat": "Mon, 16 Dec 2019 23:48:18 GMT", "x-targethttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-memberhttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-targetdatetime": "2019-12-16T23:48:18Z", diff --git a/protocol_tests/aws-restxml/protocols/Aws_restXml.ts b/protocol_tests/aws-restxml/protocols/Aws_restXml.ts index dd1e295cbb39b..c1667fa7106da 100644 --- a/protocol_tests/aws-restxml/protocols/Aws_restXml.ts +++ b/protocol_tests/aws-restxml/protocols/Aws_restXml.ts @@ -166,8 +166,12 @@ import { getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, splitEvery as __splitEvery, + strictParseByte as __strictParseByte, + strictParseDouble as __strictParseDouble, strictParseFloat as __strictParseFloat, - strictParseInt as __strictParseInt, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, + strictParseShort as __strictParseShort, } from "@aws-sdk/smithy-client"; import { Endpoint as __Endpoint, @@ -3450,22 +3454,22 @@ export const deserializeAws_restXmlInputAndOutputWithHeadersCommand = async ( contents.headerString = output.headers["x-string"]; } if (output.headers["x-byte"] !== undefined) { - contents.headerByte = __strictParseInt(output.headers["x-byte"]); + contents.headerByte = __strictParseByte(output.headers["x-byte"]); } if (output.headers["x-short"] !== undefined) { - contents.headerShort = __strictParseInt(output.headers["x-short"]); + contents.headerShort = __strictParseShort(output.headers["x-short"]); } if (output.headers["x-integer"] !== undefined) { - contents.headerInteger = __strictParseInt(output.headers["x-integer"]); + contents.headerInteger = __strictParseInt32(output.headers["x-integer"]); } if (output.headers["x-long"] !== undefined) { - contents.headerLong = __strictParseInt(output.headers["x-long"]); + contents.headerLong = __strictParseLong(output.headers["x-long"]); } if (output.headers["x-float"] !== undefined) { contents.headerFloat = __strictParseFloat(output.headers["x-float"]); } if (output.headers["x-double"] !== undefined) { - contents.headerDouble = __strictParseFloat(output.headers["x-double"]); + contents.headerDouble = __strictParseDouble(output.headers["x-double"]); } if (output.headers["x-boolean1"] !== undefined) { contents.headerTrueBool = __parseBoolean(output.headers["x-boolean1"]); @@ -3482,7 +3486,7 @@ export const deserializeAws_restXmlInputAndOutputWithHeadersCommand = async ( if (output.headers["x-integerlist"] !== undefined) { contents.headerIntegerList = (output.headers["x-integerlist"] || "") .split(",") - .map((_entry) => __strictParseInt(_entry.trim()) as any); + .map((_entry) => __strictParseInt32(_entry.trim()) as any); } if (output.headers["x-booleanlist"] !== undefined) { contents.headerBooleanList = (output.headers["x-booleanlist"] || "") @@ -4030,7 +4034,7 @@ export const deserializeAws_restXmlSimpleScalarPropertiesCommand = async ( } const data: any = await parseBody(output.body, context); if (data["byteValue"] !== undefined) { - contents.byteValue = __strictParseInt(data["byteValue"]) as number; + contents.byteValue = __strictParseByte(data["byteValue"]) as number; } if (data["DoubleDribble"] !== undefined) { contents.doubleValue = __strictParseFloat(data["DoubleDribble"]) as number; @@ -4042,13 +4046,13 @@ export const deserializeAws_restXmlSimpleScalarPropertiesCommand = async ( contents.floatValue = __strictParseFloat(data["floatValue"]) as number; } if (data["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt(data["integerValue"]) as number; + contents.integerValue = __strictParseInt32(data["integerValue"]) as number; } if (data["longValue"] !== undefined) { - contents.longValue = __strictParseInt(data["longValue"]) as number; + contents.longValue = __strictParseLong(data["longValue"]) as number; } if (data["shortValue"] !== undefined) { - contents.shortValue = __strictParseInt(data["shortValue"]) as number; + contents.shortValue = __strictParseShort(data["shortValue"]) as number; } if (data["stringValue"] !== undefined) { contents.stringValue = __expectString(data["stringValue"]); @@ -5958,16 +5962,16 @@ const deserializeAws_restXmlXmlNestedUnionStruct = (output: any, context: __Serd contents.booleanValue = __parseBoolean(output["booleanValue"]); } if (output["byteValue"] !== undefined) { - contents.byteValue = __strictParseInt(output["byteValue"]) as number; + contents.byteValue = __strictParseByte(output["byteValue"]) as number; } if (output["shortValue"] !== undefined) { - contents.shortValue = __strictParseInt(output["shortValue"]) as number; + contents.shortValue = __strictParseShort(output["shortValue"]) as number; } if (output["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt(output["integerValue"]) as number; + contents.integerValue = __strictParseInt32(output["integerValue"]) as number; } if (output["longValue"] !== undefined) { - contents.longValue = __strictParseInt(output["longValue"]) as number; + contents.longValue = __strictParseLong(output["longValue"]) as number; } if (output["floatValue"] !== undefined) { contents.floatValue = __strictParseFloat(output["floatValue"]) as number; @@ -5991,22 +5995,22 @@ const deserializeAws_restXmlXmlUnionShape = (output: any, context: __SerdeContex } if (output["byteValue"] !== undefined) { return { - byteValue: __strictParseInt(output["byteValue"]) as number, + byteValue: __strictParseByte(output["byteValue"]) as number, }; } if (output["shortValue"] !== undefined) { return { - shortValue: __strictParseInt(output["shortValue"]) as number, + shortValue: __strictParseShort(output["shortValue"]) as number, }; } if (output["integerValue"] !== undefined) { return { - integerValue: __strictParseInt(output["integerValue"]) as number, + integerValue: __strictParseInt32(output["integerValue"]) as number, }; } if (output["longValue"] !== undefined) { return { - longValue: __strictParseInt(output["longValue"]) as number, + longValue: __strictParseLong(output["longValue"]) as number, }; } if (output["floatValue"] !== undefined) { @@ -6097,7 +6101,7 @@ const deserializeAws_restXmlIntegerList = (output: any, context: __SerdeContext) if (entry === null) { return null as any; } - return __strictParseInt(entry) as number; + return __strictParseInt32(entry) as number; }); }; diff --git a/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts b/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts index 6ac2e91586e4f..4b28c3c1eeca6 100644 --- a/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts +++ b/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts @@ -2650,8 +2650,8 @@ it("InputAndOutputWithNumericHeaders:Response", async () => { 200, { "x-float": "1.1", - "x-byte": "1", "x-long": "123", + "x-byte": "1", "x-integer": "123", "x-integerlist": "1, 2, 3", "x-double": "1.1", @@ -4445,8 +4445,8 @@ it("TimestampFormatHeaders:Response", async () => { { "x-targetepochseconds": "1576540098", "x-memberdatetime": "2019-12-16T23:48:18Z", - "x-defaultformat": "Mon, 16 Dec 2019 23:48:18 GMT", "x-memberepochseconds": "1576540098", + "x-defaultformat": "Mon, 16 Dec 2019 23:48:18 GMT", "x-targethttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-memberhttpdate": "Mon, 16 Dec 2019 23:48:18 GMT", "x-targetdatetime": "2019-12-16T23:48:18Z",