From bb8ccdb295680d1915bd76c58b6a45b5cba3674d Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Thu, 29 Apr 2021 18:49:29 +0200 Subject: [PATCH] chore(java): mark every class as internal This marks all the java classes as internal so the generator can be published to maven without an expectation of the java code itself being GA. --- .../amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java | 2 ++ .../smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java | 2 ++ .../typescript/codegen/AddBodyChecksumGeneratorDependency.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java | 2 ++ .../aws/typescript/codegen/AddCrossRegionCopyingPlugin.java | 2 ++ .../smithy/aws/typescript/codegen/AddDocumentClientPlugin.java | 2 ++ .../typescript/codegen/AddEventStreamHandlingDependency.java | 2 ++ .../smithy/aws/typescript/codegen/AddHttp2Dependency.java | 2 ++ .../smithy/aws/typescript/codegen/AddMd5HashDependency.java | 2 ++ .../aws/typescript/codegen/AddOmitRetryHeadersDependency.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AddProtocols.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AddS3Config.java | 2 ++ .../smithy/aws/typescript/codegen/AddS3ControlDependency.java | 2 ++ .../aws/typescript/codegen/AddStreamHasherDependency.java | 2 ++ .../typescript/codegen/AddTranscribeStreamingDependency.java | 2 ++ .../smithy/aws/typescript/codegen/AddUserAgentDependency.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsDependency.java | 2 ++ .../software/amazon/smithy/aws/typescript/codegen/AwsEc2.java | 2 ++ .../aws/typescript/codegen/AwsEndpointGeneratorIntegration.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_0.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_1.java | 2 ++ .../codegen/AwsPackageFixturesGeneratorIntegration.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java | 2 ++ .../software/amazon/smithy/aws/typescript/codegen/AwsQuery.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsRestJson1.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsRestXml.java | 2 ++ .../smithy/aws/typescript/codegen/AwsServiceIdIntegration.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/AwsTraitsUtils.java | 2 ++ .../aws/typescript/codegen/DocumentClientCommandGenerator.java | 2 ++ .../smithy/aws/typescript/codegen/DocumentClientGenerator.java | 2 ++ .../smithy/aws/typescript/codegen/DocumentClientUtils.java | 2 ++ .../aws/typescript/codegen/DocumentFullClientGenerator.java | 2 ++ .../smithy/aws/typescript/codegen/Ec2ShapeSerVisitor.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/EndpointGenerator.java | 2 ++ .../smithy/aws/typescript/codegen/JsonMemberDeserVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/JsonMemberSerVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java | 2 ++ .../smithy/aws/typescript/codegen/JsonShapeDeserVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/JsonShapeSerVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/QueryMemberSerVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/QueryShapeSerVisitor.java | 2 ++ .../aws/typescript/codegen/RestJsonProtocolGenerator.java | 2 ++ .../amazon/smithy/aws/typescript/codegen/StripNewEnumNames.java | 2 ++ .../smithy/aws/typescript/codegen/XmlMemberDeserVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/XmlMemberSerVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java | 2 ++ .../smithy/aws/typescript/codegen/XmlShapeSerVisitor.java | 2 ++ 47 files changed, 94 insertions(+) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java index a574667f6731..38f995444a81 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java @@ -43,11 +43,13 @@ import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Configure clients with AWS auth configurations and plugin. */ // TODO: Think about AWS Auth supported for only some operations and not all, when not AWS service, with say @auth([]) +@SmithyInternalApi public final class AddAwsAuthPlugin implements TypeScriptIntegration { static final String STS_CLIENT_PREFIX = "sts-client-"; static final String ROLE_ASSUMERS_FILE = "defaultRoleAssumers"; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java index cd3213bde692..75e4c61b0c13 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java @@ -33,6 +33,7 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; // TODO: This javadoc is specific to needs of AWS client. However it has elements that would be needed by non-AWS // clients too, like logger, region for SigV4. We should refactor these into different Integration or rename this @@ -74,6 +75,7 @@ *
  • logger: Sets to empty as logger is passed in client configuration
  • * */ +@SmithyInternalApi public final class AddAwsRuntimeConfig implements TypeScriptIntegration { private static final Logger LOGGER = Logger.getLogger(AddAwsRuntimeConfig.class.getName()); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBodyChecksumGeneratorDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBodyChecksumGeneratorDependency.java index 4296f972b017..0a9f986e4d5d 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBodyChecksumGeneratorDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBodyChecksumGeneratorDependency.java @@ -29,10 +29,12 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.MapUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Adds blobReader dependency if needed. */ +@SmithyInternalApi public class AddBodyChecksumGeneratorDependency implements TypeScriptIntegration { private static final Set SERVICE_IDS = SetUtils.of("Glacier"); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java index f9561dda282c..d23a00be7041 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java @@ -31,10 +31,12 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Adds all built-in runtime client plugins to clients. */ +@SmithyInternalApi public class AddBuiltinPlugins implements TypeScriptIntegration { private static final Set ROUTE_53_ID_MEMBERS = SetUtils.of("DelegationSetId", "HostedZoneId", "Id"); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddCrossRegionCopyingPlugin.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddCrossRegionCopyingPlugin.java index cc3faa8e8109..7004ccdfb91f 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddCrossRegionCopyingPlugin.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddCrossRegionCopyingPlugin.java @@ -25,7 +25,9 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi public class AddCrossRegionCopyingPlugin implements TypeScriptIntegration { private static final Set SHARED_PRESIGNED_URL_OPERATIONS = SetUtils.of( "CopyDBClusterSnapshot", diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddDocumentClientPlugin.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddDocumentClientPlugin.java index 11655775ea8a..a2302816dcd8 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddDocumentClientPlugin.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddDocumentClientPlugin.java @@ -32,10 +32,12 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.IoUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Generates Client and Commands for DynamoDB Document Client. */ +@SmithyInternalApi public class AddDocumentClientPlugin implements TypeScriptIntegration { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventStreamHandlingDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventStreamHandlingDependency.java index 95b93cc78593..8a64fcd2b88a 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventStreamHandlingDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventStreamHandlingDependency.java @@ -37,11 +37,13 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Adds runtime client plugins that handle the eventstream flow in request, * including eventstream payload signing. */ +@SmithyInternalApi public class AddEventStreamHandlingDependency implements TypeScriptIntegration { @Override public List getClientPlugins() { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttp2Dependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttp2Dependency.java index 1f0a7dc104df..93b00c534b3c 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttp2Dependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttp2Dependency.java @@ -29,7 +29,9 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi public class AddHttp2Dependency implements TypeScriptIntegration { @Override public Map> getRuntimeConfigWriters( diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddMd5HashDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddMd5HashDependency.java index cbf546c2dc3c..62d82ce84f0c 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddMd5HashDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddMd5HashDependency.java @@ -30,10 +30,12 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.MapUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Adds Md5Hash if needed. */ +@SmithyInternalApi public class AddMd5HashDependency implements TypeScriptIntegration { private static final Set SERVICE_IDS = SetUtils.of("S3", "SQS"); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddOmitRetryHeadersDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddOmitRetryHeadersDependency.java index 1c3575a4ea1e..07e0104ecef5 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddOmitRetryHeadersDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddOmitRetryHeadersDependency.java @@ -25,8 +25,10 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi public class AddOmitRetryHeadersDependency implements TypeScriptIntegration { private static final Set SERVICE_IDS = SetUtils.of( "ConnectParticipant", // P43593766 diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java index b3ded4a09b7e..f1ca46501bbb 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java @@ -19,10 +19,12 @@ import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Adds all built-in AWS protocols. */ +@SmithyInternalApi public class AddProtocols implements TypeScriptIntegration { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java index 92a3c091931e..68c5bfd16bb3 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java @@ -38,10 +38,12 @@ import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; import software.amazon.smithy.utils.SetUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * AWS S3 client configuration. */ +@SmithyInternalApi public final class AddS3Config implements TypeScriptIntegration { private static final Set S3_MD5_OPERATIONS = SetUtils.of( diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3ControlDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3ControlDependency.java index ef86fa73f889..5fcf46f5cd6f 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3ControlDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3ControlDependency.java @@ -33,10 +33,12 @@ import software.amazon.smithy.typescript.codegen.integration.RuntimeClientPlugin; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Add S3Control customization. */ +@SmithyInternalApi public class AddS3ControlDependency implements TypeScriptIntegration { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddStreamHasherDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddStreamHasherDependency.java index 1fd710455199..d2d318539625 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddStreamHasherDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddStreamHasherDependency.java @@ -27,10 +27,12 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Adds StreamHasher if needed. */ +@SmithyInternalApi public class AddStreamHasherDependency implements TypeScriptIntegration { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddTranscribeStreamingDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddTranscribeStreamingDependency.java index 6ac1090698b7..d27dc7cfd6b3 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddTranscribeStreamingDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddTranscribeStreamingDependency.java @@ -30,11 +30,13 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Add client plugins and configs to support WebSocket streaming for Transcribe * Streaming service. **/ +@SmithyInternalApi public class AddTranscribeStreamingDependency implements TypeScriptIntegration { @Override public List getClientPlugins() { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java index 9158c06914d8..292e0832b157 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java @@ -31,11 +31,13 @@ import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Add client plubins and configs to support injecting user agent. */ // TODO: Looks to add this back for non-AWS service clients, by fixing the dependency on ClientSharedValues.serviceId +@SmithyInternalApi public class AddUserAgentDependency implements TypeScriptIntegration { @Override public List getClientPlugins() { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java index f20f38a349e9..aaa862ae1776 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java @@ -22,11 +22,13 @@ import java.util.List; import software.amazon.smithy.codegen.core.SymbolDependency; import software.amazon.smithy.codegen.core.SymbolDependencyContainer; +import software.amazon.smithy.utils.SmithyInternalApi; /** * This enum should define all TypeScript dependencies that are introduced by * this package. */ +@SmithyInternalApi public enum AwsDependency implements SymbolDependencyContainer { MIDDLEWARE_SIGNING(NORMAL_DEPENDENCY, "@aws-sdk/middleware-signing", "^1.0.0-rc.1"), diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java index 383ed7163400..4029a6fcc7d9 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java @@ -26,6 +26,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.HttpRpcProtocolGenerator; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles generating the aws.ec2 protocol for services. It handles reading and @@ -43,6 +44,7 @@ * @see Smithy XML traits. * @see Smithy EC2 Query Name trait. */ +@SmithyInternalApi final class AwsEc2 extends HttpRpcProtocolGenerator { AwsEc2() { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEndpointGeneratorIntegration.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEndpointGeneratorIntegration.java index 64c26c3a6f1e..46a8713ae15c 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEndpointGeneratorIntegration.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEndpointGeneratorIntegration.java @@ -29,10 +29,12 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.MapUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Generates an endpoint resolver from endpoints.json. */ +@SmithyInternalApi public final class AwsEndpointGeneratorIntegration implements TypeScriptIntegration { @Override public void writeAdditionalFiles( diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_0.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_0.java index 68d83904227e..f58432ea80d2 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_0.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_0.java @@ -17,6 +17,7 @@ import software.amazon.smithy.aws.traits.protocols.AwsJson1_0Trait; import software.amazon.smithy.model.shapes.ShapeId; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles generating the aws.json-1.0 protocol for services. @@ -25,6 +26,7 @@ * * @see JsonRpcProtocolGenerator */ +@SmithyInternalApi final class AwsJsonRpc1_0 extends JsonRpcProtocolGenerator { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_1.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_1.java index 4b49567d4517..538caab3b549 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_1.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsJsonRpc1_1.java @@ -17,6 +17,7 @@ import software.amazon.smithy.aws.traits.protocols.AwsJson1_1Trait; import software.amazon.smithy.model.shapes.ShapeId; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles generating the aws.json-1.1 protocol for services. @@ -25,6 +26,7 @@ * * @see JsonRpcProtocolGenerator */ +@SmithyInternalApi final class AwsJsonRpc1_1 extends JsonRpcProtocolGenerator { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java index 167f0a3e23e7..dcb13155871e 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java @@ -34,8 +34,10 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.IoUtils; +import software.amazon.smithy.utils.SmithyInternalApi; import software.amazon.smithy.utils.StringUtils; +@SmithyInternalApi public final class AwsPackageFixturesGeneratorIntegration implements TypeScriptIntegration { @Override public void writeAdditionalFiles( diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java index def50877aaf9..c75dd01c9062 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java @@ -37,10 +37,12 @@ import software.amazon.smithy.typescript.codegen.integration.HttpProtocolGeneratorUtils; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; import software.amazon.smithy.utils.IoUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Utility methods for generating AWS protocols. */ +@SmithyInternalApi final class AwsProtocolUtils { private AwsProtocolUtils() {} diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java index 952cc827c8d2..8d903d83ac31 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java @@ -26,6 +26,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.HttpRpcProtocolGenerator; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles generating the aws.query protocol for services. It handles reading and @@ -42,6 +43,7 @@ * @see AwsProtocolUtils * @see Smithy XML traits. */ +@SmithyInternalApi final class AwsQuery extends HttpRpcProtocolGenerator { AwsQuery() { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestJson1.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestJson1.java index d37804f0e43f..ad72b5d5c559 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestJson1.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestJson1.java @@ -17,6 +17,7 @@ import software.amazon.smithy.aws.traits.protocols.RestJson1Trait; import software.amazon.smithy.model.shapes.ShapeId; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles generating the aws.rest-json-1 protocol for services. @@ -25,6 +26,7 @@ * * @see RestJsonProtocolGenerator */ +@SmithyInternalApi public final class AwsRestJson1 extends RestJsonProtocolGenerator { @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java index c3704405ed75..9807e1860954 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java @@ -33,6 +33,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.HttpBindingProtocolGenerator; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles generating the aws.rest-xml protocol for services. It handles reading and @@ -55,6 +56,7 @@ * @see Smithy HTTP protocol bindings. * @see Smithy XML traits. */ +@SmithyInternalApi final class AwsRestXml extends HttpBindingProtocolGenerator { AwsRestXml() { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsServiceIdIntegration.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsServiceIdIntegration.java index 045391406265..358544b756ea 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsServiceIdIntegration.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsServiceIdIntegration.java @@ -24,12 +24,14 @@ import software.amazon.smithy.model.Model; import software.amazon.smithy.typescript.codegen.TypeScriptSettings; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; +import software.amazon.smithy.utils.SmithyInternalApi; import software.amazon.smithy.utils.StringUtils; /** * Uses the {@code aws.api#service$sdkId} trait property to determine the * name of a service. */ +@SmithyInternalApi public final class AwsServiceIdIntegration implements TypeScriptIntegration { private static final Logger LOGGER = Logger.getLogger(AwsServiceIdIntegration.class.getName()); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsTraitsUtils.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsTraitsUtils.java index 465037596e0e..4d942245e164 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsTraitsUtils.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsTraitsUtils.java @@ -20,10 +20,12 @@ import software.amazon.smithy.model.Model; import software.amazon.smithy.model.shapes.ServiceShape; import software.amazon.smithy.typescript.codegen.TypeScriptSettings; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Utility methods related to AWS traits. */ +@SmithyInternalApi final class AwsTraitsUtils { private AwsTraitsUtils() {} diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientCommandGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientCommandGenerator.java index 27d52cd0275c..6c104b96ba84 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientCommandGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientCommandGenerator.java @@ -35,7 +35,9 @@ import software.amazon.smithy.typescript.codegen.ApplicationProtocol; import software.amazon.smithy.typescript.codegen.TypeScriptSettings; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi final class DocumentClientCommandGenerator implements Runnable { static final String COMMAND_PROPERTIES_SECTION = "command_properties"; static final String COMMAND_BODY_EXTRA_SECTION = "command_body_extra"; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientGenerator.java index 5db6aba7f96e..ee2656742a27 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientGenerator.java @@ -29,7 +29,9 @@ import software.amazon.smithy.typescript.codegen.ApplicationProtocol; import software.amazon.smithy.typescript.codegen.TypeScriptSettings; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi final class DocumentClientGenerator implements Runnable { static final String CLIENT_CONFIG_SECTION = "client_config"; static final String CLIENT_PROPERTIES_SECTION = "client_properties"; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientUtils.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientUtils.java index d506f630c780..941a00761b42 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientUtils.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentClientUtils.java @@ -29,7 +29,9 @@ import software.amazon.smithy.model.shapes.Shape; import software.amazon.smithy.model.shapes.StructureShape; import software.amazon.smithy.model.shapes.UnionShape; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi final class DocumentClientUtils { static final String CLIENT_NAME = "DynamoDBDocumentClient"; static final String CLIENT_FULL_NAME = "DynamoDBDocument"; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentFullClientGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentFullClientGenerator.java index 04ee7faf26f3..09efe08e1fdd 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentFullClientGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentFullClientGenerator.java @@ -27,8 +27,10 @@ import software.amazon.smithy.typescript.codegen.ApplicationProtocol; import software.amazon.smithy.typescript.codegen.TypeScriptSettings; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; +import software.amazon.smithy.utils.SmithyInternalApi; import software.amazon.smithy.utils.StringUtils; +@SmithyInternalApi final class DocumentFullClientGenerator implements Runnable { static final String CLIENT_CONFIG_SECTION = "client_config"; static final String CLIENT_PROPERTIES_SECTION = "client_properties"; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/Ec2ShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/Ec2ShapeSerVisitor.java index c22e35e70410..4635994e736d 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/Ec2ShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/Ec2ShapeSerVisitor.java @@ -24,6 +24,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.model.traits.XmlNameTrait; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; import software.amazon.smithy.utils.StringUtils; /** @@ -45,6 +46,7 @@ * @see QueryShapeSerVisitor * @see Smithy EC2 Query Name trait. */ +@SmithyInternalApi final class Ec2ShapeSerVisitor extends QueryShapeSerVisitor { Ec2ShapeSerVisitor(GenerationContext context) { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java index 7acb7e8fef5d..9f8084aeaa10 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java @@ -32,12 +32,14 @@ import software.amazon.smithy.utils.CaseUtils; import software.amazon.smithy.utils.IoUtils; import software.amazon.smithy.utils.OptionalUtils; +import software.amazon.smithy.utils.SmithyInternalApi; import software.amazon.smithy.utils.StringUtils; /** * Writes out a file that resolves endpoints using endpoints.json, but the * created resolver resolves endpoints for a single service. */ +@SmithyInternalApi final class EndpointGenerator implements Runnable { private static final int VERSION = 3; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberDeserVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberDeserVisitor.java index 1f940aa9053b..8bed3fe18b98 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberDeserVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberDeserVisitor.java @@ -22,11 +22,13 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Overrides the default implementation of BigDecimal and BigInteger shape * deserialization to throw when encountered in AWS REST JSON based protocols. */ +@SmithyInternalApi final class JsonMemberDeserVisitor extends DocumentMemberDeserVisitor { /** diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberSerVisitor.java index 19d8ace67517..5d7907219367 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonMemberSerVisitor.java @@ -22,6 +22,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Overrides the default implementation of BigDecimal and BigInteger shape @@ -29,6 +30,7 @@ * * TODO: Work out support for BigDecimal and BigInteger, natively or through a library. */ +@SmithyInternalApi final class JsonMemberSerVisitor extends DocumentMemberSerVisitor { /** diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java index 15280caf69a6..6a776cf4ee51 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java @@ -26,6 +26,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.HttpRpcProtocolGenerator; import software.amazon.smithy.utils.IoUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles general components across the AWS JSON protocols that have do not have @@ -41,6 +42,7 @@ * @see JsonMemberDeserVisitor * @see AwsProtocolUtils */ +@SmithyInternalApi abstract class JsonRpcProtocolGenerator extends HttpRpcProtocolGenerator { /** diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeDeserVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeDeserVisitor.java index fab814b5648f..edc3ab4dd15c 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeDeserVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeDeserVisitor.java @@ -33,6 +33,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Visitor to generate deserialization functions for shapes in AWS JSON protocol @@ -43,6 +44,7 @@ * * Timestamps are deserialized from {@link Format}.EPOCH_SECONDS by default. */ +@SmithyInternalApi final class JsonShapeDeserVisitor extends DocumentShapeDeserVisitor { JsonShapeDeserVisitor(GenerationContext context) { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java index 18414e15c172..905c8edc3267 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonShapeSerVisitor.java @@ -36,6 +36,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Visitor to generate serialization functions for shapes in AWS JSON protocol @@ -46,6 +47,7 @@ * * Timestamps are serialized to {@link Format}.EPOCH_SECONDS by default. */ +@SmithyInternalApi final class JsonShapeSerVisitor extends DocumentShapeSerVisitor { private static final Format TIMESTAMP_FORMAT = Format.EPOCH_SECONDS; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryMemberSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryMemberSerVisitor.java index 1d4e04d05b15..0b8d105fe887 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryMemberSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryMemberSerVisitor.java @@ -22,6 +22,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Overrides the default implementation of BigDecimal and BigInteger shape @@ -29,6 +30,7 @@ * * TODO: Work out support for BigDecimal and BigInteger, natively or through a library. */ +@SmithyInternalApi final class QueryMemberSerVisitor extends DocumentMemberSerVisitor { QueryMemberSerVisitor(GenerationContext context, String dataSource, Format defaultTimestampFormat) { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java index 4d1feb440880..3a59b99bd192 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java @@ -34,6 +34,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Visitor to generate serialization functions for shapes in form-urlencoded @@ -44,6 +45,7 @@ * * Timestamps are serialized to {@link Format}.DATE_TIME by default. */ +@SmithyInternalApi class QueryShapeSerVisitor extends DocumentShapeSerVisitor { private static final Format TIMESTAMP_FORMAT = Format.DATE_TIME; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java index 4418472dc718..082c82d8a52a 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java @@ -34,6 +34,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.HttpBindingProtocolGenerator; import software.amazon.smithy.utils.IoUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Handles general components across the AWS JSON protocols that have HTTP bindings. @@ -50,6 +51,7 @@ * @see AwsProtocolUtils * @see Smithy HTTP protocol bindings. */ +@SmithyInternalApi abstract class RestJsonProtocolGenerator extends HttpBindingProtocolGenerator { /** * Creates a AWS JSON RPC protocol generator. diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/StripNewEnumNames.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/StripNewEnumNames.java index b19b64d7416d..24731555356d 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/StripNewEnumNames.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/StripNewEnumNames.java @@ -32,6 +32,7 @@ import software.amazon.smithy.typescript.codegen.TypeScriptSettings; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; import software.amazon.smithy.utils.IoUtils; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Strips enum names from enums that GA'd without them. @@ -41,6 +42,7 @@ * preserve backwards-compatibility by stripping names from enums that were known to have * launched without them. */ +@SmithyInternalApi public final class StripNewEnumNames implements TypeScriptIntegration { private final Set enumsToStrip; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberDeserVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberDeserVisitor.java index 8c6c92cee175..fb51cc3e4959 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberDeserVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberDeserVisitor.java @@ -29,6 +29,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Overrides several of the default implementations to handle XML document @@ -43,6 +44,7 @@ * * @see Smithy XML traits. */ +@SmithyInternalApi final class XmlMemberDeserVisitor extends DocumentMemberDeserVisitor { XmlMemberDeserVisitor(GenerationContext context, String dataSource, Format defaultTimestampFormat) { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java index b80fdf436618..d3091b6780c6 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java @@ -34,6 +34,7 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Overrides several of the default implementations to handle XML document @@ -48,6 +49,7 @@ * * @see Smithy XML traits. */ +@SmithyInternalApi final class XmlMemberSerVisitor extends DocumentMemberSerVisitor { private final GenerationContext context; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java index 53776630bdae..0fbfd4923ff6 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java @@ -37,6 +37,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Visitor to generate deserialization functions for shapes in XML-document @@ -49,6 +50,7 @@ * * @see Smithy XML traits. */ +@SmithyInternalApi final class XmlShapeDeserVisitor extends DocumentShapeDeserVisitor { XmlShapeDeserVisitor(GenerationContext context) { diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java index 6ded4d6f5ff1..f3ef540bfe4c 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java @@ -37,6 +37,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.utils.SmithyInternalApi; /** * Visitor to generate serialization functions for shapes in XML-document @@ -49,6 +50,7 @@ * * @see Smithy XML traits. */ +@SmithyInternalApi final class XmlShapeSerVisitor extends DocumentShapeSerVisitor { private static final Format TIMESTAMP_FORMAT = Format.DATE_TIME;