From 38318a569363bf3a7032ac6f3a223464815a4347 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Fri, 11 Dec 2020 11:12:52 -0800 Subject: [PATCH 1/7] codegen: Update PresignClient to default use signer and options Updates the PresignClient generation to use the same Signer initialization as the API client. In addition, the PresignClient was updated to ensure the PresignOptions are passed down and used at each level. --- .../AwsHttpPresignURLClientGenerator.java | 110 ++++++++---------- .../aws/go/codegen/AwsSignatureVersion4.java | 31 +++-- 2 files changed, 69 insertions(+), 72 deletions(-) diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java index 7e879bf167f..e9275164627 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java @@ -36,7 +36,6 @@ import software.amazon.smithy.go.codegen.SymbolUtils; import software.amazon.smithy.go.codegen.integration.GoIntegration; import software.amazon.smithy.model.Model; -import software.amazon.smithy.model.shapes.MemberShape; import software.amazon.smithy.model.shapes.OperationShape; import software.amazon.smithy.model.shapes.ServiceShape; import software.amazon.smithy.model.shapes.Shape; @@ -57,6 +56,8 @@ public class AwsHttpPresignURLClientGenerator implements GoIntegration { // constants private static final String CONVERT_TO_PRESIGN_MIDDLEWARE_NAME = "convertToPresignMiddleware"; + private static final String CONVERT_TO_PRESIGN_TYPE_NAME = "presignConverter"; + private static final String NOP_HTTP_CLIENT_OPTION_FUNC_NAME = "withNopHTTPClientAPIOption"; private static final String PRESIGN_CLIENT = "PresignClient"; private static final Symbol presignClientSymbol = buildSymbol(PRESIGN_CLIENT, true); @@ -105,18 +106,15 @@ private static Symbol buildSymbol(String name, boolean exported) { /** * generates code to iterate thru func optionals and assign value into the dest variable * - * @param writer GoWriter to write the code to - * @param src variable name that denotes functional options - * @param dest variable in which result of processed functional options are stored - * @param destType value type used by functional options + * @param writer GoWriter to write the code to + * @param src variable name that denotes functional options + * @param dest variable in which result of processed functional options are stored */ private static final void processFunctionalOptions( GoWriter writer, String src, - String dest, - Symbol destType + String dest ) { - writer.write("var $L $T", dest, destType); writer.openBlock("for _, fn := range $L {", "}", src, () -> { writer.write("fn(&$L)", dest); }).insertTrailingNewline(); @@ -225,25 +223,13 @@ private void writePresignOperationFunction( + "($P, error) {", "}", presignClientSymbol, operationSymbol, operationInputSymbol, presignOptionsSymbol, v4PresignedHTTPRequestSymbol, () -> { - Symbol nopClient = SymbolUtils.createPointableSymbolBuilder("NopClient", - SmithyGoDependency.SMITHY_HTTP_TRANSPORT) - .build(); - writer.write("if params == nil { params = &$T{} }", operationInputSymbol).insertTrailingNewline(); // process presignerOptions - processFunctionalOptions(writer, "optFns", "presignOptions", presignOptionsSymbol); + writer.write("options := c.options.copy()"); + processFunctionalOptions(writer, "optFns", "options"); - // check if presigner was set for presignerOptions - writer.openBlock("if len(optFns) != 0 {", "}", () -> { - writer.write("c = $L(c.client, optFns...)", NEW_CLIENT); - }); - writer.write(""); - - writer.write("clientOptFns := make([]func(o *Options), 0)"); - writer.openBlock("clientOptFns = append(clientOptFns, func(o *Options) {", "})", () -> { - writer.write("o.HTTPClient = &$T{}", nopClient); - }); + writer.write("clientOptFns := append(options.ClientOptions, $L)", NOP_HTTP_CLIENT_OPTION_FUNC_NAME); writer.write(""); Symbol withIsPresigning = SymbolUtils.createValueSymbolBuilder("WithIsPresigning", @@ -254,7 +240,8 @@ private void writePresignOperationFunction( operationSymbol.getName(), () -> { writer.write("$L,", OperationGenerator .getAddOperationMiddlewareFuncName(operationSymbol)); - writer.write("c.$L,", CONVERT_TO_PRESIGN_MIDDLEWARE_NAME); + writer.write("$L(options).$L,", CONVERT_TO_PRESIGN_TYPE_NAME, + CONVERT_TO_PRESIGN_MIDDLEWARE_NAME); // we should remove Content-Type header if input is a stream and // payload is empty/nil stream. @@ -335,8 +322,9 @@ private void writeConvertToPresignMiddleware( Symbol smithyStack = SymbolUtils.createPointableSymbolBuilder("Stack", SmithyGoDependency.SMITHY_MIDDLEWARE) .build(); - writer.openBlock("func (c *$T) $L(stack $P, options Options) (err error) {", "}", - presignClientSymbol, + writer.write("type $L $T", CONVERT_TO_PRESIGN_TYPE_NAME, presignOptionsSymbol); + writer.openBlock("func (c $L) $L(stack $P, options Options) (err error) {", "}", + CONVERT_TO_PRESIGN_TYPE_NAME, CONVERT_TO_PRESIGN_MIDDLEWARE_NAME, smithyStack, () -> { @@ -354,7 +342,6 @@ private void writeConvertToPresignMiddleware( AwsGoDependency.AWS_SIGNER_V4) .build(); - // Middleware to add writer.write("stack.Finalize.Clear()"); writer.write("stack.Deserialize.Clear()"); @@ -364,7 +351,7 @@ private void writeConvertToPresignMiddleware( "PresignHTTPRequestMiddlewareOptions", AwsGoDependency.AWS_SIGNER_V4).build(); writer.openBlock("pmw := $T($T{", "})", presignMiddleware, middlewareOptionsSymbol, () -> { writer.write("CredentialsProvider: options.$L,", AddAwsConfigFields.CREDENTIALS_CONFIG_NAME); - writer.write("Presigner: c.presigner,"); + writer.write("Presigner: c.Presigner,"); writer.write("LogSigning: options.$L.IsSigning(),", AddAwsConfigFields.LOG_MODE_CONFIG_NAME); }); writer.write("err = stack.Finalize.Add(pmw, $T)", smithyAfter); @@ -388,7 +375,7 @@ private void writeConvertToPresignMiddleware( AwsCustomGoDependency.S3_CUSTOMIZATION).build(); writer.writeDocs("add middleware to set expiration for s3 presigned url, " + " if expiration is set to 0, this middleware sets a default expiration of 900 seconds"); - writer.write("err = stack.Build.Add(&$T{ Expires: c.expires, }, middleware.After)", + writer.write("err = stack.Build.Add(&$T{ Expires: c.Expires, }, middleware.After)", expiresAsHeaderMiddleware); writer.write("if err != nil { return err }"); } @@ -415,12 +402,7 @@ private void writePresignClientType( writer.writeDocs(String.format("%s represents the presign url client", PRESIGN_CLIENT)); writer.openBlock("type $T struct {", "}", presignClientSymbol, () -> { writer.write("client *Client"); - writer.write("presigner $T", presignerInterfaceSymbol); - - if (isS3ServiceShape(model, serviceShape)) { - writer.addUseImports(SmithyGoDependency.TIME); - writer.write("expires time.Duration"); - } + writer.write("options $T", presignOptionsSymbol); }); writer.write(""); @@ -431,20 +413,22 @@ private void writePresignClientType( ); writer.openBlock("func $L(c *Client, optFns ...func($P)) $P {", "}", NEW_CLIENT, presignOptionsSymbol, presignClientSymbol, () -> { - processFunctionalOptions(writer, "optFns", "presignOptions", presignOptionsSymbol); - writer.write("client := copyAPIClient(c, presignOptions.ClientOptions...)"); - writer.openBlock("if presignOptions.Presigner == nil {", "}", () -> { - writer.write("presignOptions.Presigner = $T()", v4NewPresignerSymbol); + writer.write("var options $T", presignOptionsSymbol); + processFunctionalOptions(writer, "optFns", "options"); + + writer.openBlock("if len(options.ClientOptions) != 0 {", "}", () -> { + writer.write("c = New(c.options, options.ClientOptions...)"); }); + writer.write(""); + writer.openBlock("if options.Presigner == nil {", "}", () -> { + writer.write("options.Presigner = $L(c.options)", AwsSignatureVersion4.NEW_SIGNER_FUNC_NAME); + }); writer.write(""); + writer.openBlock("return &$L{", "}", presignClientSymbol, () -> { - writer.write("client: client,"); - writer.write("presigner: presignOptions.Presigner,"); - // if s3 assign expires value on client - if (isS3ServiceShape(model, serviceShape)) { - writer.write("expires: presignOptions.Expires,"); - } + writer.write("client: c,"); + writer.write("options: options,"); }); }); writer.write(""); @@ -460,14 +444,15 @@ private void writePresignClientHelpers( Model model, SymbolProvider symbolProvider, ServiceShape serviceShape - ) { - // generate copy API client - final String COPY_API_CLIENT = "copyAPIClient"; - writer.openBlock("func $L(c *Client, optFns ...func(*Options)) *Client {", "}", - COPY_API_CLIENT, () -> { - writer.write("return New(c.options, optFns...)"); - writer.insertTrailingNewline(); - }); + ) { + // Helper function for NopClient + writer.openBlock("func $L(o *Options) {", "}", NOP_HTTP_CLIENT_OPTION_FUNC_NAME, () -> { + Symbol nopClientSymbol = SymbolUtils.createPointableSymbolBuilder("NopClient", + SmithyGoDependency.SMITHY_HTTP_TRANSPORT) + .build(); + + writer.write("o.HTTPClient = $T{}", nopClientSymbol); + }); writer.write(""); } @@ -510,14 +495,13 @@ public void writePresignOptionType( ServiceShape serviceShape ) { writer.addUseImports(SmithyGoDependency.CONTEXT); - Symbol presignOptionSymbol = buildSymbol(PRESIGN_OPTIONS, true); // generate presign options writer.writeDocs(String.format("%s represents the presign client options", PRESIGN_OPTIONS)); - writer.openBlock("type $T struct {", "}", presignOptionSymbol, () -> { + writer.openBlock("type $T struct {", "}", presignOptionsSymbol, () -> { writer.write(""); writer.writeDocs( - "ClientOptions are list of functional options to mutate client options used by presign client" + "ClientOptions are list of functional options to mutate client options used by the presign client." ); writer.write("ClientOptions []func(*Options)"); @@ -537,6 +521,12 @@ public void writePresignOptionType( writer.write("Expires time.Duration"); } }); + writer.openBlock("func (o $T) copy() $T {", "}", presignOptionsSymbol, presignOptionsSymbol, () -> { + writer.write("clientOptions := make([]func(*Options), len(o.ClientOptions))"); + writer.write("copy(clientOptions, o.ClientOptions)"); + writer.write("o.ClientOptions = clientOptions"); + writer.write("return o"); + }); // generate WithPresignClientFromClientOptions Helper Symbol presignOptionsFromClientOptionsInternal = buildSymbol(PRESIGN_OPTIONS_FROM_CLIENT_OPTIONS, false); @@ -545,7 +535,7 @@ public void writePresignOptionType( PRESIGN_OPTIONS_FROM_CLIENT_OPTIONS) ); writer.openBlock("func $L(optFns ...func(*Options)) func($P) {", "}", - PRESIGN_OPTIONS_FROM_CLIENT_OPTIONS, presignOptionSymbol, () -> { + PRESIGN_OPTIONS_FROM_CLIENT_OPTIONS, presignOptionsSymbol, () -> { writer.write("return $L(optFns).options", presignOptionsFromClientOptionsInternal.getName()); }); @@ -553,7 +543,7 @@ public void writePresignOptionType( writer.write("type $L []func(*Options)", presignOptionsFromClientOptionsInternal.getName()); writer.openBlock("func (w $L) options (o $P) {", "}", - presignOptionsFromClientOptionsInternal.getName(), presignOptionSymbol, () -> { + presignOptionsFromClientOptionsInternal.getName(), presignOptionsSymbol, () -> { writer.write("o.ClientOptions = append(o.ClientOptions, w...)"); }).insertTrailingNewline(); @@ -566,7 +556,7 @@ public void writePresignOptionType( "%s is a helper utility to append Expires value on presign options optional function", PRESIGN_OPTIONS_FROM_EXPIRES)); writer.openBlock("func $L(dur time.Duration) func($P) {", "}", - PRESIGN_OPTIONS_FROM_EXPIRES, presignOptionSymbol, () -> { + PRESIGN_OPTIONS_FROM_EXPIRES, presignOptionsSymbol, () -> { writer.write("return $L(dur).options", presignOptionsFromExpiresInternal.getName()); }); @@ -574,7 +564,7 @@ public void writePresignOptionType( writer.write("type $L time.Duration", presignOptionsFromExpiresInternal.getName()); writer.openBlock("func (w $L) options (o $P) {", "}", - presignOptionsFromExpiresInternal.getName(), presignOptionSymbol, () -> { + presignOptionsFromExpiresInternal.getName(), presignOptionsSymbol, () -> { writer.write("o.Expires = time.Duration(w)"); }).insertTrailingNewline(); } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsSignatureVersion4.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsSignatureVersion4.java index a425a915b1f..7147e5ea461 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsSignatureVersion4.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsSignatureVersion4.java @@ -44,6 +44,7 @@ public final class AwsSignatureVersion4 implements GoIntegration { public static final String REGISTER_MIDDLEWARE_FUNCTION = "addHTTPSignerV4Middleware"; public static final String SIGNER_INTERFACE_NAME = "HTTPSignerV4"; public static final String SIGNER_CONFIG_FIELD_NAME = SIGNER_INTERFACE_NAME; + public static final String NEW_SIGNER_FUNC_NAME = "newDefaultV4Signer"; public static final String SIGNER_RESOLVER = "resolve" + SIGNER_CONFIG_FIELD_NAME; private static final List DISABLE_URI_PATH_ESCAPE = ListUtils.of("com.amazonaws.s3#AmazonS3"); @@ -66,6 +67,7 @@ public void writeAdditionalFiles( writeMiddlewareRegister(model, writer, serviceShape); writerSignerInterface(writer); writerConfigFieldResolver(writer, serviceShape); + writeNewV4SignerFunc(writer, serviceShape); }); } } @@ -84,24 +86,29 @@ private void writerSignerInterface(GoWriter writer) { } private void writerConfigFieldResolver(GoWriter writer, ServiceShape serviceShape) { + writer.openBlock("func $L(o *Options) {", "}", SIGNER_RESOLVER, () -> { + writer.openBlock("if o.$L != nil {", "}", SIGNER_CONFIG_FIELD_NAME, () -> writer.write("return")); + writer.write("o.$L = $L(*o)", SIGNER_CONFIG_FIELD_NAME, NEW_SIGNER_FUNC_NAME); + }); + writer.write(""); + } + private void writeNewV4SignerFunc(GoWriter writer, ServiceShape serviceShape) { + Symbol signerSymbol = SymbolUtils.createValueSymbolBuilder("Signer", + AwsGoDependency.AWS_SIGNER_V4).build(); Symbol newSignerSymbol = SymbolUtils.createValueSymbolBuilder("NewSigner", AwsGoDependency.AWS_SIGNER_V4).build(); Symbol signerOptionsSymbol = SymbolUtils.createPointableSymbolBuilder("SignerOptions", AwsGoDependency.AWS_SIGNER_V4).build(); - writer.openBlock("func $L(o *Options) {", "}", SIGNER_RESOLVER, () -> { - writer.openBlock("if o.$L != nil {", "}", SIGNER_CONFIG_FIELD_NAME, () -> writer.write("return")); - writer.openBlock("o.$L = $T(", ")", SIGNER_CONFIG_FIELD_NAME, newSignerSymbol, () -> { - writer.openBlock("func (so $P) {", "},", signerOptionsSymbol, () -> { - writer.write("so.Logger = o.$L", AddAwsConfigFields.LOGGER_CONFIG_NAME); - writer.write("so.LogSigning = o.$L.IsSigning()", AddAwsConfigFields.LOG_MODE_CONFIG_NAME); - if (DISABLE_URI_PATH_ESCAPE.contains(serviceShape.getId().toString())) { - writer.write("so.DisableURIPathEscaping = true"); - } - }); - }); + writer.openBlock("func $L(o Options) *$T {", "}", NEW_SIGNER_FUNC_NAME, signerSymbol, () -> { + writer.openBlock("return $T(func(so $P) {", "})", newSignerSymbol, signerOptionsSymbol, () -> { + writer.write("so.Logger = o.$L", AddAwsConfigFields.LOGGER_CONFIG_NAME); + writer.write("so.LogSigning = o.$L.IsSigning()", AddAwsConfigFields.LOG_MODE_CONFIG_NAME); + if (DISABLE_URI_PATH_ESCAPE.contains(serviceShape.getId().toString())) { + writer.write("so.DisableURIPathEscaping = true"); + } + }); }); - writer.write(""); } @Override From 1aadc01074b88e4474d935df9e845944f0209ee0 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Fri, 11 Dec 2020 17:10:19 -0800 Subject: [PATCH 2/7] regenerate s3 api --- service/s3/api_client.go | 60 ++++++++++++++++++++-------------- service/s3/api_op_GetObject.go | 15 +++------ service/s3/api_op_PutObject.go | 15 +++------ service/s3/go.mod | 11 +------ 4 files changed, 45 insertions(+), 56 deletions(-) diff --git a/service/s3/api_client.go b/service/s3/api_client.go index 5d93f4e8544..15442d62adf 100644 --- a/service/s3/api_client.go +++ b/service/s3/api_client.go @@ -221,13 +221,15 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - so.DisableURIPathEscaping = true - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + so.DisableURIPathEscaping = true + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { @@ -278,7 +280,7 @@ type HTTPPresignerV4 interface { type PresignOptions struct { // ClientOptions are list of functional options to mutate client options used by - // presign client + // the presign client. ClientOptions []func(*Options) // Presigner is the presigner used by the presign url client @@ -290,6 +292,13 @@ type PresignOptions struct { Expires time.Duration } +func (o PresignOptions) copy() PresignOptions { + clientOptions := make([]func(*Options), len(o.ClientOptions)) + copy(clientOptions, o.ClientOptions) + o.ClientOptions = clientOptions + return o +} + // WithPresignClientFromClientOptions is a helper utility to retrieve a function // that takes PresignOption as input func WithPresignClientFromClientOptions(optFns ...func(*Options)) func(*PresignOptions) { @@ -316,41 +325,44 @@ func (w withPresignExpires) options(o *PresignOptions) { // PresignClient represents the presign url client type PresignClient struct { - client *Client - presigner HTTPPresignerV4 - expires time.Duration + client *Client + options PresignOptions } // NewPresignClient generates a presign client using provided API Client and // presign options func NewPresignClient(c *Client, optFns ...func(*PresignOptions)) *PresignClient { - var presignOptions PresignOptions + var options PresignOptions for _, fn := range optFns { - fn(&presignOptions) + fn(&options) + } + if len(options.ClientOptions) != 0 { + c = New(c.options, options.ClientOptions...) } - client := copyAPIClient(c, presignOptions.ClientOptions...) - if presignOptions.Presigner == nil { - presignOptions.Presigner = v4.NewSigner() + + if options.Presigner == nil { + options.Presigner = newDefaultV4Signer(c.options) } return &PresignClient{ - client: client, - presigner: presignOptions.Presigner, - expires: presignOptions.Expires, + client: c, + options: options, } } -func copyAPIClient(c *Client, optFns ...func(*Options)) *Client { - return New(c.options, optFns...) +func withNopHTTPClientAPIOption(o *Options) { + o.HTTPClient = smithyhttp.NopClient{} } -func (c *PresignClient) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) { +type presignConverter PresignOptions + +func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) { stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, - Presigner: c.presigner, + Presigner: c.Presigner, LogSigning: options.ClientLogMode.IsSigning(), }) err = stack.Finalize.Add(pmw, middleware.After) @@ -359,7 +371,7 @@ func (c *PresignClient) convertToPresignMiddleware(stack *middleware.Stack, opti } // add middleware to set expiration for s3 presigned url, if expiration is set to // 0, this middleware sets a default expiration of 900 seconds - err = stack.Build.Add(&s3cust.AddExpiresOnPresignedURL{Expires: c.expires}, middleware.After) + err = stack.Build.Add(&s3cust.AddExpiresOnPresignedURL{Expires: c.Expires}, middleware.After) if err != nil { return err } diff --git a/service/s3/api_op_GetObject.go b/service/s3/api_op_GetObject.go index 6e3204023a5..89ba8a5728a 100644 --- a/service/s3/api_op_GetObject.go +++ b/service/s3/api_op_GetObject.go @@ -481,23 +481,16 @@ func (c *PresignClient) PresignGetObject(ctx context.Context, params *GetObjectI if params == nil { params = &GetObjectInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "GetObject", params, clientOptFns, addOperationGetObjectMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, addGetObjectPayloadAsUnsigned, ) if err != nil { diff --git a/service/s3/api_op_PutObject.go b/service/s3/api_op_PutObject.go index 7f88c5e25fe..97a0f0c023a 100644 --- a/service/s3/api_op_PutObject.go +++ b/service/s3/api_op_PutObject.go @@ -433,23 +433,16 @@ func (c *PresignClient) PresignPutObject(ctx context.Context, params *PutObjectI if params == nil { params = &PutObjectInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "PutObject", params, clientOptFns, addOperationPutObjectMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, func(stack *middleware.Stack, options Options) error { return awshttp.RemoveContentTypeHeader(stack) }, diff --git a/service/s3/go.mod b/service/s3/go.mod index fd70180a903..55a39cb4221 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -7,14 +7,5 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v0.3.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.2 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.2 - github.com/awslabs/smithy-go v0.4.0 - github.com/google/go-cmp v0.5.4 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) - -replace github.com/aws/aws-sdk-go-v2 => ../../ - -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/presigned-url => ../../service/internal/presigned-url/ - -replace github.com/aws/aws-sdk-go-v2/service/internal/s3shared => ../../service/internal/s3shared/ From f900bebc9279a3bb2e27b392f2f9cd7ed2ded8bd Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Fri, 11 Dec 2020 17:17:49 -0800 Subject: [PATCH 3/7] regenerate apis --- config/go.mod | 2 +- config/go.sum | 2 + credentials/go.mod | 2 +- credentials/go.sum | 2 + example/service/s3/listObjects/go.sum | 2 + feature/s3/manager/go.mod | 2 +- feature/s3/manager/go.sum | 2 + internal/protocoltest/awsrestjson/go.mod | 2 +- internal/protocoltest/awsrestjson/go.sum | 2 + .../ec2query/api_op_XmlEmptyBlobs_test.go | 8 +- .../ec2query/api_op_XmlEmptyLists.go | 4 + .../ec2query/api_op_XmlEmptyLists_test.go | 4 +- .../protocoltest/ec2query/api_op_XmlLists.go | 9 +- .../ec2query/api_op_XmlLists_test.go | 12 + .../protocoltest/ec2query/deserializers.go | 176 ++++++++ internal/protocoltest/ec2query/go.mod | 2 +- internal/protocoltest/ec2query/go.sum | 2 + internal/protocoltest/jsonrpc/api_client.go | 14 +- internal/protocoltest/jsonrpc/go.mod | 2 +- internal/protocoltest/jsonrpc/go.sum | 2 + internal/protocoltest/jsonrpc10/go.mod | 2 +- internal/protocoltest/jsonrpc10/go.sum | 2 + .../api_op_FlattenedXmlMapWithXmlNamespace.go | 95 +++++ ...op_FlattenedXmlMapWithXmlNamespace_test.go | 110 +++++ .../query/api_op_XmlEmptyBlobs_test.go | 16 +- .../query/api_op_XmlEmptyLists.go | 4 + .../query/api_op_XmlEmptyLists_test.go | 8 +- .../query/api_op_XmlEmptyMaps_test.go | 16 +- .../protocoltest/query/api_op_XmlLists.go | 4 + .../query/api_op_XmlLists_test.go | 12 + internal/protocoltest/query/deserializers.go | 391 ++++++++++++++++++ internal/protocoltest/query/go.mod | 2 +- internal/protocoltest/query/go.sum | 2 + internal/protocoltest/query/serializers.go | 60 +++ .../api_op_FlattenedXmlMapWithXmlNamespace.go | 95 +++++ ...op_FlattenedXmlMapWithXmlNamespace_test.go | 108 +++++ .../restxml/api_op_XmlEmptyLists.go | 8 + .../protocoltest/restxml/api_op_XmlLists.go | 13 +- .../restxml/api_op_XmlLists_test.go | 12 + .../protocoltest/restxml/deserializers.go | 390 +++++++++++++++++ internal/protocoltest/restxml/go.mod | 2 +- internal/protocoltest/restxml/go.sum | 2 + internal/protocoltest/restxml/serializers.go | 136 ++++++ service/accessanalyzer/api_client.go | 14 +- service/accessanalyzer/go.mod | 2 +- service/accessanalyzer/go.sum | 2 + service/acm/api_client.go | 14 +- service/acm/go.mod | 2 +- service/acm/go.sum | 2 + service/acmpca/api_client.go | 14 +- service/acmpca/go.mod | 2 +- service/acmpca/go.sum | 2 + service/alexaforbusiness/api_client.go | 14 +- service/alexaforbusiness/go.mod | 2 +- service/alexaforbusiness/go.sum | 2 + service/amplify/api_client.go | 14 +- service/amplify/go.mod | 2 +- service/amplify/go.sum | 2 + service/apigateway/api_client.go | 14 +- service/apigateway/go.mod | 2 +- service/apigateway/go.sum | 2 + service/apigatewaymanagementapi/api_client.go | 14 +- service/apigatewaymanagementapi/go.mod | 2 +- service/apigatewaymanagementapi/go.sum | 2 + service/apigatewayv2/api_client.go | 14 +- service/apigatewayv2/go.mod | 2 +- service/apigatewayv2/go.sum | 2 + service/appconfig/api_client.go | 14 +- service/appconfig/go.mod | 2 +- service/appconfig/go.sum | 2 + service/appflow/api_client.go | 14 +- service/appflow/go.mod | 2 +- service/appflow/go.sum | 2 + service/applicationautoscaling/api_client.go | 14 +- service/applicationautoscaling/go.mod | 2 +- service/applicationautoscaling/go.sum | 2 + .../applicationdiscoveryservice/api_client.go | 14 +- service/applicationdiscoveryservice/go.mod | 2 +- service/applicationdiscoveryservice/go.sum | 2 + service/applicationinsights/api_client.go | 14 +- service/applicationinsights/go.mod | 2 +- service/applicationinsights/go.sum | 2 + service/appmesh/api_client.go | 14 +- service/appmesh/go.mod | 2 +- service/appmesh/go.sum | 2 + service/appstream/api_client.go | 14 +- service/appstream/go.mod | 2 +- service/appstream/go.sum | 2 + service/appsync/api_client.go | 14 +- service/appsync/go.mod | 2 +- service/appsync/go.sum | 2 + service/athena/api_client.go | 14 +- service/athena/go.mod | 2 +- service/athena/go.sum | 2 + service/autoscaling/api_client.go | 14 +- service/autoscaling/go.mod | 2 +- service/autoscaling/go.sum | 2 + service/autoscalingplans/api_client.go | 14 +- service/autoscalingplans/go.mod | 2 +- service/autoscalingplans/go.sum | 2 + service/backup/api_client.go | 14 +- service/backup/go.mod | 2 +- service/backup/go.sum | 2 + service/batch/api_client.go | 14 +- service/batch/go.mod | 2 +- service/batch/go.sum | 2 + service/braket/api_client.go | 14 +- service/braket/go.mod | 2 +- service/braket/go.sum | 2 + service/budgets/api_client.go | 14 +- service/budgets/go.mod | 2 +- service/budgets/go.sum | 2 + service/chime/api_client.go | 14 +- service/chime/go.mod | 2 +- service/chime/go.sum | 2 + service/cloud9/api_client.go | 14 +- service/cloud9/go.mod | 2 +- service/cloud9/go.sum | 2 + service/clouddirectory/api_client.go | 14 +- service/clouddirectory/go.mod | 2 +- service/clouddirectory/go.sum | 2 + service/cloudformation/api_client.go | 14 +- service/cloudformation/go.mod | 2 +- service/cloudformation/go.sum | 2 + service/cloudfront/api_client.go | 14 +- service/cloudfront/go.mod | 2 +- service/cloudfront/go.sum | 2 + service/cloudhsm/api_client.go | 14 +- service/cloudhsm/go.mod | 2 +- service/cloudhsm/go.sum | 2 + service/cloudhsmv2/api_client.go | 14 +- service/cloudhsmv2/go.mod | 2 +- service/cloudhsmv2/go.sum | 2 + service/cloudsearch/api_client.go | 14 +- service/cloudsearch/go.mod | 2 +- service/cloudsearch/go.sum | 2 + service/cloudsearchdomain/api_client.go | 14 +- service/cloudsearchdomain/go.mod | 2 +- service/cloudsearchdomain/go.sum | 2 + service/cloudtrail/api_client.go | 14 +- service/cloudtrail/go.mod | 2 +- service/cloudtrail/go.sum | 2 + service/cloudwatch/api_client.go | 14 +- service/cloudwatch/go.mod | 2 +- service/cloudwatch/go.sum | 2 + service/cloudwatchevents/api_client.go | 14 +- service/cloudwatchevents/go.mod | 2 +- service/cloudwatchevents/go.sum | 2 + service/cloudwatchlogs/api_client.go | 14 +- service/cloudwatchlogs/go.mod | 2 +- service/cloudwatchlogs/go.sum | 2 + service/codeartifact/api_client.go | 14 +- service/codeartifact/go.mod | 2 +- service/codeartifact/go.sum | 2 + service/codebuild/api_client.go | 14 +- service/codebuild/go.mod | 2 +- service/codebuild/go.sum | 2 + service/codecommit/api_client.go | 14 +- service/codecommit/go.mod | 2 +- service/codecommit/go.sum | 2 + service/codedeploy/api_client.go | 14 +- service/codedeploy/go.mod | 2 +- service/codedeploy/go.sum | 2 + service/codeguruprofiler/api_client.go | 14 +- service/codeguruprofiler/go.mod | 2 +- service/codeguruprofiler/go.sum | 2 + service/codegurureviewer/api_client.go | 14 +- service/codegurureviewer/go.mod | 2 +- service/codegurureviewer/go.sum | 2 + service/codepipeline/api_client.go | 14 +- service/codepipeline/go.mod | 2 +- service/codepipeline/go.sum | 2 + service/codestar/api_client.go | 14 +- service/codestar/go.mod | 2 +- service/codestar/go.sum | 2 + service/codestarconnections/api_client.go | 14 +- service/codestarconnections/go.mod | 2 +- service/codestarconnections/go.sum | 2 + service/codestarnotifications/api_client.go | 14 +- service/codestarnotifications/go.mod | 2 +- service/codestarnotifications/go.sum | 2 + service/cognitoidentity/api_client.go | 14 +- service/cognitoidentity/go.mod | 2 +- service/cognitoidentity/go.sum | 2 + service/cognitoidentityprovider/api_client.go | 14 +- service/cognitoidentityprovider/go.mod | 2 +- service/cognitoidentityprovider/go.sum | 2 + service/cognitosync/api_client.go | 14 +- service/cognitosync/go.mod | 2 +- service/cognitosync/go.sum | 2 + service/comprehend/api_client.go | 14 +- service/comprehend/go.mod | 2 +- service/comprehend/go.sum | 2 + service/comprehendmedical/api_client.go | 14 +- service/comprehendmedical/go.mod | 2 +- service/comprehendmedical/go.sum | 2 + service/computeoptimizer/api_client.go | 14 +- service/computeoptimizer/go.mod | 2 +- service/computeoptimizer/go.sum | 2 + service/configservice/api_client.go | 14 +- service/configservice/go.mod | 2 +- service/configservice/go.sum | 2 + service/connect/api_client.go | 14 +- service/connect/go.mod | 2 +- service/connect/go.sum | 2 + service/connectparticipant/api_client.go | 14 +- service/connectparticipant/go.mod | 2 +- service/connectparticipant/go.sum | 2 + .../costandusagereportservice/api_client.go | 14 +- service/costandusagereportservice/go.mod | 2 +- service/costandusagereportservice/go.sum | 2 + service/costexplorer/api_client.go | 14 +- service/costexplorer/go.mod | 2 +- service/costexplorer/go.sum | 2 + .../databasemigrationservice/api_client.go | 14 +- service/databasemigrationservice/go.mod | 2 +- service/databasemigrationservice/go.sum | 2 + service/databrew/api_client.go | 14 +- service/databrew/go.mod | 2 +- service/databrew/go.sum | 2 + service/dataexchange/api_client.go | 14 +- service/dataexchange/go.mod | 2 +- service/dataexchange/go.sum | 2 + service/datapipeline/api_client.go | 14 +- service/datapipeline/go.mod | 2 +- service/datapipeline/go.sum | 2 + service/datasync/api_client.go | 14 +- service/datasync/go.mod | 2 +- service/datasync/go.sum | 2 + service/dax/api_client.go | 14 +- service/dax/go.mod | 2 +- service/dax/go.sum | 2 + service/detective/api_client.go | 14 +- service/detective/go.mod | 2 +- service/detective/go.sum | 2 + service/devicefarm/api_client.go | 14 +- service/devicefarm/go.mod | 2 +- service/devicefarm/go.sum | 2 + service/directconnect/api_client.go | 14 +- service/directconnect/go.mod | 2 +- service/directconnect/go.sum | 2 + service/directoryservice/api_client.go | 14 +- service/directoryservice/go.mod | 2 +- service/directoryservice/go.sum | 2 + service/dlm/api_client.go | 14 +- service/dlm/go.mod | 2 +- service/dlm/go.sum | 2 + service/docdb/api_client.go | 14 +- service/docdb/go.mod | 2 +- service/docdb/go.sum | 2 + service/dynamodb/api_client.go | 14 +- service/dynamodb/go.mod | 2 +- service/dynamodb/go.sum | 2 + service/dynamodbstreams/api_client.go | 14 +- service/dynamodbstreams/go.mod | 2 +- service/dynamodbstreams/go.sum | 2 + service/ebs/api_client.go | 14 +- service/ebs/go.mod | 2 +- service/ebs/go.sum | 2 + service/ec2/api_client.go | 54 ++- service/ec2/api_op_CopySnapshot.go | 15 +- service/ec2/go.mod | 2 +- service/ec2/go.sum | 2 + service/ec2instanceconnect/api_client.go | 14 +- service/ec2instanceconnect/go.mod | 2 +- service/ec2instanceconnect/go.sum | 2 + service/ecr/api_client.go | 14 +- service/ecr/go.mod | 2 +- service/ecr/go.sum | 2 + service/ecs/api_client.go | 14 +- service/ecs/go.mod | 2 +- service/ecs/go.sum | 2 + service/efs/api_client.go | 14 +- service/efs/go.mod | 2 +- service/efs/go.sum | 2 + service/eks/api_client.go | 14 +- service/eks/go.mod | 2 +- service/eks/go.sum | 2 + service/elasticache/api_client.go | 14 +- service/elasticache/go.mod | 2 +- service/elasticache/go.sum | 2 + service/elasticbeanstalk/api_client.go | 14 +- service/elasticbeanstalk/go.mod | 2 +- service/elasticbeanstalk/go.sum | 2 + service/elasticinference/api_client.go | 14 +- service/elasticinference/go.mod | 2 +- service/elasticinference/go.sum | 2 + service/elasticloadbalancing/api_client.go | 14 +- service/elasticloadbalancing/go.mod | 2 +- service/elasticloadbalancing/go.sum | 2 + service/elasticloadbalancingv2/api_client.go | 14 +- service/elasticloadbalancingv2/go.mod | 2 +- service/elasticloadbalancingv2/go.sum | 2 + service/elasticsearchservice/api_client.go | 14 +- service/elasticsearchservice/go.mod | 2 +- service/elasticsearchservice/go.sum | 2 + service/elastictranscoder/api_client.go | 14 +- service/elastictranscoder/go.mod | 2 +- service/elastictranscoder/go.sum | 2 + service/emr/api_client.go | 14 +- service/emr/go.mod | 2 +- service/emr/go.sum | 2 + service/eventbridge/api_client.go | 14 +- service/eventbridge/go.mod | 2 +- service/eventbridge/go.sum | 2 + service/firehose/api_client.go | 14 +- service/firehose/go.mod | 2 +- service/firehose/go.sum | 2 + service/fms/api_client.go | 14 +- service/fms/go.mod | 2 +- service/fms/go.sum | 2 + service/forecast/api_client.go | 14 +- service/forecast/go.mod | 2 +- service/forecast/go.sum | 2 + service/forecastquery/api_client.go | 14 +- service/forecastquery/go.mod | 2 +- service/forecastquery/go.sum | 2 + service/frauddetector/api_client.go | 14 +- service/frauddetector/go.mod | 2 +- service/frauddetector/go.sum | 2 + service/fsx/api_client.go | 14 +- service/fsx/go.mod | 2 +- service/fsx/go.sum | 2 + service/gamelift/api_client.go | 14 +- service/gamelift/go.mod | 2 +- service/gamelift/go.sum | 2 + service/glacier/api_client.go | 14 +- service/glacier/go.mod | 2 +- service/glacier/go.sum | 2 + service/globalaccelerator/api_client.go | 14 +- service/globalaccelerator/go.mod | 2 +- service/globalaccelerator/go.sum | 2 + service/glue/api_client.go | 14 +- service/glue/go.mod | 2 +- service/glue/go.sum | 2 + service/greengrass/api_client.go | 14 +- service/greengrass/go.mod | 2 +- service/greengrass/go.sum | 2 + service/groundstation/api_client.go | 14 +- service/groundstation/go.mod | 2 +- service/groundstation/go.sum | 2 + service/guardduty/api_client.go | 14 +- service/guardduty/go.mod | 2 +- service/guardduty/go.sum | 2 + service/health/api_client.go | 14 +- service/health/go.mod | 2 +- service/health/go.sum | 2 + service/honeycode/api_client.go | 14 +- service/honeycode/go.mod | 2 +- service/honeycode/go.sum | 2 + service/iam/api_client.go | 14 +- service/iam/go.mod | 2 +- service/iam/go.sum | 2 + service/identitystore/api_client.go | 14 +- service/identitystore/go.mod | 2 +- service/identitystore/go.sum | 2 + service/imagebuilder/api_client.go | 14 +- service/imagebuilder/go.mod | 2 +- service/imagebuilder/go.sum | 2 + service/inspector/api_client.go | 14 +- service/inspector/go.mod | 2 +- service/inspector/go.sum | 2 + service/internal/benchmark/go.mod | 2 +- service/internal/benchmark/go.sum | 2 + service/internal/integrationtest/go.mod | 2 +- service/internal/integrationtest/go.sum | 2 + service/iot/api_client.go | 14 +- service/iot/go.mod | 2 +- service/iot/go.sum | 2 + service/iot1clickdevicesservice/api_client.go | 14 +- service/iot1clickdevicesservice/go.mod | 2 +- service/iot1clickdevicesservice/go.sum | 2 + service/iot1clickprojects/api_client.go | 14 +- service/iot1clickprojects/go.mod | 2 +- service/iot1clickprojects/go.sum | 2 + service/iotanalytics/api_client.go | 14 +- service/iotanalytics/go.mod | 2 +- service/iotanalytics/go.sum | 2 + service/iotdataplane/api_client.go | 14 +- service/iotdataplane/go.mod | 2 +- service/iotdataplane/go.sum | 2 + service/iotevents/api_client.go | 14 +- service/iotevents/go.mod | 2 +- service/iotevents/go.sum | 2 + service/ioteventsdata/api_client.go | 14 +- service/ioteventsdata/go.mod | 2 +- service/ioteventsdata/go.sum | 2 + service/iotjobsdataplane/api_client.go | 14 +- service/iotjobsdataplane/go.mod | 2 +- service/iotjobsdataplane/go.sum | 2 + service/iotsecuretunneling/api_client.go | 14 +- service/iotsecuretunneling/go.mod | 2 +- service/iotsecuretunneling/go.sum | 2 + service/iotsitewise/api_client.go | 14 +- service/iotsitewise/go.mod | 2 +- service/iotsitewise/go.sum | 2 + service/iotthingsgraph/api_client.go | 14 +- service/iotthingsgraph/go.mod | 2 +- service/iotthingsgraph/go.sum | 2 + service/ivs/api_client.go | 14 +- service/ivs/go.mod | 2 +- service/ivs/go.sum | 2 + service/kafka/api_client.go | 14 +- service/kafka/go.mod | 2 +- service/kafka/go.sum | 2 + service/kendra/api_client.go | 14 +- service/kendra/go.mod | 2 +- service/kendra/go.sum | 2 + service/kinesis/api_client.go | 14 +- service/kinesis/go.mod | 2 +- service/kinesis/go.sum | 2 + service/kinesisanalytics/api_client.go | 14 +- service/kinesisanalytics/go.mod | 2 +- service/kinesisanalytics/go.sum | 2 + service/kinesisanalyticsv2/api_client.go | 14 +- service/kinesisanalyticsv2/go.mod | 2 +- service/kinesisanalyticsv2/go.sum | 2 + service/kinesisvideo/api_client.go | 14 +- service/kinesisvideo/go.mod | 2 +- service/kinesisvideo/go.sum | 2 + .../kinesisvideoarchivedmedia/api_client.go | 14 +- service/kinesisvideoarchivedmedia/go.mod | 2 +- service/kinesisvideoarchivedmedia/go.sum | 2 + service/kinesisvideomedia/api_client.go | 14 +- service/kinesisvideomedia/go.mod | 2 +- service/kinesisvideomedia/go.sum | 2 + service/kinesisvideosignaling/api_client.go | 14 +- service/kinesisvideosignaling/go.mod | 2 +- service/kinesisvideosignaling/go.sum | 2 + service/kms/api_client.go | 14 +- service/kms/go.mod | 2 +- service/kms/go.sum | 2 + service/lakeformation/api_client.go | 14 +- service/lakeformation/go.mod | 2 +- service/lakeformation/go.sum | 2 + service/lambda/api_client.go | 14 +- service/lambda/go.mod | 2 +- service/lambda/go.sum | 2 + service/lexmodelbuildingservice/api_client.go | 14 +- service/lexmodelbuildingservice/go.mod | 2 +- service/lexmodelbuildingservice/go.sum | 2 + service/lexruntimeservice/api_client.go | 14 +- service/lexruntimeservice/go.mod | 2 +- service/lexruntimeservice/go.sum | 2 + service/licensemanager/api_client.go | 14 +- service/licensemanager/go.mod | 2 +- service/licensemanager/go.sum | 2 + service/lightsail/api_client.go | 14 +- service/lightsail/go.mod | 2 +- service/lightsail/go.sum | 2 + service/machinelearning/api_client.go | 14 +- service/machinelearning/go.mod | 2 +- service/machinelearning/go.sum | 2 + service/macie/api_client.go | 14 +- service/macie/go.mod | 2 +- service/macie/go.sum | 2 + service/macie2/api_client.go | 14 +- service/macie2/go.mod | 2 +- service/macie2/go.sum | 2 + service/managedblockchain/api_client.go | 14 +- service/managedblockchain/go.mod | 2 +- service/managedblockchain/go.sum | 2 + service/marketplacecatalog/api_client.go | 14 +- service/marketplacecatalog/go.mod | 2 +- service/marketplacecatalog/go.sum | 2 + .../api_client.go | 14 +- service/marketplacecommerceanalytics/go.mod | 2 +- service/marketplacecommerceanalytics/go.sum | 2 + .../api_client.go | 14 +- service/marketplaceentitlementservice/go.mod | 2 +- service/marketplaceentitlementservice/go.sum | 2 + service/marketplacemetering/api_client.go | 14 +- service/marketplacemetering/go.mod | 2 +- service/marketplacemetering/go.sum | 2 + service/mediaconnect/api_client.go | 14 +- service/mediaconnect/go.mod | 2 +- service/mediaconnect/go.sum | 2 + service/mediaconvert/api_client.go | 14 +- service/mediaconvert/go.mod | 2 +- service/mediaconvert/go.sum | 2 + service/medialive/api_client.go | 14 +- service/medialive/go.mod | 2 +- service/medialive/go.sum | 2 + service/mediapackage/api_client.go | 14 +- service/mediapackage/go.mod | 2 +- service/mediapackage/go.sum | 2 + service/mediapackagevod/api_client.go | 14 +- service/mediapackagevod/go.mod | 2 +- service/mediapackagevod/go.sum | 2 + service/mediastore/api_client.go | 14 +- service/mediastore/go.mod | 2 +- service/mediastore/go.sum | 2 + service/mediastoredata/api_client.go | 14 +- service/mediastoredata/go.mod | 2 +- service/mediastoredata/go.sum | 2 + service/mediatailor/api_client.go | 14 +- service/mediatailor/go.mod | 2 +- service/mediatailor/go.sum | 2 + service/migrationhub/api_client.go | 14 +- service/migrationhub/go.mod | 2 +- service/migrationhub/go.sum | 2 + service/migrationhubconfig/api_client.go | 14 +- service/migrationhubconfig/go.mod | 2 +- service/migrationhubconfig/go.sum | 2 + service/mobile/api_client.go | 14 +- service/mobile/go.mod | 2 +- service/mobile/go.sum | 2 + service/mq/api_client.go | 14 +- service/mq/go.mod | 2 +- service/mq/go.sum | 2 + service/mturk/api_client.go | 14 +- service/mturk/go.mod | 2 +- service/mturk/go.sum | 2 + service/neptune/api_client.go | 14 +- service/neptune/go.mod | 2 +- service/neptune/go.sum | 2 + service/networkfirewall/api_client.go | 14 +- service/networkfirewall/go.mod | 2 +- service/networkfirewall/go.sum | 2 + service/networkmanager/api_client.go | 14 +- service/networkmanager/go.mod | 2 +- service/networkmanager/go.sum | 2 + service/opsworks/api_client.go | 14 +- service/opsworks/go.mod | 2 +- service/opsworks/go.sum | 2 + service/opsworkscm/api_client.go | 14 +- service/opsworkscm/go.mod | 2 +- service/opsworkscm/go.sum | 2 + service/organizations/api_client.go | 14 +- service/organizations/go.mod | 2 +- service/organizations/go.sum | 2 + service/outposts/api_client.go | 14 +- service/outposts/go.mod | 2 +- service/outposts/go.sum | 2 + service/personalize/api_client.go | 14 +- service/personalize/go.mod | 2 +- service/personalize/go.sum | 2 + service/personalizeevents/api_client.go | 14 +- service/personalizeevents/go.mod | 2 +- service/personalizeevents/go.sum | 2 + service/personalizeruntime/api_client.go | 14 +- service/personalizeruntime/go.mod | 2 +- service/personalizeruntime/go.sum | 2 + service/pi/api_client.go | 14 +- service/pi/go.mod | 2 +- service/pi/go.sum | 2 + service/pinpoint/api_client.go | 14 +- service/pinpoint/go.mod | 2 +- service/pinpoint/go.sum | 2 + service/pinpointemail/api_client.go | 14 +- service/pinpointemail/go.mod | 2 +- service/pinpointemail/go.sum | 2 + service/pinpointsmsvoice/api_client.go | 14 +- service/pinpointsmsvoice/go.mod | 2 +- service/pinpointsmsvoice/go.sum | 2 + service/polly/api_client.go | 14 +- service/polly/go.mod | 2 +- service/polly/go.sum | 2 + service/pricing/api_client.go | 14 +- service/pricing/go.mod | 2 +- service/pricing/go.sum | 2 + service/qldb/api_client.go | 14 +- service/qldb/go.mod | 2 +- service/qldb/go.sum | 2 + service/qldbsession/api_client.go | 14 +- service/qldbsession/go.mod | 2 +- service/qldbsession/go.sum | 2 + service/quicksight/api_client.go | 14 +- service/quicksight/go.mod | 2 +- service/quicksight/go.sum | 2 + service/ram/api_client.go | 14 +- service/ram/go.mod | 2 +- service/ram/go.sum | 2 + service/rds/api_client.go | 54 ++- service/rds/api_op_CopyDBClusterSnapshot.go | 15 +- service/rds/api_op_CopyDBSnapshot.go | 15 +- service/rds/api_op_CreateDBCluster.go | 15 +- .../rds/api_op_CreateDBInstanceReadReplica.go | 15 +- service/rds/go.mod | 2 +- service/rds/go.sum | 2 + service/rdsdata/api_client.go | 14 +- service/rdsdata/go.mod | 2 +- service/rdsdata/go.sum | 2 + service/redshift/api_client.go | 14 +- service/redshift/go.mod | 2 +- service/redshift/go.sum | 2 + service/redshiftdata/api_client.go | 14 +- service/redshiftdata/go.mod | 2 +- service/redshiftdata/go.sum | 2 + service/rekognition/api_client.go | 14 +- service/rekognition/go.mod | 2 +- service/rekognition/go.sum | 2 + service/resourcegroups/api_client.go | 14 +- service/resourcegroups/go.mod | 2 +- service/resourcegroups/go.sum | 2 + .../resourcegroupstaggingapi/api_client.go | 14 +- service/resourcegroupstaggingapi/go.mod | 2 +- service/resourcegroupstaggingapi/go.sum | 2 + service/robomaker/api_client.go | 14 +- service/robomaker/go.mod | 2 +- service/robomaker/go.sum | 2 + service/route53/api_client.go | 14 +- service/route53/go.mod | 2 +- service/route53/go.sum | 2 + service/route53domains/api_client.go | 14 +- service/route53domains/go.mod | 2 +- service/route53domains/go.sum | 2 + service/route53resolver/api_client.go | 14 +- service/route53resolver/go.mod | 2 +- service/route53resolver/go.sum | 2 + service/s3/go.mod | 9 + service/s3/go.sum | 2 + service/s3/internal/configtesting/go.sum | 2 + service/s3control/api_client.go | 14 +- service/s3control/go.mod | 2 +- service/s3control/go.sum | 2 + service/s3outposts/api_client.go | 14 +- service/s3outposts/go.mod | 2 +- service/s3outposts/go.sum | 2 + service/sagemaker/api_client.go | 14 +- service/sagemaker/go.mod | 2 +- service/sagemaker/go.sum | 2 + service/sagemakera2iruntime/api_client.go | 14 +- service/sagemakera2iruntime/go.mod | 2 +- service/sagemakera2iruntime/go.sum | 2 + service/sagemakerruntime/api_client.go | 14 +- service/sagemakerruntime/go.mod | 2 +- service/sagemakerruntime/go.sum | 2 + service/savingsplans/api_client.go | 14 +- service/savingsplans/go.mod | 2 +- service/savingsplans/go.sum | 2 + service/schemas/api_client.go | 14 +- service/schemas/go.mod | 2 +- service/schemas/go.sum | 2 + service/secretsmanager/api_client.go | 14 +- service/secretsmanager/go.mod | 2 +- service/secretsmanager/go.sum | 2 + service/securityhub/api_client.go | 14 +- service/securityhub/go.mod | 2 +- service/securityhub/go.sum | 2 + .../api_client.go | 14 +- .../serverlessapplicationrepository/go.mod | 2 +- .../serverlessapplicationrepository/go.sum | 2 + service/servicecatalog/api_client.go | 14 +- service/servicecatalog/go.mod | 2 +- service/servicecatalog/go.sum | 2 + .../servicecatalogappregistry/api_client.go | 14 +- service/servicecatalogappregistry/go.mod | 2 +- service/servicecatalogappregistry/go.sum | 2 + service/servicediscovery/api_client.go | 14 +- service/servicediscovery/go.mod | 2 +- service/servicediscovery/go.sum | 2 + service/servicequotas/api_client.go | 14 +- service/servicequotas/go.mod | 2 +- service/servicequotas/go.sum | 2 + service/ses/api_client.go | 14 +- service/ses/go.mod | 2 +- service/ses/go.sum | 2 + service/sesv2/api_client.go | 14 +- service/sesv2/go.mod | 2 +- service/sesv2/go.sum | 2 + service/sfn/api_client.go | 14 +- service/sfn/go.mod | 2 +- service/sfn/go.sum | 2 + service/shield/api_client.go | 14 +- service/shield/go.mod | 2 +- service/shield/go.sum | 2 + service/signer/api_client.go | 14 +- service/signer/go.mod | 2 +- service/signer/go.sum | 2 + service/sms/api_client.go | 14 +- service/sms/go.mod | 2 +- service/sms/go.sum | 2 + service/snowball/api_client.go | 14 +- service/snowball/go.mod | 2 +- service/snowball/go.sum | 2 + service/sns/api_client.go | 14 +- service/sns/go.mod | 2 +- service/sns/go.sum | 2 + service/sqs/api_client.go | 14 +- service/sqs/go.mod | 2 +- service/sqs/go.sum | 2 + service/ssm/api_client.go | 14 +- service/ssm/go.mod | 2 +- service/ssm/go.sum | 2 + service/sso/api_client.go | 14 +- service/sso/go.mod | 2 +- service/sso/go.sum | 2 + service/ssoadmin/api_client.go | 14 +- service/ssoadmin/go.mod | 2 +- service/ssoadmin/go.sum | 2 + service/ssooidc/api_client.go | 14 +- service/ssooidc/go.mod | 2 +- service/ssooidc/go.sum | 2 + service/storagegateway/api_client.go | 14 +- service/storagegateway/go.mod | 2 +- service/storagegateway/go.sum | 2 + service/sts/api_client.go | 14 +- service/sts/go.mod | 2 +- service/sts/go.sum | 2 + service/support/api_client.go | 14 +- service/support/go.mod | 2 +- service/support/go.sum | 2 + service/swf/api_client.go | 14 +- service/swf/go.mod | 2 +- service/swf/go.sum | 2 + service/synthetics/api_client.go | 14 +- service/synthetics/go.mod | 2 +- service/synthetics/go.sum | 2 + service/textract/api_client.go | 14 +- service/textract/go.mod | 2 +- service/textract/go.sum | 2 + service/timestreamquery/api_client.go | 14 +- service/timestreamquery/go.mod | 2 +- service/timestreamquery/go.sum | 2 + service/timestreamwrite/api_client.go | 14 +- service/timestreamwrite/go.mod | 2 +- service/timestreamwrite/go.sum | 2 + service/transcribe/api_client.go | 14 +- service/transcribe/go.mod | 2 +- service/transcribe/go.sum | 2 + service/transfer/api_client.go | 14 +- service/transfer/go.mod | 2 +- service/transfer/go.sum | 2 + service/translate/api_client.go | 14 +- service/translate/go.mod | 2 +- service/translate/go.sum | 2 + service/waf/api_client.go | 14 +- service/waf/go.mod | 2 +- service/waf/go.sum | 2 + service/wafregional/api_client.go | 14 +- service/wafregional/go.mod | 2 +- service/wafregional/go.sum | 2 + service/wafv2/api_client.go | 14 +- service/wafv2/go.mod | 2 +- service/wafv2/go.sum | 2 + service/workdocs/api_client.go | 14 +- service/workdocs/go.mod | 2 +- service/workdocs/go.sum | 2 + service/worklink/api_client.go | 14 +- service/worklink/go.mod | 2 +- service/worklink/go.sum | 2 + service/workmail/api_client.go | 14 +- service/workmail/go.mod | 2 +- service/workmail/go.sum | 2 + service/workmailmessageflow/api_client.go | 14 +- service/workmailmessageflow/go.mod | 2 +- service/workmailmessageflow/go.sum | 2 + service/workspaces/api_client.go | 14 +- service/workspaces/go.mod | 2 +- service/workspaces/go.sum | 2 + service/xray/api_client.go | 14 +- service/xray/go.mod | 2 +- service/xray/go.sum | 2 + 754 files changed, 4354 insertions(+), 1759 deletions(-) create mode 100644 internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace.go create mode 100644 internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace_test.go create mode 100644 internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace.go create mode 100644 internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace_test.go diff --git a/config/go.mod b/config/go.mod index 7204372be48..882a1883daa 100644 --- a/config/go.mod +++ b/config/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/credentials v0.1.5 github.com/aws/aws-sdk-go-v2/ec2imds v0.1.5 github.com/aws/aws-sdk-go-v2/service/sts v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace ( diff --git a/config/go.sum b/config/go.sum index 538fe70cee4..10e18add44e 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/credentials/go.mod b/credentials/go.mod index 3a4763a0928..c87b853d94e 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/ec2imds v0.1.5 github.com/aws/aws-sdk-go-v2/service/sts v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace ( diff --git a/credentials/go.sum b/credentials/go.sum index 2bd1bdc5706..9840d0ab26c 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 73c7a3a026f..b25721de9e0 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/config v0.3.0 github.com/aws/aws-sdk-go-v2/service/s3 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index f246ce8504c..76448b33104 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index fcbb8bb9a57..60233df1fb6 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/ec2query/api_op_XmlEmptyBlobs_test.go b/internal/protocoltest/ec2query/api_op_XmlEmptyBlobs_test.go index 09ba3699c7a..7f80500fe1c 100644 --- a/internal/protocoltest/ec2query/api_op_XmlEmptyBlobs_test.go +++ b/internal/protocoltest/ec2query/api_op_XmlEmptyBlobs_test.go @@ -31,10 +31,10 @@ func TestClient_XmlEmptyBlobs_awsEc2queryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml;charset=UTF-8"}, }, BodyMediaType: "application/xml", - Body: []byte(` + Body: []byte(` requestid - + `), ExpectResult: &XmlEmptyBlobsOutput{ Data: []byte(""), @@ -47,10 +47,10 @@ func TestClient_XmlEmptyBlobs_awsEc2queryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml;charset=UTF-8"}, }, BodyMediaType: "application/xml", - Body: []byte(` + Body: []byte(` requestid - + `), ExpectResult: &XmlEmptyBlobsOutput{ Data: []byte(""), diff --git a/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go b/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go index 8a4af9d48d9..f1d316b99a8 100644 --- a/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go +++ b/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go @@ -38,6 +38,10 @@ type XmlEmptyListsOutput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. diff --git a/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go b/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go index e24af57225a..826a1ba14a4 100644 --- a/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go +++ b/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go @@ -31,10 +31,10 @@ func TestClient_XmlEmptyLists_awsEc2queryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml"}, }, BodyMediaType: "application/xml", - Body: []byte(` + Body: []byte(` - + `), ExpectResult: &XmlEmptyListsOutput{ StringList: []string{}, diff --git a/internal/protocoltest/ec2query/api_op_XmlLists.go b/internal/protocoltest/ec2query/api_op_XmlLists.go index 08f6eec5724..8d70d5a2ca8 100644 --- a/internal/protocoltest/ec2query/api_op_XmlLists.go +++ b/internal/protocoltest/ec2query/api_op_XmlLists.go @@ -28,7 +28,10 @@ import ( // * Flattened XML // lists with @xmlName. // -// * Lists of structures. +// * Flattened XML lists with @xmlNamespace. +// +// * Lists of +// structures. func (c *Client) XmlLists(ctx context.Context, params *XmlListsInput, optFns ...func(*Options)) (*XmlListsOutput, error) { if params == nil { params = &XmlListsInput{} @@ -56,6 +59,10 @@ type XmlListsOutput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. diff --git a/internal/protocoltest/ec2query/api_op_XmlLists_test.go b/internal/protocoltest/ec2query/api_op_XmlLists_test.go index c410cc1f9d2..01ff43c2abb 100644 --- a/internal/protocoltest/ec2query/api_op_XmlLists_test.go +++ b/internal/protocoltest/ec2query/api_op_XmlLists_test.go @@ -78,6 +78,10 @@ func TestClient_XmlLists_awsEc2queryDeserialize(t *testing.T) { bye yep nope + a + b + a + b 1 @@ -138,6 +142,14 @@ func TestClient_XmlLists_awsEc2queryDeserialize(t *testing.T) { "yep", "nope", }, + FlattenedListWithMemberNamespace: []string{ + "a", + "b", + }, + FlattenedListWithNamespace: []string{ + "a", + "b", + }, StructureList: []types.StructureListMember{ { A: ptr.String("1"), diff --git a/internal/protocoltest/ec2query/deserializers.go b/internal/protocoltest/ec2query/deserializers.go index 7ec7ce04046..f71faa1c4a4 100644 --- a/internal/protocoltest/ec2query/deserializers.go +++ b/internal/protocoltest/ec2query/deserializers.go @@ -1884,6 +1884,158 @@ func awsEc2query_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, d return nil } +func awsEc2query_deserializeDocumentListWithMemberNamespace(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + for { + if strings.EqualFold("member", t.Name.Local) { + var col string + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + } else { + break + } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentListWithMemberNamespaceUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentListWithNamespace(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + for { + if strings.EqualFold("member", t.Name.Local) { + var col string + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + } else { + break + } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentListWithNamespaceUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentRecursiveXmlShapesOutputNested1(v **types.RecursiveXmlShapesOutputNested1, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -3734,6 +3886,18 @@ func awsEc2query_deserializeOpDocumentXmlEmptyListsOutput(v **XmlEmptyListsOutpu return err } + case strings.EqualFold("flattenedListWithMemberNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentListWithMemberNamespaceUnwrapped(&sv.FlattenedListWithMemberNamespace, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flattenedListWithNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentListWithNamespaceUnwrapped(&sv.FlattenedListWithNamespace, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("integerList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentIntegerList(&sv.IntegerList, nodeDecoder); err != nil { @@ -3921,6 +4085,18 @@ func awsEc2query_deserializeOpDocumentXmlListsOutput(v **XmlListsOutput, decoder return err } + case strings.EqualFold("flattenedListWithMemberNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentListWithMemberNamespaceUnwrapped(&sv.FlattenedListWithMemberNamespace, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flattenedListWithNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentListWithNamespaceUnwrapped(&sv.FlattenedListWithNamespace, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("integerList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentIntegerList(&sv.IntegerList, nodeDecoder); err != nil { diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index 102e37b5966..6f9e228d7f6 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/jsonrpc/api_client.go b/internal/protocoltest/jsonrpc/api_client.go index 952cc031cda..699c407a378 100644 --- a/internal/protocoltest/jsonrpc/api_client.go +++ b/internal/protocoltest/jsonrpc/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index fb9a0b138ad..78771fa6d78 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index 95f30242aad..6f130372ecf 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace.go b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace.go new file mode 100644 index 00000000000..445e82610ec --- /dev/null +++ b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace.go @@ -0,0 +1,95 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package query + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/awslabs/smithy-go/middleware" + smithyhttp "github.com/awslabs/smithy-go/transport/http" +) + +// Flattened maps with @xmlNamespace and @xmlName +func (c *Client) FlattenedXmlMapWithXmlNamespace(ctx context.Context, params *FlattenedXmlMapWithXmlNamespaceInput, optFns ...func(*Options)) (*FlattenedXmlMapWithXmlNamespaceOutput, error) { + if params == nil { + params = &FlattenedXmlMapWithXmlNamespaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "FlattenedXmlMapWithXmlNamespace", params, optFns, addOperationFlattenedXmlMapWithXmlNamespaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*FlattenedXmlMapWithXmlNamespaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type FlattenedXmlMapWithXmlNamespaceInput struct { +} + +type FlattenedXmlMapWithXmlNamespaceOutput struct { + MyMap map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationFlattenedXmlMapWithXmlNamespaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsquery_serializeOpFlattenedXmlMapWithXmlNamespace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpFlattenedXmlMapWithXmlNamespace{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddAttemptClockSkewMiddleware(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opFlattenedXmlMapWithXmlNamespace(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opFlattenedXmlMapWithXmlNamespace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "FlattenedXmlMapWithXmlNamespace", + } +} diff --git a/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace_test.go b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace_test.go new file mode 100644 index 00000000000..1db8c758653 --- /dev/null +++ b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlNamespace_test.go @@ -0,0 +1,110 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package query + +import ( + "bytes" + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/awslabs/smithy-go/middleware" + smithyrand "github.com/awslabs/smithy-go/rand" + smithytesting "github.com/awslabs/smithy-go/testing" + smithyhttp "github.com/awslabs/smithy-go/transport/http" + "github.com/google/go-cmp/cmp/cmpopts" + "io/ioutil" + "net/http" + "testing" +) + +func TestClient_FlattenedXmlMapWithXmlNamespace_awsAwsqueryDeserialize(t *testing.T) { + cases := map[string]struct { + StatusCode int + Header http.Header + BodyMediaType string + Body []byte + ExpectResult *FlattenedXmlMapWithXmlNamespaceOutput + }{ + // Serializes flattened XML maps in responses that have xmlNamespace and xmlName on + // members + "QueryQueryFlattenedXmlMapWithXmlNamespace": { + StatusCode: 200, + Header: http.Header{ + "Content-Type": []string{"text/xml"}, + }, + BodyMediaType: "application/xml", + Body: []byte(` + + + a + A + + + b + B + + + `), + ExpectResult: &FlattenedXmlMapWithXmlNamespaceOutput{ + MyMap: map[string]string{ + "a": "A", + "b": "B", + }, + }, + }, + } + for name, c := range cases { + t.Run(name, func(t *testing.T) { + url := "http://localhost:8888/" + client := New(Options{ + HTTPClient: smithyhttp.ClientDoFunc(func(r *http.Request) (*http.Response, error) { + headers := http.Header{} + for k, vs := range c.Header { + for _, v := range vs { + headers.Add(k, v) + } + } + if len(c.BodyMediaType) != 0 && len(headers.Values("Content-Type")) == 0 { + headers.Set("Content-Type", c.BodyMediaType) + } + response := &http.Response{ + StatusCode: c.StatusCode, + Header: headers, + Request: r, + } + if len(c.Body) != 0 { + response.ContentLength = int64(len(c.Body)) + response.Body = ioutil.NopCloser(bytes.NewReader(c.Body)) + } else { + + response.Body = http.NoBody + } + return response, nil + }), + APIOptions: []func(*middleware.Stack) error{ + func(s *middleware.Stack) error { + s.Finalize.Clear() + return nil + }, + }, + EndpointResolver: EndpointResolverFunc(func(region string, options EndpointResolverOptions) (e aws.Endpoint, err error) { + e.URL = url + e.SigningRegion = "us-west-2" + return e, err + }), + IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), + Region: "us-west-2", + }) + var params FlattenedXmlMapWithXmlNamespaceInput + result, err := client.FlattenedXmlMapWithXmlNamespace(context.Background(), ¶ms) + if err != nil { + t.Fatalf("expect nil err, got %v", err) + } + if result == nil { + t.Fatalf("expect not nil result") + } + if err := smithytesting.CompareValues(c.ExpectResult, result, cmpopts.IgnoreUnexported(middleware.Metadata{})); err != nil { + t.Errorf("expect c.ExpectResult value match:\n%v", err) + } + }) + } +} diff --git a/internal/protocoltest/query/api_op_XmlEmptyBlobs_test.go b/internal/protocoltest/query/api_op_XmlEmptyBlobs_test.go index 42039f3aced..d6646f4ff69 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyBlobs_test.go +++ b/internal/protocoltest/query/api_op_XmlEmptyBlobs_test.go @@ -31,11 +31,11 @@ func TestClient_XmlEmptyBlobs_awsAwsqueryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml"}, }, BodyMediaType: "application/xml", - Body: []byte(` - + Body: []byte(` + - - + + `), ExpectResult: &XmlEmptyBlobsOutput{ Data: []byte(""), @@ -48,11 +48,11 @@ func TestClient_XmlEmptyBlobs_awsAwsqueryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml"}, }, BodyMediaType: "application/xml", - Body: []byte(` - + Body: []byte(` + - - + + `), ExpectResult: &XmlEmptyBlobsOutput{ Data: []byte(""), diff --git a/internal/protocoltest/query/api_op_XmlEmptyLists.go b/internal/protocoltest/query/api_op_XmlEmptyLists.go index 3411841bcce..55256013b7a 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyLists.go +++ b/internal/protocoltest/query/api_op_XmlEmptyLists.go @@ -38,6 +38,10 @@ type XmlEmptyListsOutput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. diff --git a/internal/protocoltest/query/api_op_XmlEmptyLists_test.go b/internal/protocoltest/query/api_op_XmlEmptyLists_test.go index dd740155bf4..d7725c3463a 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyLists_test.go +++ b/internal/protocoltest/query/api_op_XmlEmptyLists_test.go @@ -31,12 +31,12 @@ func TestClient_XmlEmptyLists_awsAwsqueryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml"}, }, BodyMediaType: "application/xml", - Body: []byte(` - + Body: []byte(` + - - + + `), ExpectResult: &XmlEmptyListsOutput{ StringList: []string{}, diff --git a/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go b/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go index aad513a1dab..faa38fbac29 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go +++ b/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go @@ -32,12 +32,12 @@ func TestClient_XmlEmptyMaps_awsAwsqueryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml"}, }, BodyMediaType: "application/xml", - Body: []byte(` - + Body: []byte(` + - - + + `), ExpectResult: &XmlEmptyMapsOutput{ MyMap: map[string]types.GreetingStruct{}, @@ -50,11 +50,11 @@ func TestClient_XmlEmptyMaps_awsAwsqueryDeserialize(t *testing.T) { "Content-Type": []string{"text/xml"}, }, BodyMediaType: "application/xml", - Body: []byte(` - + Body: []byte(` + - - + + `), ExpectResult: &XmlEmptyMapsOutput{ MyMap: map[string]types.GreetingStruct{}, diff --git a/internal/protocoltest/query/api_op_XmlLists.go b/internal/protocoltest/query/api_op_XmlLists.go index f64255cc830..6cc2f610145 100644 --- a/internal/protocoltest/query/api_op_XmlLists.go +++ b/internal/protocoltest/query/api_op_XmlLists.go @@ -56,6 +56,10 @@ type XmlListsOutput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. diff --git a/internal/protocoltest/query/api_op_XmlLists_test.go b/internal/protocoltest/query/api_op_XmlLists_test.go index bd15562ac34..512cb45d702 100644 --- a/internal/protocoltest/query/api_op_XmlLists_test.go +++ b/internal/protocoltest/query/api_op_XmlLists_test.go @@ -79,6 +79,10 @@ func TestClient_XmlLists_awsAwsqueryDeserialize(t *testing.T) { bye yep nope + a + b + a + b 1 @@ -139,6 +143,14 @@ func TestClient_XmlLists_awsAwsqueryDeserialize(t *testing.T) { "yep", "nope", }, + FlattenedListWithMemberNamespace: []string{ + "a", + "b", + }, + FlattenedListWithNamespace: []string{ + "a", + "b", + }, StructureList: []types.StructureListMember{ { A: ptr.String("1"), diff --git a/internal/protocoltest/query/deserializers.go b/internal/protocoltest/query/deserializers.go index 42f0a4edaa1..d76161bb51c 100644 --- a/internal/protocoltest/query/deserializers.go +++ b/internal/protocoltest/query/deserializers.go @@ -303,6 +303,99 @@ func awsAwsquery_deserializeOpErrorFlattenedXmlMapWithXmlName(response *smithyht } } +type awsAwsquery_deserializeOpFlattenedXmlMapWithXmlNamespace struct { +} + +func (*awsAwsquery_deserializeOpFlattenedXmlMapWithXmlNamespace) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpFlattenedXmlMapWithXmlNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorFlattenedXmlMapWithXmlNamespace(response, &metadata) + } + output := &FlattenedXmlMapWithXmlNamespaceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsAwsquery_deserializeOpDocumentFlattenedXmlMapWithXmlNamespaceOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorFlattenedXmlMapWithXmlNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpGreetingWithErrors struct { } @@ -2607,6 +2700,90 @@ func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMapUnwrapped *v = sv return nil } +func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv map[string]string + if *v == nil { + sv = make(map[string]string, 0) + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + if strings.EqualFold("entry", t.Name.Local) { + entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMapUnwrapped(&sv, entryDecoder); err != nil { + return err + } + } + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string + if *v == nil { + sv = make(map[string]string, 0) + } else { + sv = *v + } + + var ek string + var ev string + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + sv[ek] = ev + break + } + switch { + case strings.EqualFold("K", t.Name.Local): + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + ek = xtv + } + + case strings.EqualFold("V", t.Name.Local): + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + ev = xtv + } + + default: + // Do nothing and ignore the unexpected tag element + + } + } + *v = sv + return nil +} func awsAwsquery_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2655,6 +2832,158 @@ func awsAwsquery_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, d return nil } +func awsAwsquery_deserializeDocumentListWithMemberNamespace(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + for { + if strings.EqualFold("member", t.Name.Local) { + var col string + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + } else { + break + } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentListWithMemberNamespaceUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentListWithNamespace(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + for { + if strings.EqualFold("member", t.Name.Local) { + var col string + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + } else { + break + } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentListWithNamespaceUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsAwsquery_deserializeDocumentRecursiveXmlShapesOutputNested1(v **types.RecursiveXmlShapesOutputNested1, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -4113,6 +4442,44 @@ func awsAwsquery_deserializeOpDocumentFlattenedXmlMapWithXmlNameOutput(v **Flatt return nil } +func awsAwsquery_deserializeOpDocumentFlattenedXmlMapWithXmlNamespaceOutput(v **FlattenedXmlMapWithXmlNamespaceOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *FlattenedXmlMapWithXmlNamespaceOutput + if *v == nil { + sv = &FlattenedXmlMapWithXmlNamespaceOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("KVP", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMapUnwrapped(&sv.MyMap, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeOpDocumentGreetingWithErrorsOutput(v **GreetingWithErrorsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -4853,6 +5220,18 @@ func awsAwsquery_deserializeOpDocumentXmlEmptyListsOutput(v **XmlEmptyListsOutpu return err } + case strings.EqualFold("flattenedListWithMemberNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentListWithMemberNamespaceUnwrapped(&sv.FlattenedListWithMemberNamespace, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flattenedListWithNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentListWithNamespaceUnwrapped(&sv.FlattenedListWithNamespace, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("integerList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentIntegerList(&sv.IntegerList, nodeDecoder); err != nil { @@ -5078,6 +5457,18 @@ func awsAwsquery_deserializeOpDocumentXmlListsOutput(v **XmlListsOutput, decoder return err } + case strings.EqualFold("flattenedListWithMemberNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentListWithMemberNamespaceUnwrapped(&sv.FlattenedListWithMemberNamespace, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flattenedListWithNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentListWithNamespaceUnwrapped(&sv.FlattenedListWithNamespace, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("integerList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentIntegerList(&sv.IntegerList, nodeDecoder); err != nil { diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index 1b81f29dbbc..0063daf398f 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/query/serializers.go b/internal/protocoltest/query/serializers.go index 6012a0ede8b..cea22595719 100644 --- a/internal/protocoltest/query/serializers.go +++ b/internal/protocoltest/query/serializers.go @@ -175,6 +175,59 @@ func (m *awsAwsquery_serializeOpFlattenedXmlMapWithXmlName) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpFlattenedXmlMapWithXmlNamespace struct { +} + +func (*awsAwsquery_serializeOpFlattenedXmlMapWithXmlNamespace) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpFlattenedXmlMapWithXmlNamespace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*FlattenedXmlMapWithXmlNamespaceInput) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("FlattenedXmlMapWithXmlNamespace") + body.Key("Version").String("2020-01-08") + + _ = input + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpGreetingWithErrors struct { } @@ -1534,6 +1587,13 @@ func awsAwsquery_serializeDocumentFlattenedXmlMapWithXmlNameInput(v *FlattenedXm return nil } +func awsAwsquery_serializeDocumentFlattenedXmlMapWithXmlNamespaceInput(v *FlattenedXmlMapWithXmlNamespaceInput, value query.Value) error { + object := value.Object() + _ = object + + return nil +} + func awsAwsquery_serializeDocumentGreetingWithErrorsInput(v *GreetingWithErrorsInput, value query.Value) error { object := value.Object() _ = object diff --git a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace.go b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace.go new file mode 100644 index 00000000000..52303695628 --- /dev/null +++ b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace.go @@ -0,0 +1,95 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package restxml + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/awslabs/smithy-go/middleware" + smithyhttp "github.com/awslabs/smithy-go/transport/http" +) + +// Flattened maps with @xmlNamespace and @xmlName +func (c *Client) FlattenedXmlMapWithXmlNamespace(ctx context.Context, params *FlattenedXmlMapWithXmlNamespaceInput, optFns ...func(*Options)) (*FlattenedXmlMapWithXmlNamespaceOutput, error) { + if params == nil { + params = &FlattenedXmlMapWithXmlNamespaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "FlattenedXmlMapWithXmlNamespace", params, optFns, addOperationFlattenedXmlMapWithXmlNamespaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*FlattenedXmlMapWithXmlNamespaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type FlattenedXmlMapWithXmlNamespaceInput struct { +} + +type FlattenedXmlMapWithXmlNamespaceOutput struct { + MyMap map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationFlattenedXmlMapWithXmlNamespaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpFlattenedXmlMapWithXmlNamespace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpFlattenedXmlMapWithXmlNamespace{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddAttemptClockSkewMiddleware(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opFlattenedXmlMapWithXmlNamespace(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opFlattenedXmlMapWithXmlNamespace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "FlattenedXmlMapWithXmlNamespace", + } +} diff --git a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace_test.go b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace_test.go new file mode 100644 index 00000000000..7d717cdfcb8 --- /dev/null +++ b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlNamespace_test.go @@ -0,0 +1,108 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package restxml + +import ( + "bytes" + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/awslabs/smithy-go/middleware" + smithyrand "github.com/awslabs/smithy-go/rand" + smithytesting "github.com/awslabs/smithy-go/testing" + smithyhttp "github.com/awslabs/smithy-go/transport/http" + "github.com/google/go-cmp/cmp/cmpopts" + "io/ioutil" + "net/http" + "testing" +) + +func TestClient_FlattenedXmlMapWithXmlNamespace_awsRestxmlDeserialize(t *testing.T) { + cases := map[string]struct { + StatusCode int + Header http.Header + BodyMediaType string + Body []byte + ExpectResult *FlattenedXmlMapWithXmlNamespaceOutput + }{ + // Serializes flattened XML maps in responses that have xmlNamespace and xmlName on + // members + "RestXmlFlattenedXmlMapWithXmlNamespace": { + StatusCode: 200, + Header: http.Header{ + "Content-Type": []string{"application/xml"}, + }, + BodyMediaType: "application/xml", + Body: []byte(` + + a + A + + + b + B + + `), + ExpectResult: &FlattenedXmlMapWithXmlNamespaceOutput{ + MyMap: map[string]string{ + "a": "A", + "b": "B", + }, + }, + }, + } + for name, c := range cases { + t.Run(name, func(t *testing.T) { + url := "http://localhost:8888/" + client := New(Options{ + HTTPClient: smithyhttp.ClientDoFunc(func(r *http.Request) (*http.Response, error) { + headers := http.Header{} + for k, vs := range c.Header { + for _, v := range vs { + headers.Add(k, v) + } + } + if len(c.BodyMediaType) != 0 && len(headers.Values("Content-Type")) == 0 { + headers.Set("Content-Type", c.BodyMediaType) + } + response := &http.Response{ + StatusCode: c.StatusCode, + Header: headers, + Request: r, + } + if len(c.Body) != 0 { + response.ContentLength = int64(len(c.Body)) + response.Body = ioutil.NopCloser(bytes.NewReader(c.Body)) + } else { + + response.Body = http.NoBody + } + return response, nil + }), + APIOptions: []func(*middleware.Stack) error{ + func(s *middleware.Stack) error { + s.Finalize.Clear() + return nil + }, + }, + EndpointResolver: EndpointResolverFunc(func(region string, options EndpointResolverOptions) (e aws.Endpoint, err error) { + e.URL = url + e.SigningRegion = "us-west-2" + return e, err + }), + IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), + Region: "us-west-2", + }) + var params FlattenedXmlMapWithXmlNamespaceInput + result, err := client.FlattenedXmlMapWithXmlNamespace(context.Background(), ¶ms) + if err != nil { + t.Fatalf("expect nil err, got %v", err) + } + if result == nil { + t.Fatalf("expect not nil result") + } + if err := smithytesting.CompareValues(c.ExpectResult, result, cmpopts.IgnoreUnexported(middleware.Metadata{})); err != nil { + t.Errorf("expect c.ExpectResult value match:\n%v", err) + } + }) + } +} diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyLists.go b/internal/protocoltest/restxml/api_op_XmlEmptyLists.go index 21508ad8390..b930b9f29e5 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyLists.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyLists.go @@ -35,6 +35,10 @@ type XmlEmptyListsInput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. @@ -60,6 +64,10 @@ type XmlEmptyListsOutput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. diff --git a/internal/protocoltest/restxml/api_op_XmlLists.go b/internal/protocoltest/restxml/api_op_XmlLists.go index 49bc09fea0b..ca5c06d695a 100644 --- a/internal/protocoltest/restxml/api_op_XmlLists.go +++ b/internal/protocoltest/restxml/api_op_XmlLists.go @@ -28,7 +28,10 @@ import ( // * Flattened XML // lists with @xmlName. // -// * Lists of structures. +// * Flattened XML lists with @xmlNamespace. +// +// * Lists of +// structures. func (c *Client) XmlLists(ctx context.Context, params *XmlListsInput, optFns ...func(*Options)) (*XmlListsOutput, error) { if params == nil { params = &XmlListsInput{} @@ -53,6 +56,10 @@ type XmlListsInput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. @@ -78,6 +85,10 @@ type XmlListsOutput struct { FlattenedList2 []string + FlattenedListWithMemberNamespace []string + + FlattenedListWithNamespace []string + IntegerList []int32 // A list of lists of strings. diff --git a/internal/protocoltest/restxml/api_op_XmlLists_test.go b/internal/protocoltest/restxml/api_op_XmlLists_test.go index 398c8677fa6..02c84bf9128 100644 --- a/internal/protocoltest/restxml/api_op_XmlLists_test.go +++ b/internal/protocoltest/restxml/api_op_XmlLists_test.go @@ -288,6 +288,10 @@ func TestClient_XmlLists_awsRestxmlDeserialize(t *testing.T) { bye yep nope + a + b + a + b 1 @@ -347,6 +351,14 @@ func TestClient_XmlLists_awsRestxmlDeserialize(t *testing.T) { "yep", "nope", }, + FlattenedListWithMemberNamespace: []string{ + "a", + "b", + }, + FlattenedListWithNamespace: []string{ + "a", + "b", + }, StructureList: []types.StructureListMember{ { A: ptr.String("1"), diff --git a/internal/protocoltest/restxml/deserializers.go b/internal/protocoltest/restxml/deserializers.go index 7874be4d268..d08e39e5ba2 100644 --- a/internal/protocoltest/restxml/deserializers.go +++ b/internal/protocoltest/restxml/deserializers.go @@ -541,6 +541,136 @@ func awsRestxml_deserializeOpDocumentFlattenedXmlMapWithXmlNameOutput(v **Flatte return nil } +type awsRestxml_deserializeOpFlattenedXmlMapWithXmlNamespace struct { +} + +func (*awsRestxml_deserializeOpFlattenedXmlMapWithXmlNamespace) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpFlattenedXmlMapWithXmlNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorFlattenedXmlMapWithXmlNamespace(response, &metadata) + } + output := &FlattenedXmlMapWithXmlNamespaceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentFlattenedXmlMapWithXmlNamespaceOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorFlattenedXmlMapWithXmlNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpDocumentFlattenedXmlMapWithXmlNamespaceOutput(v **FlattenedXmlMapWithXmlNamespaceOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *FlattenedXmlMapWithXmlNamespaceOutput + if *v == nil { + sv = &FlattenedXmlMapWithXmlNamespaceOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("KVP", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMapUnwrapped(&sv.MyMap, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + + } + decoder = originalDecoder + } + *v = sv + return nil +} + type awsRestxml_deserializeOpGreetingWithErrors struct { } @@ -3853,6 +3983,18 @@ func awsRestxml_deserializeOpDocumentXmlEmptyListsOutput(v **XmlEmptyListsOutput return err } + case strings.EqualFold("flattenedListWithMemberNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentListWithMemberNamespaceUnwrapped(&sv.FlattenedListWithMemberNamespace, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flattenedListWithNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentListWithNamespaceUnwrapped(&sv.FlattenedListWithNamespace, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("integerList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsRestxml_deserializeDocumentIntegerList(&sv.IntegerList, nodeDecoder); err != nil { @@ -4494,6 +4636,18 @@ func awsRestxml_deserializeOpDocumentXmlListsOutput(v **XmlListsOutput, decoder return err } + case strings.EqualFold("flattenedListWithMemberNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentListWithMemberNamespaceUnwrapped(&sv.FlattenedListWithMemberNamespace, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flattenedListWithNamespace", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentListWithNamespaceUnwrapped(&sv.FlattenedListWithNamespace, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("integerList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsRestxml_deserializeDocumentIntegerList(&sv.IntegerList, nodeDecoder); err != nil { @@ -5411,6 +5565,90 @@ func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMapUnwra *v = sv return nil } +func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv map[string]string + if *v == nil { + sv = make(map[string]string, 0) + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + if strings.EqualFold("entry", t.Name.Local) { + entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMapUnwrapped(&sv, entryDecoder); err != nil { + return err + } + } + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNamespaceOutputMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string + if *v == nil { + sv = make(map[string]string, 0) + } else { + sv = *v + } + + var ek string + var ev string + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + sv[ek] = ev + break + } + switch { + case strings.EqualFold("K", t.Name.Local): + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + ek = xtv + } + + case strings.EqualFold("V", t.Name.Local): + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + ev = xtv + } + + default: + // Do nothing and ignore the unexpected tag element + + } + } + *v = sv + return nil +} func awsRestxml_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5459,6 +5697,158 @@ func awsRestxml_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, de return nil } +func awsRestxml_deserializeDocumentListWithMemberNamespace(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + for { + if strings.EqualFold("member", t.Name.Local) { + var col string + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + } else { + break + } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentListWithMemberNamespaceUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentListWithNamespace(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + for { + if strings.EqualFold("member", t.Name.Local) { + var col string + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + } else { + break + } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentListWithNamespaceUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, done, err := decoder.Value() + if err != nil { + return err + } + if done { + break + } + if val != nil { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsRestxml_deserializeDocumentNestedPayload(v **types.NestedPayload, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index 235e883b510..41eb2389221 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/restxml/serializers.go b/internal/protocoltest/restxml/serializers.go index 93fd73bc23b..ad45f02ce97 100644 --- a/internal/protocoltest/restxml/serializers.go +++ b/internal/protocoltest/restxml/serializers.go @@ -504,6 +504,56 @@ func awsRestxml_serializeOpDocumentFlattenedXmlMapWithXmlNameInput(v *FlattenedX return nil } +type awsRestxml_serializeOpFlattenedXmlMapWithXmlNamespace struct { +} + +func (*awsRestxml_serializeOpFlattenedXmlMapWithXmlNamespace) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpFlattenedXmlMapWithXmlNamespace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*FlattenedXmlMapWithXmlNamespaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/FlattenedXmlMapWithXmlNamespace") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsFlattenedXmlMapWithXmlNamespaceInput(v *FlattenedXmlMapWithXmlNamespaceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + type awsRestxml_serializeOpGreetingWithErrors struct { } @@ -2797,6 +2847,32 @@ func awsRestxml_serializeOpDocumentXmlEmptyListsInput(v *XmlEmptyListsInput, val return err } } + if v.FlattenedListWithMemberNamespace != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "flattenedListWithMemberNamespace", + }, + Attr: rootAttr, + } + el := value.FlattenedElement(root) + if err := awsRestxml_serializeDocumentListWithMemberNamespace(v.FlattenedListWithMemberNamespace, el); err != nil { + return err + } + } + if v.FlattenedListWithNamespace != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "flattenedListWithNamespace", + }, + Attr: rootAttr, + } + el := value.FlattenedElement(root) + if err := awsRestxml_serializeDocumentListWithNamespace(v.FlattenedListWithNamespace, el); err != nil { + return err + } + } if v.IntegerList != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ @@ -3324,6 +3400,32 @@ func awsRestxml_serializeOpDocumentXmlListsInput(v *XmlListsInput, value smithyx return err } } + if v.FlattenedListWithMemberNamespace != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "flattenedListWithMemberNamespace", + }, + Attr: rootAttr, + } + el := value.FlattenedElement(root) + if err := awsRestxml_serializeDocumentListWithMemberNamespace(v.FlattenedListWithMemberNamespace, el); err != nil { + return err + } + } + if v.FlattenedListWithNamespace != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "flattenedListWithNamespace", + }, + Attr: rootAttr, + } + el := value.FlattenedElement(root) + if err := awsRestxml_serializeDocumentListWithNamespace(v.FlattenedListWithNamespace, el); err != nil { + return err + } + } if v.IntegerList != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ @@ -3818,6 +3920,40 @@ func awsRestxml_serializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v map[ return nil } +func awsRestxml_serializeDocumentListWithMemberNamespace(v []string, value smithyxml.Value) error { + var array *smithyxml.Array + if !value.IsFlattened() { + defer value.Close() + } + customMemberNameAttr := []smithyxml.Attr{} + customMemberNameAttr = append(customMemberNameAttr, smithyxml.NewNamespaceAttribute("", "https://xml-member.example.com")) + customMemberName := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "member", + }, + Attr: customMemberNameAttr, + } + array = value.ArrayWithCustomName(customMemberName) + for i := range v { + am := array.Member() + am.String(v[i]) + } + return nil +} + +func awsRestxml_serializeDocumentListWithNamespace(v []string, value smithyxml.Value) error { + var array *smithyxml.Array + if !value.IsFlattened() { + defer value.Close() + } + array = value.Array() + for i := range v { + am := array.Member() + am.String(v[i]) + } + return nil +} + func awsRestxml_serializeDocumentNestedPayload(v *types.NestedPayload, value smithyxml.Value) error { defer value.Close() if v.Greeting != nil { diff --git a/service/accessanalyzer/api_client.go b/service/accessanalyzer/api_client.go index 9ea909f3c5a..de2738045ba 100644 --- a/service/accessanalyzer/api_client.go +++ b/service/accessanalyzer/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index d1bf5181a52..f1dd77dd463 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/acm/api_client.go b/service/acm/api_client.go index 6306c769df2..e0f5d0a87d2 100644 --- a/service/acm/api_client.go +++ b/service/acm/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/acm/go.mod b/service/acm/go.mod index 1fdfce6719d..51cdbb8799e 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/acm/go.sum b/service/acm/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/acmpca/api_client.go b/service/acmpca/api_client.go index c5a785094b3..9c3308a7c16 100644 --- a/service/acmpca/api_client.go +++ b/service/acmpca/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index 1f4618f1db2..ebb29d40358 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/alexaforbusiness/api_client.go b/service/alexaforbusiness/api_client.go index c56b754055d..eeb9f043cdb 100644 --- a/service/alexaforbusiness/api_client.go +++ b/service/alexaforbusiness/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index 9ca9f685df0..897790339c7 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/amplify/api_client.go b/service/amplify/api_client.go index f06260cffc1..d662f5a4003 100644 --- a/service/amplify/api_client.go +++ b/service/amplify/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 2fb69a80a44..4de8b82023e 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplify/go.sum b/service/amplify/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/apigateway/api_client.go b/service/apigateway/api_client.go index bb0e708a082..61b9ead5076 100644 --- a/service/apigateway/api_client.go +++ b/service/apigateway/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index 2c55a7758cb..2bda91a5395 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/apigatewaymanagementapi/api_client.go b/service/apigatewaymanagementapi/api_client.go index 9ba71a6617b..359df54da24 100644 --- a/service/apigatewaymanagementapi/api_client.go +++ b/service/apigatewaymanagementapi/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index b80da35be4a..546343a6e67 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/apigatewayv2/api_client.go b/service/apigatewayv2/api_client.go index a107459422d..25d8d0ba23e 100644 --- a/service/apigatewayv2/api_client.go +++ b/service/apigatewayv2/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index 1d4e8388780..934b30b8969 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appconfig/api_client.go b/service/appconfig/api_client.go index 916904de2f3..2f05bd6f447 100644 --- a/service/appconfig/api_client.go +++ b/service/appconfig/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index 4efa492c423..67d24250c7e 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appflow/api_client.go b/service/appflow/api_client.go index a0b694a8948..a12da15935f 100644 --- a/service/appflow/api_client.go +++ b/service/appflow/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/appflow/go.mod b/service/appflow/go.mod index 41cb0edd30a..6016b07a554 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appflow/go.sum b/service/appflow/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/applicationautoscaling/api_client.go b/service/applicationautoscaling/api_client.go index d2b482694db..5593d042257 100644 --- a/service/applicationautoscaling/api_client.go +++ b/service/applicationautoscaling/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index 7812512b358..2cb63f81ce2 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/applicationdiscoveryservice/api_client.go b/service/applicationdiscoveryservice/api_client.go index 4b55b0881b3..4b4e9a27803 100644 --- a/service/applicationdiscoveryservice/api_client.go +++ b/service/applicationdiscoveryservice/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index aa9cd9442a9..68a1b58ac3d 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/applicationinsights/api_client.go b/service/applicationinsights/api_client.go index fade2f32ccc..83d79296cdf 100644 --- a/service/applicationinsights/api_client.go +++ b/service/applicationinsights/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index 51672a3b81b..48ab9745a0e 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appmesh/api_client.go b/service/appmesh/api_client.go index f1db9d5ba4f..e28361c31cf 100644 --- a/service/appmesh/api_client.go +++ b/service/appmesh/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index 5c47f499c4d..384556d286e 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appstream/api_client.go b/service/appstream/api_client.go index f9ac50e7a39..d725bde3822 100644 --- a/service/appstream/api_client.go +++ b/service/appstream/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/appstream/go.mod b/service/appstream/go.mod index 8258b53f09c..95da5089b19 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appsync/api_client.go b/service/appsync/api_client.go index 6d1f3c0251e..88aa161a111 100644 --- a/service/appsync/api_client.go +++ b/service/appsync/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/appsync/go.mod b/service/appsync/go.mod index c477bb5e828..1d0d602fe9f 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appsync/go.sum b/service/appsync/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/athena/api_client.go b/service/athena/api_client.go index 8279a4915e6..0805dc42e45 100644 --- a/service/athena/api_client.go +++ b/service/athena/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/athena/go.mod b/service/athena/go.mod index 8edcf5e70ca..aba64a67cae 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/athena/go.sum b/service/athena/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/autoscaling/api_client.go b/service/autoscaling/api_client.go index 65512c93942..2f9853f8391 100644 --- a/service/autoscaling/api_client.go +++ b/service/autoscaling/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index 1ba9ffd4a98..c29a04a5c4c 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/autoscalingplans/api_client.go b/service/autoscalingplans/api_client.go index 2a1d0846ba7..10f62bdd68e 100644 --- a/service/autoscalingplans/api_client.go +++ b/service/autoscalingplans/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index d5271d8ce13..e2df7409cdd 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/backup/api_client.go b/service/backup/api_client.go index ede33375980..dd1391b4372 100644 --- a/service/backup/api_client.go +++ b/service/backup/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/backup/go.mod b/service/backup/go.mod index aab5d56446c..39582ab9f46 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/backup/go.sum b/service/backup/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/batch/api_client.go b/service/batch/api_client.go index 7315ec8448f..8ea383c3138 100644 --- a/service/batch/api_client.go +++ b/service/batch/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/batch/go.mod b/service/batch/go.mod index 984becfe767..33a96a7e800 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/batch/go.sum b/service/batch/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/braket/api_client.go b/service/braket/api_client.go index 61d827a6a92..77b1b5d5553 100644 --- a/service/braket/api_client.go +++ b/service/braket/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/braket/go.mod b/service/braket/go.mod index 0c40c40c02f..f8404e9c6b1 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/braket/go.sum b/service/braket/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/budgets/api_client.go b/service/budgets/api_client.go index 5f28ff4be6f..efa48db17e7 100644 --- a/service/budgets/api_client.go +++ b/service/budgets/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/budgets/go.mod b/service/budgets/go.mod index 48b8e061d9c..4c294c73454 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/budgets/go.sum b/service/budgets/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/chime/api_client.go b/service/chime/api_client.go index 7b97bdce0af..140175521d4 100644 --- a/service/chime/api_client.go +++ b/service/chime/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/chime/go.mod b/service/chime/go.mod index 9944f420e2d..67e840654c8 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chime/go.sum b/service/chime/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloud9/api_client.go b/service/cloud9/api_client.go index 0c978396c82..71cd1b5ced8 100644 --- a/service/cloud9/api_client.go +++ b/service/cloud9/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index 46518d4f699..6163d5e182f 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/clouddirectory/api_client.go b/service/clouddirectory/api_client.go index 1e3b95ad648..94f84d12e7f 100644 --- a/service/clouddirectory/api_client.go +++ b/service/clouddirectory/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index d2d5257507a..22a4ea21147 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudformation/api_client.go b/service/cloudformation/api_client.go index fd8c0419cbc..bf13faaa182 100644 --- a/service/cloudformation/api_client.go +++ b/service/cloudformation/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index 7d5a9776ce8..ca5051582af 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudfront/api_client.go b/service/cloudfront/api_client.go index 1fa80deccd5..e07d567f100 100644 --- a/service/cloudfront/api_client.go +++ b/service/cloudfront/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index d060056d240..c1de0a28300 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudhsm/api_client.go b/service/cloudhsm/api_client.go index d287cb4acb9..93a58d2fb5f 100644 --- a/service/cloudhsm/api_client.go +++ b/service/cloudhsm/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index dcabcf99719..95bc948a61a 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudhsmv2/api_client.go b/service/cloudhsmv2/api_client.go index 234a7823391..2384e550bfb 100644 --- a/service/cloudhsmv2/api_client.go +++ b/service/cloudhsmv2/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index 39a8de2b8f8..19eed91d390 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudsearch/api_client.go b/service/cloudsearch/api_client.go index 081c364787e..24a94cd5af1 100644 --- a/service/cloudsearch/api_client.go +++ b/service/cloudsearch/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index ad967cb8556..a0c2448ca34 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudsearchdomain/api_client.go b/service/cloudsearchdomain/api_client.go index 6f203ca6092..e9e8e0d8c8d 100644 --- a/service/cloudsearchdomain/api_client.go +++ b/service/cloudsearchdomain/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index 57fd3afa1e4..2a7645f89a0 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudtrail/api_client.go b/service/cloudtrail/api_client.go index 41b7fb59626..1718812ee89 100644 --- a/service/cloudtrail/api_client.go +++ b/service/cloudtrail/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index f669694421f..fc9916bf89f 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudwatch/api_client.go b/service/cloudwatch/api_client.go index 1168e28efce..7c9c89770da 100644 --- a/service/cloudwatch/api_client.go +++ b/service/cloudwatch/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index 0bb47726244..faa8bbb377f 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudwatchevents/api_client.go b/service/cloudwatchevents/api_client.go index 921bd8ffed2..d1c6a45fade 100644 --- a/service/cloudwatchevents/api_client.go +++ b/service/cloudwatchevents/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index d9f85882f19..7c259881a97 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudwatchlogs/api_client.go b/service/cloudwatchlogs/api_client.go index 5d01b529423..28115647ab4 100644 --- a/service/cloudwatchlogs/api_client.go +++ b/service/cloudwatchlogs/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index f5fd1dd305b..37732043247 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codeartifact/api_client.go b/service/codeartifact/api_client.go index 779d2c554b6..6c326acb3b5 100644 --- a/service/codeartifact/api_client.go +++ b/service/codeartifact/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index 0245148aabb..b39ff2795b3 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codebuild/api_client.go b/service/codebuild/api_client.go index 45ed45737ac..ed0db08993b 100644 --- a/service/codebuild/api_client.go +++ b/service/codebuild/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index d8425ae3e49..622868d3734 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codecommit/api_client.go b/service/codecommit/api_client.go index 550fcc06fbf..95499f65823 100644 --- a/service/codecommit/api_client.go +++ b/service/codecommit/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 1de73303fe9..29790bae938 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codedeploy/api_client.go b/service/codedeploy/api_client.go index 82b97fc1513..ef5d95b0ee6 100644 --- a/service/codedeploy/api_client.go +++ b/service/codedeploy/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index 6e3f9bffb59..ddbfc1fc7a3 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codeguruprofiler/api_client.go b/service/codeguruprofiler/api_client.go index 53d0f0a2d38..8bc0022e991 100644 --- a/service/codeguruprofiler/api_client.go +++ b/service/codeguruprofiler/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index ef526f45b46..e32aae28f43 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codegurureviewer/api_client.go b/service/codegurureviewer/api_client.go index e5987d1a0da..5c227beb550 100644 --- a/service/codegurureviewer/api_client.go +++ b/service/codegurureviewer/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 8f0212b65b9..d73687c4ffe 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codepipeline/api_client.go b/service/codepipeline/api_client.go index 2841c45f43c..c9705f8a9b2 100644 --- a/service/codepipeline/api_client.go +++ b/service/codepipeline/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index df346fa061b..a875e3387e3 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codestar/api_client.go b/service/codestar/api_client.go index ecce2e446dc..0b5fb4ff5be 100644 --- a/service/codestar/api_client.go +++ b/service/codestar/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/codestar/go.mod b/service/codestar/go.mod index 5d2fdf1b1dc..3fad162d938 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestar/go.sum b/service/codestar/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codestarconnections/api_client.go b/service/codestarconnections/api_client.go index b43406218c5..58498aeb4ff 100644 --- a/service/codestarconnections/api_client.go +++ b/service/codestarconnections/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index 3e46c1a4cdd..9a2ad8cd5bf 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codestarnotifications/api_client.go b/service/codestarnotifications/api_client.go index 25685fb7feb..c9744992a36 100644 --- a/service/codestarnotifications/api_client.go +++ b/service/codestarnotifications/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index de1824616b2..97964d4eade 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cognitoidentity/api_client.go b/service/cognitoidentity/api_client.go index c51abea2260..e15ea94e314 100644 --- a/service/cognitoidentity/api_client.go +++ b/service/cognitoidentity/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index 768bf6f93af..f8fe0de57ec 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cognitoidentityprovider/api_client.go b/service/cognitoidentityprovider/api_client.go index d3be7549d8d..54628cda6e2 100644 --- a/service/cognitoidentityprovider/api_client.go +++ b/service/cognitoidentityprovider/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index 28946079bb7..f58093aff18 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cognitosync/api_client.go b/service/cognitosync/api_client.go index 4cf5e182148..af46743d482 100644 --- a/service/cognitosync/api_client.go +++ b/service/cognitosync/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index 88b1290b4f3..3cca8162f47 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/comprehend/api_client.go b/service/comprehend/api_client.go index dfaf5fc3d56..189caff71ce 100644 --- a/service/comprehend/api_client.go +++ b/service/comprehend/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index 16081c1d675..4b1ee8e75ad 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/comprehendmedical/api_client.go b/service/comprehendmedical/api_client.go index c1d9d665c03..45d19ee562b 100644 --- a/service/comprehendmedical/api_client.go +++ b/service/comprehendmedical/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index 0ae67ac908c..809ae10addb 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/computeoptimizer/api_client.go b/service/computeoptimizer/api_client.go index 5b9c3417ea0..da2fb4d50be 100644 --- a/service/computeoptimizer/api_client.go +++ b/service/computeoptimizer/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 65c859cea3f..b97ceb7559c 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/configservice/api_client.go b/service/configservice/api_client.go index 9ad63ccb53d..9dcaa9ca075 100644 --- a/service/configservice/api_client.go +++ b/service/configservice/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/configservice/go.mod b/service/configservice/go.mod index 5d3937eb140..36b962747c0 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/configservice/go.sum b/service/configservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/connect/api_client.go b/service/connect/api_client.go index a311088e603..ccaa9a14fa6 100644 --- a/service/connect/api_client.go +++ b/service/connect/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/connect/go.mod b/service/connect/go.mod index c0439299d2f..5c922147e8f 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connect/go.sum b/service/connect/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/connectparticipant/api_client.go b/service/connectparticipant/api_client.go index 61e0321d0f4..8a1f19eb6cb 100644 --- a/service/connectparticipant/api_client.go +++ b/service/connectparticipant/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 5685c18bec7..24655349e61 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/costandusagereportservice/api_client.go b/service/costandusagereportservice/api_client.go index f55761370dd..e1cd52bcc9f 100644 --- a/service/costandusagereportservice/api_client.go +++ b/service/costandusagereportservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index 48aa66a5623..a789acef535 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/costexplorer/api_client.go b/service/costexplorer/api_client.go index 810a05dd692..bbc94b0f5e4 100644 --- a/service/costexplorer/api_client.go +++ b/service/costexplorer/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index af85f95407e..4d4e0e2fef5 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/databasemigrationservice/api_client.go b/service/databasemigrationservice/api_client.go index f1e940f0854..12f5ce532ca 100644 --- a/service/databasemigrationservice/api_client.go +++ b/service/databasemigrationservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index 336de16d910..d28a71dfa07 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/databrew/api_client.go b/service/databrew/api_client.go index df54448f769..8a76735f750 100644 --- a/service/databrew/api_client.go +++ b/service/databrew/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 423c6c6ec8b..b298106a02e 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/databrew/go.sum b/service/databrew/go.sum index d5070d1ef5c..a04e6578d0f 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= diff --git a/service/dataexchange/api_client.go b/service/dataexchange/api_client.go index 9a717e6414c..a85cd6d2f4a 100644 --- a/service/dataexchange/api_client.go +++ b/service/dataexchange/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index b4d10917189..6d4f90f3d24 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/datapipeline/api_client.go b/service/datapipeline/api_client.go index 459a35cf574..85779d6a3c5 100644 --- a/service/datapipeline/api_client.go +++ b/service/datapipeline/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index ec19c5dfb2b..9cd7ee02457 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/datasync/api_client.go b/service/datasync/api_client.go index d0e8f65e445..747aa3cb2c8 100644 --- a/service/datasync/api_client.go +++ b/service/datasync/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/datasync/go.mod b/service/datasync/go.mod index 70973a47593..37e7079b022 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datasync/go.sum b/service/datasync/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/dax/api_client.go b/service/dax/api_client.go index 0a240485be8..20dedbfb01a 100644 --- a/service/dax/api_client.go +++ b/service/dax/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/dax/go.mod b/service/dax/go.mod index 93963b4020e..ae88c8e5ead 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dax/go.sum b/service/dax/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/detective/api_client.go b/service/detective/api_client.go index 0a3cc08f183..76ce6309b5a 100644 --- a/service/detective/api_client.go +++ b/service/detective/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/detective/go.mod b/service/detective/go.mod index ec9d191cdfb..4ce37ef5cee 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/detective/go.sum b/service/detective/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/devicefarm/api_client.go b/service/devicefarm/api_client.go index 3755feaed66..fe6a02e96dc 100644 --- a/service/devicefarm/api_client.go +++ b/service/devicefarm/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index dccdb58d145..3ab79bfe6e6 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/directconnect/api_client.go b/service/directconnect/api_client.go index ae9aa09139e..a220339b8b5 100644 --- a/service/directconnect/api_client.go +++ b/service/directconnect/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index 9b0b2bdd338..5921636ee30 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/directoryservice/api_client.go b/service/directoryservice/api_client.go index 582f391a7bd..893c9230a0b 100644 --- a/service/directoryservice/api_client.go +++ b/service/directoryservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index 5035a5bec64..1e193ac385b 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/dlm/api_client.go b/service/dlm/api_client.go index 7f724712795..6b7878e6f69 100644 --- a/service/dlm/api_client.go +++ b/service/dlm/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 9562b546c93..7e30a311eed 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dlm/go.sum b/service/dlm/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/docdb/api_client.go b/service/docdb/api_client.go index 99e31637b0c..094945df150 100644 --- a/service/docdb/api_client.go +++ b/service/docdb/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 62657d48799..8443f6d20cf 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/dynamodb/api_client.go b/service/dynamodb/api_client.go index 781c36df6bc..df99e145724 100644 --- a/service/dynamodb/api_client.go +++ b/service/dynamodb/api_client.go @@ -216,12 +216,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index 8b9656e153a..d645bf5b9df 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v0.3.1 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index f07f222c91c..fe39e7d3f26 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= diff --git a/service/dynamodbstreams/api_client.go b/service/dynamodbstreams/api_client.go index a1e4c5914ff..c3243682e62 100644 --- a/service/dynamodbstreams/api_client.go +++ b/service/dynamodbstreams/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 51c19eab395..f81a04681ab 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ebs/api_client.go b/service/ebs/api_client.go index 960334e45fc..ee98ac7506e 100644 --- a/service/ebs/api_client.go +++ b/service/ebs/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/ebs/go.mod b/service/ebs/go.mod index db6b15b468f..90a013b8968 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ebs/go.sum b/service/ebs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ec2/api_client.go b/service/ec2/api_client.go index 95e2c3bb0df..b4541a7e842 100644 --- a/service/ec2/api_client.go +++ b/service/ec2/api_client.go @@ -208,12 +208,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { @@ -266,13 +268,20 @@ type HTTPPresignerV4 interface { type PresignOptions struct { // ClientOptions are list of functional options to mutate client options used by - // presign client + // the presign client. ClientOptions []func(*Options) // Presigner is the presigner used by the presign url client Presigner HTTPPresignerV4 } +func (o PresignOptions) copy() PresignOptions { + clientOptions := make([]func(*Options), len(o.ClientOptions)) + copy(clientOptions, o.ClientOptions) + o.ClientOptions = clientOptions + return o +} + // WithPresignClientFromClientOptions is a helper utility to retrieve a function // that takes PresignOption as input func WithPresignClientFromClientOptions(optFns ...func(*Options)) func(*PresignOptions) { @@ -287,39 +296,44 @@ func (w withPresignClientFromClientOptions) options(o *PresignOptions) { // PresignClient represents the presign url client type PresignClient struct { - client *Client - presigner HTTPPresignerV4 + client *Client + options PresignOptions } // NewPresignClient generates a presign client using provided API Client and // presign options func NewPresignClient(c *Client, optFns ...func(*PresignOptions)) *PresignClient { - var presignOptions PresignOptions + var options PresignOptions for _, fn := range optFns { - fn(&presignOptions) + fn(&options) + } + if len(options.ClientOptions) != 0 { + c = New(c.options, options.ClientOptions...) } - client := copyAPIClient(c, presignOptions.ClientOptions...) - if presignOptions.Presigner == nil { - presignOptions.Presigner = v4.NewSigner() + + if options.Presigner == nil { + options.Presigner = newDefaultV4Signer(c.options) } return &PresignClient{ - client: client, - presigner: presignOptions.Presigner, + client: c, + options: options, } } -func copyAPIClient(c *Client, optFns ...func(*Options)) *Client { - return New(c.options, optFns...) +func withNopHTTPClientAPIOption(o *Options) { + o.HTTPClient = smithyhttp.NopClient{} } -func (c *PresignClient) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) { +type presignConverter PresignOptions + +func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) { stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, - Presigner: c.presigner, + Presigner: c.Presigner, LogSigning: options.ClientLogMode.IsSigning(), }) err = stack.Finalize.Add(pmw, middleware.After) diff --git a/service/ec2/api_op_CopySnapshot.go b/service/ec2/api_op_CopySnapshot.go index 95c5fa159a7..41596d9ee96 100644 --- a/service/ec2/api_op_CopySnapshot.go +++ b/service/ec2/api_op_CopySnapshot.go @@ -288,23 +288,16 @@ func (c *PresignClient) PresignCopySnapshot(ctx context.Context, params *CopySna if params == nil { params = &CopySnapshotInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "CopySnapshot", params, clientOptFns, addOperationCopySnapshotMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, ) if err != nil { return nil, err diff --git a/service/ec2/go.mod b/service/ec2/go.mod index 9f5cec84072..b3caeb2177a 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.2 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ec2instanceconnect/api_client.go b/service/ec2instanceconnect/api_client.go index 99f9e124645..65fe86e58c6 100644 --- a/service/ec2instanceconnect/api_client.go +++ b/service/ec2instanceconnect/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 21620e388a3..b420032148e 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ecr/api_client.go b/service/ecr/api_client.go index 6edf33cba2d..6ab9525138b 100644 --- a/service/ecr/api_client.go +++ b/service/ecr/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ecr/go.mod b/service/ecr/go.mod index 3aa9857c3d1..15feb5a4efd 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ecs/api_client.go b/service/ecs/api_client.go index 8f4c226d35d..d349b2565e6 100644 --- a/service/ecs/api_client.go +++ b/service/ecs/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ecs/go.mod b/service/ecs/go.mod index 458323b2845..e4fc53b473a 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/efs/api_client.go b/service/efs/api_client.go index ca3666aaac7..cb082c79633 100644 --- a/service/efs/api_client.go +++ b/service/efs/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/efs/go.mod b/service/efs/go.mod index 63d08edc5b9..4b87ff8c5d7 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/efs/go.sum b/service/efs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/eks/api_client.go b/service/eks/api_client.go index 87043b79feb..ebf09e7f11b 100644 --- a/service/eks/api_client.go +++ b/service/eks/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/eks/go.mod b/service/eks/go.mod index 1ae32db9259..754850109ee 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/eks/go.sum b/service/eks/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticache/api_client.go b/service/elasticache/api_client.go index 6fa26ba8efe..21eac7c11a6 100644 --- a/service/elasticache/api_client.go +++ b/service/elasticache/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index d6e4a9093aa..8b9b305c044 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticbeanstalk/api_client.go b/service/elasticbeanstalk/api_client.go index 23af0d2cc2a..666af97353f 100644 --- a/service/elasticbeanstalk/api_client.go +++ b/service/elasticbeanstalk/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 8348ff7e7f9..3f3e51e46e3 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticinference/api_client.go b/service/elasticinference/api_client.go index ab79a998f1c..333e428653a 100644 --- a/service/elasticinference/api_client.go +++ b/service/elasticinference/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index f19b3a36567..8bfb4fb9f39 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticloadbalancing/api_client.go b/service/elasticloadbalancing/api_client.go index 005d4c9e86f..81bc82a6b5d 100644 --- a/service/elasticloadbalancing/api_client.go +++ b/service/elasticloadbalancing/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index 38576ee4ec4..05bde672ed0 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticloadbalancingv2/api_client.go b/service/elasticloadbalancingv2/api_client.go index 4e7395211fc..60eb5f5c33a 100644 --- a/service/elasticloadbalancingv2/api_client.go +++ b/service/elasticloadbalancingv2/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index fb23dbcd768..0ab28ec73ef 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticsearchservice/api_client.go b/service/elasticsearchservice/api_client.go index c0c37d16ae0..1561d8c872b 100644 --- a/service/elasticsearchservice/api_client.go +++ b/service/elasticsearchservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index 4fce9f22383..af3fa516682 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elastictranscoder/api_client.go b/service/elastictranscoder/api_client.go index d3c1de5d961..90d77fe01ac 100644 --- a/service/elastictranscoder/api_client.go +++ b/service/elastictranscoder/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index e585f6c2ce3..2c50af11f1a 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/emr/api_client.go b/service/emr/api_client.go index ccc7a7f7464..ab9c9d762b0 100644 --- a/service/emr/api_client.go +++ b/service/emr/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/emr/go.mod b/service/emr/go.mod index 21429e2a791..455d9a2d6f1 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/emr/go.sum b/service/emr/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/eventbridge/api_client.go b/service/eventbridge/api_client.go index 51b6e87701d..f99c96ee11d 100644 --- a/service/eventbridge/api_client.go +++ b/service/eventbridge/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index 192ab853d10..f3febb1d7fc 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/firehose/api_client.go b/service/firehose/api_client.go index dcffd3fe363..468f0789501 100644 --- a/service/firehose/api_client.go +++ b/service/firehose/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 6333ddb130d..7fcb8d6c6e2 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/firehose/go.sum b/service/firehose/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/fms/api_client.go b/service/fms/api_client.go index 0be96df533e..773be1c192b 100644 --- a/service/fms/api_client.go +++ b/service/fms/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/fms/go.mod b/service/fms/go.mod index 121c3d26bec..7810c1574f8 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fms/go.sum b/service/fms/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/forecast/api_client.go b/service/forecast/api_client.go index a8fb2af74d5..0c095231376 100644 --- a/service/forecast/api_client.go +++ b/service/forecast/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/forecast/go.mod b/service/forecast/go.mod index 457e0ba24db..82463f4ccf9 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecast/go.sum b/service/forecast/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/forecastquery/api_client.go b/service/forecastquery/api_client.go index d1d299a5e2d..ae1fa0e43c3 100644 --- a/service/forecastquery/api_client.go +++ b/service/forecastquery/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index 910b74b4a20..c658498be36 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/frauddetector/api_client.go b/service/frauddetector/api_client.go index f8ede58c7e2..4ca5c476b55 100644 --- a/service/frauddetector/api_client.go +++ b/service/frauddetector/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index eb4f1dc829d..a89c7c0f534 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/fsx/api_client.go b/service/fsx/api_client.go index 590526e55ee..6e3373bf942 100644 --- a/service/fsx/api_client.go +++ b/service/fsx/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 00510a97d03..371023dc040 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fsx/go.sum b/service/fsx/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/gamelift/api_client.go b/service/gamelift/api_client.go index 62f5ef78c59..f28161352c8 100644 --- a/service/gamelift/api_client.go +++ b/service/gamelift/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index aa0e322a173..40cdd185b07 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/glacier/api_client.go b/service/glacier/api_client.go index dbc1bc4e524..32c50ca5f5a 100644 --- a/service/glacier/api_client.go +++ b/service/glacier/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 19a872d7d47..06557bf3009 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glacier/go.sum b/service/glacier/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/globalaccelerator/api_client.go b/service/globalaccelerator/api_client.go index e1e8ce79f05..8cb179b5ed7 100644 --- a/service/globalaccelerator/api_client.go +++ b/service/globalaccelerator/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index 9182b6843b3..9cd3de2c717 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/glue/api_client.go b/service/glue/api_client.go index 49b4a91edb8..c7c0921a457 100644 --- a/service/glue/api_client.go +++ b/service/glue/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/glue/go.mod b/service/glue/go.mod index 108789f4b03..d0ab9e5cdc5 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glue/go.sum b/service/glue/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/greengrass/api_client.go b/service/greengrass/api_client.go index c720f26feb4..84c60b85c65 100644 --- a/service/greengrass/api_client.go +++ b/service/greengrass/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index 5303e0be5c1..f5792b23262 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/groundstation/api_client.go b/service/groundstation/api_client.go index d39a306bffc..b870b0b5b8b 100644 --- a/service/groundstation/api_client.go +++ b/service/groundstation/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index bd26e6871eb..b1ff60024ed 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/guardduty/api_client.go b/service/guardduty/api_client.go index f5ed0dcb0f3..39cd59ec397 100644 --- a/service/guardduty/api_client.go +++ b/service/guardduty/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index 11899b1b222..ba0d899f114 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/health/api_client.go b/service/health/api_client.go index 7fe48a47b9d..515a7322762 100644 --- a/service/health/api_client.go +++ b/service/health/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/health/go.mod b/service/health/go.mod index 777355bccfb..46f1c3cbde5 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/health/go.sum b/service/health/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/honeycode/api_client.go b/service/honeycode/api_client.go index 2245c21e7a5..da290fb623b 100644 --- a/service/honeycode/api_client.go +++ b/service/honeycode/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index 358744ee9d2..4c526d06e0c 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iam/api_client.go b/service/iam/api_client.go index 05d435287e3..636a5fb8f91 100644 --- a/service/iam/api_client.go +++ b/service/iam/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iam/go.mod b/service/iam/go.mod index be1dbf8aae4..bdb011b3367 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iam/go.sum b/service/iam/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/identitystore/api_client.go b/service/identitystore/api_client.go index 8e754fe566e..84f74e47930 100644 --- a/service/identitystore/api_client.go +++ b/service/identitystore/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index d3ca8b27df2..e772751d59b 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/imagebuilder/api_client.go b/service/imagebuilder/api_client.go index f26f5fe3249..202b0ff3238 100644 --- a/service/imagebuilder/api_client.go +++ b/service/imagebuilder/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index 18470525c5c..4cba93a9682 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/inspector/api_client.go b/service/inspector/api_client.go index 460483816de..33cc5c9c968 100644 --- a/service/inspector/api_client.go +++ b/service/inspector/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/inspector/go.mod b/service/inspector/go.mod index 7813b6833fd..1fc768269fe 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/inspector/go.sum b/service/inspector/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index e1be27aa04a..ab93bdfdeb2 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/service/dynamodb v0.30.0 github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index 78cd73844ab..0fc77710347 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -2,6 +2,8 @@ github.com/aws/aws-sdk-go v1.34.33 h1:ymkFm0rNPEOlgjyX3ojEd4zqzW6kGICBkqWs7LqgHt github.com/aws/aws-sdk-go v1.34.33/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 343d60dd7f9..8cd940a616c 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -84,7 +84,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/wafregional v0.30.0 github.com/aws/aws-sdk-go-v2/service/wafv2 v0.30.0 github.com/aws/aws-sdk-go-v2/service/workspaces v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff github.com/google/go-cmp v0.5.4 ) diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iot/api_client.go b/service/iot/api_client.go index f1279655505..53d69830618 100644 --- a/service/iot/api_client.go +++ b/service/iot/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/iot/go.mod b/service/iot/go.mod index 5b8b33c1f9e..cc2757a7872 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot/go.sum b/service/iot/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iot1clickdevicesservice/api_client.go b/service/iot1clickdevicesservice/api_client.go index 1bacecc6d8b..291280b70c6 100644 --- a/service/iot1clickdevicesservice/api_client.go +++ b/service/iot1clickdevicesservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index e806c33a232..41d55301db6 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iot1clickprojects/api_client.go b/service/iot1clickprojects/api_client.go index 4d29537d71f..7ca1078a567 100644 --- a/service/iot1clickprojects/api_client.go +++ b/service/iot1clickprojects/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 3d1d872fec8..5b898286da1 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotanalytics/api_client.go b/service/iotanalytics/api_client.go index 3c663ca76b4..9d84d723728 100644 --- a/service/iotanalytics/api_client.go +++ b/service/iotanalytics/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index fe5a21860d6..b912a462514 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotdataplane/api_client.go b/service/iotdataplane/api_client.go index 37575e9661e..534851ca6e9 100644 --- a/service/iotdataplane/api_client.go +++ b/service/iotdataplane/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 0a5e9f77233..a786f107924 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotevents/api_client.go b/service/iotevents/api_client.go index 33188c8d124..8b5bf4ea615 100644 --- a/service/iotevents/api_client.go +++ b/service/iotevents/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index 0ff1f762397..8d4903bf8e9 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ioteventsdata/api_client.go b/service/ioteventsdata/api_client.go index ff06f7f8399..fdf2fda885c 100644 --- a/service/ioteventsdata/api_client.go +++ b/service/ioteventsdata/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index 1d912575731..f614ef343a8 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotjobsdataplane/api_client.go b/service/iotjobsdataplane/api_client.go index 73ccf5dfb12..6146be34ee1 100644 --- a/service/iotjobsdataplane/api_client.go +++ b/service/iotjobsdataplane/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index 42744b98c82..7b23b651a48 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotsecuretunneling/api_client.go b/service/iotsecuretunneling/api_client.go index 919a1b5017e..9598f8b5fe9 100644 --- a/service/iotsecuretunneling/api_client.go +++ b/service/iotsecuretunneling/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index 0c645723fd4..85b3865ffe2 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotsitewise/api_client.go b/service/iotsitewise/api_client.go index d2c89bf8f19..f8b1cb74b46 100644 --- a/service/iotsitewise/api_client.go +++ b/service/iotsitewise/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index 5b75ce2375f..ff8a43a7d72 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotthingsgraph/api_client.go b/service/iotthingsgraph/api_client.go index 5f9c5c24156..b09f34d72bc 100644 --- a/service/iotthingsgraph/api_client.go +++ b/service/iotthingsgraph/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index ff2550d71da..a29ed9fff02 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ivs/api_client.go b/service/ivs/api_client.go index 92064f99a06..51128744792 100644 --- a/service/ivs/api_client.go +++ b/service/ivs/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ivs/go.mod b/service/ivs/go.mod index 4a0be4127a0..dab088c5015 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ivs/go.sum b/service/ivs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kafka/api_client.go b/service/kafka/api_client.go index e0554045391..49b38f1c9d7 100644 --- a/service/kafka/api_client.go +++ b/service/kafka/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kafka/go.mod b/service/kafka/go.mod index 5b137a93ea5..0bf70b7e771 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kafka/go.sum b/service/kafka/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kendra/api_client.go b/service/kendra/api_client.go index ae6a0ce19cb..2fab0224992 100644 --- a/service/kendra/api_client.go +++ b/service/kendra/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 5d709e7e4d5..d0e389c137d 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kendra/go.sum b/service/kendra/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesis/api_client.go b/service/kinesis/api_client.go index b802d7bd5b4..e9cc6780553 100644 --- a/service/kinesis/api_client.go +++ b/service/kinesis/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index e43f42918fb..2e18e8025a0 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisanalytics/api_client.go b/service/kinesisanalytics/api_client.go index 3b23fd29bfa..8b362c68034 100644 --- a/service/kinesisanalytics/api_client.go +++ b/service/kinesisanalytics/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index c283aba49e4..a055004a919 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisanalyticsv2/api_client.go b/service/kinesisanalyticsv2/api_client.go index d1e0e63bc8a..82fd684b8ce 100644 --- a/service/kinesisanalyticsv2/api_client.go +++ b/service/kinesisanalyticsv2/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index 9f7deba496e..f43e201521c 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisvideo/api_client.go b/service/kinesisvideo/api_client.go index c2022b81518..5ed54d47856 100644 --- a/service/kinesisvideo/api_client.go +++ b/service/kinesisvideo/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index 75f5378f78a..3113c581cfe 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisvideoarchivedmedia/api_client.go b/service/kinesisvideoarchivedmedia/api_client.go index 52bf9e5da6b..66de9fe22ee 100644 --- a/service/kinesisvideoarchivedmedia/api_client.go +++ b/service/kinesisvideoarchivedmedia/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index a5b4d374021..aca751ddf45 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisvideomedia/api_client.go b/service/kinesisvideomedia/api_client.go index 1bd704299f4..2ca0375d1f8 100644 --- a/service/kinesisvideomedia/api_client.go +++ b/service/kinesisvideomedia/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 6951af0b586..f6516673459 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisvideosignaling/api_client.go b/service/kinesisvideosignaling/api_client.go index e5757cff3a6..37e2d73a1ef 100644 --- a/service/kinesisvideosignaling/api_client.go +++ b/service/kinesisvideosignaling/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index e1b01bc2f54..54ded4ba26e 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kms/api_client.go b/service/kms/api_client.go index e45d3992449..ca5ed47fc3d 100644 --- a/service/kms/api_client.go +++ b/service/kms/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/kms/go.mod b/service/kms/go.mod index c19e854ca4d..0b764650106 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kms/go.sum b/service/kms/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lakeformation/api_client.go b/service/lakeformation/api_client.go index 003a79d5aaf..0048096006e 100644 --- a/service/lakeformation/api_client.go +++ b/service/lakeformation/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index 46700c22b14..2da84be0efe 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lambda/api_client.go b/service/lambda/api_client.go index b5d5ebf5723..6a1543faec3 100644 --- a/service/lambda/api_client.go +++ b/service/lambda/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/lambda/go.mod b/service/lambda/go.mod index 7a5ec636b86..c91d7448128 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lexmodelbuildingservice/api_client.go b/service/lexmodelbuildingservice/api_client.go index 2ca13722396..96f93b897a4 100644 --- a/service/lexmodelbuildingservice/api_client.go +++ b/service/lexmodelbuildingservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index dc3a32035fb..685f14e3fdf 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lexruntimeservice/api_client.go b/service/lexruntimeservice/api_client.go index 998c61e6861..a1ec57d5246 100644 --- a/service/lexruntimeservice/api_client.go +++ b/service/lexruntimeservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index a7c417d7070..08ab6ca5b78 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/licensemanager/api_client.go b/service/licensemanager/api_client.go index 88743b1b65c..9fa967fde8f 100644 --- a/service/licensemanager/api_client.go +++ b/service/licensemanager/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index 9b62bf07f8d..cf7ccac5687 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lightsail/api_client.go b/service/lightsail/api_client.go index 97ee3d5f0a0..e405f759aee 100644 --- a/service/lightsail/api_client.go +++ b/service/lightsail/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index e025d55a6c7..e1faac983d5 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/machinelearning/api_client.go b/service/machinelearning/api_client.go index 53df804776d..1b8533ea5e8 100644 --- a/service/machinelearning/api_client.go +++ b/service/machinelearning/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index e0b271119f4..794b7441012 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/macie/api_client.go b/service/macie/api_client.go index e73f05c1c6a..d2aec134808 100644 --- a/service/macie/api_client.go +++ b/service/macie/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/macie/go.mod b/service/macie/go.mod index 4e188ffb7fa..099e94c6c8b 100644 --- a/service/macie/go.mod +++ b/service/macie/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/macie/go.sum b/service/macie/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/macie/go.sum +++ b/service/macie/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/macie2/api_client.go b/service/macie2/api_client.go index 03878125a58..7908b8ccc2b 100644 --- a/service/macie2/api_client.go +++ b/service/macie2/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/macie2/go.mod b/service/macie2/go.mod index b050507a747..3ae82a71b6c 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/macie2/go.sum b/service/macie2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/managedblockchain/api_client.go b/service/managedblockchain/api_client.go index c278896f80d..026f8865818 100644 --- a/service/managedblockchain/api_client.go +++ b/service/managedblockchain/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index f717a7338af..6aeefc520b9 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/marketplacecatalog/api_client.go b/service/marketplacecatalog/api_client.go index dabc6f66d0c..61e80adf569 100644 --- a/service/marketplacecatalog/api_client.go +++ b/service/marketplacecatalog/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index c5322312d88..6dc7ffd8e17 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/marketplacecommerceanalytics/api_client.go b/service/marketplacecommerceanalytics/api_client.go index b2b0a88df96..095b155c480 100644 --- a/service/marketplacecommerceanalytics/api_client.go +++ b/service/marketplacecommerceanalytics/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index 77cf3ce6c66..f6e7248f65f 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/marketplaceentitlementservice/api_client.go b/service/marketplaceentitlementservice/api_client.go index 740f23d18ff..e7d1ddd2c60 100644 --- a/service/marketplaceentitlementservice/api_client.go +++ b/service/marketplaceentitlementservice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index 61dac5c2223..9314b48b729 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/marketplacemetering/api_client.go b/service/marketplacemetering/api_client.go index 475faca32e5..4d8de376365 100644 --- a/service/marketplacemetering/api_client.go +++ b/service/marketplacemetering/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index 3c391e0b5c5..2232b117c40 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediaconnect/api_client.go b/service/mediaconnect/api_client.go index c4805c2e1ae..6cb5a4dd969 100644 --- a/service/mediaconnect/api_client.go +++ b/service/mediaconnect/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index 401282cccea..286889e0a05 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediaconvert/api_client.go b/service/mediaconvert/api_client.go index b9bf4c9b22d..020f0b014b7 100644 --- a/service/mediaconvert/api_client.go +++ b/service/mediaconvert/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index 513eff115a4..0fcd41b84b1 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/medialive/api_client.go b/service/medialive/api_client.go index 0bc174a417d..a9a01cc3ff6 100644 --- a/service/medialive/api_client.go +++ b/service/medialive/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/medialive/go.mod b/service/medialive/go.mod index bbdcff85643..5878c96bee2 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediapackage/api_client.go b/service/mediapackage/api_client.go index 90e09a94d07..7a8afcb4423 100644 --- a/service/mediapackage/api_client.go +++ b/service/mediapackage/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index f3d7b065187..29c8a086990 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediapackagevod/api_client.go b/service/mediapackagevod/api_client.go index f68ebb8f8da..6fb105066d9 100644 --- a/service/mediapackagevod/api_client.go +++ b/service/mediapackagevod/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index 24023ca8e53..45e7260669f 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediastore/api_client.go b/service/mediastore/api_client.go index da1ca4161c3..97b041525b1 100644 --- a/service/mediastore/api_client.go +++ b/service/mediastore/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index 63f6dc93093..7100abf5bb7 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediastoredata/api_client.go b/service/mediastoredata/api_client.go index de316677513..ca336697239 100644 --- a/service/mediastoredata/api_client.go +++ b/service/mediastoredata/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index 946b07d0e55..985c1ca320a 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediatailor/api_client.go b/service/mediatailor/api_client.go index 6721e5d8b45..5ace10be04a 100644 --- a/service/mediatailor/api_client.go +++ b/service/mediatailor/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index 7d5bf19f69f..2709d7c54f4 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/migrationhub/api_client.go b/service/migrationhub/api_client.go index 546ad99326b..e61f7bea0f3 100644 --- a/service/migrationhub/api_client.go +++ b/service/migrationhub/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 762d196131c..7cd96b1d443 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/migrationhubconfig/api_client.go b/service/migrationhubconfig/api_client.go index 274949762f7..540a9f0fc57 100644 --- a/service/migrationhubconfig/api_client.go +++ b/service/migrationhubconfig/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index 4948c36f6a8..69b5a6d096d 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mobile/api_client.go b/service/mobile/api_client.go index c16e1bb2ca3..cac2e5a4e5f 100644 --- a/service/mobile/api_client.go +++ b/service/mobile/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mobile/go.mod b/service/mobile/go.mod index 8fff91476cf..720c5472b07 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mobile/go.sum b/service/mobile/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mq/api_client.go b/service/mq/api_client.go index 95442056206..c20c620d220 100644 --- a/service/mq/api_client.go +++ b/service/mq/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/mq/go.mod b/service/mq/go.mod index ff8820de501..88c3de813f3 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mq/go.sum b/service/mq/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mturk/api_client.go b/service/mturk/api_client.go index dea731c5844..cd553322774 100644 --- a/service/mturk/api_client.go +++ b/service/mturk/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/mturk/go.mod b/service/mturk/go.mod index b4815475a07..14c641370a0 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mturk/go.sum b/service/mturk/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/neptune/api_client.go b/service/neptune/api_client.go index 3cf72360fbb..4ec05c9ada8 100644 --- a/service/neptune/api_client.go +++ b/service/neptune/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/neptune/go.mod b/service/neptune/go.mod index 02459e2cc5a..3df7cb8ee52 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/networkfirewall/api_client.go b/service/networkfirewall/api_client.go index e60ac433309..00e7bde1d1c 100644 --- a/service/networkfirewall/api_client.go +++ b/service/networkfirewall/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index aa19b893708..4f670b3b353 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index d5070d1ef5c..a04e6578d0f 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= diff --git a/service/networkmanager/api_client.go b/service/networkmanager/api_client.go index bdbc72304fc..2aed90550ce 100644 --- a/service/networkmanager/api_client.go +++ b/service/networkmanager/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index 061e5a514b6..ab634cfa7ea 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/opsworks/api_client.go b/service/opsworks/api_client.go index a97f7f1271d..c37845a28f4 100644 --- a/service/opsworks/api_client.go +++ b/service/opsworks/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index dc1b2a84b11..e1dfc518807 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/opsworkscm/api_client.go b/service/opsworkscm/api_client.go index afac80c371d..fc34d791741 100644 --- a/service/opsworkscm/api_client.go +++ b/service/opsworkscm/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index b420d58b4b6..89d60fd06d1 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/organizations/api_client.go b/service/organizations/api_client.go index 7638b1f3b77..5bd4dac430e 100644 --- a/service/organizations/api_client.go +++ b/service/organizations/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/organizations/go.mod b/service/organizations/go.mod index 6190e653086..e1ec8b54a3c 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/organizations/go.sum b/service/organizations/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/outposts/api_client.go b/service/outposts/api_client.go index 25bbe93fe2f..9d2f9576181 100644 --- a/service/outposts/api_client.go +++ b/service/outposts/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/outposts/go.mod b/service/outposts/go.mod index 1b6eec6b81b..cceb9a471d6 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/outposts/go.sum b/service/outposts/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/personalize/api_client.go b/service/personalize/api_client.go index 51e125f4a87..46da50a131e 100644 --- a/service/personalize/api_client.go +++ b/service/personalize/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/personalize/go.mod b/service/personalize/go.mod index e7f7f373868..72fb2da0b84 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalize/go.sum b/service/personalize/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/personalizeevents/api_client.go b/service/personalizeevents/api_client.go index e582d83747d..95560656d3b 100644 --- a/service/personalizeevents/api_client.go +++ b/service/personalizeevents/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index 93e3fb853c4..72b308ac51e 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/personalizeruntime/api_client.go b/service/personalizeruntime/api_client.go index 44f6487adac..6788820f50d 100644 --- a/service/personalizeruntime/api_client.go +++ b/service/personalizeruntime/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index a116394473b..259385ca55c 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/pi/api_client.go b/service/pi/api_client.go index 627df487807..aecacf1f787 100644 --- a/service/pi/api_client.go +++ b/service/pi/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/pi/go.mod b/service/pi/go.mod index b9b1f41932e..b88b5299c5e 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pi/go.sum b/service/pi/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/pinpoint/api_client.go b/service/pinpoint/api_client.go index 154a7877639..57f95babc31 100644 --- a/service/pinpoint/api_client.go +++ b/service/pinpoint/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index d49a9f09616..8048c140cde 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/pinpointemail/api_client.go b/service/pinpointemail/api_client.go index 65c727ce3ff..bbb8a5d8444 100644 --- a/service/pinpointemail/api_client.go +++ b/service/pinpointemail/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index a3ddd401304..24abe3656ac 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/pinpointsmsvoice/api_client.go b/service/pinpointsmsvoice/api_client.go index 6b7886870b5..90a500d0e43 100644 --- a/service/pinpointsmsvoice/api_client.go +++ b/service/pinpointsmsvoice/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index 5a784f91424..715d672d516 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/polly/api_client.go b/service/polly/api_client.go index ca57a537f16..091167928b7 100644 --- a/service/polly/api_client.go +++ b/service/polly/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/polly/go.mod b/service/polly/go.mod index a418bf921de..1cfc9b49cd0 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/polly/go.sum b/service/polly/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/pricing/api_client.go b/service/pricing/api_client.go index 3049bbf8067..b7f1430c647 100644 --- a/service/pricing/api_client.go +++ b/service/pricing/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 13c919bfdee..b38b1929086 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pricing/go.sum b/service/pricing/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/qldb/api_client.go b/service/qldb/api_client.go index 3f756345048..8d2f768bd85 100644 --- a/service/qldb/api_client.go +++ b/service/qldb/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 22d2c5f492f..6a76217d4ad 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldb/go.sum b/service/qldb/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/qldbsession/api_client.go b/service/qldbsession/api_client.go index 96e2309b41c..47a3298d60c 100644 --- a/service/qldbsession/api_client.go +++ b/service/qldbsession/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index f60c634bb99..ff3d68b0905 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/quicksight/api_client.go b/service/quicksight/api_client.go index bdc68b57fdf..89a5ef2df28 100644 --- a/service/quicksight/api_client.go +++ b/service/quicksight/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index f9c707ecaa4..b24060214d5 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ram/api_client.go b/service/ram/api_client.go index 4c55bd8a83a..8aba2a838a1 100644 --- a/service/ram/api_client.go +++ b/service/ram/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ram/go.mod b/service/ram/go.mod index 2a6bd2f14b3..263991fffa3 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ram/go.sum b/service/ram/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/rds/api_client.go b/service/rds/api_client.go index 9d048e77852..ba887b24915 100644 --- a/service/rds/api_client.go +++ b/service/rds/api_client.go @@ -200,12 +200,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { @@ -246,13 +248,20 @@ type HTTPPresignerV4 interface { type PresignOptions struct { // ClientOptions are list of functional options to mutate client options used by - // presign client + // the presign client. ClientOptions []func(*Options) // Presigner is the presigner used by the presign url client Presigner HTTPPresignerV4 } +func (o PresignOptions) copy() PresignOptions { + clientOptions := make([]func(*Options), len(o.ClientOptions)) + copy(clientOptions, o.ClientOptions) + o.ClientOptions = clientOptions + return o +} + // WithPresignClientFromClientOptions is a helper utility to retrieve a function // that takes PresignOption as input func WithPresignClientFromClientOptions(optFns ...func(*Options)) func(*PresignOptions) { @@ -267,39 +276,44 @@ func (w withPresignClientFromClientOptions) options(o *PresignOptions) { // PresignClient represents the presign url client type PresignClient struct { - client *Client - presigner HTTPPresignerV4 + client *Client + options PresignOptions } // NewPresignClient generates a presign client using provided API Client and // presign options func NewPresignClient(c *Client, optFns ...func(*PresignOptions)) *PresignClient { - var presignOptions PresignOptions + var options PresignOptions for _, fn := range optFns { - fn(&presignOptions) + fn(&options) + } + if len(options.ClientOptions) != 0 { + c = New(c.options, options.ClientOptions...) } - client := copyAPIClient(c, presignOptions.ClientOptions...) - if presignOptions.Presigner == nil { - presignOptions.Presigner = v4.NewSigner() + + if options.Presigner == nil { + options.Presigner = newDefaultV4Signer(c.options) } return &PresignClient{ - client: client, - presigner: presignOptions.Presigner, + client: c, + options: options, } } -func copyAPIClient(c *Client, optFns ...func(*Options)) *Client { - return New(c.options, optFns...) +func withNopHTTPClientAPIOption(o *Options) { + o.HTTPClient = smithyhttp.NopClient{} } -func (c *PresignClient) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) { +type presignConverter PresignOptions + +func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) { stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, - Presigner: c.presigner, + Presigner: c.Presigner, LogSigning: options.ClientLogMode.IsSigning(), }) err = stack.Finalize.Add(pmw, middleware.After) diff --git a/service/rds/api_op_CopyDBClusterSnapshot.go b/service/rds/api_op_CopyDBClusterSnapshot.go index 8662a7a11a8..3efd13e371b 100644 --- a/service/rds/api_op_CopyDBClusterSnapshot.go +++ b/service/rds/api_op_CopyDBClusterSnapshot.go @@ -378,23 +378,16 @@ func (c *PresignClient) PresignCopyDBClusterSnapshot(ctx context.Context, params if params == nil { params = &CopyDBClusterSnapshotInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "CopyDBClusterSnapshot", params, clientOptFns, addOperationCopyDBClusterSnapshotMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, ) if err != nil { return nil, err diff --git a/service/rds/api_op_CopyDBSnapshot.go b/service/rds/api_op_CopyDBSnapshot.go index 809af8049fd..476db4350d2 100644 --- a/service/rds/api_op_CopyDBSnapshot.go +++ b/service/rds/api_op_CopyDBSnapshot.go @@ -335,23 +335,16 @@ func (c *PresignClient) PresignCopyDBSnapshot(ctx context.Context, params *CopyD if params == nil { params = &CopyDBSnapshotInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "CopyDBSnapshot", params, clientOptFns, addOperationCopyDBSnapshotMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, ) if err != nil { return nil, err diff --git a/service/rds/api_op_CreateDBCluster.go b/service/rds/api_op_CreateDBCluster.go index 78e89d9ed0f..64ecbc68d25 100644 --- a/service/rds/api_op_CreateDBCluster.go +++ b/service/rds/api_op_CreateDBCluster.go @@ -515,23 +515,16 @@ func (c *PresignClient) PresignCreateDBCluster(ctx context.Context, params *Crea if params == nil { params = &CreateDBClusterInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "CreateDBCluster", params, clientOptFns, addOperationCreateDBClusterMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, ) if err != nil { return nil, err diff --git a/service/rds/api_op_CreateDBInstanceReadReplica.go b/service/rds/api_op_CreateDBInstanceReadReplica.go index 96cb83b2eef..1c09207620a 100644 --- a/service/rds/api_op_CreateDBInstanceReadReplica.go +++ b/service/rds/api_op_CreateDBInstanceReadReplica.go @@ -528,23 +528,16 @@ func (c *PresignClient) PresignCreateDBInstanceReadReplica(ctx context.Context, if params == nil { params = &CreateDBInstanceReadReplicaInput{} } - var presignOptions PresignOptions + options := c.options.copy() for _, fn := range optFns { - fn(&presignOptions) + fn(&options) } - if len(optFns) != 0 { - c = NewPresignClient(c.client, optFns...) - } - - clientOptFns := make([]func(o *Options), 0) - clientOptFns = append(clientOptFns, func(o *Options) { - o.HTTPClient = &smithyhttp.NopClient{} - }) + clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) ctx = presignedurlcust.WithIsPresigning(ctx) result, _, err := c.client.invokeOperation(ctx, "CreateDBInstanceReadReplica", params, clientOptFns, addOperationCreateDBInstanceReadReplicaMiddlewares, - c.convertToPresignMiddleware, + presignConverter(options).convertToPresignMiddleware, ) if err != nil { return nil, err diff --git a/service/rds/go.mod b/service/rds/go.mod index 1920bbaff65..b5583287192 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.2 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rds/go.sum b/service/rds/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/rdsdata/api_client.go b/service/rdsdata/api_client.go index 6858f4db74a..71a25b556b2 100644 --- a/service/rdsdata/api_client.go +++ b/service/rdsdata/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index d3c593ea965..76ae63feab7 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/redshift/api_client.go b/service/redshift/api_client.go index 829b825fb3f..e34b161118c 100644 --- a/service/redshift/api_client.go +++ b/service/redshift/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/redshift/go.mod b/service/redshift/go.mod index 3745a9c02b2..5b2ba8e177b 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/redshiftdata/api_client.go b/service/redshiftdata/api_client.go index 2e4db8f60ea..bf095e77381 100644 --- a/service/redshiftdata/api_client.go +++ b/service/redshiftdata/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index aa049f99192..997365d7141 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/rekognition/api_client.go b/service/rekognition/api_client.go index 063f0c43e94..9658af11622 100644 --- a/service/rekognition/api_client.go +++ b/service/rekognition/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index fca87bd9139..02b7bce7172 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/resourcegroups/api_client.go b/service/resourcegroups/api_client.go index aa3c06ab67a..216167953d5 100644 --- a/service/resourcegroups/api_client.go +++ b/service/resourcegroups/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index 4abdea1103c..8b6bb995098 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/resourcegroupstaggingapi/api_client.go b/service/resourcegroupstaggingapi/api_client.go index 4db4e072509..cdbf7cc4d7e 100644 --- a/service/resourcegroupstaggingapi/api_client.go +++ b/service/resourcegroupstaggingapi/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index 45c455ce6b0..afe95c110f6 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/robomaker/api_client.go b/service/robomaker/api_client.go index 2dafe2a8324..877fffb12ca 100644 --- a/service/robomaker/api_client.go +++ b/service/robomaker/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index ec2362f8fce..565fd9f89c1 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/route53/api_client.go b/service/route53/api_client.go index a8b41bbcc1d..6dbad1f3806 100644 --- a/service/route53/api_client.go +++ b/service/route53/api_client.go @@ -200,12 +200,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/route53/go.mod b/service/route53/go.mod index 6b4d8fe5d94..9d265b35cb6 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53/go.sum b/service/route53/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/route53domains/api_client.go b/service/route53domains/api_client.go index a92003bf327..162be75f1e0 100644 --- a/service/route53domains/api_client.go +++ b/service/route53domains/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index 809320db9fb..73926fbfc17 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/route53resolver/api_client.go b/service/route53resolver/api_client.go index 9816e463893..ae4f9266877 100644 --- a/service/route53resolver/api_client.go +++ b/service/route53resolver/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index 560c46ca263..f27f0bf5914 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/s3/go.mod b/service/s3/go.mod index 55a39cb4221..c500af6cccb 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -8,4 +8,13 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.2 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.2 github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff + 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/accept-encoding => ../../service/internal/accept-encoding/ + +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/ diff --git a/service/s3/go.sum b/service/s3/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/s3control/api_client.go b/service/s3control/api_client.go index 661cf75b7e3..6501daa36a7 100644 --- a/service/s3control/api_client.go +++ b/service/s3control/api_client.go @@ -213,12 +213,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/s3control/go.mod b/service/s3control/go.mod index f09ec0f8fc8..ba5d93352ec 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.2 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3control/go.sum b/service/s3control/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/s3outposts/api_client.go b/service/s3outposts/api_client.go index ab691be2178..f4c06604ec6 100644 --- a/service/s3outposts/api_client.go +++ b/service/s3outposts/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 7f56da222df..cc115f19537 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sagemaker/api_client.go b/service/sagemaker/api_client.go index 0de892770ce..bda228a4198 100644 --- a/service/sagemaker/api_client.go +++ b/service/sagemaker/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 8406559c68b..9ec0da569ef 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sagemakera2iruntime/api_client.go b/service/sagemakera2iruntime/api_client.go index 4b26c4062c9..e5089530c30 100644 --- a/service/sagemakera2iruntime/api_client.go +++ b/service/sagemakera2iruntime/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index b05291a775b..1ceaf623173 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sagemakerruntime/api_client.go b/service/sagemakerruntime/api_client.go index c494ade7c6c..398eab91a3b 100644 --- a/service/sagemakerruntime/api_client.go +++ b/service/sagemakerruntime/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index 89601d84b5e..42ee061da12 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/savingsplans/api_client.go b/service/savingsplans/api_client.go index c3516b3a501..61b5d6a8227 100644 --- a/service/savingsplans/api_client.go +++ b/service/savingsplans/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index 6d4b46e0102..cef28df2f68 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/schemas/api_client.go b/service/schemas/api_client.go index 65b560620d2..21d3360e3c0 100644 --- a/service/schemas/api_client.go +++ b/service/schemas/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/schemas/go.mod b/service/schemas/go.mod index d5fcc4a5d22..f764ff3d03d 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/secretsmanager/api_client.go b/service/secretsmanager/api_client.go index cbe5164b3d5..f48c8a2becf 100644 --- a/service/secretsmanager/api_client.go +++ b/service/secretsmanager/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index 45d06a612b4..f291686ac91 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/securityhub/api_client.go b/service/securityhub/api_client.go index 0cb06205a38..9e19a7789cc 100644 --- a/service/securityhub/api_client.go +++ b/service/securityhub/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index 337c9dc8ef5..48822152c3d 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/serverlessapplicationrepository/api_client.go b/service/serverlessapplicationrepository/api_client.go index 19ee8b0de90..2a75d1fbcf7 100644 --- a/service/serverlessapplicationrepository/api_client.go +++ b/service/serverlessapplicationrepository/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index 72e689ab4d6..bc692fef34e 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/servicecatalog/api_client.go b/service/servicecatalog/api_client.go index 27a800174ac..3208565ea9e 100644 --- a/service/servicecatalog/api_client.go +++ b/service/servicecatalog/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index 7e8c82503c9..564681df531 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/servicecatalogappregistry/api_client.go b/service/servicecatalogappregistry/api_client.go index ebf76f7a99c..c4dffa35f02 100644 --- a/service/servicecatalogappregistry/api_client.go +++ b/service/servicecatalogappregistry/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index 4964536de85..f5123c4caf5 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index d5070d1ef5c..a04e6578d0f 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= diff --git a/service/servicediscovery/api_client.go b/service/servicediscovery/api_client.go index b34705616cc..73e754d813d 100644 --- a/service/servicediscovery/api_client.go +++ b/service/servicediscovery/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index 4d7717917d6..34a5dbe2887 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/servicequotas/api_client.go b/service/servicequotas/api_client.go index 7b8c90fd37a..28e9773bf8a 100644 --- a/service/servicequotas/api_client.go +++ b/service/servicequotas/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index 4da04936f61..5bbfb43242b 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ses/api_client.go b/service/ses/api_client.go index e375c49a051..2513b35108c 100644 --- a/service/ses/api_client.go +++ b/service/ses/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ses/go.mod b/service/ses/go.mod index d228c9ecdda..1cee97ba706 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ses/go.sum b/service/ses/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sesv2/api_client.go b/service/sesv2/api_client.go index d64f7e3bf92..bca673973c7 100644 --- a/service/sesv2/api_client.go +++ b/service/sesv2/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index fbd2c7be438..75829ca030c 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sfn/api_client.go b/service/sfn/api_client.go index a510ea2745d..638e3ada9ce 100644 --- a/service/sfn/api_client.go +++ b/service/sfn/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sfn/go.mod b/service/sfn/go.mod index b14677aeaee..a094a483987 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sfn/go.sum b/service/sfn/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/shield/api_client.go b/service/shield/api_client.go index 34a27d9a9b8..d38739330d8 100644 --- a/service/shield/api_client.go +++ b/service/shield/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/shield/go.mod b/service/shield/go.mod index d86b23118d5..881320ff57c 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/shield/go.sum b/service/shield/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/signer/api_client.go b/service/signer/api_client.go index d5f339fe30c..ab35753939b 100644 --- a/service/signer/api_client.go +++ b/service/signer/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/signer/go.mod b/service/signer/go.mod index b778663d192..2edc90d8c5b 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/signer/go.sum b/service/signer/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sms/api_client.go b/service/sms/api_client.go index 8a08538dd4e..471bd1d2931 100644 --- a/service/sms/api_client.go +++ b/service/sms/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sms/go.mod b/service/sms/go.mod index ce370178612..5676bceb74e 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sms/go.sum b/service/sms/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/snowball/api_client.go b/service/snowball/api_client.go index 97100d2bcb0..26663f55d72 100644 --- a/service/snowball/api_client.go +++ b/service/snowball/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 9fc0a00c242..cfe78fde64b 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/snowball/go.sum b/service/snowball/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sns/api_client.go b/service/sns/api_client.go index 460dba921cd..c658d64f8fa 100644 --- a/service/sns/api_client.go +++ b/service/sns/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sns/go.mod b/service/sns/go.mod index 3cf1ec99926..5df2da7481f 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sns/go.sum b/service/sns/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sqs/api_client.go b/service/sqs/api_client.go index 815ee996e01..3607c14dd4f 100644 --- a/service/sqs/api_client.go +++ b/service/sqs/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sqs/go.mod b/service/sqs/go.mod index 45fea168f9e..c9b2b709f58 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sqs/go.sum b/service/sqs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ssm/api_client.go b/service/ssm/api_client.go index 647c3b1c87d..adb72191603 100644 --- a/service/ssm/api_client.go +++ b/service/ssm/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/ssm/go.mod b/service/ssm/go.mod index ecfb0192576..c7140f9387e 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sso/api_client.go b/service/sso/api_client.go index 1fa847ed626..ad737bb8e8e 100644 --- a/service/sso/api_client.go +++ b/service/sso/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sso/go.mod b/service/sso/go.mod index a474cc03828..498c9950455 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sso/go.sum b/service/sso/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ssoadmin/api_client.go b/service/ssoadmin/api_client.go index b1b7889c535..5243d8d350a 100644 --- a/service/ssoadmin/api_client.go +++ b/service/ssoadmin/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index e2e1c93ea19..54ae908aeb3 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ssooidc/api_client.go b/service/ssooidc/api_client.go index 5882309ca5c..678fc68bc47 100644 --- a/service/ssooidc/api_client.go +++ b/service/ssooidc/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index 23016695baf..9066f98cebe 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/storagegateway/api_client.go b/service/storagegateway/api_client.go index 28bab066566..8545be68071 100644 --- a/service/storagegateway/api_client.go +++ b/service/storagegateway/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index fc9b131cb56..39aa2d75310 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sts/api_client.go b/service/sts/api_client.go index 00049bf74c5..df8a43c1f44 100644 --- a/service/sts/api_client.go +++ b/service/sts/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/sts/go.mod b/service/sts/go.mod index 4e8b7b7d80d..16a0fabf963 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sts/go.sum b/service/sts/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/support/api_client.go b/service/support/api_client.go index 77e3463b463..710360e1973 100644 --- a/service/support/api_client.go +++ b/service/support/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/support/go.mod b/service/support/go.mod index a7e20fc47cd..2ac78adaf3e 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/support/go.sum b/service/support/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/swf/api_client.go b/service/swf/api_client.go index fc82e8a3652..ab635567cf4 100644 --- a/service/swf/api_client.go +++ b/service/swf/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/swf/go.mod b/service/swf/go.mod index 5e697813db5..9126abcd79b 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/swf/go.sum b/service/swf/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/synthetics/api_client.go b/service/synthetics/api_client.go index 73d464c0d07..541fb3735dd 100644 --- a/service/synthetics/api_client.go +++ b/service/synthetics/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index 6fa15531adb..1752544e7dd 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/textract/api_client.go b/service/textract/api_client.go index 519c9abad7c..a7f26f581cb 100644 --- a/service/textract/api_client.go +++ b/service/textract/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/textract/go.mod b/service/textract/go.mod index 6ce942f3d62..755c4c37c21 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/textract/go.sum b/service/textract/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/timestreamquery/api_client.go b/service/timestreamquery/api_client.go index d307d0c2e95..278d8b2cb8e 100644 --- a/service/timestreamquery/api_client.go +++ b/service/timestreamquery/api_client.go @@ -207,12 +207,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index 32db0c89800..06b8115efcf 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/timestreamwrite/api_client.go b/service/timestreamwrite/api_client.go index fb294506441..87975914b07 100644 --- a/service/timestreamwrite/api_client.go +++ b/service/timestreamwrite/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index a6857ffbe07..7271b3825e9 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/transcribe/api_client.go b/service/transcribe/api_client.go index ef5cd5b0dd6..74cc87dffe8 100644 --- a/service/transcribe/api_client.go +++ b/service/transcribe/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index 27ee7cdb0f8..2f1a1785be4 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/transfer/api_client.go b/service/transfer/api_client.go index 25bf0492eb7..e359a319ddf 100644 --- a/service/transfer/api_client.go +++ b/service/transfer/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/transfer/go.mod b/service/transfer/go.mod index 07d6dc8c903..f2d5c34e30b 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transfer/go.sum b/service/transfer/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/translate/api_client.go b/service/translate/api_client.go index 59f8d369856..ad37ad395e5 100644 --- a/service/translate/api_client.go +++ b/service/translate/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/translate/go.mod b/service/translate/go.mod index f3c296f518f..63062518e50 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/translate/go.sum b/service/translate/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/waf/api_client.go b/service/waf/api_client.go index 5781794e565..23e40bc2e51 100644 --- a/service/waf/api_client.go +++ b/service/waf/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/waf/go.mod b/service/waf/go.mod index d71616d4e71..877ae548284 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/waf/go.sum b/service/waf/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/wafregional/api_client.go b/service/wafregional/api_client.go index 48b7d0a71e8..bb38c47426b 100644 --- a/service/wafregional/api_client.go +++ b/service/wafregional/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index 21c62ce6194..75bab64b839 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/wafv2/api_client.go b/service/wafv2/api_client.go index 00e7e904d80..b5efff7f044 100644 --- a/service/wafv2/api_client.go +++ b/service/wafv2/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index e100fecb3f8..ed3f4652b9e 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/workdocs/api_client.go b/service/workdocs/api_client.go index 337ebeae0a6..37ba8948dda 100644 --- a/service/workdocs/api_client.go +++ b/service/workdocs/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 8379bcbff90..d3ba41280c9 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/worklink/api_client.go b/service/worklink/api_client.go index b21650f2b81..99b2cd90875 100644 --- a/service/worklink/api_client.go +++ b/service/worklink/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/worklink/go.mod b/service/worklink/go.mod index d7c4997eebd..14c8c557550 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/worklink/go.sum b/service/worklink/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/workmail/api_client.go b/service/workmail/api_client.go index d5866b2cb90..32e6cbf7cdb 100644 --- a/service/workmail/api_client.go +++ b/service/workmail/api_client.go @@ -206,12 +206,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func resolveIdempotencyTokenProvider(o *Options) { diff --git a/service/workmail/go.mod b/service/workmail/go.mod index 6dd3d50e6ca..cc51a7bb1e4 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmail/go.sum b/service/workmail/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/workmailmessageflow/api_client.go b/service/workmailmessageflow/api_client.go index 0bb093681b8..705ced2f9bd 100644 --- a/service/workmailmessageflow/api_client.go +++ b/service/workmailmessageflow/api_client.go @@ -199,12 +199,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index 49ad5972106..fb07babd955 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/workspaces/api_client.go b/service/workspaces/api_client.go index 41beef9ba11..935a8742584 100644 --- a/service/workspaces/api_client.go +++ b/service/workspaces/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index 629b2961ae3..50196c30f72 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/xray/api_client.go b/service/xray/api_client.go index 2ac225dc8e2..ea3c3acd62a 100644 --- a/service/xray/api_client.go +++ b/service/xray/api_client.go @@ -198,12 +198,14 @@ func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } - o.HTTPSignerV4 = v4.NewSigner( - func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }, - ) + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { diff --git a/service/xray/go.mod b/service/xray/go.mod index 7330a6079ef..20fa495d9c2 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.30.0 - github.com/awslabs/smithy-go v0.4.0 + github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/xray/go.sum b/service/xray/go.sum index 58ec57ff7d9..74baaaf3c68 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,5 +1,7 @@ github.com/awslabs/smithy-go v0.4.0 h1:El0KyKn4zdM3pLuWJlgoeitQuu/mjwUPssr7L3xu3vs= github.com/awslabs/smithy-go v0.4.0/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff h1:mtSekcc5R2mJG5+cdIlL15WD//Lobtzil5hkcr8WhiA= +github.com/awslabs/smithy-go v0.4.1-0.20201208232924-b8cdbaa577ff/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= From 50a27ca493609c501c4af380e82f45cac759a958 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Mon, 14 Dec 2020 09:20:47 -0800 Subject: [PATCH 4/7] fixup negative expires check --- .../aws/go/codegen/AwsHttpPresignURLClientGenerator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java index e9275164627..47c2a9517e1 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java @@ -370,6 +370,11 @@ private void writeConvertToPresignMiddleware( // s3 service needs expires and sets unsignedPayload if input is stream if (isS3ServiceShape(model, serviceShape)) { + writer.openBlock("if c.Expires < 0 {", "}", () -> { + writer.addUseImports(SmithyGoDependency.FMT); + writer.write( + "return fmt.Errorf(\"presign URL duration must be 0 or greater, %v\", c.Expires)"); + }); Symbol expiresAsHeaderMiddleware = SymbolUtils.createValueSymbolBuilder( "AddExpiresOnPresignedURL", AwsCustomGoDependency.S3_CUSTOMIZATION).build(); @@ -444,7 +449,7 @@ private void writePresignClientHelpers( Model model, SymbolProvider symbolProvider, ServiceShape serviceShape - ) { + ) { // Helper function for NopClient writer.openBlock("func $L(o *Options) {", "}", NOP_HTTP_CLIENT_OPTION_FUNC_NAME, () -> { Symbol nopClientSymbol = SymbolUtils.createPointableSymbolBuilder("NopClient", From 31fe72ff8afd14dad197a4bc6e520653d15cd14e Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Mon, 14 Dec 2020 09:22:01 -0800 Subject: [PATCH 5/7] regenreate s3 api --- service/s3/api_client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/s3/api_client.go b/service/s3/api_client.go index 15442d62adf..8d1bbf8b75c 100644 --- a/service/s3/api_client.go +++ b/service/s3/api_client.go @@ -4,6 +4,7 @@ package s3 import ( "context" + "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/retry" @@ -369,6 +370,9 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op if err != nil { return err } + if c.Expires < 0 { + return fmt.Errorf("presign URL duration must be 0 or greater, %v", c.Expires) + } // add middleware to set expiration for s3 presigned url, if expiration is set to // 0, this middleware sets a default expiration of 900 seconds err = stack.Build.Add(&s3cust.AddExpiresOnPresignedURL{Expires: c.Expires}, middleware.After) From 484892452bf963f26b65638ee0934067be8c1256 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Mon, 14 Dec 2020 10:30:43 -0800 Subject: [PATCH 6/7] add presign with special header integ test --- service/internal/integrationtest/s3/presign_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/service/internal/integrationtest/s3/presign_test.go b/service/internal/integrationtest/s3/presign_test.go index cc7b8f310af..ee055c53b75 100644 --- a/service/internal/integrationtest/s3/presign_test.go +++ b/service/internal/integrationtest/s3/presign_test.go @@ -21,6 +21,7 @@ import ( func TestInteg_PresignURL(t *testing.T) { cases := map[string]struct { + key string body io.Reader expires time.Duration sha256Header string @@ -33,6 +34,9 @@ func TestInteg_PresignURL(t *testing.T) { "content-length": {"11"}, }, }, + "special characters": { + key: "some_value_(1).foo", + }, "nil-body": { expectedSignedHeader: http.Header{}, }, @@ -44,7 +48,10 @@ func TestInteg_PresignURL(t *testing.T) { for name, c := range cases { t.Run(name, func(t *testing.T) { - key := integrationtest.UniqueID() + key := c.key + if len(key) == 0 { + key = integrationtest.UniqueID() + } ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() From c9d7a1f98f13ed582e883bc85b3ba65e2a612a18 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Mon, 14 Dec 2020 10:34:37 -0800 Subject: [PATCH 7/7] add changelog --- .../service.s3-bugfix-1607970870724256000.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .changes/next-release/service.s3-bugfix-1607970870724256000.json diff --git a/.changes/next-release/service.s3-bugfix-1607970870724256000.json b/.changes/next-release/service.s3-bugfix-1607970870724256000.json new file mode 100644 index 00000000000..f83e2551da9 --- /dev/null +++ b/.changes/next-release/service.s3-bugfix-1607970870724256000.json @@ -0,0 +1,9 @@ +{ + "ID": "service.s3-bugfix-1607970870724256000", + "SchemaVersion": 1, + "Module": "service/s3", + "Type": "bugfix", + "Description": "Fixes PresignClient S3 signing behavior for special characters, [#969](/~https://github.com/aws/aws-sdk-go-v2/pull/969)", + "MinVersion": "", + "AffectedModules": null +} \ No newline at end of file