Skip to content

Commit c16b4f4

Browse files
chore: update generated code
1 parent e958194 commit c16b4f4

File tree

242 files changed

+23047
-52127
lines changed

Some content is hidden

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

242 files changed

+23047
-52127
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1.ts

Lines changed: 80 additions & 173 deletions
Large diffs are not rendered by default.

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

Lines changed: 78 additions & 167 deletions
Large diffs are not rendered by default.

clients/client-acm/protocols/Aws_json1_1.ts

Lines changed: 54 additions & 116 deletions
Large diffs are not rendered by default.

clients/client-alexa-for-business/protocols/Aws_json1_1.ts

Lines changed: 216 additions & 494 deletions
Large diffs are not rendered by default.

clients/client-amp/protocols/Aws_restJson1.ts

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,8 @@ const deserializeAws_restJson1ValidationExceptionField = (
814814
context: __SerdeContext
815815
): ValidationExceptionField => {
816816
return {
817-
message: output.message !== undefined && output.message !== null ? __expectString(output.message) : undefined,
818-
name: output.name !== undefined && output.name !== null ? __expectString(output.name) : undefined,
817+
message: __expectString(output.message),
818+
name: __expectString(output.name),
819819
} as any;
820820
};
821821

@@ -835,36 +835,31 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (
835835

836836
const deserializeAws_restJson1WorkspaceDescription = (output: any, context: __SerdeContext): WorkspaceDescription => {
837837
return {
838-
alias: output.alias !== undefined && output.alias !== null ? __expectString(output.alias) : undefined,
839-
arn: output.arn !== undefined && output.arn !== null ? __expectString(output.arn) : undefined,
838+
alias: __expectString(output.alias),
839+
arn: __expectString(output.arn),
840840
createdAt:
841841
output.createdAt !== undefined && output.createdAt !== null
842842
? new Date(Math.round(output.createdAt * 1000))
843843
: undefined,
844-
prometheusEndpoint:
845-
output.prometheusEndpoint !== undefined && output.prometheusEndpoint !== null
846-
? __expectString(output.prometheusEndpoint)
847-
: undefined,
844+
prometheusEndpoint: __expectString(output.prometheusEndpoint),
848845
status:
849846
output.status !== undefined && output.status !== null
850847
? deserializeAws_restJson1WorkspaceStatus(output.status, context)
851848
: undefined,
852-
workspaceId:
853-
output.workspaceId !== undefined && output.workspaceId !== null ? __expectString(output.workspaceId) : undefined,
849+
workspaceId: __expectString(output.workspaceId),
854850
} as any;
855851
};
856852

857853
const deserializeAws_restJson1WorkspaceStatus = (output: any, context: __SerdeContext): WorkspaceStatus => {
858854
return {
859-
statusCode:
860-
output.statusCode !== undefined && output.statusCode !== null ? __expectString(output.statusCode) : undefined,
855+
statusCode: __expectString(output.statusCode),
861856
} as any;
862857
};
863858

864859
const deserializeAws_restJson1WorkspaceSummary = (output: any, context: __SerdeContext): WorkspaceSummary => {
865860
return {
866-
alias: output.alias !== undefined && output.alias !== null ? __expectString(output.alias) : undefined,
867-
arn: output.arn !== undefined && output.arn !== null ? __expectString(output.arn) : undefined,
861+
alias: __expectString(output.alias),
862+
arn: __expectString(output.arn),
868863
createdAt:
869864
output.createdAt !== undefined && output.createdAt !== null
870865
? new Date(Math.round(output.createdAt * 1000))
@@ -873,8 +868,7 @@ const deserializeAws_restJson1WorkspaceSummary = (output: any, context: __SerdeC
873868
output.status !== undefined && output.status !== null
874869
? deserializeAws_restJson1WorkspaceStatus(output.status, context)
875870
: undefined,
876-
workspaceId:
877-
output.workspaceId !== undefined && output.workspaceId !== null ? __expectString(output.workspaceId) : undefined,
871+
workspaceId: __expectString(output.workspaceId),
878872
} as any;
879873
};
880874

clients/client-amplify/protocols/Aws_restJson1.ts

Lines changed: 73 additions & 181 deletions
Large diffs are not rendered by default.

clients/client-amplifybackend/protocols/Aws_restJson1.ts

Lines changed: 39 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -3860,39 +3860,20 @@ const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (
38603860
context: __SerdeContext
38613861
): BackendAPIAppSyncAuthSettings => {
38623862
return {
3863-
CognitoUserPoolId:
3864-
output.cognitoUserPoolId !== undefined && output.cognitoUserPoolId !== null
3865-
? __expectString(output.cognitoUserPoolId)
3866-
: undefined,
3867-
Description:
3868-
output.description !== undefined && output.description !== null ? __expectString(output.description) : undefined,
3863+
CognitoUserPoolId: __expectString(output.cognitoUserPoolId),
3864+
Description: __expectString(output.description),
38693865
ExpirationTime: __expectNumber(output.expirationTime),
3870-
OpenIDAuthTTL:
3871-
output.openIDAuthTTL !== undefined && output.openIDAuthTTL !== null
3872-
? __expectString(output.openIDAuthTTL)
3873-
: undefined,
3874-
OpenIDClientId:
3875-
output.openIDClientId !== undefined && output.openIDClientId !== null
3876-
? __expectString(output.openIDClientId)
3877-
: undefined,
3878-
OpenIDIatTTL:
3879-
output.openIDIatTTL !== undefined && output.openIDIatTTL !== null
3880-
? __expectString(output.openIDIatTTL)
3881-
: undefined,
3882-
OpenIDIssueURL:
3883-
output.openIDIssueURL !== undefined && output.openIDIssueURL !== null
3884-
? __expectString(output.openIDIssueURL)
3885-
: undefined,
3886-
OpenIDProviderName:
3887-
output.openIDProviderName !== undefined && output.openIDProviderName !== null
3888-
? __expectString(output.openIDProviderName)
3889-
: undefined,
3866+
OpenIDAuthTTL: __expectString(output.openIDAuthTTL),
3867+
OpenIDClientId: __expectString(output.openIDClientId),
3868+
OpenIDIatTTL: __expectString(output.openIDIatTTL),
3869+
OpenIDIssueURL: __expectString(output.openIDIssueURL),
3870+
OpenIDProviderName: __expectString(output.openIDProviderName),
38903871
} as any;
38913872
};
38923873

38933874
const deserializeAws_restJson1BackendAPIAuthType = (output: any, context: __SerdeContext): BackendAPIAuthType => {
38943875
return {
3895-
Mode: output.mode !== undefined && output.mode !== null ? __expectString(output.mode) : undefined,
3876+
Mode: __expectString(output.mode),
38963877
Settings:
38973878
output.settings !== undefined && output.settings !== null
38983879
? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
@@ -3905,10 +3886,7 @@ const deserializeAws_restJson1BackendAPIConflictResolution = (
39053886
context: __SerdeContext
39063887
): BackendAPIConflictResolution => {
39073888
return {
3908-
ResolutionStrategy:
3909-
output.resolutionStrategy !== undefined && output.resolutionStrategy !== null
3910-
? __expectString(output.resolutionStrategy)
3911-
: undefined,
3889+
ResolutionStrategy: __expectString(output.resolutionStrategy),
39123890
} as any;
39133891
};
39143892

@@ -3921,7 +3899,7 @@ const deserializeAws_restJson1BackendAPIResourceConfig = (
39213899
output.additionalAuthTypes !== undefined && output.additionalAuthTypes !== null
39223900
? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
39233901
: undefined,
3924-
ApiName: output.apiName !== undefined && output.apiName !== null ? __expectString(output.apiName) : undefined,
3902+
ApiName: __expectString(output.apiName),
39253903
ConflictResolution:
39263904
output.conflictResolution !== undefined && output.conflictResolution !== null
39273905
? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
@@ -3930,11 +3908,8 @@ const deserializeAws_restJson1BackendAPIResourceConfig = (
39303908
output.defaultAuthType !== undefined && output.defaultAuthType !== null
39313909
? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
39323910
: undefined,
3933-
Service: output.service !== undefined && output.service !== null ? __expectString(output.service) : undefined,
3934-
TransformSchema:
3935-
output.transformSchema !== undefined && output.transformSchema !== null
3936-
? __expectString(output.transformSchema)
3937-
: undefined,
3911+
Service: __expectString(output.service),
3912+
TransformSchema: __expectString(output.transformSchema),
39383913
} as any;
39393914
};
39403915

@@ -3943,31 +3918,21 @@ const deserializeAws_restJson1BackendAuthSocialProviderConfig = (
39433918
context: __SerdeContext
39443919
): BackendAuthSocialProviderConfig => {
39453920
return {
3946-
ClientId:
3947-
output.client_id !== undefined && output.client_id !== null ? __expectString(output.client_id) : undefined,
3948-
ClientSecret:
3949-
output.client_secret !== undefined && output.client_secret !== null
3950-
? __expectString(output.client_secret)
3951-
: undefined,
3921+
ClientId: __expectString(output.client_id),
3922+
ClientSecret: __expectString(output.client_secret),
39523923
} as any;
39533924
};
39543925

39553926
const deserializeAws_restJson1BackendJobRespObj = (output: any, context: __SerdeContext): BackendJobRespObj => {
39563927
return {
3957-
AppId: output.appId !== undefined && output.appId !== null ? __expectString(output.appId) : undefined,
3958-
BackendEnvironmentName:
3959-
output.backendEnvironmentName !== undefined && output.backendEnvironmentName !== null
3960-
? __expectString(output.backendEnvironmentName)
3961-
: undefined,
3962-
CreateTime:
3963-
output.createTime !== undefined && output.createTime !== null ? __expectString(output.createTime) : undefined,
3964-
Error: output.error !== undefined && output.error !== null ? __expectString(output.error) : undefined,
3965-
JobId: output.jobId !== undefined && output.jobId !== null ? __expectString(output.jobId) : undefined,
3966-
Operation:
3967-
output.operation !== undefined && output.operation !== null ? __expectString(output.operation) : undefined,
3968-
Status: output.status !== undefined && output.status !== null ? __expectString(output.status) : undefined,
3969-
UpdateTime:
3970-
output.updateTime !== undefined && output.updateTime !== null ? __expectString(output.updateTime) : undefined,
3928+
AppId: __expectString(output.appId),
3929+
BackendEnvironmentName: __expectString(output.backendEnvironmentName),
3930+
CreateTime: __expectString(output.createTime),
3931+
Error: __expectString(output.error),
3932+
JobId: __expectString(output.jobId),
3933+
Operation: __expectString(output.operation),
3934+
Status: __expectString(output.status),
3935+
UpdateTime: __expectString(output.updateTime),
39713936
} as any;
39723937
};
39733938

@@ -3976,10 +3941,7 @@ const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (
39763941
context: __SerdeContext
39773942
): CreateBackendAuthForgotPasswordConfig => {
39783943
return {
3979-
DeliveryMethod:
3980-
output.deliveryMethod !== undefined && output.deliveryMethod !== null
3981-
? __expectString(output.deliveryMethod)
3982-
: undefined,
3944+
DeliveryMethod: __expectString(output.deliveryMethod),
39833945
EmailSettings:
39843946
output.emailSettings !== undefined && output.emailSettings !== null
39853947
? deserializeAws_restJson1EmailSettings(output.emailSettings, context)
@@ -3996,10 +3958,7 @@ const deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (
39963958
context: __SerdeContext
39973959
): CreateBackendAuthIdentityPoolConfig => {
39983960
return {
3999-
IdentityPoolName:
4000-
output.identityPoolName !== undefined && output.identityPoolName !== null
4001-
? __expectString(output.identityPoolName)
4002-
: undefined,
3961+
IdentityPoolName: __expectString(output.identityPoolName),
40033962
UnauthenticatedLogin: __expectBoolean(output.unauthenticatedLogin),
40043963
} as any;
40053964
};
@@ -4009,7 +3968,7 @@ const deserializeAws_restJson1CreateBackendAuthMFAConfig = (
40093968
context: __SerdeContext
40103969
): CreateBackendAuthMFAConfig => {
40113970
return {
4012-
MFAMode: output.MFAMode !== undefined && output.MFAMode !== null ? __expectString(output.MFAMode) : undefined,
3971+
MFAMode: __expectString(output.MFAMode),
40133972
Settings:
40143973
output.settings !== undefined && output.settings !== null
40153974
? deserializeAws_restJson1Settings(output.settings, context)
@@ -4022,14 +3981,8 @@ const deserializeAws_restJson1CreateBackendAuthOAuthConfig = (
40223981
context: __SerdeContext
40233982
): CreateBackendAuthOAuthConfig => {
40243983
return {
4025-
DomainPrefix:
4026-
output.domainPrefix !== undefined && output.domainPrefix !== null
4027-
? __expectString(output.domainPrefix)
4028-
: undefined,
4029-
OAuthGrantType:
4030-
output.oAuthGrantType !== undefined && output.oAuthGrantType !== null
4031-
? __expectString(output.oAuthGrantType)
4032-
: undefined,
3984+
DomainPrefix: __expectString(output.domainPrefix),
3985+
OAuthGrantType: __expectString(output.oAuthGrantType),
40333986
OAuthScopes:
40343987
output.oAuthScopes !== undefined && output.oAuthScopes !== null
40353988
? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
@@ -4067,15 +4020,12 @@ const deserializeAws_restJson1CreateBackendAuthResourceConfig = (
40674020
context: __SerdeContext
40684021
): CreateBackendAuthResourceConfig => {
40694022
return {
4070-
AuthResources:
4071-
output.authResources !== undefined && output.authResources !== null
4072-
? __expectString(output.authResources)
4073-
: undefined,
4023+
AuthResources: __expectString(output.authResources),
40744024
IdentityPoolConfigs:
40754025
output.identityPoolConfigs !== undefined && output.identityPoolConfigs !== null
40764026
? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
40774027
: undefined,
4078-
Service: output.service !== undefined && output.service !== null ? __expectString(output.service) : undefined,
4028+
Service: __expectString(output.service),
40794029
UserPoolConfigs:
40804030
output.userPoolConfigs !== undefined && output.userPoolConfigs !== null
40814031
? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
@@ -4108,27 +4058,15 @@ const deserializeAws_restJson1CreateBackendAuthUserPoolConfig = (
41084058
output.requiredSignUpAttributes !== undefined && output.requiredSignUpAttributes !== null
41094059
? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
41104060
: undefined,
4111-
SignInMethod:
4112-
output.signInMethod !== undefined && output.signInMethod !== null
4113-
? __expectString(output.signInMethod)
4114-
: undefined,
4115-
UserPoolName:
4116-
output.userPoolName !== undefined && output.userPoolName !== null
4117-
? __expectString(output.userPoolName)
4118-
: undefined,
4061+
SignInMethod: __expectString(output.signInMethod),
4062+
UserPoolName: __expectString(output.userPoolName),
41194063
} as any;
41204064
};
41214065

41224066
const deserializeAws_restJson1EmailSettings = (output: any, context: __SerdeContext): EmailSettings => {
41234067
return {
4124-
EmailMessage:
4125-
output.emailMessage !== undefined && output.emailMessage !== null
4126-
? __expectString(output.emailMessage)
4127-
: undefined,
4128-
EmailSubject:
4129-
output.emailSubject !== undefined && output.emailSubject !== null
4130-
? __expectString(output.emailSubject)
4131-
: undefined,
4068+
EmailMessage: __expectString(output.emailMessage),
4069+
EmailSubject: __expectString(output.emailSubject),
41324070
} as any;
41334071
};
41344072

@@ -4226,22 +4164,10 @@ const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (
42264164

42274165
const deserializeAws_restJson1LoginAuthConfigReqObj = (output: any, context: __SerdeContext): LoginAuthConfigReqObj => {
42284166
return {
4229-
AwsCognitoIdentityPoolId:
4230-
output.aws_cognito_identity_pool_id !== undefined && output.aws_cognito_identity_pool_id !== null
4231-
? __expectString(output.aws_cognito_identity_pool_id)
4232-
: undefined,
4233-
AwsCognitoRegion:
4234-
output.aws_cognito_region !== undefined && output.aws_cognito_region !== null
4235-
? __expectString(output.aws_cognito_region)
4236-
: undefined,
4237-
AwsUserPoolsId:
4238-
output.aws_user_pools_id !== undefined && output.aws_user_pools_id !== null
4239-
? __expectString(output.aws_user_pools_id)
4240-
: undefined,
4241-
AwsUserPoolsWebClientId:
4242-
output.aws_user_pools_web_client_id !== undefined && output.aws_user_pools_web_client_id !== null
4243-
? __expectString(output.aws_user_pools_web_client_id)
4244-
: undefined,
4167+
AwsCognitoIdentityPoolId: __expectString(output.aws_cognito_identity_pool_id),
4168+
AwsCognitoRegion: __expectString(output.aws_cognito_region),
4169+
AwsUserPoolsId: __expectString(output.aws_user_pools_id),
4170+
AwsUserPoolsWebClientId: __expectString(output.aws_user_pools_web_client_id),
42454171
} as any;
42464172
};
42474173

@@ -4251,15 +4177,13 @@ const deserializeAws_restJson1Settings = (output: any, context: __SerdeContext):
42514177
output.mfaTypes !== undefined && output.mfaTypes !== null
42524178
? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context)
42534179
: undefined,
4254-
SmsMessage:
4255-
output.smsMessage !== undefined && output.smsMessage !== null ? __expectString(output.smsMessage) : undefined,
4180+
SmsMessage: __expectString(output.smsMessage),
42564181
} as any;
42574182
};
42584183

42594184
const deserializeAws_restJson1SmsSettings = (output: any, context: __SerdeContext): SmsSettings => {
42604185
return {
4261-
SmsMessage:
4262-
output.smsMessage !== undefined && output.smsMessage !== null ? __expectString(output.smsMessage) : undefined,
4186+
SmsMessage: __expectString(output.smsMessage),
42634187
} as any;
42644188
};
42654189

0 commit comments

Comments
 (0)