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." ); } """); 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." ); } }