From f96bdde3b86d4bfc7d1ba4ddca470adc44ae7944 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Tue, 10 Sep 2024 19:32:28 +0000 Subject: [PATCH 1/2] fix(codegen): checkstyle issue in DocumentBareBonesClientGenerator --- .../typescript/codegen/DocumentBareBonesClientGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java index 840f8ec9444b..2f48dce15e84 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java @@ -186,7 +186,8 @@ private void generateClientConstructor() { writer.write(""" if (this.config?.cacheMiddleware) { throw new Error( - "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false." + "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" + + " DynamoDBDocumentClient. This option must be set to false." ); } """); From b79264d31557bcd96b46737983fb97bddacdf151 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Tue, 10 Sep 2024 19:54:46 +0000 Subject: [PATCH 2/2] chore(lib-dynamodb): codegen --- lib/lib-dynamodb/src/DynamoDBDocumentClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts b/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts index 8d01b3abeb2e..2073fdfa10ac 100644 --- a/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts +++ b/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts @@ -146,7 +146,8 @@ export class DynamoDBDocumentClient extends __Client< this.middlewareStack = client.middlewareStack; if (this.config?.cacheMiddleware) { throw new Error( - "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false." + "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" + + " DynamoDBDocumentClient. This option must be set to false." ); } }