Skip to content

Commit 998e09c

Browse files
chore: update generated code
1 parent d3774d5 commit 998e09c

File tree

214 files changed

+4693
-13456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+4693
-13456
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1.ts

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4045,7 +4045,7 @@ const deserializeAws_restJson1AccessPreviewFinding = (output: any, context: __Se
40454045
? __expectString(output.existingFindingStatus)
40464046
: undefined,
40474047
id: output.id !== undefined && output.id !== null ? __expectString(output.id) : undefined,
4048-
isPublic: output.isPublic !== undefined && output.isPublic !== null ? __expectBoolean(output.isPublic) : undefined,
4048+
isPublic: __expectBoolean(output.isPublic),
40494049
principal:
40504050
output.principal !== undefined && output.principal !== null
40514051
? deserializeAws_restJson1PrincipalMap(output.principal, context)
@@ -4149,7 +4149,7 @@ const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeC
41494149
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null ? new Date(output.analyzedAt) : undefined,
41504150
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
41514151
error: output.error !== undefined && output.error !== null ? __expectString(output.error) : undefined,
4152-
isPublic: output.isPublic !== undefined && output.isPublic !== null ? __expectBoolean(output.isPublic) : undefined,
4152+
isPublic: __expectBoolean(output.isPublic),
41534153
resourceArn:
41544154
output.resourceArn !== undefined && output.resourceArn !== null ? __expectString(output.resourceArn) : undefined,
41554155
resourceOwnerAccount:
@@ -4339,7 +4339,7 @@ const deserializeAws_restJson1Criterion = (output: any, context: __SerdeContext)
43394339
: undefined,
43404340
eq:
43414341
output.eq !== undefined && output.eq !== null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
4342-
exists: output.exists !== undefined && output.exists !== null ? __expectBoolean(output.exists) : undefined,
4342+
exists: __expectBoolean(output.exists),
43434343
neq:
43444344
output.neq !== undefined && output.neq !== null
43454345
? deserializeAws_restJson1ValueList(output.neq, context)
@@ -4376,7 +4376,7 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext):
43764376
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
43774377
error: output.error !== undefined && output.error !== null ? __expectString(output.error) : undefined,
43784378
id: output.id !== undefined && output.id !== null ? __expectString(output.id) : undefined,
4379-
isPublic: output.isPublic !== undefined && output.isPublic !== null ? __expectBoolean(output.isPublic) : undefined,
4379+
isPublic: __expectBoolean(output.isPublic),
43804380
principal:
43814381
output.principal !== undefined && output.principal !== null
43824382
? deserializeAws_restJson1PrincipalMap(output.principal, context)
@@ -4454,7 +4454,7 @@ const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeCon
44544454
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
44554455
error: output.error !== undefined && output.error !== null ? __expectString(output.error) : undefined,
44564456
id: output.id !== undefined && output.id !== null ? __expectString(output.id) : undefined,
4457-
isPublic: output.isPublic !== undefined && output.isPublic !== null ? __expectBoolean(output.isPublic) : undefined,
4457+
isPublic: __expectBoolean(output.isPublic),
44584458
principal:
44594459
output.principal !== undefined && output.principal !== null
44604460
? deserializeAws_restJson1PrincipalMap(output.principal, context)
@@ -4503,8 +4503,7 @@ const deserializeAws_restJson1GeneratedPolicyProperties = (
45034503
output.cloudTrailProperties !== undefined && output.cloudTrailProperties !== null
45044504
? deserializeAws_restJson1CloudTrailProperties(output.cloudTrailProperties, context)
45054505
: undefined,
4506-
isComplete:
4507-
output.isComplete !== undefined && output.isComplete !== null ? __expectBoolean(output.isComplete) : undefined,
4506+
isComplete: __expectBoolean(output.isComplete),
45084507
principalArn:
45094508
output.principalArn !== undefined && output.principalArn !== null
45104509
? __expectString(output.principalArn)
@@ -4702,10 +4701,8 @@ const deserializeAws_restJson1NetworkOriginConfiguration = (
47024701
};
47034702

47044703
const deserializeAws_restJson1PathElement = (output: any, context: __SerdeContext): PathElement => {
4705-
if (output.index !== undefined && output.index !== null) {
4706-
return {
4707-
index: __expectNumber(output.index),
4708-
};
4704+
if ((val = __expectNumber(output.index)) !== undefined) {
4705+
return { index: val };
47094706
}
47104707
if (output.key !== undefined && output.key !== null) {
47114708
return {
@@ -4763,9 +4760,9 @@ const deserializeAws_restJson1PolicyGenerationList = (output: any, context: __Se
47634760

47644761
const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): Position => {
47654762
return {
4766-
column: output.column !== undefined && output.column !== null ? __expectNumber(output.column) : undefined,
4767-
line: output.line !== undefined && output.line !== null ? __expectNumber(output.line) : undefined,
4768-
offset: output.offset !== undefined && output.offset !== null ? __expectNumber(output.offset) : undefined,
4763+
column: __expectNumber(output.column),
4764+
line: __expectNumber(output.line),
4765+
offset: __expectNumber(output.offset),
47694766
} as any;
47704767
};
47714768

@@ -4884,14 +4881,8 @@ const deserializeAws_restJson1S3PublicAccessBlockConfiguration = (
48844881
context: __SerdeContext
48854882
): S3PublicAccessBlockConfiguration => {
48864883
return {
4887-
ignorePublicAcls:
4888-
output.ignorePublicAcls !== undefined && output.ignorePublicAcls !== null
4889-
? __expectBoolean(output.ignorePublicAcls)
4890-
: undefined,
4891-
restrictPublicBuckets:
4892-
output.restrictPublicBuckets !== undefined && output.restrictPublicBuckets !== null
4893-
? __expectBoolean(output.restrictPublicBuckets)
4894-
: undefined,
4884+
ignorePublicAcls: __expectBoolean(output.ignorePublicAcls),
4885+
restrictPublicBuckets: __expectBoolean(output.restrictPublicBuckets),
48954886
} as any;
48964887
};
48974888

@@ -4947,8 +4938,8 @@ const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeConte
49474938

49484939
const deserializeAws_restJson1Substring = (output: any, context: __SerdeContext): Substring => {
49494940
return {
4950-
length: output.length !== undefined && output.length !== null ? __expectNumber(output.length) : undefined,
4951-
start: output.start !== undefined && output.start !== null ? __expectNumber(output.start) : undefined,
4941+
length: __expectNumber(output.length),
4942+
start: __expectNumber(output.start),
49524943
} as any;
49534944
};
49544945

@@ -4966,8 +4957,7 @@ const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext):
49664957

49674958
const deserializeAws_restJson1TrailProperties = (output: any, context: __SerdeContext): TrailProperties => {
49684959
return {
4969-
allRegions:
4970-
output.allRegions !== undefined && output.allRegions !== null ? __expectBoolean(output.allRegions) : undefined,
4960+
allRegions: __expectBoolean(output.allRegions),
49714961
cloudTrailArn:
49724962
output.cloudTrailArn !== undefined && output.cloudTrailArn !== null
49734963
? __expectString(output.cloudTrailArn)

clients/client-acm-pca/protocols/Aws_json1_1.ts

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3419,11 +3419,8 @@ const deserializeAws_json1_1CrlConfiguration = (output: any, context: __SerdeCon
34193419
return {
34203420
CustomCname:
34213421
output.CustomCname !== undefined && output.CustomCname !== null ? __expectString(output.CustomCname) : undefined,
3422-
Enabled: output.Enabled !== undefined && output.Enabled !== null ? __expectBoolean(output.Enabled) : undefined,
3423-
ExpirationInDays:
3424-
output.ExpirationInDays !== undefined && output.ExpirationInDays !== null
3425-
? __expectNumber(output.ExpirationInDays)
3426-
: undefined,
3422+
Enabled: __expectBoolean(output.Enabled),
3423+
ExpirationInDays: __expectNumber(output.ExpirationInDays),
34273424
S3BucketName:
34283425
output.S3BucketName !== undefined && output.S3BucketName !== null
34293426
? __expectString(output.S3BucketName)
@@ -3622,37 +3619,15 @@ const deserializeAws_json1_1IssueCertificateResponse = (
36223619

36233620
const deserializeAws_json1_1KeyUsage = (output: any, context: __SerdeContext): KeyUsage => {
36243621
return {
3625-
CRLSign: output.CRLSign !== undefined && output.CRLSign !== null ? __expectBoolean(output.CRLSign) : undefined,
3626-
DataEncipherment:
3627-
output.DataEncipherment !== undefined && output.DataEncipherment !== null
3628-
? __expectBoolean(output.DataEncipherment)
3629-
: undefined,
3630-
DecipherOnly:
3631-
output.DecipherOnly !== undefined && output.DecipherOnly !== null
3632-
? __expectBoolean(output.DecipherOnly)
3633-
: undefined,
3634-
DigitalSignature:
3635-
output.DigitalSignature !== undefined && output.DigitalSignature !== null
3636-
? __expectBoolean(output.DigitalSignature)
3637-
: undefined,
3638-
EncipherOnly:
3639-
output.EncipherOnly !== undefined && output.EncipherOnly !== null
3640-
? __expectBoolean(output.EncipherOnly)
3641-
: undefined,
3642-
KeyAgreement:
3643-
output.KeyAgreement !== undefined && output.KeyAgreement !== null
3644-
? __expectBoolean(output.KeyAgreement)
3645-
: undefined,
3646-
KeyCertSign:
3647-
output.KeyCertSign !== undefined && output.KeyCertSign !== null ? __expectBoolean(output.KeyCertSign) : undefined,
3648-
KeyEncipherment:
3649-
output.KeyEncipherment !== undefined && output.KeyEncipherment !== null
3650-
? __expectBoolean(output.KeyEncipherment)
3651-
: undefined,
3652-
NonRepudiation:
3653-
output.NonRepudiation !== undefined && output.NonRepudiation !== null
3654-
? __expectBoolean(output.NonRepudiation)
3655-
: undefined,
3622+
CRLSign: __expectBoolean(output.CRLSign),
3623+
DataEncipherment: __expectBoolean(output.DataEncipherment),
3624+
DecipherOnly: __expectBoolean(output.DecipherOnly),
3625+
DigitalSignature: __expectBoolean(output.DigitalSignature),
3626+
EncipherOnly: __expectBoolean(output.EncipherOnly),
3627+
KeyAgreement: __expectBoolean(output.KeyAgreement),
3628+
KeyCertSign: __expectBoolean(output.KeyCertSign),
3629+
KeyEncipherment: __expectBoolean(output.KeyEncipherment),
3630+
NonRepudiation: __expectBoolean(output.NonRepudiation),
36563631
} as any;
36573632
};
36583633

clients/client-acm/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,10 +2174,7 @@ const deserializeAws_json1_1ExpiryEventsConfiguration = (
21742174
context: __SerdeContext
21752175
): ExpiryEventsConfiguration => {
21762176
return {
2177-
DaysBeforeExpiry:
2178-
output.DaysBeforeExpiry !== undefined && output.DaysBeforeExpiry !== null
2179-
? __expectNumber(output.DaysBeforeExpiry)
2180-
: undefined,
2177+
DaysBeforeExpiry: __expectNumber(output.DaysBeforeExpiry),
21812178
} as any;
21822179
};
21832180

0 commit comments

Comments
 (0)