diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index 496f3ac543682..b5bd26917125e 100644 --- a/codegen/sdk-codegen/build.gradle.kts +++ b/codegen/sdk-codegen/build.gradle.kts @@ -15,6 +15,7 @@ import software.amazon.smithy.model.Model import software.amazon.smithy.model.shapes.ServiceShape +import software.amazon.smithy.model.shapes.ShapeId import software.amazon.smithy.model.node.Node import software.amazon.smithy.gradle.tasks.SmithyBuild import software.amazon.smithy.aws.traits.ServiceTrait @@ -102,6 +103,10 @@ tasks.register("generate-smithy-build") { File("smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/package.json.template") .readText() ).expectObjectNode() + val experimentalIdentityAndAuthServices = setOf( + ShapeId.from("com.amazonaws.codecatalyst#CodeCatalyst"), + ShapeId.from("com.amazonaws.sts#AWSSecurityTokenServiceV20110615"), + ) val projectionContents = Node.objectNodeBuilder() .withMember("imports", Node.fromStrings("${models.getAbsolutePath()}${File.separator}${file.name}")) .withMember("plugins", Node.objectNode() @@ -112,6 +117,7 @@ tasks.register("generate-smithy-build") { .withMember("packageJson", manifestOverwrites) .withMember("packageDescription", "AWS SDK for JavaScript " + clientName + " Client for Node.js, Browser and React Native") + .withMember("experimentalIdentityAndAuth", experimentalIdentityAndAuthServices.contains(service.getId())) .build())) .build() projectionsBuilder.withMember(sdkId + "." + version.toLowerCase(), projectionContents)