Skip to content

Commit 2f95f07

Browse files
committed
Review comments
1 parent dccfedb commit 2f95f07

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Add validation for invalid usages of the `enableEnvironmentBearerToken` codegen customization."
6+
}

codegen/src/main/java/software/amazon/awssdk/codegen/poet/builder/BaseClientBuilderClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private void configureEnvironmentBearerToken(MethodSpec.Builder builder) {
327327
ValidationEntry entry = ValidationEntry.create(ValidationErrorId.INVALID_CODEGEN_CUSTOMIZATION,
328328
ValidationErrorSeverity.DANGER,
329329
"The enableEnvironmentBearerToken customization requires"
330-
+ " the SRA Auth customization.");
330+
+ " the useSraAuth customization but it is disabled.");
331331

332332
throw ModelInvalidException.fromEntry(entry);
333333
}

0 commit comments

Comments
 (0)