Skip to content

Commit

Permalink
feat(experimentalIdentityAndAuth): release phase 1
Browse files Browse the repository at this point in the history
Services:

- CodeCatalyst
  • Loading branch information
Steven Yuan committed Oct 2, 2023
1 parent ba89e7e commit 7319cb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions codegen/sdk-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -102,6 +103,9 @@ 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"),
)
val projectionContents = Node.objectNodeBuilder()
.withMember("imports", Node.fromStrings("${models.getAbsolutePath()}${File.separator}${file.name}"))
.withMember("plugins", Node.objectNode()
Expand All @@ -112,6 +116,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)
Expand Down

0 comments on commit 7319cb5

Please sign in to comment.