From aaff894f7840d199bae043594ca56e290d5f3deb Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 19 Apr 2023 13:48:16 -0400 Subject: [PATCH] fix(clients): always allow idempotency token (#4642) --- .../src/protocols/Aws_restJson1.ts | 14 ++--- .../src/protocols/Aws_json1_1.ts | 22 +++---- .../client-amp/src/protocols/Aws_restJson1.ts | 16 ++--- .../src/protocols/Aws_restJson1.ts | 28 ++++----- .../src/protocols/Aws_restJson1.ts | 14 ++--- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_json1_1.ts | 2 +- .../src/protocols/Aws_json1_1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 16 ++--- .../src/protocols/Aws_json1_0.ts | 6 +- .../src/protocols/Aws_json1_1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_json1_1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_json1_1.ts | 28 ++++----- .../src/protocols/Aws_json1_1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 28 ++++----- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_json1_0.ts | 8 +-- .../client-ebs/src/protocols/Aws_restJson1.ts | 2 +- .../client-efs/src/protocols/Aws_restJson1.ts | 4 +- .../client-eks/src/protocols/Aws_restJson1.ts | 26 ++++----- .../src/protocols/Aws_restJson1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 26 ++++----- .../client-fis/src/protocols/Aws_restJson1.ts | 4 +- .../client-fsx/src/protocols/Aws_json1_1.ts | 58 +++++++++---------- .../src/protocols/Aws_json1_1.ts | 12 ++-- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_json1_0.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 28 ++++----- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 24 ++++---- .../client-iot/src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 40 ++++++------- .../src/protocols/Aws_json1_0.ts | 2 +- .../src/protocols/Aws_json1_1.ts | 14 ++--- .../src/protocols/Aws_json1_0.ts | 12 ++-- .../client-m2/src/protocols/Aws_restJson1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 16 ++--- .../src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 12 ++-- .../client-mgn/src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 8 +-- .../client-mq/src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 16 ++--- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_json1_0.ts | 30 +++++----- .../src/protocols/Aws_json1_0.ts | 14 ++--- .../src/protocols/Aws_json1_0.ts | 14 ++--- .../src/protocols/Aws_json1_1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 26 ++++----- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 12 ++-- .../src/protocols/Aws_restJson1.ts | 8 +-- .../src/protocols/Aws_json1_1.ts | 10 ++-- .../src/protocols/Aws_restJson1.ts | 8 +-- .../src/protocols/Aws_json1_1.ts | 18 +++--- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_json1_1.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_json1_1.ts | 34 +++++------ .../src/protocols/Aws_json1_1.ts | 16 ++--- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 4 +- .../src/protocols/Aws_restJson1.ts | 2 +- .../src/protocols/Aws_json1_1.ts | 6 +- .../src/protocols/Aws_restJson1.ts | 20 +++---- .../client-ssm/src/protocols/Aws_json1_1.ts | 10 ++-- .../src/protocols/Aws_json1_0.ts | 6 +- .../src/protocols/Aws_json1_0.ts | 2 +- .../src/protocols/Aws_json1_1.ts | 6 +- .../src/protocols/Aws_json1_0.ts | 8 +-- .../src/protocols/Aws_restJson1.ts | 16 ++--- .../src/protocols/Aws_restJson1.ts | 12 ++-- .../src/protocols/Aws_restJson1.ts | 10 ++-- .../src/protocols/Aws_json1_1.ts | 16 ++--- .../src/protocols/Aws_restJson1.ts | 28 ++++----- .../codegen/JsonShapeSerVisitor.java | 4 +- .../codegen/RestJsonProtocolGenerator.java | 4 +- .../smithy-client/src/object-mapping.spec.ts | 28 +++++++++ packages/smithy-client/src/object-mapping.ts | 2 +- 100 files changed, 559 insertions(+), 531 deletions(-) diff --git a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts index 69bf883a7a7c..577702e6f1bc 100644 --- a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts +++ b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts @@ -144,7 +144,7 @@ export const se_ApplyArchiveRuleCommand = async ( body = JSON.stringify( take(input, { analyzerArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], ruleName: [], }) ); @@ -199,7 +199,7 @@ export const se_CreateAccessPreviewCommand = async ( body = JSON.stringify( take(input, { analyzerArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], configurations: (_) => _json(_), }) ); @@ -231,7 +231,7 @@ export const se_CreateAnalyzerCommand = async ( take(input, { analyzerName: [], archiveRules: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), type: [], }) @@ -271,7 +271,7 @@ export const se_CreateArchiveRuleCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], filter: (_) => _json(_), ruleName: [], }) @@ -809,7 +809,7 @@ export const se_StartPolicyGenerationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], cloudTrailDetails: (_) => se_CloudTrailDetails(_, context), policyGenerationDetails: (_) => _json(_), }) @@ -942,7 +942,7 @@ export const se_UpdateArchiveRuleCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], filter: (_) => _json(_), }) ); @@ -973,7 +973,7 @@ export const se_UpdateFindingsCommand = async ( body = JSON.stringify( take(input, { analyzerArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], ids: (_) => _json(_), resourceArn: [], status: [], diff --git a/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts b/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts index 88778e4aafb7..f815b0a27305 100644 --- a/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts +++ b/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts @@ -6239,7 +6239,7 @@ const de_UnauthorizedExceptionRes = async ( */ const se_CreateAddressBookRequest = (input: CreateAddressBookRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Tags: _json, @@ -6254,7 +6254,7 @@ const se_CreateBusinessReportScheduleRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ContentRange: _json, Format: [], Recurrence: _json, @@ -6270,7 +6270,7 @@ const se_CreateBusinessReportScheduleRequest = ( */ const se_CreateConferenceProviderRequest = (input: CreateConferenceProviderRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ConferenceProviderName: [], ConferenceProviderType: [], IPDialIn: _json, @@ -6285,7 +6285,7 @@ const se_CreateConferenceProviderRequest = (input: CreateConferenceProviderReque */ const se_CreateContactRequest = (input: CreateContactRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DisplayName: [], FirstName: [], LastName: [], @@ -6303,7 +6303,7 @@ const se_CreateContactRequest = (input: CreateContactRequest, context: __SerdeCo */ const se_CreateGatewayGroupRequest = (input: CreateGatewayGroupRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Tags: _json, @@ -6320,7 +6320,7 @@ const se_CreateGatewayGroupRequest = (input: CreateGatewayGroupRequest, context: const se_CreateNetworkProfileRequest = (input: CreateNetworkProfileRequest, context: __SerdeContext): any => { return take(input, { CertificateAuthorityArn: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], CurrentPassword: [], Description: [], EapMethod: [], @@ -6339,7 +6339,7 @@ const se_CreateNetworkProfileRequest = (input: CreateNetworkProfileRequest, cont const se_CreateProfileRequest = (input: CreateProfileRequest, context: __SerdeContext): any => { return take(input, { Address: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataRetentionOptIn: [], DistanceUnit: [], Locale: [], @@ -6362,7 +6362,7 @@ const se_CreateProfileRequest = (input: CreateProfileRequest, context: __SerdeCo */ const se_CreateRoomRequest = (input: CreateRoomRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], ProfileArn: [], ProviderCalendarId: [], @@ -6376,7 +6376,7 @@ const se_CreateRoomRequest = (input: CreateRoomRequest, context: __SerdeContext) */ const se_CreateSkillGroupRequest = (input: CreateSkillGroupRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], SkillGroupName: [], Tags: _json, @@ -6388,7 +6388,7 @@ const se_CreateSkillGroupRequest = (input: CreateSkillGroupRequest, context: __S */ const se_CreateUserRequest = (input: CreateUserRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Email: [], FirstName: [], LastName: [], @@ -6542,7 +6542,7 @@ const se_CreateUserRequest = (input: CreateUserRequest, context: __SerdeContext) */ const se_SendAnnouncementRequest = (input: SendAnnouncementRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: _json, RoomFilters: _json, TimeToLiveInSeconds: [], diff --git a/clients/client-amp/src/protocols/Aws_restJson1.ts b/clients/client-amp/src/protocols/Aws_restJson1.ts index a253a1c15ce1..5e86ca75611c 100644 --- a/clients/client-amp/src/protocols/Aws_restJson1.ts +++ b/clients/client-amp/src/protocols/Aws_restJson1.ts @@ -123,7 +123,7 @@ export const se_CreateAlertManagerDefinitionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], data: (_) => context.base64Encoder(_), }) ); @@ -155,7 +155,7 @@ export const se_CreateLoggingConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], logGroupArn: [], }) ); @@ -188,7 +188,7 @@ export const se_CreateRuleGroupsNamespaceCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], data: (_) => context.base64Encoder(_), name: [], tags: (_) => _json(_), @@ -221,7 +221,7 @@ export const se_CreateWorkspaceCommand = async ( body = JSON.stringify( take(input, { alias: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -550,7 +550,7 @@ export const se_PutAlertManagerDefinitionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], data: (_) => context.base64Encoder(_), }) ); @@ -584,7 +584,7 @@ export const se_PutRuleGroupsNamespaceCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], data: (_) => context.base64Encoder(_), }) ); @@ -676,7 +676,7 @@ export const se_UpdateLoggingConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], logGroupArn: [], }) ); @@ -709,7 +709,7 @@ export const se_UpdateWorkspaceAliasCommand = async ( body = JSON.stringify( take(input, { alias: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ diff --git a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts index 111cdcbfaee0..8a3e7bd15e94 100644 --- a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts +++ b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts @@ -291,7 +291,7 @@ export const se_CreateGatewayRouteCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], gatewayRouteName: [], spec: (_) => _json(_), tags: (_) => _json(_), @@ -324,7 +324,7 @@ export const se_CreateMeshCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], meshName: [], spec: (_) => _json(_), tags: (_) => _json(_), @@ -370,7 +370,7 @@ export const se_CreateRouteCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], routeName: [], spec: (_) => _json(_), tags: (_) => _json(_), @@ -409,7 +409,7 @@ export const se_CreateVirtualGatewayCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), tags: (_) => _json(_), virtualGatewayName: [], @@ -447,7 +447,7 @@ export const se_CreateVirtualNodeCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), tags: (_) => _json(_), virtualNodeName: [], @@ -486,7 +486,7 @@ export const se_CreateVirtualRouterCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), tags: (_) => _json(_), virtualRouterName: [], @@ -525,7 +525,7 @@ export const se_CreateVirtualServiceCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), tags: (_) => _json(_), virtualServiceName: [], @@ -1416,7 +1416,7 @@ export const se_UpdateGatewayRouteCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); @@ -1449,7 +1449,7 @@ export const se_UpdateMeshCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); @@ -1494,7 +1494,7 @@ export const se_UpdateRouteCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); @@ -1539,7 +1539,7 @@ export const se_UpdateVirtualGatewayCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); @@ -1584,7 +1584,7 @@ export const se_UpdateVirtualNodeCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); @@ -1629,7 +1629,7 @@ export const se_UpdateVirtualRouterCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); @@ -1674,7 +1674,7 @@ export const se_UpdateVirtualServiceCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], spec: (_) => _json(_), }) ); diff --git a/clients/client-appflow/src/protocols/Aws_restJson1.ts b/clients/client-appflow/src/protocols/Aws_restJson1.ts index 91b1c2ffdfec..04ff06fc8580 100644 --- a/clients/client-appflow/src/protocols/Aws_restJson1.ts +++ b/clients/client-appflow/src/protocols/Aws_restJson1.ts @@ -220,7 +220,7 @@ export const se_CreateConnectorProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], connectionMode: [], connectorLabel: [], connectorProfileConfig: (_) => _json(_), @@ -255,7 +255,7 @@ export const se_CreateFlowCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], destinationFlowConfigList: (_) => _json(_), flowName: [], @@ -661,7 +661,7 @@ export const se_RegisterConnectorCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], connectorLabel: [], connectorProvisioningConfig: (_) => _json(_), connectorProvisioningType: [], @@ -694,7 +694,7 @@ export const se_StartFlowCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], flowName: [], }) ); @@ -844,7 +844,7 @@ export const se_UpdateConnectorProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], connectionMode: [], connectorProfileConfig: (_) => _json(_), connectorProfileName: [], @@ -877,7 +877,7 @@ export const se_UpdateConnectorRegistrationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], connectorLabel: [], connectorProvisioningConfig: (_) => _json(_), description: [], @@ -909,7 +909,7 @@ export const se_UpdateFlowCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], destinationFlowConfigList: (_) => _json(_), flowName: [], diff --git a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts index c113eef7209e..21b0ba60fec4 100644 --- a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts +++ b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts @@ -99,7 +99,7 @@ export const se_CreateDataIntegrationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], FileConfiguration: (_) => _json(_), KmsKey: [], @@ -136,7 +136,7 @@ export const se_CreateEventIntegrationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], EventBridgeBus: [], EventFilter: (_) => _json(_), diff --git a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts index e9560242b98a..c799186bea5d 100644 --- a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts @@ -2199,7 +2199,7 @@ const se_StartExportTaskRequest = (input: StartExportTaskRequest, context: __Ser */ const se_StartImportTaskRequest = (input: StartImportTaskRequest, context: __SerdeContext): any => { return take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], importUrl: [], name: [], }); diff --git a/clients/client-athena/src/protocols/Aws_json1_1.ts b/clients/client-athena/src/protocols/Aws_json1_1.ts index 4f025808a278..9428865f576b 100644 --- a/clients/client-athena/src/protocols/Aws_json1_1.ts +++ b/clients/client-athena/src/protocols/Aws_json1_1.ts @@ -4210,7 +4210,7 @@ const de_TooManyRequestsExceptionRes = async ( */ const se_CreateNamedQueryInput = (input: CreateNamedQueryInput, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Database: [], Description: [], Name: [], @@ -4236,7 +4236,7 @@ const se_CreateNamedQueryInput = (input: CreateNamedQueryInput, context: __Serde */ const se_DeleteNamedQueryInput = (input: DeleteNamedQueryInput, context: __SerdeContext): any => { return take(input, { - NamedQueryId: (_) => _ ?? generateIdempotencyToken(), + NamedQueryId: [true, (_) => _ ?? generateIdempotencyToken()], }); }; @@ -4345,7 +4345,7 @@ const se_DeleteNamedQueryInput = (input: DeleteNamedQueryInput, context: __Serde */ const se_StartQueryExecutionInput = (input: StartQueryExecutionInput, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ExecutionParameters: _json, QueryExecutionContext: _json, QueryString: [], @@ -4364,7 +4364,7 @@ const se_StartQueryExecutionInput = (input: StartQueryExecutionInput, context: _ */ const se_StopQueryExecutionInput = (input: StopQueryExecutionInput, context: __SerdeContext): any => { return take(input, { - QueryExecutionId: (_) => _ ?? generateIdempotencyToken(), + QueryExecutionId: [true, (_) => _ ?? generateIdempotencyToken()], }); }; diff --git a/clients/client-backup/src/protocols/Aws_restJson1.ts b/clients/client-backup/src/protocols/Aws_restJson1.ts index 99db5c6a6855..a893dea836a8 100644 --- a/clients/client-backup/src/protocols/Aws_restJson1.ts +++ b/clients/client-backup/src/protocols/Aws_restJson1.ts @@ -398,7 +398,7 @@ export const se_CreateFrameworkCommand = async ( FrameworkDescription: [], FrameworkName: [], FrameworkTags: (_) => _json(_), - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -460,7 +460,7 @@ export const se_CreateReportPlanCommand = async ( let body: any; body = JSON.stringify( take(input, { - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], ReportDeliveryChannel: (_) => _json(_), ReportPlanDescription: [], ReportPlanName: [], @@ -2268,7 +2268,7 @@ export const se_StartReportJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -2463,7 +2463,7 @@ export const se_UpdateFrameworkCommand = async ( take(input, { FrameworkControls: (_) => _json(_), FrameworkDescription: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -2607,7 +2607,7 @@ export const se_UpdateReportPlanCommand = async ( let body: any; body = JSON.stringify( take(input, { - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], ReportDeliveryChannel: (_) => _json(_), ReportPlanDescription: [], ReportSetting: (_) => _json(_), diff --git a/clients/client-braket/src/protocols/Aws_restJson1.ts b/clients/client-braket/src/protocols/Aws_restJson1.ts index 463574f470ed..8eaab854e68a 100644 --- a/clients/client-braket/src/protocols/Aws_restJson1.ts +++ b/clients/client-braket/src/protocols/Aws_restJson1.ts @@ -116,7 +116,7 @@ export const se_CancelQuantumTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -147,7 +147,7 @@ export const se_CreateJobCommand = async ( take(input, { algorithmSpecification: (_) => _json(_), checkpointConfig: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], deviceConfig: (_) => _json(_), hyperParameters: (_) => _json(_), inputDataConfig: (_) => _json(_), @@ -186,7 +186,7 @@ export const se_CreateQuantumTaskCommand = async ( body = JSON.stringify( take(input, { action: (_) => __LazyJsonString.fromObject(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], deviceArn: [], deviceParameters: (_) => __LazyJsonString.fromObject(_), jobToken: [], diff --git a/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts index 02b9ca417d72..fe42d7e6f094 100644 --- a/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts @@ -163,7 +163,7 @@ export const se_CreateAppInstanceCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Metadata: [], Name: [], Tags: (_) => _json(_), @@ -234,7 +234,7 @@ export const se_CreateAppInstanceBotCommand = async ( body = JSON.stringify( take(input, { AppInstanceArn: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Configuration: (_) => _json(_), Metadata: [], Name: [], @@ -269,7 +269,7 @@ export const se_CreateAppInstanceUserCommand = async ( take(input, { AppInstanceArn: [], AppInstanceUserId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ExpirationSettings: (_) => _json(_), Metadata: [], Name: [], @@ -937,7 +937,7 @@ export const se_RegisterAppInstanceUserEndpointCommand = async ( body = JSON.stringify( take(input, { AllowMessages: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], EndpointAttributes: (_) => _json(_), Name: [], ResourceArn: [], diff --git a/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts index 690de4d22b46..1f812a57c2b7 100644 --- a/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts @@ -174,7 +174,7 @@ export const se_CreateMediaCapturePipelineCommand = async ( body = JSON.stringify( take(input, { ChimeSdkMeetingConfiguration: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], SinkArn: [], SinkType: [], SourceArn: [], @@ -209,7 +209,7 @@ export const se_CreateMediaConcatenationPipelineCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Sinks: (_) => _json(_), Sources: (_) => _json(_), Tags: (_) => _json(_), @@ -242,7 +242,7 @@ export const se_CreateMediaInsightsPipelineCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], KinesisVideoStreamRecordingSourceRuntimeConfiguration: (_) => se_KinesisVideoStreamRecordingSourceRuntimeConfiguration(_, context), KinesisVideoStreamSourceRuntimeConfiguration: (_) => _json(_), @@ -279,7 +279,7 @@ export const se_CreateMediaInsightsPipelineConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Elements: (_) => _json(_), MediaInsightsPipelineConfigurationName: [], RealTimeAlertConfiguration: (_) => _json(_), @@ -314,7 +314,7 @@ export const se_CreateMediaLiveConnectorPipelineCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Sinks: (_) => _json(_), Sources: (_) => _json(_), Tags: (_) => _json(_), diff --git a/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts index 1d668122c0ca..dd62f217a318 100644 --- a/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts @@ -201,7 +201,7 @@ export const se_CreateMeetingCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ExternalMeetingId: [], MediaRegion: [], MeetingFeatures: (_) => _json(_), @@ -242,7 +242,7 @@ export const se_CreateMeetingWithAttendeesCommand = async ( body = JSON.stringify( take(input, { Attendees: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ExternalMeetingId: [], MediaRegion: [], MeetingFeatures: (_) => _json(_), diff --git a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts index a9f4e9f97c36..d5614a39ed0b 100644 --- a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts @@ -295,7 +295,7 @@ export const se_ChannelFlowCallbackCommand = async ( let body: any; body = JSON.stringify( take(input, { - CallbackId: (_) => _ ?? generateIdempotencyToken(), + CallbackId: [true, (_) => _ ?? generateIdempotencyToken()], ChannelMessage: (_) => _json(_), DeleteResource: [], }) @@ -330,7 +330,7 @@ export const se_CreateChannelCommand = async ( take(input, { AppInstanceArn: [], ChannelId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ElasticChannelConfiguration: (_) => _json(_), ExpirationSettings: (_) => _json(_), MemberArns: (_) => _json(_), @@ -1639,7 +1639,7 @@ export const se_SendChannelMessageCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], ContentType: [], MessageAttributes: (_) => _json(_), diff --git a/clients/client-chime/src/protocols/Aws_restJson1.ts b/clients/client-chime/src/protocols/Aws_restJson1.ts index ed1eb14d8652..9540fe1db4cb 100644 --- a/clients/client-chime/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime/src/protocols/Aws_restJson1.ts @@ -1137,7 +1137,7 @@ export const se_CreateAppInstanceCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Metadata: [], Name: [], Tags: (_) => _json(_), @@ -1223,7 +1223,7 @@ export const se_CreateAppInstanceUserCommand = async ( take(input, { AppInstanceArn: [], AppInstanceUserId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Metadata: [], Name: [], Tags: (_) => _json(_), @@ -1328,7 +1328,7 @@ export const se_CreateChannelCommand = async ( body = JSON.stringify( take(input, { AppInstanceArn: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Metadata: [], Mode: [], Name: [], @@ -1489,7 +1489,7 @@ export const se_CreateMediaCapturePipelineCommand = async ( body = JSON.stringify( take(input, { ChimeSdkMeetingConfiguration: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], SinkArn: [], SinkType: [], SourceArn: [], @@ -1522,7 +1522,7 @@ export const se_CreateMeetingCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ExternalMeetingId: [], MediaRegion: [], MeetingHostId: [], @@ -1593,7 +1593,7 @@ export const se_CreateMeetingWithAttendeesCommand = async ( body = JSON.stringify( take(input, { Attendees: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ExternalMeetingId: [], MediaRegion: [], MeetingHostId: [], @@ -1705,7 +1705,7 @@ export const se_CreateRoomCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], }) ); @@ -6046,7 +6046,7 @@ export const se_SendChannelMessageCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], Metadata: [], Persistence: [], diff --git a/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts b/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts index 32619b9b4194..0607dda531ef 100644 --- a/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts +++ b/clients/client-cloudcontrol/src/protocols/Aws_json1_0.ts @@ -1145,7 +1145,7 @@ const de_UnsupportedActionExceptionRes = async ( */ const se_CreateResourceInput = (input: CreateResourceInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DesiredState: [], RoleArn: [], TypeName: [], @@ -1158,7 +1158,7 @@ const se_CreateResourceInput = (input: CreateResourceInput, context: __SerdeCont */ const se_DeleteResourceInput = (input: DeleteResourceInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Identifier: [], RoleArn: [], TypeName: [], @@ -1185,7 +1185,7 @@ const se_DeleteResourceInput = (input: DeleteResourceInput, context: __SerdeCont */ const se_UpdateResourceInput = (input: UpdateResourceInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Identifier: [], PatchDocument: [], RoleArn: [], diff --git a/clients/client-codecommit/src/protocols/Aws_json1_1.ts b/clients/client-codecommit/src/protocols/Aws_json1_1.ts index 189d6e4080b5..743f740a1539 100644 --- a/clients/client-codecommit/src/protocols/Aws_json1_1.ts +++ b/clients/client-codecommit/src/protocols/Aws_json1_1.ts @@ -11055,7 +11055,7 @@ const se_CreateCommitInput = (input: CreateCommitInput, context: __SerdeContext) */ const se_CreatePullRequestInput = (input: CreatePullRequestInput, context: __SerdeContext): any => { return take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], targets: _json, title: [], @@ -11256,7 +11256,7 @@ const se_PostCommentForComparedCommitInput = ( return take(input, { afterCommitId: [], beforeCommitId: [], - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], content: [], location: _json, repositoryName: [], @@ -11270,7 +11270,7 @@ const se_PostCommentForPullRequestInput = (input: PostCommentForPullRequestInput return take(input, { afterCommitId: [], beforeCommitId: [], - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], content: [], location: _json, pullRequestId: [], @@ -11283,7 +11283,7 @@ const se_PostCommentForPullRequestInput = (input: PostCommentForPullRequestInput */ const se_PostCommentReplyInput = (input: PostCommentReplyInput, context: __SerdeContext): any => { return take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], content: [], inReplyTo: [], }); diff --git a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts index 927ecb8298b6..7f7e167c46a1 100644 --- a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts @@ -111,7 +111,7 @@ export const se_AssociateRepositoryCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], KMSKeyDetails: (_) => _json(_), Repository: (_) => _json(_), Tags: (_) => _json(_), @@ -143,7 +143,7 @@ export const se_CreateCodeReviewCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], RepositoryAssociationArn: [], Type: (_) => _json(_), diff --git a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts index d7fbe8d566e6..1d4df81bbe33 100644 --- a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts +++ b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts @@ -3606,7 +3606,7 @@ const se_PutThirdPartyJobSuccessResultInput = ( */ const se_StartPipelineExecutionInput = (input: StartPipelineExecutionInput, context: __SerdeContext): any => { return take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], }); }; diff --git a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts index c0f0ff7b0e96..6a42631c92ec 100644 --- a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts +++ b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts @@ -84,7 +84,7 @@ export const se_CreateNotificationRuleCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DetailType: [], EventTypeIds: (_) => _json(_), Name: [], diff --git a/clients/client-comprehend/src/protocols/Aws_json1_1.ts b/clients/client-comprehend/src/protocols/Aws_json1_1.ts index f6b9ffe23d40..a3f4cd49a782 100644 --- a/clients/client-comprehend/src/protocols/Aws_json1_1.ts +++ b/clients/client-comprehend/src/protocols/Aws_json1_1.ts @@ -6673,7 +6673,7 @@ const se_ClassifyDocumentRequest = (input: ClassifyDocumentRequest, context: __S */ const se_CreateDatasetRequest = (input: CreateDatasetRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DatasetName: [], DatasetType: [], Description: [], @@ -6688,7 +6688,7 @@ const se_CreateDatasetRequest = (input: CreateDatasetRequest, context: __SerdeCo */ const se_CreateDocumentClassifierRequest = (input: CreateDocumentClassifierRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DocumentClassifierName: [], InputDataConfig: _json, @@ -6709,7 +6709,7 @@ const se_CreateDocumentClassifierRequest = (input: CreateDocumentClassifierReque */ const se_CreateEndpointRequest = (input: CreateEndpointRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DesiredInferenceUnits: [], EndpointName: [], @@ -6724,7 +6724,7 @@ const se_CreateEndpointRequest = (input: CreateEndpointRequest, context: __Serde */ const se_CreateEntityRecognizerRequest = (input: CreateEntityRecognizerRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, LanguageCode: [], @@ -6744,7 +6744,7 @@ const se_CreateEntityRecognizerRequest = (input: CreateEntityRecognizerRequest, const se_CreateFlywheelRequest = (input: CreateFlywheelRequest, context: __SerdeContext): any => { return take(input, { ActiveModelArn: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DataLakeS3Uri: [], DataSecurityConfig: _json, @@ -7244,7 +7244,7 @@ const se_StartDocumentClassificationJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DocumentClassifierArn: [], FlywheelArn: [], @@ -7265,7 +7265,7 @@ const se_StartDominantLanguageDetectionJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -7281,7 +7281,7 @@ const se_StartDominantLanguageDetectionJobRequest = ( */ const se_StartEntitiesDetectionJobRequest = (input: StartEntitiesDetectionJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], EntityRecognizerArn: [], FlywheelArn: [], @@ -7300,7 +7300,7 @@ const se_StartEntitiesDetectionJobRequest = (input: StartEntitiesDetectionJobReq */ const se_StartEventsDetectionJobRequest = (input: StartEventsDetectionJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -7321,7 +7321,7 @@ const se_StartKeyPhrasesDetectionJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -7341,7 +7341,7 @@ const se_StartPiiEntitiesDetectionJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -7361,7 +7361,7 @@ const se_StartSentimentDetectionJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -7381,7 +7381,7 @@ const se_StartTargetedSentimentDetectionJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -7398,7 +7398,7 @@ const se_StartTargetedSentimentDetectionJobRequest = ( */ const se_StartTopicsDetectionJobRequest = (input: StartTopicsDetectionJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], diff --git a/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts b/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts index 8179d0a20d54..248f51d98592 100644 --- a/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts +++ b/clients/client-comprehendmedical/src/protocols/Aws_json1_1.ts @@ -2201,7 +2201,7 @@ const se_StartEntitiesDetectionV2JobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -2216,7 +2216,7 @@ const se_StartEntitiesDetectionV2JobRequest = ( */ const se_StartICD10CMInferenceJobRequest = (input: StartICD10CMInferenceJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -2231,7 +2231,7 @@ const se_StartICD10CMInferenceJobRequest = (input: StartICD10CMInferenceJobReque */ const se_StartPHIDetectionJobRequest = (input: StartPHIDetectionJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -2246,7 +2246,7 @@ const se_StartPHIDetectionJobRequest = (input: StartPHIDetectionJobRequest, cont */ const se_StartRxNormInferenceJobRequest = (input: StartRxNormInferenceJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -2261,7 +2261,7 @@ const se_StartRxNormInferenceJobRequest = (input: StartRxNormInferenceJobRequest */ const se_StartSNOMEDCTInferenceJobRequest = (input: StartSNOMEDCTInferenceJobRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], diff --git a/clients/client-connect/src/protocols/Aws_restJson1.ts b/clients/client-connect/src/protocols/Aws_restJson1.ts index 4e1d955d2345..660947af66f1 100644 --- a/clients/client-connect/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect/src/protocols/Aws_restJson1.ts @@ -979,7 +979,7 @@ export const se_ClaimPhoneNumberCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], PhoneNumber: [], PhoneNumberDescription: [], Tags: (_) => _json(_), @@ -1084,7 +1084,7 @@ export const se_CreateContactFlowModuleCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], Description: [], Name: [], @@ -1331,7 +1331,7 @@ export const se_CreateRuleCommand = async ( body = JSON.stringify( take(input, { Actions: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Function: [], Name: [], PublishStatus: [], @@ -1402,7 +1402,7 @@ export const se_CreateTaskTemplateCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Constraints: (_) => _json(_), ContactFlowId: [], Defaults: (_) => _json(_), @@ -1439,7 +1439,7 @@ export const se_CreateTrafficDistributionGroupCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], InstanceId: [], Name: [], @@ -1585,7 +1585,7 @@ export const se_CreateVocabularyCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], LanguageCode: [], Tags: (_) => _json(_), @@ -4213,7 +4213,7 @@ export const se_MonitorContactCommand = async ( body = JSON.stringify( take(input, { AllowedMonitorCapabilities: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactId: [], InstanceId: [], UserId: [], @@ -4314,7 +4314,7 @@ export const se_ReplicateInstanceCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ReplicaAlias: [], ReplicaRegion: [], }) @@ -4583,7 +4583,7 @@ export const se_StartChatContactCommand = async ( take(input, { Attributes: (_) => _json(_), ChatDurationInMinutes: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactFlowId: [], InitialMessage: (_) => _json(_), InstanceId: [], @@ -4654,7 +4654,7 @@ export const se_StartContactStreamingCommand = async ( body = JSON.stringify( take(input, { ChatStreamingConfiguration: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactId: [], InstanceId: [], }) @@ -4689,7 +4689,7 @@ export const se_StartOutboundVoiceContactCommand = async ( AnswerMachineDetectionConfig: (_) => _json(_), Attributes: (_) => _json(_), CampaignId: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactFlowId: [], DestinationPhoneNumber: [], InstanceId: [], @@ -4725,7 +4725,7 @@ export const se_StartTaskContactCommand = async ( body = JSON.stringify( take(input, { Attributes: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactFlowId: [], Description: [], InstanceId: [], @@ -4920,7 +4920,7 @@ export const se_TransferContactCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactFlowId: [], ContactId: [], InstanceId: [], @@ -5498,7 +5498,7 @@ export const se_UpdatePhoneNumberCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], TargetArn: [], }) ); diff --git a/clients/client-connectcases/src/protocols/Aws_restJson1.ts b/clients/client-connectcases/src/protocols/Aws_restJson1.ts index bdc14ab3bd41..2f39fe1c0cd7 100644 --- a/clients/client-connectcases/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectcases/src/protocols/Aws_restJson1.ts @@ -192,7 +192,7 @@ export const se_CreateCaseCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], fields: (_) => se_FieldValueList(_, context), templateId: [], }) diff --git a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts index 06e965eb7b33..a69c5f8c60d7 100644 --- a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts @@ -67,7 +67,7 @@ export const se_CompleteAttachmentUploadCommand = async ( body = JSON.stringify( take(input, { AttachmentIds: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -130,7 +130,7 @@ export const se_DisconnectParticipantCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -227,7 +227,7 @@ export const se_SendEventCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], ContentType: [], }) @@ -259,7 +259,7 @@ export const se_SendMessageCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], ContentType: [], }) @@ -294,7 +294,7 @@ export const se_StartAttachmentUploadCommand = async ( take(input, { AttachmentName: [], AttachmentSizeInBytes: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContentType: [], }) ); diff --git a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts index 1b56f31b9655..50aad9cc089d 100644 --- a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts @@ -1022,7 +1022,7 @@ export const se_StartCostEstimationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ResourceCollection: (_) => _json(_), }) ); diff --git a/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts b/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts index 8e35c536157b..ff1c9f68bd9e 100644 --- a/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts +++ b/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts @@ -77,7 +77,7 @@ export const se_CreateClusterCommand = async ( adminUserName: [], adminUserPassword: [], authType: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], clusterName: [], kmsKeyId: [], preferredMaintenanceWindow: [], @@ -415,7 +415,7 @@ export const se_UpdateClusterCommand = async ( take(input, { adminUserPassword: [], authType: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], preferredMaintenanceWindow: [], shardCapacity: [], shardCount: [], diff --git a/clients/client-dynamodb/src/protocols/Aws_json1_0.ts b/clients/client-dynamodb/src/protocols/Aws_json1_0.ts index 2819fab23657..a8746f337305 100644 --- a/clients/client-dynamodb/src/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb/src/protocols/Aws_json1_0.ts @@ -4790,7 +4790,7 @@ const se_ExecuteStatementInput = (input: ExecuteStatementInput, context: __Serde */ const se_ExecuteTransactionInput = (input: ExecuteTransactionInput, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ReturnConsumedCapacity: [], TransactStatements: (_) => se_ParameterizedStatements(_, context), }); @@ -4826,7 +4826,7 @@ const se_ExpectedAttributeValue = (input: ExpectedAttributeValue, context: __Ser */ const se_ExportTableToPointInTimeInput = (input: ExportTableToPointInTimeInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ExportFormat: [], ExportTime: (_) => Math.round(_.getTime() / 1000), S3Bucket: [], @@ -4961,7 +4961,7 @@ const se_GlobalTableGlobalSecondaryIndexSettingsUpdateList = ( */ const se_ImportTableInput = (input: ImportTableInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], InputCompressionType: [], InputFormat: [], InputFormatOptions: _json, @@ -5455,7 +5455,7 @@ const se_TransactWriteItemList = (input: TransactWriteItem[], context: __SerdeCo */ const se_TransactWriteItemsInput = (input: TransactWriteItemsInput, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ReturnConsumedCapacity: [], ReturnItemCollectionMetrics: [], TransactItems: (_) => se_TransactWriteItemList(_, context), diff --git a/clients/client-ebs/src/protocols/Aws_restJson1.ts b/clients/client-ebs/src/protocols/Aws_restJson1.ts index 1a8b159dc31f..83c01b4c7fcb 100644 --- a/clients/client-ebs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ebs/src/protocols/Aws_restJson1.ts @@ -240,7 +240,7 @@ export const se_StartSnapshotCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Encrypted: [], KmsKeyArn: [], diff --git a/clients/client-efs/src/protocols/Aws_restJson1.ts b/clients/client-efs/src/protocols/Aws_restJson1.ts index 09990c2259c1..c69ea4a110d4 100644 --- a/clients/client-efs/src/protocols/Aws_restJson1.ts +++ b/clients/client-efs/src/protocols/Aws_restJson1.ts @@ -168,7 +168,7 @@ export const se_CreateAccessPointCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], PosixUser: (_) => _json(_), RootDirectory: (_) => _json(_), @@ -204,7 +204,7 @@ export const se_CreateFileSystemCommand = async ( take(input, { AvailabilityZoneName: [], Backup: [], - CreationToken: (_) => _ ?? generateIdempotencyToken(), + CreationToken: [true, (_) => _ ?? generateIdempotencyToken()], Encrypted: [], KmsKeyId: [], PerformanceMode: [], diff --git a/clients/client-eks/src/protocols/Aws_restJson1.ts b/clients/client-eks/src/protocols/Aws_restJson1.ts index b3d64af51512..4d769fc5e66d 100644 --- a/clients/client-eks/src/protocols/Aws_restJson1.ts +++ b/clients/client-eks/src/protocols/Aws_restJson1.ts @@ -166,7 +166,7 @@ export const se_AssociateEncryptionConfigCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], encryptionConfig: (_) => _json(_), }) ); @@ -199,7 +199,7 @@ export const se_AssociateIdentityProviderConfigCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], oidc: (_) => _json(_), tags: (_) => _json(_), }) @@ -234,7 +234,7 @@ export const se_CreateAddonCommand = async ( take(input, { addonName: [], addonVersion: [], - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], configurationValues: [], resolveConflicts: [], serviceAccountRoleArn: [], @@ -267,7 +267,7 @@ export const se_CreateClusterCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], encryptionConfig: (_) => _json(_), kubernetesNetworkConfig: (_) => _json(_), logging: (_) => _json(_), @@ -307,7 +307,7 @@ export const se_CreateFargateProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], fargateProfileName: [], podExecutionRoleArn: [], selectors: (_) => _json(_), @@ -345,7 +345,7 @@ export const se_CreateNodegroupCommand = async ( take(input, { amiType: [], capacityType: [], - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], diskSize: [], instanceTypes: (_) => _json(_), labels: (_) => _json(_), @@ -772,7 +772,7 @@ export const se_DisassociateIdentityProviderConfigCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], identityProviderConfig: (_) => _json(_), }) ); @@ -1000,7 +1000,7 @@ export const se_RegisterClusterCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], connectorConfig: (_) => _json(_), name: [], tags: (_) => _json(_), @@ -1097,7 +1097,7 @@ export const se_UpdateAddonCommand = async ( body = JSON.stringify( take(input, { addonVersion: [], - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], configurationValues: [], resolveConflicts: [], serviceAccountRoleArn: [], @@ -1131,7 +1131,7 @@ export const se_UpdateClusterConfigCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], logging: (_) => _json(_), resourcesVpcConfig: (_) => _json(_), }) @@ -1163,7 +1163,7 @@ export const se_UpdateClusterVersionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], version: [], }) ); @@ -1204,7 +1204,7 @@ export const se_UpdateNodegroupConfigCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], labels: (_) => _json(_), scalingConfig: (_) => _json(_), taints: (_) => _json(_), @@ -1248,7 +1248,7 @@ export const se_UpdateNodegroupVersionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], force: [], launchTemplate: (_) => _json(_), releaseVersion: [], diff --git a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts index 3300e6cda7e9..c4b43a2a8b76 100644 --- a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts @@ -146,7 +146,7 @@ export const se_CreateJobTemplateCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], jobTemplateData: (_) => se_JobTemplateData(_, context), kmsKeyArn: [], name: [], @@ -190,7 +190,7 @@ export const se_CreateManagedEndpointCommand = async ( body = JSON.stringify( take(input, { certificateArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], configurationOverrides: (_) => se_ConfigurationOverrides(_, context), executionRoleArn: [], name: [], @@ -225,7 +225,7 @@ export const se_CreateVirtualClusterCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], containerProvider: (_) => _json(_), name: [], tags: (_) => _json(_), @@ -648,7 +648,7 @@ export const se_StartJobRunCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], configurationOverrides: (_) => se_ConfigurationOverrides(_, context), executionRoleArn: [], jobDriver: (_) => _json(_), diff --git a/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts b/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts index 695ebd942b13..55dd7ffb6127 100644 --- a/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts @@ -128,7 +128,7 @@ export const se_CreateApplicationCommand = async ( architecture: [], autoStartConfiguration: (_) => _json(_), autoStopConfiguration: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], imageConfiguration: (_) => _json(_), initialCapacity: (_) => _json(_), maximumCapacity: (_) => _json(_), @@ -430,7 +430,7 @@ export const se_StartJobRunCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], configurationOverrides: (_) => se_ConfigurationOverrides(_, context), executionRoleArn: [], executionTimeoutMinutes: [], @@ -568,7 +568,7 @@ export const se_UpdateApplicationCommand = async ( architecture: [], autoStartConfiguration: (_) => _json(_), autoStopConfiguration: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], imageConfiguration: (_) => _json(_), initialCapacity: (_) => _json(_), maximumCapacity: (_) => _json(_), diff --git a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts index c64dff96067a..0467c4694216 100644 --- a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts @@ -127,7 +127,7 @@ export const se_AssociateUserToPermissionGroupCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -159,7 +159,7 @@ export const se_CreateChangesetCommand = async ( body = JSON.stringify( take(input, { changeType: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], formatParams: (_) => _json(_), sourceParams: (_) => _json(_), }) @@ -191,7 +191,7 @@ export const se_CreateDatasetCommand = async ( body = JSON.stringify( take(input, { alias: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], datasetDescription: [], datasetTitle: [], kind: [], @@ -230,7 +230,7 @@ export const se_CreateDataViewCommand = async ( take(input, { asOfTimestamp: [], autoUpdate: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], destinationTypeParams: (_) => _json(_), partitionColumns: (_) => _json(_), sortColumns: (_) => _json(_), @@ -263,7 +263,7 @@ export const se_CreatePermissionGroupCommand = async ( body = JSON.stringify( take(input, { applicationPermissions: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], }) @@ -296,7 +296,7 @@ export const se_CreateUserCommand = async ( take(input, { ApiAccess: [], apiAccessPrincipalArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], emailAddress: [], firstName: [], lastName: [], @@ -392,7 +392,7 @@ export const se_DisableUserCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -459,7 +459,7 @@ export const se_EnableUserCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -906,7 +906,7 @@ export const se_ResetUserPasswordCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -939,7 +939,7 @@ export const se_UpdateChangesetCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], formatParams: (_) => _json(_), sourceParams: (_) => _json(_), }) @@ -972,7 +972,7 @@ export const se_UpdateDatasetCommand = async ( body = JSON.stringify( take(input, { alias: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], datasetDescription: [], datasetTitle: [], kind: [], @@ -1015,7 +1015,7 @@ export const se_UpdatePermissionGroupCommand = async ( body = JSON.stringify( take(input, { applicationPermissions: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], }) @@ -1049,7 +1049,7 @@ export const se_UpdateUserCommand = async ( take(input, { apiAccess: [], apiAccessPrincipalArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], firstName: [], lastName: [], type: [], diff --git a/clients/client-fis/src/protocols/Aws_restJson1.ts b/clients/client-fis/src/protocols/Aws_restJson1.ts index aab8e9fb9458..ebf8d07ccbb5 100644 --- a/clients/client-fis/src/protocols/Aws_restJson1.ts +++ b/clients/client-fis/src/protocols/Aws_restJson1.ts @@ -101,7 +101,7 @@ export const se_CreateExperimentTemplateCommand = async ( body = JSON.stringify( take(input, { actions: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], logConfiguration: (_) => _json(_), roleArn: [], @@ -392,7 +392,7 @@ export const se_StartExperimentCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], experimentTemplateId: [], tags: (_) => _json(_), }) diff --git a/clients/client-fsx/src/protocols/Aws_json1_1.ts b/clients/client-fsx/src/protocols/Aws_json1_1.ts index c39a28f5ff4c..74d12c4ecfa6 100644 --- a/clients/client-fsx/src/protocols/Aws_json1_1.ts +++ b/clients/client-fsx/src/protocols/Aws_json1_1.ts @@ -3763,7 +3763,7 @@ const se_AssociateFileSystemAliasesRequest = ( ): any => { return take(input, { Aliases: _json, - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], }); }; @@ -3783,7 +3783,7 @@ const se_AssociateFileSystemAliasesRequest = ( */ const se_CopyBackupRequest = (input: CopyBackupRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], CopyTags: [], KmsKeyId: [], SourceBackupId: [], @@ -3797,7 +3797,7 @@ const se_CopyBackupRequest = (input: CopyBackupRequest, context: __SerdeContext) */ const se_CreateBackupRequest = (input: CreateBackupRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], Tags: _json, VolumeId: [], @@ -3813,7 +3813,7 @@ const se_CreateDataRepositoryAssociationRequest = ( ): any => { return take(input, { BatchImportMetaDataOnCreate: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DataRepositoryPath: [], FileSystemId: [], FileSystemPath: [], @@ -3829,7 +3829,7 @@ const se_CreateDataRepositoryAssociationRequest = ( const se_CreateDataRepositoryTaskRequest = (input: CreateDataRepositoryTaskRequest, context: __SerdeContext): any => { return take(input, { CapacityToRelease: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], Paths: _json, Report: _json, @@ -3847,7 +3847,7 @@ const se_CreateDataRepositoryTaskRequest = (input: CreateDataRepositoryTaskReque */ const se_CreateFileCacheRequest = (input: CreateFileCacheRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], CopyTagsToDataRepositoryAssociations: [], DataRepositoryAssociations: _json, FileCacheType: [], @@ -3870,7 +3870,7 @@ const se_CreateFileSystemFromBackupRequest = ( ): any => { return take(input, { BackupId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemTypeVersion: [], KmsKeyId: [], LustreConfiguration: _json, @@ -3895,7 +3895,7 @@ const se_CreateFileSystemFromBackupRequest = ( */ const se_CreateFileSystemRequest = (input: CreateFileSystemRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemType: [], FileSystemTypeVersion: [], KmsKeyId: [], @@ -3924,7 +3924,7 @@ const se_CreateFileSystemRequest = (input: CreateFileSystemRequest, context: __S */ const se_CreateSnapshotRequest = (input: CreateSnapshotRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], Tags: _json, VolumeId: [], @@ -3940,7 +3940,7 @@ const se_CreateStorageVirtualMachineRequest = ( ): any => { return take(input, { ActiveDirectoryConfiguration: _json, - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], Name: [], RootVolumeSecurityStyle: [], @@ -3957,7 +3957,7 @@ const se_CreateStorageVirtualMachineRequest = ( const se_CreateVolumeFromBackupRequest = (input: CreateVolumeFromBackupRequest, context: __SerdeContext): any => { return take(input, { BackupId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], OntapConfiguration: _json, Tags: _json, @@ -3969,7 +3969,7 @@ const se_CreateVolumeFromBackupRequest = (input: CreateVolumeFromBackupRequest, */ const se_CreateVolumeRequest = (input: CreateVolumeRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], OntapConfiguration: _json, OpenZFSConfiguration: _json, @@ -3994,7 +3994,7 @@ const se_CreateVolumeRequest = (input: CreateVolumeRequest, context: __SerdeCont const se_DeleteBackupRequest = (input: DeleteBackupRequest, context: __SerdeContext): any => { return take(input, { BackupId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], }); }; @@ -4007,7 +4007,7 @@ const se_DeleteDataRepositoryAssociationRequest = ( ): any => { return take(input, { AssociationId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DeleteDataInFileSystem: [], }); }; @@ -4017,7 +4017,7 @@ const se_DeleteDataRepositoryAssociationRequest = ( */ const se_DeleteFileCacheRequest = (input: DeleteFileCacheRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileCacheId: [], }); }; @@ -4033,7 +4033,7 @@ const se_DeleteFileCacheRequest = (input: DeleteFileCacheRequest, context: __Ser */ const se_DeleteFileSystemRequest = (input: DeleteFileSystemRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], LustreConfiguration: _json, OpenZFSConfiguration: _json, @@ -4050,7 +4050,7 @@ const se_DeleteFileSystemRequest = (input: DeleteFileSystemRequest, context: __S */ const se_DeleteSnapshotRequest = (input: DeleteSnapshotRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], SnapshotId: [], }); }; @@ -4063,7 +4063,7 @@ const se_DeleteStorageVirtualMachineRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], StorageVirtualMachineId: [], }); }; @@ -4077,7 +4077,7 @@ const se_DeleteStorageVirtualMachineRequest = ( */ const se_DeleteVolumeRequest = (input: DeleteVolumeRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], OntapConfiguration: _json, OpenZFSConfiguration: _json, VolumeId: [], @@ -4097,7 +4097,7 @@ const se_DeleteVolumeRequest = (input: DeleteVolumeRequest, context: __SerdeCont */ const se_DescribeFileSystemAliasesRequest = (input: DescribeFileSystemAliasesRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], MaxResults: [], NextToken: [], @@ -4121,7 +4121,7 @@ const se_DisassociateFileSystemAliasesRequest = ( ): any => { return take(input, { Aliases: _json, - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], }); }; @@ -4180,7 +4180,7 @@ const se_ReleaseFileSystemNfsV3LocksRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], }); }; @@ -4194,7 +4194,7 @@ const se_ReleaseFileSystemNfsV3LocksRequest = ( */ const se_RestoreVolumeFromSnapshotRequest = (input: RestoreVolumeFromSnapshotRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Options: _json, SnapshotId: [], VolumeId: [], @@ -4254,7 +4254,7 @@ const se_UpdateDataRepositoryAssociationRequest = ( ): any => { return take(input, { AssociationId: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ImportedFileChunkSize: [], S3: _json, }); @@ -4267,7 +4267,7 @@ const se_UpdateDataRepositoryAssociationRequest = ( */ const se_UpdateFileCacheRequest = (input: UpdateFileCacheRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileCacheId: [], LustreConfiguration: _json, }); @@ -4284,7 +4284,7 @@ const se_UpdateFileCacheRequest = (input: UpdateFileCacheRequest, context: __Ser */ const se_UpdateFileSystemRequest = (input: UpdateFileSystemRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FileSystemId: [], LustreConfiguration: _json, OntapConfiguration: _json, @@ -4305,7 +4305,7 @@ const se_UpdateFileSystemRequest = (input: UpdateFileSystemRequest, context: __S */ const se_UpdateSnapshotRequest = (input: UpdateSnapshotRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], SnapshotId: [], }); @@ -4320,7 +4320,7 @@ const se_UpdateStorageVirtualMachineRequest = ( ): any => { return take(input, { ActiveDirectoryConfiguration: _json, - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], StorageVirtualMachineId: [], SvmAdminPassword: [], }); @@ -4333,7 +4333,7 @@ const se_UpdateStorageVirtualMachineRequest = ( */ const se_UpdateVolumeRequest = (input: UpdateVolumeRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], OntapConfiguration: _json, OpenZFSConfiguration: _json, diff --git a/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts b/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts index dae31b284680..46d09905cd2b 100644 --- a/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts +++ b/clients/client-global-accelerator/src/protocols/Aws_json1_1.ts @@ -3911,7 +3911,7 @@ const de_TransactionInProgressExceptionRes = async ( const se_CreateAcceleratorRequest = (input: CreateAcceleratorRequest, context: __SerdeContext): any => { return take(input, { Enabled: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], IpAddressType: [], IpAddresses: _json, Name: [], @@ -3928,7 +3928,7 @@ const se_CreateCustomRoutingAcceleratorRequest = ( ): any => { return take(input, { Enabled: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], IpAddressType: [], IpAddresses: _json, Name: [], @@ -3946,7 +3946,7 @@ const se_CreateCustomRoutingEndpointGroupRequest = ( return take(input, { DestinationConfigurations: _json, EndpointGroupRegion: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], ListenerArn: [], }); }; @@ -3960,7 +3960,7 @@ const se_CreateCustomRoutingListenerRequest = ( ): any => { return take(input, { AcceleratorArn: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], PortRanges: _json, }); }; @@ -3976,7 +3976,7 @@ const se_CreateEndpointGroupRequest = (input: CreateEndpointGroupRequest, contex HealthCheckPath: [], HealthCheckPort: [], HealthCheckProtocol: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], ListenerArn: [], PortOverrides: _json, ThresholdCount: [], @@ -3991,7 +3991,7 @@ const se_CreateListenerRequest = (input: CreateListenerRequest, context: __Serde return take(input, { AcceleratorArn: [], ClientAffinity: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], PortRanges: _json, Protocol: [], }); diff --git a/clients/client-grafana/src/protocols/Aws_restJson1.ts b/clients/client-grafana/src/protocols/Aws_restJson1.ts index cae8446fa7aa..fb8e1dbc9843 100644 --- a/clients/client-grafana/src/protocols/Aws_restJson1.ts +++ b/clients/client-grafana/src/protocols/Aws_restJson1.ts @@ -133,7 +133,7 @@ export const se_CreateWorkspaceCommand = async ( take(input, { accountAccessType: [], authenticationProviders: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], configuration: (_) => __LazyJsonString.fromObject(_), networkAccessControl: (_) => _json(_), organizationRoleName: [], diff --git a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts index ecae644934e4..546232e67847 100644 --- a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts @@ -304,7 +304,7 @@ export const se_CreateComponentVersionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], inlineRecipe: (_) => context.base64Encoder(_), lambdaFunction: (_) => _json(_), tags: (_) => _json(_), @@ -337,7 +337,7 @@ export const se_CreateDeploymentCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], components: (_) => se_ComponentDeploymentSpecifications(_, context), deploymentName: [], deploymentPolicies: (_) => _json(_), diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index 301f8322f933..1abeb4e6e7f1 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -470,7 +470,7 @@ export const se_CreateDetectorCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], dataSources: [, (_) => se_DataSourceConfigurations(_, context), `DataSources`], enable: [, , `Enable`], features: [, (_) => se_DetectorFeatureConfigurations(_, context), `Features`], @@ -507,7 +507,7 @@ export const se_CreateFilterCommand = async ( body = JSON.stringify( take(input, { action: [, , `Action`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], description: [, , `Description`], findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`], name: [, , `Name`], @@ -544,7 +544,7 @@ export const se_CreateIPSetCommand = async ( body = JSON.stringify( take(input, { activate: [, , `Activate`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], format: [, , `Format`], location: [, , `Location`], name: [, , `Name`], @@ -611,7 +611,7 @@ export const se_CreatePublishingDestinationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`], destinationType: [, , `DestinationType`], }) @@ -676,7 +676,7 @@ export const se_CreateThreatIntelSetCommand = async ( body = JSON.stringify( take(input, { activate: [, , `Activate`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`], format: [, , `Format`], location: [, , `Location`], name: [, , `Name`], diff --git a/clients/client-healthlake/src/protocols/Aws_json1_0.ts b/clients/client-healthlake/src/protocols/Aws_json1_0.ts index dd75a8b8911a..f3d7f2e08833 100644 --- a/clients/client-healthlake/src/protocols/Aws_json1_0.ts +++ b/clients/client-healthlake/src/protocols/Aws_json1_0.ts @@ -1063,7 +1063,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateFHIRDatastoreRequest = (input: CreateFHIRDatastoreRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DatastoreName: [], DatastoreTypeVersion: [], PreloadDataConfig: _json, @@ -1152,7 +1152,7 @@ const se_ListFHIRImportJobsRequest = (input: ListFHIRImportJobsRequest, context: */ const se_StartFHIRExportJobRequest = (input: StartFHIRExportJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DatastoreId: [], JobName: [], @@ -1165,7 +1165,7 @@ const se_StartFHIRExportJobRequest = (input: StartFHIRExportJobRequest, context: */ const se_StartFHIRImportJobRequest = (input: StartFHIRImportJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DatastoreId: [], InputDataConfig: _json, diff --git a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts index acaeeed2afb7..d72d942a2932 100644 --- a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts @@ -242,7 +242,7 @@ export const se_CancelImageCreationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], imageBuildVersionArn: [], }) ); @@ -273,7 +273,7 @@ export const se_CreateComponentCommand = async ( body = JSON.stringify( take(input, { changeDescription: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], data: [], description: [], kmsKeyId: [], @@ -311,7 +311,7 @@ export const se_CreateContainerRecipeCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], components: (_) => _json(_), containerType: [], description: [], @@ -356,7 +356,7 @@ export const se_CreateDistributionConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], distributions: (_) => _json(_), name: [], @@ -389,7 +389,7 @@ export const se_CreateImageCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], containerRecipeArn: [], distributionConfigurationArn: [], enhancedImageMetadataEnabled: [], @@ -426,7 +426,7 @@ export const se_CreateImagePipelineCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], containerRecipeArn: [], description: [], distributionConfigurationArn: [], @@ -469,7 +469,7 @@ export const se_CreateImageRecipeCommand = async ( take(input, { additionalInstanceConfiguration: (_) => _json(_), blockDeviceMappings: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], components: (_) => _json(_), description: [], name: [], @@ -506,7 +506,7 @@ export const se_CreateInfrastructureConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], instanceMetadataOptions: (_) => _json(_), instanceProfileName: [], @@ -1087,7 +1087,7 @@ export const se_ImportComponentCommand = async ( body = JSON.stringify( take(input, { changeDescription: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], data: [], description: [], format: [], @@ -1126,7 +1126,7 @@ export const se_ImportVmImageCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], osVersion: [], @@ -1788,7 +1788,7 @@ export const se_StartImagePipelineExecutionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], imagePipelineArn: [], }) ); @@ -1879,7 +1879,7 @@ export const se_UpdateDistributionConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], distributionConfigurationArn: [], distributions: (_) => _json(_), @@ -1911,7 +1911,7 @@ export const se_UpdateImagePipelineCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], containerRecipeArn: [], description: [], distributionConfigurationArn: [], @@ -1952,7 +1952,7 @@ export const se_UpdateInfrastructureConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], infrastructureConfigurationArn: [], instanceMetadataOptions: (_) => _json(_), diff --git a/clients/client-inspector2/src/protocols/Aws_restJson1.ts b/clients/client-inspector2/src/protocols/Aws_restJson1.ts index 8bce0121df11..24bcacfc2e4d 100644 --- a/clients/client-inspector2/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector2/src/protocols/Aws_restJson1.ts @@ -506,7 +506,7 @@ export const se_EnableCommand = async (input: EnableCommandInput, context: __Ser body = JSON.stringify( take(input, { accountIds: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], resourceTypes: (_) => _json(_), }) ); @@ -537,7 +537,7 @@ export const se_EnableDelegatedAdminAccountCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], delegatedAdminAccountId: [], }) ); diff --git a/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts b/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts index d4aea5dc7f66..eb5555f7f438 100644 --- a/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts +++ b/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts @@ -74,7 +74,7 @@ export const se_CreateMonitorCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], InternetMeasurementsLogDelivery: (_) => _json(_), MaxCityNetworksToMonitor: [], MonitorName: [], @@ -332,7 +332,7 @@ export const se_UpdateMonitorCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], InternetMeasurementsLogDelivery: (_) => _json(_), MaxCityNetworksToMonitor: [], ResourcesToAdd: (_) => _json(_), diff --git a/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts b/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts index e5955838c8c7..5ce1036e81af 100644 --- a/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts @@ -78,7 +78,7 @@ export const se_CreateDestinationCommand = async ( body = JSON.stringify( take(input, { additionalFixedProperties: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], site: [], state: [], @@ -110,7 +110,7 @@ export const se_CreateSiteCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], countryCode: [], description: [], name: [], @@ -144,7 +144,7 @@ export const se_CreateWorkerCommand = async ( take(input, { additionalFixedProperties: [], additionalTransientProperties: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], fleet: [], name: [], orientation: (_) => se_Orientation(_, context), @@ -179,7 +179,7 @@ export const se_CreateWorkerFleetCommand = async ( body = JSON.stringify( take(input, { additionalFixedProperties: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], site: [], }) diff --git a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts index a27fa0672331..75928b01d106 100644 --- a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts @@ -508,7 +508,7 @@ export const se_AssociateAwsAccountWithPartnerAccountCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Sidewalk: (_) => _json(_), Tags: (_) => _json(_), }) @@ -749,7 +749,7 @@ export const se_CreateDestinationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Expression: [], ExpressionType: [], @@ -784,7 +784,7 @@ export const se_CreateDeviceProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], LoRaWAN: (_) => _json(_), Name: [], Sidewalk: (_) => _json(_), @@ -817,7 +817,7 @@ export const se_CreateFuotaTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], FirmwareUpdateImage: [], FirmwareUpdateRole: [], @@ -855,7 +855,7 @@ export const se_CreateMulticastGroupCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], LoRaWAN: (_) => _json(_), Name: [], @@ -889,7 +889,7 @@ export const se_CreateNetworkAnalyzerConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Tags: (_) => _json(_), @@ -924,7 +924,7 @@ export const se_CreateServiceProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], LoRaWAN: (_) => _json(_), Name: [], Tags: (_) => _json(_), @@ -956,7 +956,7 @@ export const se_CreateWirelessDeviceCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], DestinationName: [], LoRaWAN: (_) => _json(_), @@ -993,7 +993,7 @@ export const se_CreateWirelessGatewayCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], LoRaWAN: (_) => se_LoRaWANGateway(_, context), Name: [], @@ -1059,7 +1059,7 @@ export const se_CreateWirelessGatewayTaskDefinitionCommand = async ( body = JSON.stringify( take(input, { AutoCreateTasks: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], Tags: (_) => _json(_), Update: (_) => _json(_), @@ -3163,7 +3163,7 @@ export const se_StartSingleWirelessDeviceImportTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DestinationName: [], DeviceName: [], Sidewalk: (_) => _json(_), @@ -3197,7 +3197,7 @@ export const se_StartWirelessDeviceImportTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], DestinationName: [], Sidewalk: (_) => _json(_), Tags: (_) => _json(_), diff --git a/clients/client-iot/src/protocols/Aws_restJson1.ts b/clients/client-iot/src/protocols/Aws_restJson1.ts index 91e6bbc54ef9..f3d2e31f8e78 100644 --- a/clients/client-iot/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot/src/protocols/Aws_restJson1.ts @@ -1383,7 +1383,7 @@ export const se_CreateAuditSuppressionCommand = async ( body = JSON.stringify( take(input, { checkName: [], - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], expirationDate: (_) => Math.round(_.getTime() / 1000), resourceIdentifier: (_) => _json(_), @@ -1534,7 +1534,7 @@ export const se_CreateCustomMetricCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], displayName: [], metricType: [], tags: (_) => _json(_), @@ -1567,7 +1567,7 @@ export const se_CreateDimensionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], stringValues: (_) => _json(_), tags: (_) => _json(_), type: [], @@ -7138,7 +7138,7 @@ export const se_StartAuditMitigationActionsTaskCommand = async ( body = JSON.stringify( take(input, { auditCheckToActionsMapping: (_) => _json(_), - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], target: (_) => _json(_), }) ); @@ -7171,7 +7171,7 @@ export const se_StartDetectMitigationActionsTaskCommand = async ( body = JSON.stringify( take(input, { actions: (_) => _json(_), - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], includeOnlyActiveViolations: [], includeSuppressedAlerts: [], target: (_) => _json(_), diff --git a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts index 46fb0c3c570f..022039e8eb13 100644 --- a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts @@ -61,7 +61,7 @@ export const se_CreateApplicationCommand = async ( take(input, { applicationDescription: [], applicationName: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], roleArn: [], tags: (_) => _json(_), }) @@ -278,7 +278,7 @@ export const se_UpdateApplicationCommand = async ( take(input, { applicationDescription: [], applicationName: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ diff --git a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts index cd4faca2ccac..e2fa70eddaf8 100644 --- a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts @@ -294,7 +294,7 @@ export const se_AssociateAssetsCommand = async ( body = JSON.stringify( take(input, { childAssetId: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], hierarchyId: [], }) ); @@ -336,7 +336,7 @@ export const se_AssociateTimeSeriesToAssetPropertyCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -376,7 +376,7 @@ export const se_BatchAssociateProjectAssetsCommand = async ( body = JSON.stringify( take(input, { assetIds: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -415,7 +415,7 @@ export const se_BatchDisassociateProjectAssetsCommand = async ( body = JSON.stringify( take(input, { assetIds: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -606,7 +606,7 @@ export const se_CreateAccessPolicyCommand = async ( accessPolicyIdentity: (_) => _json(_), accessPolicyPermission: [], accessPolicyResource: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -646,7 +646,7 @@ export const se_CreateAssetCommand = async ( assetDescription: [], assetModelId: [], assetName: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -688,7 +688,7 @@ export const se_CreateAssetModelCommand = async ( assetModelHierarchies: (_) => _json(_), assetModelName: [], assetModelProperties: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -765,7 +765,7 @@ export const se_CreateDashboardCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], dashboardDefinition: [], dashboardDescription: [], dashboardName: [], @@ -845,7 +845,7 @@ export const se_CreatePortalCommand = async ( body = JSON.stringify( take(input, { alarms: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], notificationSenderEmail: [], portalAuthMode: [], portalContactEmail: [], @@ -889,7 +889,7 @@ export const se_CreateProjectCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], portalId: [], projectDescription: [], projectName: [], @@ -1186,7 +1186,7 @@ export const se_DeleteTimeSeriesCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -1697,7 +1697,7 @@ export const se_DisassociateAssetsCommand = async ( body = JSON.stringify( take(input, { childAssetId: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], hierarchyId: [], }) ); @@ -1740,7 +1740,7 @@ export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -2716,7 +2716,7 @@ export const se_UpdateAccessPolicyCommand = async ( accessPolicyIdentity: (_) => _json(_), accessPolicyPermission: [], accessPolicyResource: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -2755,7 +2755,7 @@ export const se_UpdateAssetCommand = async ( take(input, { assetDescription: [], assetName: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -2805,7 +2805,7 @@ export const se_UpdateAssetModelCommand = async ( assetModelHierarchies: (_) => _json(_), assetModelName: [], assetModelProperties: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -2844,7 +2844,7 @@ export const se_UpdateAssetPropertyCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], propertyAlias: [], propertyNotificationState: [], propertyUnit: [], @@ -2885,7 +2885,7 @@ export const se_UpdateDashboardCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], dashboardDefinition: [], dashboardDescription: [], dashboardName: [], @@ -3003,7 +3003,7 @@ export const se_UpdatePortalCommand = async ( body = JSON.stringify( take(input, { alarms: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], notificationSenderEmail: [], portalContactEmail: [], portalDescription: [], @@ -3046,7 +3046,7 @@ export const se_UpdateProjectCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], projectDescription: [], projectName: [], }) diff --git a/clients/client-kendra-ranking/src/protocols/Aws_json1_0.ts b/clients/client-kendra-ranking/src/protocols/Aws_json1_0.ts index 8a531ce9cf34..d9b2b2daaabc 100644 --- a/clients/client-kendra-ranking/src/protocols/Aws_json1_0.ts +++ b/clients/client-kendra-ranking/src/protocols/Aws_json1_0.ts @@ -853,7 +853,7 @@ const se_CreateRescoreExecutionPlanRequest = ( ): any => { return take(input, { CapacityUnits: _json, - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Tags: _json, diff --git a/clients/client-kendra/src/protocols/Aws_json1_1.ts b/clients/client-kendra/src/protocols/Aws_json1_1.ts index 18f91d9e3fdd..3a7839356acd 100644 --- a/clients/client-kendra/src/protocols/Aws_json1_1.ts +++ b/clients/client-kendra/src/protocols/Aws_json1_1.ts @@ -5444,7 +5444,7 @@ const se_CreateAccessControlConfigurationRequest = ( ): any => { return take(input, { AccessControlList: _json, - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], HierarchicalAccessControlList: _json, IndexId: [], @@ -5457,7 +5457,7 @@ const se_CreateAccessControlConfigurationRequest = ( */ const se_CreateDataSourceRequest = (input: CreateDataSourceRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Configuration: (_) => se_DataSourceConfiguration(_, context), CustomDocumentEnrichmentConfiguration: (_) => se_CustomDocumentEnrichmentConfiguration(_, context), Description: [], @@ -5477,7 +5477,7 @@ const se_CreateDataSourceRequest = (input: CreateDataSourceRequest, context: __S */ const se_CreateExperienceRequest = (input: CreateExperienceRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Configuration: _json, Description: [], IndexId: [], @@ -5491,7 +5491,7 @@ const se_CreateExperienceRequest = (input: CreateExperienceRequest, context: __S */ const se_CreateFaqRequest = (input: CreateFaqRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], FileFormat: [], IndexId: [], @@ -5510,7 +5510,7 @@ const se_CreateFaqRequest = (input: CreateFaqRequest, context: __SerdeContext): */ const se_CreateIndexRequest = (input: CreateIndexRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Edition: [], Name: [], @@ -5531,7 +5531,7 @@ const se_CreateQuerySuggestionsBlockListRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], IndexId: [], Name: [], @@ -5546,7 +5546,7 @@ const se_CreateQuerySuggestionsBlockListRequest = ( */ const se_CreateThesaurusRequest = (input: CreateThesaurusRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], IndexId: [], Name: [], diff --git a/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts b/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts index a263df54b479..511a8d89415a 100644 --- a/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts +++ b/clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts @@ -2647,7 +2647,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateDatasetRequest = (input: CreateDatasetRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DatasetName: [], DatasetSchema: (_) => se_DatasetSchema(_, context), ServerSideKmsKeyId: [], @@ -2660,7 +2660,7 @@ const se_CreateDatasetRequest = (input: CreateDatasetRequest, context: __SerdeCo */ const se_CreateInferenceSchedulerRequest = (input: CreateInferenceSchedulerRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataDelayOffsetInMinutes: [], DataInputConfiguration: _json, DataOutputConfiguration: _json, @@ -2678,7 +2678,7 @@ const se_CreateInferenceSchedulerRequest = (input: CreateInferenceSchedulerReque */ const se_CreateLabelGroupRequest = (input: CreateLabelGroupRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], FaultCodes: _json, LabelGroupName: [], Tags: _json, @@ -2690,7 +2690,7 @@ const se_CreateLabelGroupRequest = (input: CreateLabelGroupRequest, context: __S */ const se_CreateLabelRequest = (input: CreateLabelRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], EndTime: (_) => Math.round(_.getTime() / 1000), Equipment: [], FaultCode: [], @@ -2706,7 +2706,7 @@ const se_CreateLabelRequest = (input: CreateLabelRequest, context: __SerdeContex */ const se_CreateModelRequest = (input: CreateModelRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataPreProcessingConfiguration: _json, DatasetName: [], DatasetSchema: (_) => se_DatasetSchema(_, context), @@ -2837,7 +2837,7 @@ const se_ListLabelsRequest = (input: ListLabelsRequest, context: __SerdeContext) */ const se_StartDataIngestionJobRequest = (input: StartDataIngestionJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DatasetName: [], IngestionInputConfiguration: _json, RoleArn: [], diff --git a/clients/client-m2/src/protocols/Aws_restJson1.ts b/clients/client-m2/src/protocols/Aws_restJson1.ts index c141085c68fe..746ec9f99864 100644 --- a/clients/client-m2/src/protocols/Aws_restJson1.ts +++ b/clients/client-m2/src/protocols/Aws_restJson1.ts @@ -175,7 +175,7 @@ export const se_CreateApplicationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], definition: (_) => _json(_), description: [], engineType: [], @@ -220,7 +220,7 @@ export const se_CreateDataSetImportTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], importConfig: (_) => _json(_), }) ); @@ -260,7 +260,7 @@ export const se_CreateDeploymentCommand = async ( body = JSON.stringify( take(input, { applicationVersion: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], environmentId: [], }) ); @@ -290,7 +290,7 @@ export const se_CreateEnvironmentCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], engineType: [], engineVersion: [], diff --git a/clients/client-macie2/src/protocols/Aws_restJson1.ts b/clients/client-macie2/src/protocols/Aws_restJson1.ts index efeda1b0d2c5..c5aa0e9f15ae 100644 --- a/clients/client-macie2/src/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/src/protocols/Aws_restJson1.ts @@ -478,7 +478,7 @@ export const se_CreateAllowListCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], criteria: [, (_) => se_AllowListCriteria(_, context), `criteria`], description: [, , `description`], name: [, , `name`], @@ -512,7 +512,7 @@ export const se_CreateClassificationJobCommand = async ( body = JSON.stringify( take(input, { allowListIds: [, (_) => _json(_), `allowListIds`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], customDataIdentifierIds: [, (_) => _json(_), `customDataIdentifierIds`], description: [, , `description`], initialRun: [, , `initialRun`], @@ -553,7 +553,7 @@ export const se_CreateCustomDataIdentifierCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], description: [, , `description`], ignoreWords: [, (_) => _json(_), `ignoreWords`], keywords: [, (_) => _json(_), `keywords`], @@ -591,7 +591,7 @@ export const se_CreateFindingsFilterCommand = async ( body = JSON.stringify( take(input, { action: [, , `action`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], description: [, , `description`], findingCriteria: [, (_) => se_FindingCriteria(_, context), `findingCriteria`], name: [, , `name`], @@ -1076,7 +1076,7 @@ export const se_EnableMacieCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], findingPublishingFrequency: [, , `findingPublishingFrequency`], status: [, , `status`], }) @@ -1108,7 +1108,7 @@ export const se_EnableOrganizationAdminAccountCommand = async ( body = JSON.stringify( take(input, { adminAccountId: [, , `adminAccountId`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], }) ); return new __HttpRequest({ @@ -2133,7 +2133,7 @@ export const se_PutFindingsPublicationConfigurationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], securityHubConfiguration: [, (_) => se_SecurityHubConfiguration(_, context), `securityHubConfiguration`], }) ); @@ -2415,7 +2415,7 @@ export const se_UpdateFindingsFilterCommand = async ( body = JSON.stringify( take(input, { action: [, , `action`], - clientToken: [, (_) => _ ?? generateIdempotencyToken(), `clientToken`], + clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], description: [, , `description`], findingCriteria: [, (_) => se_FindingCriteria(_, context), `findingCriteria`], name: [, , `name`], diff --git a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts index 2a72cc318d0a..25345141a4d0 100644 --- a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts +++ b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts @@ -110,7 +110,7 @@ export const se_CreateAccessorCommand = async ( body = JSON.stringify( take(input, { AccessorType: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Tags: (_) => _json(_), }) ); @@ -142,7 +142,7 @@ export const se_CreateMemberCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], InvitationId: [], MemberConfiguration: (_) => _json(_), }) @@ -173,7 +173,7 @@ export const se_CreateNetworkCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Framework: [], FrameworkConfiguration: (_) => _json(_), @@ -212,7 +212,7 @@ export const se_CreateNodeCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], MemberId: [], NodeConfiguration: (_) => _json(_), Tags: (_) => _json(_), @@ -247,7 +247,7 @@ export const se_CreateProposalCommand = async ( body = JSON.stringify( take(input, { Actions: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], MemberId: [], Tags: (_) => _json(_), diff --git a/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts b/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts index b095c4d06966..6718a058ab06 100644 --- a/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts +++ b/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts @@ -332,7 +332,7 @@ export const se_StartChangeSetCommand = async ( ChangeSet: (_) => _json(_), ChangeSetName: [], ChangeSetTags: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ diff --git a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts index 0a18eca0cbf1..1e09929dd179 100644 --- a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts @@ -318,7 +318,7 @@ export const se_CreateJobCommand = async ( take(input, { accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`], billingTagsSource: [, , `BillingTagsSource`], - clientRequestToken: [, (_) => _ ?? generateIdempotencyToken(), `ClientRequestToken`], + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientRequestToken`], hopDestinations: [, (_) => se___listOfHopDestination(_, context), `HopDestinations`], jobTemplate: [, , `JobTemplate`], priority: [, , `Priority`], diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index 7c7319e44d20..cc759c835a9c 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -639,7 +639,7 @@ export const se_CreateChannelCommand = async ( logLevel: [, , `LogLevel`], maintenance: [, (_) => se_MaintenanceCreateSettings(_, context), `Maintenance`], name: [, , `Name`], - requestId: [, (_) => _ ?? generateIdempotencyToken(), `RequestId`], + requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], reserved: [, , `Reserved`], roleArn: [, , `RoleArn`], tags: [, (_) => _json(_), `Tags`], @@ -677,7 +677,7 @@ export const se_CreateInputCommand = async ( inputSecurityGroups: [, (_) => _json(_), `InputSecurityGroups`], mediaConnectFlows: [, (_) => se___listOfMediaConnectFlowRequest(_, context), `MediaConnectFlows`], name: [, , `Name`], - requestId: [, (_) => _ ?? generateIdempotencyToken(), `RequestId`], + requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], roleArn: [, , `RoleArn`], sources: [, (_) => se___listOfInputSourceRequest(_, context), `Sources`], tags: [, (_) => _json(_), `Tags`], @@ -745,7 +745,7 @@ export const se_CreateMultiplexCommand = async ( availabilityZones: [, (_) => _json(_), `AvailabilityZones`], multiplexSettings: [, (_) => se_MultiplexSettings(_, context), `MultiplexSettings`], name: [, , `Name`], - requestId: [, (_) => _ ?? generateIdempotencyToken(), `RequestId`], + requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], tags: [, (_) => _json(_), `Tags`], }) ); @@ -779,7 +779,7 @@ export const se_CreateMultiplexProgramCommand = async ( take(input, { multiplexProgramSettings: [, (_) => se_MultiplexProgramSettings(_, context), `MultiplexProgramSettings`], programName: [, , `ProgramName`], - requestId: [, (_) => _ ?? generateIdempotencyToken(), `RequestId`], + requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], }) ); return new __HttpRequest({ @@ -810,7 +810,7 @@ export const se_CreatePartnerInputCommand = async ( let body: any; body = JSON.stringify( take(input, { - requestId: [, (_) => _ ?? generateIdempotencyToken(), `RequestId`], + requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], tags: [, (_) => _json(_), `Tags`], }) ); @@ -1656,7 +1656,7 @@ export const se_PurchaseOfferingCommand = async ( count: [, , `Count`], name: [, , `Name`], renewalSettings: [, (_) => se_RenewalSettings(_, context), `RenewalSettings`], - requestId: [, (_) => _ ?? generateIdempotencyToken(), `RequestId`], + requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], start: [, , `Start`], tags: [, (_) => _json(_), `Tags`], }) diff --git a/clients/client-mgn/src/protocols/Aws_restJson1.ts b/clients/client-mgn/src/protocols/Aws_restJson1.ts index 694fd21f49e6..4f2a3afa1609 100644 --- a/clients/client-mgn/src/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/src/protocols/Aws_restJson1.ts @@ -1660,7 +1660,7 @@ export const se_StartImportCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], s3BucketSource: (_) => _json(_), }) ); diff --git a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts index 3ebde8226046..0024a1d6e8b6 100644 --- a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts +++ b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts @@ -105,7 +105,7 @@ export const se_CreateApplicationCommand = async ( body = JSON.stringify( take(input, { ApiGatewayProxy: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], ProxyType: [], Tags: (_) => _json(_), @@ -138,7 +138,7 @@ export const se_CreateEnvironmentCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], NetworkFabricType: [], @@ -189,7 +189,7 @@ export const se_CreateRouteCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DefaultRoute: (_) => _json(_), RouteType: [], ServiceIdentifier: [], @@ -241,7 +241,7 @@ export const se_CreateServiceCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], EndpointType: [], LambdaEndpoint: (_) => _json(_), diff --git a/clients/client-mq/src/protocols/Aws_restJson1.ts b/clients/client-mq/src/protocols/Aws_restJson1.ts index ae1a25abb163..8d7bf1a007a9 100644 --- a/clients/client-mq/src/protocols/Aws_restJson1.ts +++ b/clients/client-mq/src/protocols/Aws_restJson1.ts @@ -116,7 +116,7 @@ export const se_CreateBrokerCommand = async ( autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`], brokerName: [, , `BrokerName`], configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`], - creatorRequestId: [, (_) => _ ?? generateIdempotencyToken(), `CreatorRequestId`], + creatorRequestId: [true, (_) => _ ?? generateIdempotencyToken(), `CreatorRequestId`], deploymentMode: [, , `DeploymentMode`], encryptionOptions: [, (_) => se_EncryptionOptions(_, context), `EncryptionOptions`], engineType: [, , `EngineType`], diff --git a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts index 22d46a00f7d4..7b45d59b1a39 100644 --- a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts @@ -497,7 +497,7 @@ export const se_CreateConnectAttachmentCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CoreNetworkId: [], EdgeLocation: [], Options: (_) => _json(_), @@ -576,7 +576,7 @@ export const se_CreateConnectPeerCommand = async ( body = JSON.stringify( take(input, { BgpOptions: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ConnectAttachmentId: [], CoreNetworkAddress: [], InsideCidrBlocks: (_) => _json(_), @@ -610,7 +610,7 @@ export const se_CreateCoreNetworkCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], GlobalNetworkId: [], PolicyDocument: [], @@ -804,7 +804,7 @@ export const se_CreateSiteToSiteVpnAttachmentCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CoreNetworkId: [], Tags: (_) => _json(_), VpnConnectionArn: [], @@ -837,7 +837,7 @@ export const se_CreateTransitGatewayPeeringCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CoreNetworkId: [], Tags: (_) => _json(_), TransitGatewayArn: [], @@ -870,7 +870,7 @@ export const se_CreateTransitGatewayRouteTableAttachmentCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], PeeringId: [], Tags: (_) => _json(_), TransitGatewayRouteTableArn: [], @@ -902,7 +902,7 @@ export const se_CreateVpcAttachmentCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CoreNetworkId: [], Options: (_) => _json(_), SubnetArns: (_) => _json(_), @@ -2748,7 +2748,7 @@ export const se_PutCoreNetworkPolicyCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], LatestVersionId: [], PolicyDocument: (_) => __LazyJsonString.fromObject(_), diff --git a/clients/client-omics/src/protocols/Aws_restJson1.ts b/clients/client-omics/src/protocols/Aws_restJson1.ts index 38a93ae7acf7..857390ff621f 100644 --- a/clients/client-omics/src/protocols/Aws_restJson1.ts +++ b/clients/client-omics/src/protocols/Aws_restJson1.ts @@ -485,7 +485,7 @@ export const se_CreateRunGroupCommand = async ( maxDuration: [], maxRuns: [], name: [], - requestId: (_) => _ ?? generateIdempotencyToken(), + requestId: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -609,7 +609,7 @@ export const se_CreateWorkflowCommand = async ( main: [], name: [], parameterTemplate: (_) => _json(_), - requestId: (_) => _ ?? generateIdempotencyToken(), + requestId: [true, (_) => _ ?? generateIdempotencyToken()], storageCapacity: [], tags: (_) => _json(_), }) @@ -2510,7 +2510,7 @@ export const se_StartRunCommand = async ( outputUri: [], parameters: (_) => se_RunParameters(_, context), priority: [], - requestId: (_) => _ ?? generateIdempotencyToken(), + requestId: [true, (_) => _ ?? generateIdempotencyToken()], roleArn: [], runGroupId: [], runId: [], diff --git a/clients/client-opensearchserverless/src/protocols/Aws_json1_0.ts b/clients/client-opensearchserverless/src/protocols/Aws_json1_0.ts index e43ffaa3487b..eb83925ea3d4 100644 --- a/clients/client-opensearchserverless/src/protocols/Aws_json1_0.ts +++ b/clients/client-opensearchserverless/src/protocols/Aws_json1_0.ts @@ -2278,7 +2278,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateAccessPolicyRequest = (input: CreateAccessPolicyRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], policy: [], @@ -2291,7 +2291,7 @@ const se_CreateAccessPolicyRequest = (input: CreateAccessPolicyRequest, context: */ const se_CreateCollectionRequest = (input: CreateCollectionRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], tags: _json, @@ -2304,7 +2304,7 @@ const se_CreateCollectionRequest = (input: CreateCollectionRequest, context: __S */ const se_CreateSecurityConfigRequest = (input: CreateSecurityConfigRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], samlOptions: _json, @@ -2317,7 +2317,7 @@ const se_CreateSecurityConfigRequest = (input: CreateSecurityConfigRequest, cont */ const se_CreateSecurityPolicyRequest = (input: CreateSecurityPolicyRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], policy: [], @@ -2330,7 +2330,7 @@ const se_CreateSecurityPolicyRequest = (input: CreateSecurityPolicyRequest, cont */ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], securityGroupIds: _json, subnetIds: _json, @@ -2343,7 +2343,7 @@ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: _ */ const se_DeleteAccessPolicyRequest = (input: DeleteAccessPolicyRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], type: [], }); @@ -2354,7 +2354,7 @@ const se_DeleteAccessPolicyRequest = (input: DeleteAccessPolicyRequest, context: */ const se_DeleteCollectionRequest = (input: DeleteCollectionRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], id: [], }); }; @@ -2364,7 +2364,7 @@ const se_DeleteCollectionRequest = (input: DeleteCollectionRequest, context: __S */ const se_DeleteSecurityConfigRequest = (input: DeleteSecurityConfigRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], id: [], }); }; @@ -2374,7 +2374,7 @@ const se_DeleteSecurityConfigRequest = (input: DeleteSecurityConfigRequest, cont */ const se_DeleteSecurityPolicyRequest = (input: DeleteSecurityPolicyRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], type: [], }); @@ -2385,7 +2385,7 @@ const se_DeleteSecurityPolicyRequest = (input: DeleteSecurityPolicyRequest, cont */ const se_DeleteVpcEndpointRequest = (input: DeleteVpcEndpointRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], id: [], }); }; @@ -2435,7 +2435,7 @@ const se_DeleteVpcEndpointRequest = (input: DeleteVpcEndpointRequest, context: _ */ const se_UpdateAccessPolicyRequest = (input: UpdateAccessPolicyRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], policy: [], @@ -2451,7 +2451,7 @@ const se_UpdateAccessPolicyRequest = (input: UpdateAccessPolicyRequest, context: */ const se_UpdateCollectionRequest = (input: UpdateCollectionRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], id: [], }); @@ -2462,7 +2462,7 @@ const se_UpdateCollectionRequest = (input: UpdateCollectionRequest, context: __S */ const se_UpdateSecurityConfigRequest = (input: UpdateSecurityConfigRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], configVersion: [], description: [], id: [], @@ -2475,7 +2475,7 @@ const se_UpdateSecurityConfigRequest = (input: UpdateSecurityConfigRequest, cont */ const se_UpdateSecurityPolicyRequest = (input: UpdateSecurityPolicyRequest, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], policy: [], @@ -2491,7 +2491,7 @@ const se_UpdateVpcEndpointRequest = (input: UpdateVpcEndpointRequest, context: _ return take(input, { addSecurityGroupIds: _json, addSubnetIds: _json, - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], id: [], removeSecurityGroupIds: _json, removeSubnetIds: _json, diff --git a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts index b94e631aa8b6..c352853bcb49 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts @@ -3445,7 +3445,7 @@ const se_AssociateOriginationIdentityRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], IsoCountryCode: [], OriginationIdentity: [], PoolId: [], @@ -3467,7 +3467,7 @@ const se_AssociateOriginationIdentityRequest = ( */ const se_CreateConfigurationSetRequest = (input: CreateConfigurationSetRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ConfigurationSetName: [], Tags: _json, }); @@ -3478,7 +3478,7 @@ const se_CreateConfigurationSetRequest = (input: CreateConfigurationSetRequest, */ const se_CreateEventDestinationRequest = (input: CreateEventDestinationRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CloudWatchLogsDestination: _json, ConfigurationSetName: [], EventDestinationName: [], @@ -3493,7 +3493,7 @@ const se_CreateEventDestinationRequest = (input: CreateEventDestinationRequest, */ const se_CreateOptOutListRequest = (input: CreateOptOutListRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], OptOutListName: [], Tags: _json, }); @@ -3504,7 +3504,7 @@ const se_CreateOptOutListRequest = (input: CreateOptOutListRequest, context: __S */ const se_CreatePoolRequest = (input: CreatePoolRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DeletionProtectionEnabled: [], IsoCountryCode: [], MessageType: [], @@ -3563,7 +3563,7 @@ const se_DisassociateOriginationIdentityRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], IsoCountryCode: [], OriginationIdentity: [], PoolId: [], @@ -3625,7 +3625,7 @@ const se_DisassociateOriginationIdentityRequest = ( */ const se_RequestPhoneNumberRequest = (input: RequestPhoneNumberRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DeletionProtectionEnabled: [], IsoCountryCode: [], MessageType: [], diff --git a/clients/client-proton/src/protocols/Aws_json1_0.ts b/clients/client-proton/src/protocols/Aws_json1_0.ts index 912d2f9b544a..5ca212ced335 100644 --- a/clients/client-proton/src/protocols/Aws_json1_0.ts +++ b/clients/client-proton/src/protocols/Aws_json1_0.ts @@ -6692,7 +6692,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateComponentInput = (input: CreateComponentInput, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], environmentName: [], manifest: [], @@ -6713,7 +6713,7 @@ const se_CreateEnvironmentAccountConnectionInput = ( context: __SerdeContext ): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], codebuildRoleArn: [], componentRoleArn: [], environmentName: [], @@ -6753,7 +6753,7 @@ const se_CreateEnvironmentTemplateVersionInput = ( context: __SerdeContext ): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], majorVersion: [], source: _json, @@ -6787,7 +6787,7 @@ const se_CreateServiceInput = (input: CreateServiceInput, context: __SerdeContex */ const se_CreateServiceInstanceInput = (input: CreateServiceInstanceInput, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], serviceName: [], spec: [], @@ -6809,7 +6809,7 @@ const se_CreateServiceTemplateVersionInput = ( context: __SerdeContext ): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], compatibleEnvironmentTemplates: _json, description: [], majorVersion: [], @@ -6963,7 +6963,7 @@ const se_CreateServiceTemplateVersionInput = ( */ const se_UpdateComponentInput = (input: UpdateComponentInput, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], deploymentType: [], description: [], name: [], @@ -7015,7 +7015,7 @@ const se_UpdateServiceInput = (input: UpdateServiceInput, context: __SerdeContex */ const se_UpdateServiceInstanceInput = (input: UpdateServiceInstanceInput, context: __SerdeContext): any => { return take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], deploymentType: [], name: [], serviceName: [], diff --git a/clients/client-redshift-data/src/protocols/Aws_json1_1.ts b/clients/client-redshift-data/src/protocols/Aws_json1_1.ts index b4bf398b06cf..4e42dede5487 100644 --- a/clients/client-redshift-data/src/protocols/Aws_json1_1.ts +++ b/clients/client-redshift-data/src/protocols/Aws_json1_1.ts @@ -829,7 +829,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_BatchExecuteStatementInput = (input: BatchExecuteStatementInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ClusterIdentifier: [], Database: [], DbUser: [], @@ -852,7 +852,7 @@ const se_BatchExecuteStatementInput = (input: BatchExecuteStatementInput, contex */ const se_ExecuteStatementInput = (input: ExecuteStatementInput, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ClusterIdentifier: [], Database: [], DbUser: [], diff --git a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts index a07df76e5a60..2976c1ba9f36 100644 --- a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts +++ b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts @@ -271,7 +271,7 @@ export const se_CreateAppCommand = async ( body = JSON.stringify( take(input, { assessmentSchedule: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], policyArn: [], @@ -307,7 +307,7 @@ export const se_CreateAppVersionAppComponentCommand = async ( take(input, { additionalInfo: (_) => _json(_), appArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], id: [], name: [], type: [], @@ -345,7 +345,7 @@ export const se_CreateAppVersionResourceCommand = async ( appComponents: (_) => _json(_), awsAccountId: [], awsRegion: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], logicalResourceId: (_) => _json(_), physicalResourceId: [], resourceName: [], @@ -381,7 +381,7 @@ export const se_CreateRecommendationTemplateCommand = async ( take(input, { assessmentArn: [], bucketName: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], format: [], name: [], recommendationIds: (_) => _json(_), @@ -416,7 +416,7 @@ export const se_CreateResiliencyPolicyCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], dataLocationConstraint: [], policy: (_) => _json(_), policyDescription: [], @@ -452,7 +452,7 @@ export const se_DeleteAppCommand = async ( body = JSON.stringify( take(input, { appArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], forceDelete: [], }) ); @@ -483,7 +483,7 @@ export const se_DeleteAppAssessmentCommand = async ( body = JSON.stringify( take(input, { assessmentArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -514,7 +514,7 @@ export const se_DeleteAppInputSourceCommand = async ( body = JSON.stringify( take(input, { appArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], eksSourceClusterNamespace: (_) => _json(_), sourceArn: [], terraformSource: (_) => _json(_), @@ -548,7 +548,7 @@ export const se_DeleteAppVersionAppComponentCommand = async ( body = JSON.stringify( take(input, { appArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], id: [], }) ); @@ -582,7 +582,7 @@ export const se_DeleteAppVersionResourceCommand = async ( appArn: [], awsAccountId: [], awsRegion: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], logicalResourceId: (_) => _json(_), physicalResourceId: [], resourceName: [], @@ -615,7 +615,7 @@ export const se_DeleteRecommendationTemplateCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], recommendationTemplateArn: [], }) ); @@ -646,7 +646,7 @@ export const se_DeleteResiliencyPolicyCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], policyArn: [], }) ); @@ -1659,7 +1659,7 @@ export const se_StartAppAssessmentCommand = async ( appArn: [], appVersion: [], assessmentName: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); diff --git a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts index 1fb324d3b246..50f0fa4408a6 100644 --- a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts @@ -142,7 +142,7 @@ export const se_CreateIndexCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Tags: (_) => _json(_), }) ); @@ -172,7 +172,7 @@ export const se_CreateViewCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Filters: (_) => _json(_), IncludedProperties: (_) => _json(_), Tags: (_) => _json(_), diff --git a/clients/client-robomaker/src/protocols/Aws_restJson1.ts b/clients/client-robomaker/src/protocols/Aws_restJson1.ts index 2da730d3248c..88fbc07b9f01 100644 --- a/clients/client-robomaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-robomaker/src/protocols/Aws_restJson1.ts @@ -471,7 +471,7 @@ export const se_CreateDeploymentJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], deploymentApplicationConfigs: (_) => _json(_), deploymentConfig: (_) => _json(_), fleet: [], @@ -702,7 +702,7 @@ export const se_CreateSimulationJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], compute: (_) => _json(_), dataSources: (_) => _json(_), failureBehavior: [], @@ -742,7 +742,7 @@ export const se_CreateWorldExportJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], iamRole: [], outputLocation: (_) => _json(_), tags: (_) => _json(_), @@ -776,7 +776,7 @@ export const se_CreateWorldGenerationJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), template: [], worldCount: (_) => _json(_), @@ -1806,7 +1806,7 @@ export const se_StartSimulationJobBatchCommand = async ( body = JSON.stringify( take(input, { batchPolicy: (_) => _json(_), - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], createSimulationJobRequests: (_) => _json(_), tags: (_) => _json(_), }) @@ -1837,7 +1837,7 @@ export const se_SyncDeploymentJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], fleet: [], }) ); diff --git a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts index 88b2e2c5b50a..abb140216aa1 100644 --- a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts @@ -97,7 +97,7 @@ export const se_CreateClusterCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ClusterName: [], Tags: (_) => _json(_), }) @@ -128,7 +128,7 @@ export const se_CreateControlPanelCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ClusterArn: [], ControlPanelName: [], Tags: (_) => _json(_), @@ -160,7 +160,7 @@ export const se_CreateRoutingControlCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ClusterArn: [], ControlPanelArn: [], RoutingControlName: [], @@ -193,7 +193,7 @@ export const se_CreateSafetyRuleCommand = async ( body = JSON.stringify( take(input, { AssertionRule: (_) => _json(_), - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], GatingRule: (_) => _json(_), Tags: (_) => _json(_), }) diff --git a/clients/client-route53resolver/src/protocols/Aws_json1_1.ts b/clients/client-route53resolver/src/protocols/Aws_json1_1.ts index 30aa69138904..20802b2196fb 100644 --- a/clients/client-route53resolver/src/protocols/Aws_json1_1.ts +++ b/clients/client-route53resolver/src/protocols/Aws_json1_1.ts @@ -5153,7 +5153,7 @@ const se_AssociateFirewallRuleGroupRequest = ( context: __SerdeContext ): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], FirewallRuleGroupId: [], MutationProtection: [], Name: [], @@ -5174,7 +5174,7 @@ const se_AssociateFirewallRuleGroupRequest = ( */ const se_CreateFirewallDomainListRequest = (input: CreateFirewallDomainListRequest, context: __SerdeContext): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], Tags: _json, }); @@ -5185,7 +5185,7 @@ const se_CreateFirewallDomainListRequest = (input: CreateFirewallDomainListReque */ const se_CreateFirewallRuleGroupRequest = (input: CreateFirewallRuleGroupRequest, context: __SerdeContext): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], Tags: _json, }); @@ -5201,7 +5201,7 @@ const se_CreateFirewallRuleRequest = (input: CreateFirewallRuleRequest, context: BlockOverrideDomain: [], BlockOverrideTtl: [], BlockResponse: [], - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], FirewallDomainListId: [], FirewallRuleGroupId: [], Name: [], @@ -5219,7 +5219,7 @@ const se_CreateResolverQueryLogConfigRequest = ( context: __SerdeContext ): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], DestinationArn: [], Name: [], Tags: _json, diff --git a/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts index 29ee7de33856..a637827bb075 100644 --- a/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts @@ -227,7 +227,7 @@ export const se_ExportEarthObservationJobCommand = async ( body = JSON.stringify( take(input, { Arn: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ExecutionRoleArn: [], ExportSourceImages: [], OutputConfig: (_) => _json(_), @@ -261,7 +261,7 @@ export const se_ExportVectorEnrichmentJobCommand = async ( body = JSON.stringify( take(input, { Arn: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ExecutionRoleArn: [], OutputConfig: (_) => _json(_), }) @@ -556,7 +556,7 @@ export const se_StartEarthObservationJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ExecutionRoleArn: [], InputConfig: (_) => se_InputConfigInput(_, context), JobConfig: (_) => se_JobConfigInput(_, context), @@ -592,7 +592,7 @@ export const se_StartVectorEnrichmentJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ExecutionRoleArn: [], InputConfig: (_) => _json(_), JobConfig: (_) => _json(_), diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts index 0e0f2936d282..1c1c05638cc3 100644 --- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts @@ -19388,7 +19388,7 @@ const se_CreateImageVersionRequest = (input: CreateImageVersionRequest, context: return take(input, { Aliases: _json, BaseImage: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Horovod: [], ImageName: [], JobType: [], @@ -19480,7 +19480,7 @@ const se_CreateModelPackageInput = (input: CreateModelPackageInput, context: __S return take(input, { AdditionalInferenceSpecifications: _json, CertifyForMarketplace: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CustomerMetadataProperties: _json, Domain: [], DriftCheckBaselines: _json, @@ -19540,7 +19540,7 @@ const se_CreateMonitoringScheduleRequest = (input: CreateMonitoringScheduleReque */ const se_CreatePipelineRequest = (input: CreatePipelineRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ParallelismConfiguration: _json, PipelineDefinition: [], PipelineDefinitionS3Location: _json, @@ -19711,7 +19711,7 @@ const se_DataQualityJobInput = (input: DataQualityJobInput, context: __SerdeCont */ const se_DeletePipelineRequest = (input: DeletePipelineRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], PipelineName: [], }); }; @@ -21559,7 +21559,7 @@ const se_QueryLineageRequest = (input: QueryLineageRequest, context: __SerdeCont */ const se_RetryPipelineExecutionRequest = (input: RetryPipelineExecutionRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ParallelismConfiguration: _json, PipelineExecutionArn: [], }); @@ -21633,7 +21633,7 @@ const se_SendPipelineExecutionStepFailureRequest = ( ): any => { return take(input, { CallbackToken: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], FailureReason: [], }); }; @@ -21647,7 +21647,7 @@ const se_SendPipelineExecutionStepSuccessRequest = ( ): any => { return take(input, { CallbackToken: [], - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], OutputParameters: _json, }); }; @@ -21689,7 +21689,7 @@ const se_SendPipelineExecutionStepSuccessRequest = ( */ const se_StartPipelineExecutionRequest = (input: StartPipelineExecutionRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], ParallelismConfiguration: _json, PipelineExecutionDescription: [], PipelineExecutionDisplayName: [], @@ -21725,7 +21725,7 @@ const se_StartPipelineExecutionRequest = (input: StartPipelineExecutionRequest, */ const se_StopPipelineExecutionRequest = (input: StopPipelineExecutionRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], PipelineExecutionArn: [], }); }; diff --git a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts index 7afa4daae1dd..959a18960b0b 100644 --- a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts +++ b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts @@ -77,7 +77,7 @@ export const se_CreateSavingsPlanCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], commitment: [], purchaseTime: (_) => Math.round(_.getTime() / 1000), savingsPlanOfferingId: [], diff --git a/clients/client-scheduler/src/protocols/Aws_restJson1.ts b/clients/client-scheduler/src/protocols/Aws_restJson1.ts index 0cf9068226dc..9e9496e8a8c9 100644 --- a/clients/client-scheduler/src/protocols/Aws_restJson1.ts +++ b/clients/client-scheduler/src/protocols/Aws_restJson1.ts @@ -86,7 +86,7 @@ export const se_CreateScheduleCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], EndDate: (_) => Math.round(_.getTime() / 1000), FlexibleTimeWindow: (_) => _json(_), @@ -126,7 +126,7 @@ export const se_CreateScheduleGroupCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Tags: (_) => _json(_), }) ); @@ -403,7 +403,7 @@ export const se_UpdateScheduleCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], EndDate: (_) => Math.round(_.getTime() / 1000), FlexibleTimeWindow: (_) => _json(_), diff --git a/clients/client-schemas/src/protocols/Aws_restJson1.ts b/clients/client-schemas/src/protocols/Aws_restJson1.ts index 5a4a6980b115..5c5f8ce4cef5 100644 --- a/clients/client-schemas/src/protocols/Aws_restJson1.ts +++ b/clients/client-schemas/src/protocols/Aws_restJson1.ts @@ -1128,7 +1128,7 @@ export const se_UpdateSchemaCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientTokenId: (_) => _ ?? generateIdempotencyToken(), + ClientTokenId: [true, (_) => _ ?? generateIdempotencyToken()], Content: [], Description: [], Type: [], diff --git a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts index b903b83608e5..a4517793d4f5 100644 --- a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts +++ b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts @@ -1855,7 +1855,7 @@ const de_ResourceNotFoundExceptionRes = async ( const se_CreateSecretRequest = (input: CreateSecretRequest, context: __SerdeContext): any => { return take(input, { AddReplicaRegions: _json, - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], ForceOverwriteReplicaSecret: [], KmsKeyId: [], @@ -1895,7 +1895,7 @@ const se_CreateSecretRequest = (input: CreateSecretRequest, context: __SerdeCont */ const se_PutSecretValueRequest = (input: PutSecretValueRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], SecretBinary: context.base64Encoder, SecretId: [], SecretString: [], @@ -1918,7 +1918,7 @@ const se_PutSecretValueRequest = (input: PutSecretValueRequest, context: __Serde */ const se_RotateSecretRequest = (input: RotateSecretRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], RotateImmediately: [], RotationLambdaARN: [], RotationRules: _json, @@ -1947,7 +1947,7 @@ const se_RotateSecretRequest = (input: RotateSecretRequest, context: __SerdeCont */ const se_UpdateSecretRequest = (input: UpdateSecretRequest, context: __SerdeContext): any => { return take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], KmsKeyId: [], SecretBinary: context.base64Encoder, diff --git a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts index 9305410d135c..d8acf29de9ec 100644 --- a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts @@ -180,7 +180,7 @@ export const se_CreateApplicationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], tags: (_) => _json(_), @@ -213,7 +213,7 @@ export const se_CreateAttributeGroupCommand = async ( body = JSON.stringify( take(input, { attributes: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], tags: (_) => _json(_), diff --git a/clients/client-service-catalog/src/protocols/Aws_json1_1.ts b/clients/client-service-catalog/src/protocols/Aws_json1_1.ts index 7aee7251c743..3baf6d561646 100644 --- a/clients/client-service-catalog/src/protocols/Aws_json1_1.ts +++ b/clients/client-service-catalog/src/protocols/Aws_json1_1.ts @@ -6300,7 +6300,7 @@ const se_CopyProductInput = (input: CopyProductInput, context: __SerdeContext): return take(input, { AcceptLanguage: [], CopyOptions: _json, - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], SourceProductArn: [], SourceProvisioningArtifactIdentifiers: _json, TargetProductId: [], @@ -6315,7 +6315,7 @@ const se_CreateConstraintInput = (input: CreateConstraintInput, context: __Serde return take(input, { AcceptLanguage: [], Description: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Parameters: [], PortfolioId: [], ProductId: [], @@ -6331,7 +6331,7 @@ const se_CreatePortfolioInput = (input: CreatePortfolioInput, context: __SerdeCo AcceptLanguage: [], Description: [], DisplayName: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], ProviderName: [], Tags: _json, }); @@ -6347,7 +6347,7 @@ const se_CreateProductInput = (input: CreateProductInput, context: __SerdeContex AcceptLanguage: [], Description: [], Distributor: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], Owner: [], ProductType: [], @@ -6369,7 +6369,7 @@ const se_CreateProvisionedProductPlanInput = ( ): any => { return take(input, { AcceptLanguage: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], NotificationArns: _json, PathId: [], PlanName: [], @@ -6388,7 +6388,7 @@ const se_CreateProvisionedProductPlanInput = ( const se_CreateProvisioningArtifactInput = (input: CreateProvisioningArtifactInput, context: __SerdeContext): any => { return take(input, { AcceptLanguage: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Parameters: _json, ProductId: [], }); @@ -6403,7 +6403,7 @@ const se_CreateServiceActionInput = (input: CreateServiceActionInput, context: _ Definition: _json, DefinitionType: [], Description: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], }); }; @@ -6483,7 +6483,7 @@ const se_ExecuteProvisionedProductPlanInput = ( ): any => { return take(input, { AcceptLanguage: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], PlanId: [], }); }; @@ -6497,7 +6497,7 @@ const se_ExecuteProvisionedProductServiceActionInput = ( ): any => { return take(input, { AcceptLanguage: [], - ExecuteToken: (_) => _ ?? generateIdempotencyToken(), + ExecuteToken: [true, (_) => _ ?? generateIdempotencyToken()], Parameters: _json, ProvisionedProductId: [], ServiceActionId: [], @@ -6518,7 +6518,7 @@ const se_ExecuteProvisionedProductServiceActionInput = ( const se_ImportAsProvisionedProductInput = (input: ImportAsProvisionedProductInput, context: __SerdeContext): any => { return take(input, { AcceptLanguage: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], PhysicalId: [], ProductId: [], ProvisionedProductName: [], @@ -6577,7 +6577,7 @@ const se_NotifyProvisionProductEngineWorkflowResultInput = ( ): any => { return take(input, { FailureReason: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Outputs: _json, RecordId: [], ResourceIdentifier: _json, @@ -6595,7 +6595,7 @@ const se_NotifyTerminateProvisionedProductEngineWorkflowResultInput = ( ): any => { return take(input, { FailureReason: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], RecordId: [], Status: [], WorkflowToken: [], @@ -6611,7 +6611,7 @@ const se_NotifyUpdateProvisionedProductEngineWorkflowResultInput = ( ): any => { return take(input, { FailureReason: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Outputs: _json, RecordId: [], Status: [], @@ -6654,7 +6654,7 @@ const se_ProvisionProductInput = (input: ProvisionProductInput, context: __Serde PathName: [], ProductId: [], ProductName: [], - ProvisionToken: (_) => _ ?? generateIdempotencyToken(), + ProvisionToken: [true, (_) => _ ?? generateIdempotencyToken()], ProvisionedProductName: [], ProvisioningArtifactId: [], ProvisioningArtifactName: [], @@ -6712,7 +6712,7 @@ const se_TerminateProvisionedProductInput = (input: TerminateProvisionedProductI ProvisionedProductId: [], ProvisionedProductName: [], RetainPhysicalResources: [], - TerminateToken: (_) => _ ?? generateIdempotencyToken(), + TerminateToken: [true, (_) => _ ?? generateIdempotencyToken()], }); }; @@ -6743,7 +6743,7 @@ const se_UpdateProvisionedProductInput = (input: UpdateProvisionedProductInput, ProvisioningParameters: _json, ProvisioningPreferences: _json, Tags: _json, - UpdateToken: (_) => _ ?? generateIdempotencyToken(), + UpdateToken: [true, (_) => _ ?? generateIdempotencyToken()], }); }; @@ -6756,7 +6756,7 @@ const se_UpdateProvisionedProductPropertiesInput = ( ): any => { return take(input, { AcceptLanguage: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], ProvisionedProductId: [], ProvisionedProductProperties: _json, }); diff --git a/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts b/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts index b9644f1f2510..f5e127b5b033 100644 --- a/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts +++ b/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts @@ -2076,7 +2076,7 @@ const de_TooManyTagsExceptionRes = async ( */ const se_CreateHttpNamespaceRequest = (input: CreateHttpNamespaceRequest, context: __SerdeContext): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Tags: _json, @@ -2088,7 +2088,7 @@ const se_CreateHttpNamespaceRequest = (input: CreateHttpNamespaceRequest, contex */ const se_CreatePrivateDnsNamespaceRequest = (input: CreatePrivateDnsNamespaceRequest, context: __SerdeContext): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Properties: _json, @@ -2102,7 +2102,7 @@ const se_CreatePrivateDnsNamespaceRequest = (input: CreatePrivateDnsNamespaceReq */ const se_CreatePublicDnsNamespaceRequest = (input: CreatePublicDnsNamespaceRequest, context: __SerdeContext): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], Properties: _json, @@ -2115,7 +2115,7 @@ const se_CreatePublicDnsNamespaceRequest = (input: CreatePublicDnsNamespaceReque */ const se_CreateServiceRequest = (input: CreateServiceRequest, context: __SerdeContext): any => { return take(input, { - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], DnsConfig: _json, HealthCheckConfig: _json, @@ -2207,7 +2207,7 @@ const se_CreateServiceRequest = (input: CreateServiceRequest, context: __SerdeCo const se_RegisterInstanceRequest = (input: RegisterInstanceRequest, context: __SerdeContext): any => { return take(input, { Attributes: _json, - CreatorRequestId: (_) => _ ?? generateIdempotencyToken(), + CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()], InstanceId: [], ServiceId: [], }); @@ -2240,7 +2240,7 @@ const se_UpdateHttpNamespaceRequest = (input: UpdateHttpNamespaceRequest, contex return take(input, { Id: [], Namespace: _json, - UpdaterRequestId: (_) => _ ?? generateIdempotencyToken(), + UpdaterRequestId: [true, (_) => _ ?? generateIdempotencyToken()], }); }; @@ -2253,7 +2253,7 @@ const se_UpdatePrivateDnsNamespaceRequest = (input: UpdatePrivateDnsNamespaceReq return take(input, { Id: [], Namespace: _json, - UpdaterRequestId: (_) => _ ?? generateIdempotencyToken(), + UpdaterRequestId: [true, (_) => _ ?? generateIdempotencyToken()], }); }; @@ -2264,7 +2264,7 @@ const se_UpdatePublicDnsNamespaceRequest = (input: UpdatePublicDnsNamespaceReque return take(input, { Id: [], Namespace: _json, - UpdaterRequestId: (_) => _ ?? generateIdempotencyToken(), + UpdaterRequestId: [true, (_) => _ ?? generateIdempotencyToken()], }); }; diff --git a/clients/client-signer/src/protocols/Aws_restJson1.ts b/clients/client-signer/src/protocols/Aws_restJson1.ts index 0942706c6b04..0e59765884e9 100644 --- a/clients/client-signer/src/protocols/Aws_restJson1.ts +++ b/clients/client-signer/src/protocols/Aws_restJson1.ts @@ -522,7 +522,7 @@ export const se_StartSigningJobCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientRequestToken: (_) => _ ?? generateIdempotencyToken(), + clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], destination: (_) => _json(_), profileName: [], profileOwner: [], diff --git a/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts b/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts index 0c1a7606b375..360f36737cdf 100644 --- a/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts +++ b/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts @@ -255,7 +255,7 @@ export const se_StartAppCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Domain: [], LaunchOverrides: (_) => _json(_), @@ -318,7 +318,7 @@ export const se_StartSimulationCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], MaximumDuration: [], Name: [], diff --git a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts index 9c8cccc90983..8e9131fdd7d7 100644 --- a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts +++ b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts @@ -100,7 +100,7 @@ export const se_CreateTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], command: (_) => _json(_), description: [], tags: (_) => _json(_), diff --git a/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts b/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts index 49f76ecbce63..11d214fe6db4 100644 --- a/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts +++ b/clients/client-ssm-contacts/src/protocols/Aws_json1_1.ts @@ -3152,7 +3152,7 @@ const se_CreateContactChannelRequest = (input: CreateContactChannelRequest, cont ContactId: [], DeferActivation: [], DeliveryAddress: _json, - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Name: [], Type: [], }); @@ -3165,7 +3165,7 @@ const se_CreateContactRequest = (input: CreateContactRequest, context: __SerdeCo return take(input, { Alias: [], DisplayName: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], Plan: _json, Tags: _json, Type: [], @@ -3356,7 +3356,7 @@ const se_StartEngagementRequest = (input: StartEngagementRequest, context: __Ser return take(input, { ContactId: [], Content: [], - IdempotencyToken: (_) => _ ?? generateIdempotencyToken(), + IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], IncidentId: [], PublicContent: [], PublicSubject: [], diff --git a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts index 8c5205e247b8..07921ecc46c6 100644 --- a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts +++ b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts @@ -151,7 +151,7 @@ export const se_CreateReplicationSetCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], regions: (_) => _json(_), tags: (_) => _json(_), }) @@ -184,7 +184,7 @@ export const se_CreateResponsePlanCommand = async ( take(input, { actions: (_) => _json(_), chatChannel: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], displayName: [], engagements: (_) => _json(_), incidentTemplate: (_) => _json(_), @@ -219,7 +219,7 @@ export const se_CreateTimelineEventCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], eventData: [], eventReferences: (_) => _json(_), eventTime: (_) => Math.round(_.getTime() / 1000), @@ -745,7 +745,7 @@ export const se_StartIncidentCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], impact: [], relatedItems: (_) => _json(_), responsePlanArn: [], @@ -841,7 +841,7 @@ export const se_UpdateDeletionProtectionCommand = async ( body = JSON.stringify( take(input, { arn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], deletionProtected: [], }) ); @@ -873,7 +873,7 @@ export const se_UpdateIncidentRecordCommand = async ( take(input, { arn: [], chatChannel: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], impact: [], notificationTargets: (_) => _json(_), status: [], @@ -907,7 +907,7 @@ export const se_UpdateRelatedItemsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], incidentRecordArn: [], relatedItemsUpdate: (_) => _json(_), }) @@ -940,7 +940,7 @@ export const se_UpdateReplicationSetCommand = async ( take(input, { actions: (_) => _json(_), arn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -972,7 +972,7 @@ export const se_UpdateResponsePlanCommand = async ( actions: (_) => _json(_), arn: [], chatChannel: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], displayName: [], engagements: (_) => _json(_), incidentTemplateDedupeString: [], @@ -1010,7 +1010,7 @@ export const se_UpdateTimelineEventCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], eventData: [], eventId: [], eventReferences: (_) => _json(_), diff --git a/clients/client-ssm/src/protocols/Aws_json1_1.ts b/clients/client-ssm/src/protocols/Aws_json1_1.ts index d5d42c8f3525..cb2bbe21a883 100644 --- a/clients/client-ssm/src/protocols/Aws_json1_1.ts +++ b/clients/client-ssm/src/protocols/Aws_json1_1.ts @@ -12228,7 +12228,7 @@ const se_CreateActivationRequest = (input: CreateActivationRequest, context: __S const se_CreateMaintenanceWindowRequest = (input: CreateMaintenanceWindowRequest, context: __SerdeContext): any => { return take(input, { AllowUnassociatedTargets: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Cutoff: [], Description: [], Duration: [], @@ -12277,7 +12277,7 @@ const se_CreatePatchBaselineRequest = (input: CreatePatchBaselineRequest, contex ApprovedPatches: _json, ApprovedPatchesComplianceLevel: [], ApprovedPatchesEnableNonSecurity: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], GlobalFilters: _json, Name: [], @@ -12302,7 +12302,7 @@ const se_CreatePatchBaselineRequest = (input: CreatePatchBaselineRequest, contex */ const se_DeleteInventoryRequest = (input: DeleteInventoryRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DryRun: [], SchemaDeleteOption: [], TypeName: [], @@ -12807,7 +12807,7 @@ const se_RegisterTargetWithMaintenanceWindowRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], OwnerInformation: [], @@ -12826,7 +12826,7 @@ const se_RegisterTaskWithMaintenanceWindowRequest = ( ): any => { return take(input, { AlarmConfiguration: _json, - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], CutoffBehavior: [], Description: [], LoggingInfo: _json, diff --git a/clients/client-timestream-query/src/protocols/Aws_json1_0.ts b/clients/client-timestream-query/src/protocols/Aws_json1_0.ts index 9327782b1b35..6dfbd996744c 100644 --- a/clients/client-timestream-query/src/protocols/Aws_json1_0.ts +++ b/clients/client-timestream-query/src/protocols/Aws_json1_0.ts @@ -1167,7 +1167,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateScheduledQueryRequest = (input: CreateScheduledQueryRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ErrorReportConfiguration: _json, KmsKeyId: [], Name: [], @@ -1197,7 +1197,7 @@ const se_CreateScheduledQueryRequest = (input: CreateScheduledQueryRequest, cont */ const se_ExecuteScheduledQueryRequest = (input: ExecuteScheduledQueryRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], InvocationTime: (_) => Math.round(_.getTime() / 1000), ScheduledQueryArn: [], }); @@ -1226,7 +1226,7 @@ const se_ExecuteScheduledQueryRequest = (input: ExecuteScheduledQueryRequest, co */ const se_QueryRequest = (input: QueryRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], MaxRows: [], NextToken: [], QueryString: [], diff --git a/clients/client-timestream-write/src/protocols/Aws_json1_0.ts b/clients/client-timestream-write/src/protocols/Aws_json1_0.ts index 36b7e7331074..06a62a777906 100644 --- a/clients/client-timestream-write/src/protocols/Aws_json1_0.ts +++ b/clients/client-timestream-write/src/protocols/Aws_json1_0.ts @@ -1647,7 +1647,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateBatchLoadTaskRequest = (input: CreateBatchLoadTaskRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataModelConfiguration: _json, DataSourceConfiguration: _json, RecordVersion: [], diff --git a/clients/client-translate/src/protocols/Aws_json1_1.ts b/clients/client-translate/src/protocols/Aws_json1_1.ts index ba0eb964b6a9..ad14e344fa69 100644 --- a/clients/client-translate/src/protocols/Aws_json1_1.ts +++ b/clients/client-translate/src/protocols/Aws_json1_1.ts @@ -1608,7 +1608,7 @@ const de_UnsupportedLanguagePairExceptionRes = async ( */ const se_CreateParallelDataRequest = (input: CreateParallelDataRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], EncryptionKey: _json, Name: [], @@ -1675,7 +1675,7 @@ const se_ListTextTranslationJobsRequest = (input: ListTextTranslationJobsRequest */ const se_StartTextTranslationJobRequest = (input: StartTextTranslationJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], InputDataConfig: _json, JobName: [], @@ -1734,7 +1734,7 @@ const se_TextTranslationJobFilter = (input: TextTranslationJobFilter, context: _ */ const se_UpdateParallelDataRequest = (input: UpdateParallelDataRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], ParallelDataConfig: _json, diff --git a/clients/client-voice-id/src/protocols/Aws_json1_0.ts b/clients/client-voice-id/src/protocols/Aws_json1_0.ts index ffce368fb361..c699a09b2a25 100644 --- a/clients/client-voice-id/src/protocols/Aws_json1_0.ts +++ b/clients/client-voice-id/src/protocols/Aws_json1_0.ts @@ -2376,7 +2376,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_CreateDomainRequest = (input: CreateDomainRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], ServerSideEncryptionConfiguration: _json, @@ -2389,7 +2389,7 @@ const se_CreateDomainRequest = (input: CreateDomainRequest, context: __SerdeCont */ const se_CreateWatchlistRequest = (input: CreateWatchlistRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], DomainId: [], Name: [], @@ -2460,7 +2460,7 @@ const se_StartFraudsterRegistrationJobRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DomainId: [], InputDataConfig: _json, @@ -2475,7 +2475,7 @@ const se_StartFraudsterRegistrationJobRequest = ( */ const se_StartSpeakerEnrollmentJobRequest = (input: StartSpeakerEnrollmentJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DataAccessRoleArn: [], DomainId: [], EnrollmentConfig: _json, diff --git a/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts b/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts index 082875bf569d..02455c5f484b 100644 --- a/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts +++ b/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts @@ -234,7 +234,7 @@ export const se_CreateAccessLogSubscriptionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], destinationArn: [], resourceIdentifier: [], tags: (_) => _json(_), @@ -275,7 +275,7 @@ export const se_CreateListenerCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], defaultAction: (_) => _json(_), name: [], port: [], @@ -328,7 +328,7 @@ export const se_CreateRuleCommand = async ( body = JSON.stringify( take(input, { action: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], match: (_) => _json(_), name: [], priority: [], @@ -363,7 +363,7 @@ export const se_CreateServiceCommand = async ( take(input, { authType: [], certificateArn: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], customDomainName: [], name: [], tags: (_) => _json(_), @@ -396,7 +396,7 @@ export const se_CreateServiceNetworkCommand = async ( body = JSON.stringify( take(input, { authType: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], name: [], tags: (_) => _json(_), }) @@ -428,7 +428,7 @@ export const se_CreateServiceNetworkServiceAssociationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], serviceIdentifier: [], serviceNetworkIdentifier: [], tags: (_) => _json(_), @@ -461,7 +461,7 @@ export const se_CreateServiceNetworkVpcAssociationCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], securityGroupIds: (_) => _json(_), serviceNetworkIdentifier: [], tags: (_) => _json(_), @@ -494,7 +494,7 @@ export const se_CreateTargetGroupCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], config: (_) => _json(_), name: [], tags: (_) => _json(_), diff --git a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts index 0bb319b8a5cc..73e1a646bfd5 100644 --- a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts @@ -170,7 +170,7 @@ export const se_CreateLensShareCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], SharedWith: [], }) ); @@ -202,7 +202,7 @@ export const se_CreateLensVersionCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], IsMajorVersion: [], LensVersion: [], }) @@ -235,7 +235,7 @@ export const se_CreateMilestoneCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], MilestoneName: [], }) ); @@ -269,7 +269,7 @@ export const se_CreateWorkloadCommand = async ( Applications: (_) => _json(_), ArchitecturalDesign: [], AwsRegions: (_) => _json(_), - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], DiscoveryConfig: (_) => _json(_), Environment: [], @@ -312,7 +312,7 @@ export const se_CreateWorkloadShareCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], PermissionType: [], SharedWith: [], }) @@ -751,7 +751,7 @@ export const se_ImportLensCommand = async ( let body: any; body = JSON.stringify( take(input, { - ClientRequestToken: (_) => _ ?? generateIdempotencyToken(), + ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], JSONString: [], LensAlias: [], Tags: (_) => _json(_), diff --git a/clients/client-wisdom/src/protocols/Aws_restJson1.ts b/clients/client-wisdom/src/protocols/Aws_restJson1.ts index b554b413e076..7d40e21d3a74 100644 --- a/clients/client-wisdom/src/protocols/Aws_restJson1.ts +++ b/clients/client-wisdom/src/protocols/Aws_restJson1.ts @@ -121,7 +121,7 @@ export const se_CreateAssistantCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], serverSideEncryptionConfiguration: (_) => _json(_), @@ -159,7 +159,7 @@ export const se_CreateAssistantAssociationCommand = async ( take(input, { association: (_) => _json(_), associationType: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -199,7 +199,7 @@ export const se_CreateContentCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], metadata: (_) => _json(_), name: [], overrideLinkOutUri: [], @@ -234,7 +234,7 @@ export const se_CreateKnowledgeBaseCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], knowledgeBaseType: [], name: [], @@ -272,7 +272,7 @@ export const se_CreateSessionCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], description: [], name: [], tags: (_) => _json(_), diff --git a/clients/client-workmail/src/protocols/Aws_json1_1.ts b/clients/client-workmail/src/protocols/Aws_json1_1.ts index ac7296e823a4..f9c4c672fbef 100644 --- a/clients/client-workmail/src/protocols/Aws_json1_1.ts +++ b/clients/client-workmail/src/protocols/Aws_json1_1.ts @@ -6340,7 +6340,7 @@ const de_UnsupportedOperationExceptionRes = async ( */ const se_CancelMailboxExportJobRequest = (input: CancelMailboxExportJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], JobId: [], OrganizationId: [], }); @@ -6356,7 +6356,7 @@ const se_CreateAvailabilityConfigurationRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DomainName: [], EwsProvider: _json, LambdaProvider: _json, @@ -6371,7 +6371,7 @@ const se_CreateAvailabilityConfigurationRequest = ( */ const se_CreateImpersonationRoleRequest = (input: CreateImpersonationRoleRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], Name: [], OrganizationId: [], @@ -6388,7 +6388,7 @@ const se_CreateMobileDeviceAccessRuleRequest = ( context: __SerdeContext ): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], DeviceModels: _json, DeviceOperatingSystems: _json, @@ -6410,7 +6410,7 @@ const se_CreateMobileDeviceAccessRuleRequest = ( const se_CreateOrganizationRequest = (input: CreateOrganizationRequest, context: __SerdeContext): any => { return take(input, { Alias: [], - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DirectoryId: [], Domains: _json, EnableInteroperability: [], @@ -6445,7 +6445,7 @@ const se_CreateOrganizationRequest = (input: CreateOrganizationRequest, context: */ const se_DeleteOrganizationRequest = (input: DeleteOrganizationRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DeleteDirectory: [], OrganizationId: [], }); @@ -6574,7 +6574,7 @@ const se_DeleteOrganizationRequest = (input: DeleteOrganizationRequest, context: */ const se_RegisterMailDomainRequest = (input: RegisterMailDomainRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], DomainName: [], OrganizationId: [], }); @@ -6589,7 +6589,7 @@ const se_RegisterMailDomainRequest = (input: RegisterMailDomainRequest, context: */ const se_StartMailboxExportJobRequest = (input: StartMailboxExportJobRequest, context: __SerdeContext): any => { return take(input, { - ClientToken: (_) => _ ?? generateIdempotencyToken(), + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], Description: [], EntityId: [], KmsKeyArn: [], diff --git a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts index 9f7b71d79cad..c8db55b9bd1c 100644 --- a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts +++ b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts @@ -347,7 +347,7 @@ export const se_CreateBrowserSettingsCommand = async ( take(input, { additionalEncryptionContext: (_) => _json(_), browserPolicy: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], customerManagedKey: [], tags: (_) => _json(_), }) @@ -378,7 +378,7 @@ export const se_CreateIdentityProviderCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], identityProviderDetails: (_) => _json(_), identityProviderName: [], identityProviderType: [], @@ -411,7 +411,7 @@ export const se_CreateNetworkSettingsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], securityGroupIds: (_) => _json(_), subnetIds: (_) => _json(_), tags: (_) => _json(_), @@ -446,7 +446,7 @@ export const se_CreatePortalCommand = async ( take(input, { additionalEncryptionContext: (_) => _json(_), authenticationType: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], customerManagedKey: [], displayName: [], tags: (_) => _json(_), @@ -479,7 +479,7 @@ export const se_CreateTrustStoreCommand = async ( body = JSON.stringify( take(input, { certificateList: (_) => se_CertificateList(_, context), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -510,7 +510,7 @@ export const se_CreateUserAccessLoggingSettingsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], kinesisStreamArn: [], tags: (_) => _json(_), }) @@ -541,7 +541,7 @@ export const se_CreateUserSettingsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], copyAllowed: [], disconnectTimeoutInMinutes: [], downloadAllowed: [], @@ -1430,7 +1430,7 @@ export const se_TagResourceCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], tags: (_) => _json(_), }) ); @@ -1500,7 +1500,7 @@ export const se_UpdateBrowserSettingsCommand = async ( body = JSON.stringify( take(input, { browserPolicy: [], - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -1538,7 +1538,7 @@ export const se_UpdateIdentityProviderCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], identityProviderDetails: (_) => _json(_), identityProviderName: [], identityProviderType: [], @@ -1579,7 +1579,7 @@ export const se_UpdateNetworkSettingsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], securityGroupIds: (_) => _json(_), subnetIds: (_) => _json(_), vpcId: [], @@ -1653,7 +1653,7 @@ export const se_UpdateTrustStoreCommand = async ( take(input, { certificatesToAdd: (_) => se_CertificateList(_, context), certificatesToDelete: (_) => _json(_), - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); return new __HttpRequest({ @@ -1692,7 +1692,7 @@ export const se_UpdateUserAccessLoggingSettingsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], kinesisStreamArn: [], }) ); @@ -1731,7 +1731,7 @@ export const se_UpdateUserSettingsCommand = async ( let body: any; body = JSON.stringify( take(input, { - clientToken: (_) => _ ?? generateIdempotencyToken(), + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], copyAllowed: [], disconnectTimeoutInMinutes: [], downloadAllowed: [], diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java index 482286f5b87f..d0fd89f4c1af 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java @@ -160,7 +160,7 @@ public void serializeStructure(GenerationContext context, StructureShape shape) if (hasJsonName) { if (memberShape.hasTrait(IdempotencyTokenTrait.class)) { - writer.write("'$L': [, _ => _ ?? generateIdempotencyToken(), `$L`],", wireName, memberName); + writer.write("'$L': [true, _ => _ ?? generateIdempotencyToken(), `$L`],", wireName, memberName); } else { if (valueProvider.equals("_ => _")) { writer.write("'$L': [,,`$L`],", wireName, memberName); @@ -173,7 +173,7 @@ public void serializeStructure(GenerationContext context, StructureShape shape) } } else { if (memberShape.hasTrait(IdempotencyTokenTrait.class)) { - writer.write("'$L': _ => _ ?? generateIdempotencyToken(),", memberName); + writer.write("'$L': [true, _ => _ ?? generateIdempotencyToken()],", memberName); } else { if (valueProvider.equals("_ => _")) { writer.write("'$1L': [],", memberName); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java index 1ee324966533..f92448b7fb81 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java @@ -169,7 +169,7 @@ private void serializeDocumentBody(GenerationContext context, List if (hasJsonName) { if (memberShape.hasTrait(IdempotencyTokenTrait.class)) { - writer.write("'$L': [,_ => _ ?? generateIdempotencyToken(),`$L`],", + writer.write("'$L': [true,_ => _ ?? generateIdempotencyToken(),`$L`],", wireName, memberName); } else { if (valueProvider.equals("_ => _")) { @@ -180,7 +180,7 @@ private void serializeDocumentBody(GenerationContext context, List } } else { if (memberShape.hasTrait(IdempotencyTokenTrait.class)) { - writer.write("'$L': _ => _ ?? generateIdempotencyToken(),", wireName); + writer.write("'$L': [true,_ => _ ?? generateIdempotencyToken()],", wireName); } else { if (valueProvider.equals("_ => _")) { writer.write("'$1L': [],", wireName); diff --git a/packages/smithy-client/src/object-mapping.spec.ts b/packages/smithy-client/src/object-mapping.spec.ts index ba169c769ee1..3ddede93e0ff 100644 --- a/packages/smithy-client/src/object-mapping.spec.ts +++ b/packages/smithy-client/src/object-mapping.spec.ts @@ -159,6 +159,34 @@ describe("object mapping", () => { expect(take(input, instructions)).toEqual(output); }); + it("should allow a filter function or value", () => { + const input = { + a: 1, + b: 1, + c: 1, + d: 1, + e: 1, + f: 1, + } as const; + + const output = { + a: 1, + b: 1, + e: 1, + } as const; + + const instructions: SourceMappingInstructions = { + a: [true], + b: [1], + c: [false, () => 1], + d: [0, () => 1], + e: [(_) => _ == 1], + f: [(_) => _ == 2], + }; + + expect(take(input, instructions)).toEqual(output); + }); + it("should take keys with optional filters and optional mappers", () => { const input = { default: 0, diff --git a/packages/smithy-client/src/object-mapping.ts b/packages/smithy-client/src/object-mapping.ts index 6cf80a5f1a1e..6c9bc0b61b08 100644 --- a/packages/smithy-client/src/object-mapping.ts +++ b/packages/smithy-client/src/object-mapping.ts @@ -92,7 +92,7 @@ export type ConditionalValueInstruction = [ValueFilteringFunction, Value]; /** * @internal */ -export type SourceMappingInstruction = [ValueFilteringFunction?, ValueMapper?, string?]; +export type SourceMappingInstruction = [(ValueFilteringFunction | FilterStatus)?, ValueMapper?, string?]; /** * @internal