Skip to content

Commit

Permalink
Regenerated Clients
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed May 25, 2021
1 parent 1c66ddf commit 53216cf
Show file tree
Hide file tree
Showing 1,385 changed files with 23,073 additions and 1,272 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ public EndpointGenerator build() {
}
}

private enum DualStackEndpointConstant {
enum DualStackEndpointConstant {
UNSET("Unset" + DUAL_STACK_ENDPOINT_CONST_TYPE, "is the default value behavior for dual-stack endpoint "
+ "resolution."),
ENABLE("Enable" + DUAL_STACK_ENDPOINT_CONST_TYPE, "enable dual-stack endpoint resolution for endpoints."),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package software.amazon.smithy.aws.go.codegen;

import java.util.List;
import java.util.function.Consumer;
import java.util.logging.Logger;
import software.amazon.smithy.aws.traits.ServiceTrait;
import software.amazon.smithy.codegen.core.Symbol;
Expand Down Expand Up @@ -111,11 +112,24 @@ private void generateUseUseDualStackResolver(Model model, ServiceShape serviceSh
CONFIG_SOURCE_CONFIG_NAME);
writer.write("if err != nil { return err }");

if (isS3SharedService(model, serviceShape)) {
writer.write("if found { o.UseDualstack = value }");
} else {
writer.write("if found { o.EndpointOptions.UseDualStack = &value }");
}
Consumer<String> setValue = (String destination) -> {
writer.openBlock("if value {", "", () -> {
writer.write("$L = $L", destination,
EndpointGenerator.DualStackEndpointConstant.ENABLE.getConstantName());
writer.openBlock("} else {", "}", () -> {
writer.write("$L = $L", destination,
EndpointGenerator.DualStackEndpointConstant.DISABLE.getConstantName());
});
});
};

writer.openBlock("if found {", "}", () -> {
if (isS3SharedService(model, serviceShape)) {
setValue.accept("o.UseDualStack");
} else {
setValue.accept("o.EndpointOptions.UseDualStack");
}
});
});
writer.write("");
}
Expand Down
2 changes: 2 additions & 0 deletions config/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ replace github.com/aws/aws-sdk-go-v2/feature/ec2/imds => ../feature/ec2/imds/

replace github.com/aws/aws-sdk-go-v2/internal/ini => ../internal/ini/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../service/internal/config/

replace github.com/aws/aws-sdk-go-v2/service/internal/presigned-url => ../service/internal/presigned-url/

replace github.com/aws/aws-sdk-go-v2/service/sso => ../service/sso/
Expand Down
2 changes: 2 additions & 0 deletions credentials/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ replace github.com/aws/aws-sdk-go-v2 => ../

replace github.com/aws/aws-sdk-go-v2/feature/ec2/imds => ../feature/ec2/imds/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../service/internal/config/

replace github.com/aws/aws-sdk-go-v2/service/internal/presigned-url => ../service/internal/presigned-url/

replace github.com/aws/aws-sdk-go-v2/service/sso => ../service/sso/
Expand Down
2 changes: 2 additions & 0 deletions example/service/s3/listObjects/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ replace github.com/aws/aws-sdk-go-v2/internal/ini => ../../../../internal/ini/

replace github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding => ../../../../service/internal/accept-encoding/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../../service/internal/config/

replace github.com/aws/aws-sdk-go-v2/service/internal/presigned-url => ../../../../service/internal/presigned-url/

replace github.com/aws/aws-sdk-go-v2/service/internal/s3shared => ../../../../service/internal/s3shared/
Expand Down
2 changes: 2 additions & 0 deletions example/service/s3/usingPrivateLink/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ replace github.com/aws/aws-sdk-go-v2/internal/ini => ../../../../internal/ini/

replace github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding => ../../../../service/internal/accept-encoding/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../../service/internal/config/

replace github.com/aws/aws-sdk-go-v2/service/internal/presigned-url => ../../../../service/internal/presigned-url/

replace github.com/aws/aws-sdk-go-v2/service/internal/s3shared => ../../../../service/internal/s3shared/
Expand Down
2 changes: 2 additions & 0 deletions feature/dynamodb/attributevalue/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ replace github.com/aws/aws-sdk-go-v2/service/dynamodb => ../../../service/dynamo
replace github.com/aws/aws-sdk-go-v2/service/dynamodbstreams => ../../../service/dynamodbstreams/

replace github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding => ../../../service/internal/accept-encoding/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../service/internal/config/
2 changes: 2 additions & 0 deletions feature/dynamodb/expression/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ replace github.com/aws/aws-sdk-go-v2/service/dynamodb => ../../../service/dynamo
replace github.com/aws/aws-sdk-go-v2/service/dynamodbstreams => ../../../service/dynamodbstreams/

replace github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding => ../../../service/internal/accept-encoding/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../service/internal/config/
2 changes: 2 additions & 0 deletions feature/dynamodbstreams/attributevalue/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ replace github.com/aws/aws-sdk-go-v2/service/dynamodb => ../../../service/dynamo
replace github.com/aws/aws-sdk-go-v2/service/dynamodbstreams => ../../../service/dynamodbstreams/

replace github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding => ../../../service/internal/accept-encoding/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../service/internal/config/
2 changes: 2 additions & 0 deletions feature/s3/manager/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ replace github.com/aws/aws-sdk-go-v2/internal/ini => ../../../internal/ini/

replace github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding => ../../../service/internal/accept-encoding/

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../service/internal/config/

replace github.com/aws/aws-sdk-go-v2/service/internal/presigned-url => ../../../service/internal/presigned-url/

replace github.com/aws/aws-sdk-go-v2/service/internal/s3shared => ../../../service/internal/s3shared/
Expand Down
22 changes: 22 additions & 0 deletions internal/protocoltest/awsrestjson/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion internal/protocoltest/awsrestjson/endpoints.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/protocoltest/awsrestjson/generated.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"github.com/aws/aws-sdk-go-v2": "v1.4.0",
"github.com/aws/aws-sdk-go-v2/service/internal/config": "v0.0.0-00010101000000-000000000000",
"github.com/aws/smithy-go": "v1.4.0",
"github.com/google/go-cmp": "v0.5.4"
},
Expand Down
3 changes: 3 additions & 0 deletions internal/protocoltest/awsrestjson/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ go 1.15

require (
github.com/aws/aws-sdk-go-v2 v1.6.0
github.com/aws/aws-sdk-go-v2/service/internal/config v0.0.0-00010101000000-000000000000
github.com/aws/smithy-go v1.4.0
github.com/google/go-cmp v0.5.4
)

replace github.com/aws/aws-sdk-go-v2 => ../../../

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../service/internal/config/
37 changes: 37 additions & 0 deletions internal/protocoltest/awsrestjson/internal/endpoints/endpoints.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions internal/protocoltest/ec2query/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion internal/protocoltest/ec2query/endpoints.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/protocoltest/ec2query/generated.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"github.com/aws/aws-sdk-go-v2": "v1.4.0",
"github.com/aws/aws-sdk-go-v2/service/internal/config": "v0.0.0-00010101000000-000000000000",
"github.com/aws/smithy-go": "v1.4.0",
"github.com/google/go-cmp": "v0.5.4"
},
Expand Down
3 changes: 3 additions & 0 deletions internal/protocoltest/ec2query/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ go 1.15

require (
github.com/aws/aws-sdk-go-v2 v1.6.0
github.com/aws/aws-sdk-go-v2/service/internal/config v0.0.0-00010101000000-000000000000
github.com/aws/smithy-go v1.4.0
github.com/google/go-cmp v0.5.4
)

replace github.com/aws/aws-sdk-go-v2 => ../../../

replace github.com/aws/aws-sdk-go-v2/service/internal/config => ../../../service/internal/config/
Loading

0 comments on commit 53216cf

Please sign in to comment.