diff --git a/private/model/api/api.go b/private/model/api/api.go index 02fdb0ebc2b..d0f7f08f2c2 100644 --- a/private/model/api/api.go +++ b/private/model/api/api.go @@ -561,12 +561,16 @@ func New(p client.ConfigProvider, cfgs ...*aws.Config) *{{ .StructName }} { {{- else -}} c := p.ClientConfig({{ EndpointsIDValue . }}, cfgs...) {{- end }} - + if c.SigningNameDerived || len(c.SigningName) == 0 { {{- if .Metadata.SigningName }} - if c.SigningNameDerived || len(c.SigningName) == 0{ - c.SigningName = "{{ .Metadata.SigningName }}" - } + c.SigningName = "{{ .Metadata.SigningName }}" + {{- else }} + {{- if not .NoConstServiceNames -}} + c.SigningName = {{ EndpointsIDValue . }} + // No Fallback + {{- end }} {{- end }} + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1039,6 +1043,18 @@ func (a *API) validateNoDocumentShapes() error { return fmt.Errorf("model contains document shapes: %s", strings.Join(shapes, ", ")) } +func (a *API) backfillSigningName() { + backfill := map[string]string{ + "kinesisvideo": "kinesisvideo", + } + + if value, ok := backfill[a.PackageName()]; ok && len(a.Metadata.SigningName) == 0 { + a.Metadata.SigningName = value + } else if ok && len(a.Metadata.SigningName) > 0 { + debugLogger.Logf("%s no longer requires signingName backfill", a.PackageName()) + } +} + func getDeprecatedMessage(msg string, name string) string { if len(msg) == 0 { return name + " has been deprecated" diff --git a/private/model/api/codegentest/service/restjsonservice/service.go b/private/model/api/codegentest/service/restjsonservice/service.go index 799f3adf88d..844621631a6 100644 --- a/private/model/api/codegentest/service/restjsonservice/service.go +++ b/private/model/api/codegentest/service/restjsonservice/service.go @@ -49,6 +49,10 @@ const ( // svc := restjsonservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *RESTJSONService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/model/api/codegentest/service/restxmlservice/service.go b/private/model/api/codegentest/service/restxmlservice/service.go index 1a61d9127ef..6fc8fd05c52 100644 --- a/private/model/api/codegentest/service/restxmlservice/service.go +++ b/private/model/api/codegentest/service/restxmlservice/service.go @@ -48,6 +48,10 @@ const ( // svc := restxmlservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *RESTXMLService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/model/api/codegentest/service/rpcservice/service.go b/private/model/api/codegentest/service/rpcservice/service.go index 95264b6cefb..8f5b66a55ec 100644 --- a/private/model/api/codegentest/service/rpcservice/service.go +++ b/private/model/api/codegentest/service/rpcservice/service.go @@ -49,6 +49,10 @@ const ( // svc := rpcservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *RPCService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/model/api/load.go b/private/model/api/load.go index 4dd1c8521c8..7b7d4ad2bb4 100644 --- a/private/model/api/load.go +++ b/private/model/api/load.go @@ -208,6 +208,7 @@ func (a *API) Setup() error { a.writeShapeNames() a.resolveReferences() a.backfillErrorMembers() + a.backfillSigningName() if !a.NoRemoveUnusedShapes { a.removeUnusedShapes() diff --git a/private/protocol/ec2query/build_test.go b/private/protocol/ec2query/build_test.go index b5829fe58ae..d0e323132fb 100644 --- a/private/protocol/ec2query/build_test.go +++ b/private/protocol/ec2query/build_test.go @@ -70,6 +70,8 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -227,6 +229,8 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -392,6 +396,8 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -553,6 +559,8 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -726,6 +734,8 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -875,6 +885,8 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1024,6 +1036,8 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1174,6 +1188,8 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1339,6 +1355,8 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1573,6 +1591,8 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1839,6 +1859,8 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/ec2query/unmarshal_test.go b/private/protocol/ec2query/unmarshal_test.go index d2d44231a5b..6009a7f43fd 100644 --- a/private/protocol/ec2query/unmarshal_test.go +++ b/private/protocol/ec2query/unmarshal_test.go @@ -70,6 +70,8 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -274,6 +276,8 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -423,6 +427,8 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -571,6 +577,8 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -719,6 +727,8 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -867,6 +877,8 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1027,6 +1039,8 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1175,6 +1189,8 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1323,6 +1339,8 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1471,6 +1489,8 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1663,6 +1683,8 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/jsonrpc/build_test.go b/private/protocol/jsonrpc/build_test.go index 0286ee27185..a74d8fd609d 100644 --- a/private/protocol/jsonrpc/build_test.go +++ b/private/protocol/jsonrpc/build_test.go @@ -70,6 +70,8 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -222,6 +224,8 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -389,6 +393,8 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -643,6 +649,8 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -795,6 +803,8 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1407,6 +1417,8 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1559,6 +1571,8 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1795,6 +1809,8 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2063,6 +2079,8 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/jsonrpc/unmarshal_test.go b/private/protocol/jsonrpc/unmarshal_test.go index d1642d20d90..0071bace405 100644 --- a/private/protocol/jsonrpc/unmarshal_test.go +++ b/private/protocol/jsonrpc/unmarshal_test.go @@ -70,6 +70,8 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -274,6 +276,8 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -444,6 +448,8 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -636,6 +642,8 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -904,6 +912,8 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1052,6 +1062,8 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1200,6 +1212,8 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1372,6 +1386,8 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/query/build_test.go b/private/protocol/query/build_test.go index a074e8ecf90..f985b45a56b 100644 --- a/private/protocol/query/build_test.go +++ b/private/protocol/query/build_test.go @@ -70,6 +70,8 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -437,6 +439,8 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -598,6 +602,8 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -832,6 +838,8 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1098,6 +1106,8 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1247,6 +1257,8 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1396,6 +1408,8 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1553,6 +1567,8 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1702,6 +1718,8 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1851,6 +1869,8 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2001,6 +2021,8 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2150,6 +2172,8 @@ type InputService12ProtocolTest struct { // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { c := p.ClientConfig("inputservice12protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2315,6 +2339,8 @@ type InputService13ProtocolTest struct { // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { c := p.ClientConfig("inputservice13protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2925,6 +2951,8 @@ type InputService14ProtocolTest struct { // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { c := p.ClientConfig("inputservice14protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3161,6 +3189,8 @@ type InputService15ProtocolTest struct { // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { c := p.ClientConfig("inputservice15protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3523,6 +3553,8 @@ type InputService16ProtocolTest struct { // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { c := p.ClientConfig("inputservice16protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/query/unmarshal_test.go b/private/protocol/query/unmarshal_test.go index 5d681f637a6..5e75de1f5ac 100644 --- a/private/protocol/query/unmarshal_test.go +++ b/private/protocol/query/unmarshal_test.go @@ -70,6 +70,8 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -282,6 +284,8 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -438,6 +442,8 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -587,6 +593,8 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -735,6 +743,8 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -883,6 +893,8 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1031,6 +1043,8 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1179,6 +1193,8 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1355,6 +1371,8 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1531,6 +1549,8 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1679,6 +1699,8 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1839,6 +1861,8 @@ type OutputService12ProtocolTest struct { // svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { c := p.ClientConfig("outputservice12protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1987,6 +2011,8 @@ type OutputService13ProtocolTest struct { // svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest { c := p.ClientConfig("outputservice13protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2135,6 +2161,8 @@ type OutputService14ProtocolTest struct { // svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest { c := p.ClientConfig("outputservice14protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2283,6 +2311,8 @@ type OutputService15ProtocolTest struct { // svc := outputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService15ProtocolTest { c := p.ClientConfig("outputservice15protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2431,6 +2461,8 @@ type OutputService16ProtocolTest struct { // svc := outputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService16ProtocolTest { c := p.ClientConfig("outputservice16protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2623,6 +2655,8 @@ type OutputService17ProtocolTest struct { // svc := outputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService17ProtocolTest { c := p.ClientConfig("outputservice17protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService17ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/restjson/build_test.go b/private/protocol/restjson/build_test.go index 2a1550bca73..775c11f61f0 100644 --- a/private/protocol/restjson/build_test.go +++ b/private/protocol/restjson/build_test.go @@ -70,6 +70,8 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -212,6 +214,8 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -379,6 +383,8 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -546,6 +552,8 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -696,6 +704,8 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -871,6 +881,8 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1046,6 +1058,8 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1282,6 +1296,8 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1465,6 +1481,8 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1676,6 +1694,8 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1895,6 +1915,8 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2078,6 +2100,8 @@ type InputService12ProtocolTest struct { // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { c := p.ClientConfig("inputservice12protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2254,6 +2278,8 @@ type InputService13ProtocolTest struct { // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { c := p.ClientConfig("inputservice13protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2490,6 +2516,8 @@ type InputService14ProtocolTest struct { // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { c := p.ClientConfig("inputservice14protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2738,6 +2766,8 @@ type InputService15ProtocolTest struct { // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { c := p.ClientConfig("inputservice15protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2974,6 +3004,8 @@ type InputService16ProtocolTest struct { // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { c := p.ClientConfig("inputservice16protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3590,6 +3622,8 @@ type InputService17ProtocolTest struct { // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest { c := p.ClientConfig("inputservice17protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3804,6 +3838,8 @@ type InputService18ProtocolTest struct { // svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { c := p.ClientConfig("inputservice18protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3954,6 +3990,8 @@ type InputService19ProtocolTest struct { // svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { c := p.ClientConfig("inputservice19protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -4104,6 +4142,8 @@ type InputService20ProtocolTest struct { // svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest { c := p.ClientConfig("inputservice20protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -4340,6 +4380,8 @@ type InputService21ProtocolTest struct { // svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest { c := p.ClientConfig("inputservice21protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -4730,6 +4772,8 @@ type InputService22ProtocolTest struct { // svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest { c := p.ClientConfig("inputservice22protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5054,6 +5098,8 @@ type InputService23ProtocolTest struct { // svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest { c := p.ClientConfig("inputservice23protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5317,6 +5363,8 @@ type InputService24ProtocolTest struct { // svc := inputservice24protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService24ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService24ProtocolTest { c := p.ClientConfig("inputservice24protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService24ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5867,6 +5915,8 @@ type InputService25ProtocolTest struct { // svc := inputservice25protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService25ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService25ProtocolTest { c := p.ClientConfig("inputservice25protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService25ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/restjson/unmarshal_test.go b/private/protocol/restjson/unmarshal_test.go index e0898d1e8b3..452fff35657 100644 --- a/private/protocol/restjson/unmarshal_test.go +++ b/private/protocol/restjson/unmarshal_test.go @@ -70,6 +70,8 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -324,6 +326,8 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -494,6 +498,8 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -710,6 +716,8 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -858,6 +866,8 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1018,6 +1028,8 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1166,6 +1178,8 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1314,6 +1328,8 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1462,6 +1478,8 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1603,6 +1621,8 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1765,6 +1785,8 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1933,6 +1955,8 @@ type OutputService12ProtocolTest struct { // svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { c := p.ClientConfig("outputservice12protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2081,6 +2105,8 @@ type OutputService13ProtocolTest struct { // svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest { c := p.ClientConfig("outputservice13protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2345,6 +2371,8 @@ type OutputService14ProtocolTest struct { // svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest { c := p.ClientConfig("outputservice14protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/restxml/build_test.go b/private/protocol/restxml/build_test.go index 90ca9bc64d9..b90d8677da3 100644 --- a/private/protocol/restxml/build_test.go +++ b/private/protocol/restxml/build_test.go @@ -70,6 +70,8 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -400,6 +402,8 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -574,6 +578,8 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -846,6 +852,8 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1024,6 +1032,8 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1174,6 +1184,8 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1324,6 +1336,8 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1474,6 +1488,8 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1624,6 +1640,8 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1786,6 +1804,8 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1949,6 +1969,8 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2163,6 +2185,8 @@ type InputService12ProtocolTest struct { // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { c := p.ClientConfig("inputservice12protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2313,6 +2337,8 @@ type InputService13ProtocolTest struct { // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { c := p.ClientConfig("inputservice13protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2463,6 +2489,8 @@ type InputService14ProtocolTest struct { // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { c := p.ClientConfig("inputservice14protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2638,6 +2666,8 @@ type InputService15ProtocolTest struct { // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { c := p.ClientConfig("inputservice15protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2813,6 +2843,8 @@ type InputService16ProtocolTest struct { // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { c := p.ClientConfig("inputservice16protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3049,6 +3081,8 @@ type InputService17ProtocolTest struct { // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest { c := p.ClientConfig("inputservice17protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3199,6 +3233,8 @@ type InputService18ProtocolTest struct { // svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { c := p.ClientConfig("inputservice18protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3435,6 +3471,8 @@ type InputService19ProtocolTest struct { // svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { c := p.ClientConfig("inputservice19protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -3855,6 +3893,8 @@ type InputService20ProtocolTest struct { // svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest { c := p.ClientConfig("inputservice20protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -4037,6 +4077,8 @@ type InputService21ProtocolTest struct { // svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest { c := p.ClientConfig("inputservice21protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -4219,6 +4261,8 @@ type InputService22ProtocolTest struct { // svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest { c := p.ClientConfig("inputservice22protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -4455,6 +4499,8 @@ type InputService23ProtocolTest struct { // svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest { c := p.ClientConfig("inputservice23protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5071,6 +5117,8 @@ type InputService24ProtocolTest struct { // svc := inputservice24protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService24ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService24ProtocolTest { c := p.ClientConfig("inputservice24protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService24ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5307,6 +5355,8 @@ type InputService25ProtocolTest struct { // svc := inputservice25protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService25ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService25ProtocolTest { c := p.ClientConfig("inputservice25protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService25ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5665,6 +5715,8 @@ type InputService26ProtocolTest struct { // svc := inputservice26protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService26ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService26ProtocolTest { c := p.ClientConfig("inputservice26protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService26ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -5928,6 +5980,8 @@ type InputService27ProtocolTest struct { // svc := inputservice27protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService27ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService27ProtocolTest { c := p.ClientConfig("inputservice27protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newInputService27ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/private/protocol/restxml/unmarshal_test.go b/private/protocol/restxml/unmarshal_test.go index ddb033251b0..3d7538d0729 100644 --- a/private/protocol/restxml/unmarshal_test.go +++ b/private/protocol/restxml/unmarshal_test.go @@ -70,6 +70,8 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -498,6 +500,8 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -647,6 +651,8 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -795,6 +801,8 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -943,6 +951,8 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1091,6 +1101,8 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1251,6 +1263,8 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1399,6 +1413,8 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1547,6 +1563,8 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1715,6 +1733,8 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -1863,6 +1883,8 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2075,6 +2097,8 @@ type OutputService12ProtocolTest struct { // svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { c := p.ClientConfig("outputservice12protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2223,6 +2247,8 @@ type OutputService13ProtocolTest struct { // svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest { c := p.ClientConfig("outputservice13protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2439,6 +2465,8 @@ type OutputService14ProtocolTest struct { // svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest { c := p.ClientConfig("outputservice14protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } @@ -2730,6 +2758,8 @@ type OutputService15ProtocolTest struct { // svc := outputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService15ProtocolTest { c := p.ClientConfig("outputservice15protocoltest", cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + } return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/acm/service.go b/service/acm/service.go index bd9ccca069b..babab7ba2ce 100644 --- a/service/acm/service.go +++ b/service/acm/service.go @@ -49,6 +49,10 @@ const ( // svc := acm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACM { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/acmpca/service.go b/service/acmpca/service.go index 1633ea779c7..ca99cc8ac18 100644 --- a/service/acmpca/service.go +++ b/service/acmpca/service.go @@ -49,6 +49,10 @@ const ( // svc := acmpca.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACMPCA { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/alexaforbusiness/service.go b/service/alexaforbusiness/service.go index 080bc7fd62d..ca0c4c18955 100644 --- a/service/alexaforbusiness/service.go +++ b/service/alexaforbusiness/service.go @@ -49,6 +49,10 @@ const ( // svc := alexaforbusiness.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AlexaForBusiness { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/apigateway/service.go b/service/apigateway/service.go index 50f63f49cd7..cf09c2a52d7 100644 --- a/service/apigateway/service.go +++ b/service/apigateway/service.go @@ -49,6 +49,10 @@ const ( // svc := apigateway.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *APIGateway { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/applicationdiscoveryservice/service.go b/service/applicationdiscoveryservice/service.go index 861232d097a..6e7ec7cade6 100644 --- a/service/applicationdiscoveryservice/service.go +++ b/service/applicationdiscoveryservice/service.go @@ -49,6 +49,10 @@ const ( // svc := applicationdiscoveryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationDiscoveryService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/athena/service.go b/service/athena/service.go index 3d12c2957fd..894e97f3654 100644 --- a/service/athena/service.go +++ b/service/athena/service.go @@ -49,6 +49,10 @@ const ( // svc := athena.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Athena { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/autoscaling/service.go b/service/autoscaling/service.go index a0a6ebc065d..7945c659aec 100644 --- a/service/autoscaling/service.go +++ b/service/autoscaling/service.go @@ -48,6 +48,10 @@ const ( // svc := autoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScaling { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/backup/service.go b/service/backup/service.go index 37fc4fceda5..f3d1e24ad6a 100644 --- a/service/backup/service.go +++ b/service/backup/service.go @@ -49,6 +49,10 @@ const ( // svc := backup.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Backup { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/batch/service.go b/service/batch/service.go index fbba8ee2603..8a8bc3131af 100644 --- a/service/batch/service.go +++ b/service/batch/service.go @@ -49,6 +49,10 @@ const ( // svc := batch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Batch { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/budgets/service.go b/service/budgets/service.go index 8d2f93e808c..a8669facbe2 100644 --- a/service/budgets/service.go +++ b/service/budgets/service.go @@ -49,6 +49,10 @@ const ( // svc := budgets.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Budgets { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/chime/service.go b/service/chime/service.go index 3e1c40013d2..c1a1ce1611d 100644 --- a/service/chime/service.go +++ b/service/chime/service.go @@ -49,6 +49,10 @@ const ( // svc := chime.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Chime { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloud9/service.go b/service/cloud9/service.go index 19c83c65e55..96c7f148fbc 100644 --- a/service/cloud9/service.go +++ b/service/cloud9/service.go @@ -49,6 +49,10 @@ const ( // svc := cloud9.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Cloud9 { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudformation/service.go b/service/cloudformation/service.go index 1826915e96c..534a929c686 100644 --- a/service/cloudformation/service.go +++ b/service/cloudformation/service.go @@ -48,6 +48,10 @@ const ( // svc := cloudformation.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFormation { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudfront/service.go b/service/cloudfront/service.go index 8043bc77a2a..ce67a589467 100644 --- a/service/cloudfront/service.go +++ b/service/cloudfront/service.go @@ -48,6 +48,10 @@ const ( // svc := cloudfront.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFront { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudhsm/service.go b/service/cloudhsm/service.go index 82d15e7cd73..ec75a6c17dd 100644 --- a/service/cloudhsm/service.go +++ b/service/cloudhsm/service.go @@ -49,6 +49,10 @@ const ( // svc := cloudhsm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudHSM { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudsearch/service.go b/service/cloudsearch/service.go index 82e39cea63a..0a35e7914e4 100644 --- a/service/cloudsearch/service.go +++ b/service/cloudsearch/service.go @@ -48,6 +48,10 @@ const ( // svc := cloudsearch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudSearch { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudtrail/service.go b/service/cloudtrail/service.go index 8606a24fc2b..f18d38d5557 100644 --- a/service/cloudtrail/service.go +++ b/service/cloudtrail/service.go @@ -49,6 +49,10 @@ const ( // svc := cloudtrail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudTrail { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudwatch/service.go b/service/cloudwatch/service.go index 36e7bd03ffd..739f94e41a3 100644 --- a/service/cloudwatch/service.go +++ b/service/cloudwatch/service.go @@ -48,6 +48,10 @@ const ( // svc := cloudwatch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatch { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudwatchevents/service.go b/service/cloudwatchevents/service.go index 93f4add7c51..d52bcebf71a 100644 --- a/service/cloudwatchevents/service.go +++ b/service/cloudwatchevents/service.go @@ -49,6 +49,10 @@ const ( // svc := cloudwatchevents.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatchEvents { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cloudwatchlogs/service.go b/service/cloudwatchlogs/service.go index ba5f3c7bd65..41cf22d057d 100644 --- a/service/cloudwatchlogs/service.go +++ b/service/cloudwatchlogs/service.go @@ -49,6 +49,10 @@ const ( // svc := cloudwatchlogs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatchLogs { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/codebuild/service.go b/service/codebuild/service.go index d572c8b3425..c21aaba7554 100644 --- a/service/codebuild/service.go +++ b/service/codebuild/service.go @@ -49,6 +49,10 @@ const ( // svc := codebuild.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeBuild { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/codecommit/service.go b/service/codecommit/service.go index 733d262a883..d1335a7362a 100644 --- a/service/codecommit/service.go +++ b/service/codecommit/service.go @@ -49,6 +49,10 @@ const ( // svc := codecommit.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeCommit { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/codedeploy/service.go b/service/codedeploy/service.go index bef1a786115..4a379c35d6d 100644 --- a/service/codedeploy/service.go +++ b/service/codedeploy/service.go @@ -49,6 +49,10 @@ const ( // svc := codedeploy.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeDeploy { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/codepipeline/service.go b/service/codepipeline/service.go index 7250de04d36..19b4a1705d3 100644 --- a/service/codepipeline/service.go +++ b/service/codepipeline/service.go @@ -49,6 +49,10 @@ const ( // svc := codepipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodePipeline { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/codestar/service.go b/service/codestar/service.go index 1517542d15f..f2ad53cf447 100644 --- a/service/codestar/service.go +++ b/service/codestar/service.go @@ -49,6 +49,10 @@ const ( // svc := codestar.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeStar { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cognitoidentity/service.go b/service/cognitoidentity/service.go index 3c6ab62dbe4..b9e46f983ed 100644 --- a/service/cognitoidentity/service.go +++ b/service/cognitoidentity/service.go @@ -49,6 +49,10 @@ const ( // svc := cognitoidentity.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoIdentity { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cognitoidentityprovider/service.go b/service/cognitoidentityprovider/service.go index 7d2cdcf495a..341894e4ec7 100644 --- a/service/cognitoidentityprovider/service.go +++ b/service/cognitoidentityprovider/service.go @@ -49,6 +49,10 @@ const ( // svc := cognitoidentityprovider.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoIdentityProvider { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/cognitosync/service.go b/service/cognitosync/service.go index 3a393f857ef..c18df19d0ee 100644 --- a/service/cognitosync/service.go +++ b/service/cognitosync/service.go @@ -49,6 +49,10 @@ const ( // svc := cognitosync.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoSync { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/configservice/service.go b/service/configservice/service.go index e39f5c404be..e346cb7d142 100644 --- a/service/configservice/service.go +++ b/service/configservice/service.go @@ -49,6 +49,10 @@ const ( // svc := configservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ConfigService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/databasemigrationservice/service.go b/service/databasemigrationservice/service.go index a2ceff2215c..898ee53847d 100644 --- a/service/databasemigrationservice/service.go +++ b/service/databasemigrationservice/service.go @@ -49,6 +49,10 @@ const ( // svc := databasemigrationservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DatabaseMigrationService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/datapipeline/service.go b/service/datapipeline/service.go index 8648b03577b..fcd797556ef 100644 --- a/service/datapipeline/service.go +++ b/service/datapipeline/service.go @@ -49,6 +49,10 @@ const ( // svc := datapipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DataPipeline { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/dax/service.go b/service/dax/service.go index 4ccb092c8fc..2984d05067c 100644 --- a/service/dax/service.go +++ b/service/dax/service.go @@ -49,6 +49,10 @@ const ( // svc := dax.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DAX { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/devicefarm/service.go b/service/devicefarm/service.go index 32cfe3f66a5..f2ccc5667d1 100644 --- a/service/devicefarm/service.go +++ b/service/devicefarm/service.go @@ -49,6 +49,10 @@ const ( // svc := devicefarm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DeviceFarm { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/directconnect/service.go b/service/directconnect/service.go index 9dbbbc33ef0..b83ad06405e 100644 --- a/service/directconnect/service.go +++ b/service/directconnect/service.go @@ -49,6 +49,10 @@ const ( // svc := directconnect.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectConnect { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/directoryservice/service.go b/service/directoryservice/service.go index 3fed419f937..e3d5ba025e1 100644 --- a/service/directoryservice/service.go +++ b/service/directoryservice/service.go @@ -49,6 +49,10 @@ const ( // svc := directoryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectoryService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/dynamodb/service.go b/service/dynamodb/service.go index f879ed53dd6..5ac20deea9d 100644 --- a/service/dynamodb/service.go +++ b/service/dynamodb/service.go @@ -51,6 +51,10 @@ const ( // svc := dynamodb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DynamoDB { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/ebs/service.go b/service/ebs/service.go index 9a33941f6d3..df5a98bacff 100644 --- a/service/ebs/service.go +++ b/service/ebs/service.go @@ -49,6 +49,10 @@ const ( // svc := ebs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EBS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/ec2/service.go b/service/ec2/service.go index 15ad4aa67c8..a8f15fd6b90 100644 --- a/service/ec2/service.go +++ b/service/ec2/service.go @@ -48,6 +48,10 @@ const ( // svc := ec2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EC2 { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/ec2instanceconnect/service.go b/service/ec2instanceconnect/service.go index d621df68aa1..e0a897cb125 100644 --- a/service/ec2instanceconnect/service.go +++ b/service/ec2instanceconnect/service.go @@ -49,6 +49,10 @@ const ( // svc := ec2instanceconnect.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EC2InstanceConnect { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/ecs/service.go b/service/ecs/service.go index 5292d1326a0..e99c4328d8d 100644 --- a/service/ecs/service.go +++ b/service/ecs/service.go @@ -49,6 +49,10 @@ const ( // svc := ecs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ECS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/efs/service.go b/service/efs/service.go index be7182263ad..7535a104266 100644 --- a/service/efs/service.go +++ b/service/efs/service.go @@ -49,6 +49,10 @@ const ( // svc := efs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EFS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/elasticache/service.go b/service/elasticache/service.go index 0912e15b28c..a4d2bb26abc 100644 --- a/service/elasticache/service.go +++ b/service/elasticache/service.go @@ -48,6 +48,10 @@ const ( // svc := elasticache.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElastiCache { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/elasticbeanstalk/service.go b/service/elasticbeanstalk/service.go index d047cdfe34e..64d465c478f 100644 --- a/service/elasticbeanstalk/service.go +++ b/service/elasticbeanstalk/service.go @@ -48,6 +48,10 @@ const ( // svc := elasticbeanstalk.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticBeanstalk { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/elasticsearchservice/service.go b/service/elasticsearchservice/service.go index 00e02f106e6..a5037f5da87 100644 --- a/service/elasticsearchservice/service.go +++ b/service/elasticsearchservice/service.go @@ -49,6 +49,10 @@ const ( // svc := elasticsearchservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticsearchService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/elastictranscoder/service.go b/service/elastictranscoder/service.go index 63c40cba397..3a123055f9d 100644 --- a/service/elastictranscoder/service.go +++ b/service/elastictranscoder/service.go @@ -49,6 +49,10 @@ const ( // svc := elastictranscoder.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticTranscoder { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/elb/service.go b/service/elb/service.go index 0d6196ba356..4971ec813ba 100644 --- a/service/elb/service.go +++ b/service/elb/service.go @@ -48,6 +48,10 @@ const ( // svc := elb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELB { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/elbv2/service.go b/service/elbv2/service.go index 1c6b9c4ad1c..e28f0dfb26c 100644 --- a/service/elbv2/service.go +++ b/service/elbv2/service.go @@ -48,6 +48,10 @@ const ( // svc := elbv2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELBV2 { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/emr/service.go b/service/emr/service.go index ea687769e67..7dcccc6f6ac 100644 --- a/service/emr/service.go +++ b/service/emr/service.go @@ -49,6 +49,10 @@ const ( // svc := emr.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EMR { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/eventbridge/service.go b/service/eventbridge/service.go index 13c68d2201d..2287ecc39a7 100644 --- a/service/eventbridge/service.go +++ b/service/eventbridge/service.go @@ -49,6 +49,10 @@ const ( // svc := eventbridge.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EventBridge { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/firehose/service.go b/service/firehose/service.go index cec729a849a..cae2752ca05 100644 --- a/service/firehose/service.go +++ b/service/firehose/service.go @@ -49,6 +49,10 @@ const ( // svc := firehose.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Firehose { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/fms/service.go b/service/fms/service.go index 9e2ae7cfc25..82c9b0eb879 100644 --- a/service/fms/service.go +++ b/service/fms/service.go @@ -49,6 +49,10 @@ const ( // svc := fms.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *FMS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/frauddetector/service.go b/service/frauddetector/service.go index 05304ef8294..b525cb3deb0 100644 --- a/service/frauddetector/service.go +++ b/service/frauddetector/service.go @@ -49,6 +49,10 @@ const ( // svc := frauddetector.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *FraudDetector { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/gamelift/service.go b/service/gamelift/service.go index 61e7c78f78b..237eb472763 100644 --- a/service/gamelift/service.go +++ b/service/gamelift/service.go @@ -49,6 +49,10 @@ const ( // svc := gamelift.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *GameLift { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/glacier/service.go b/service/glacier/service.go index 27b0d24aa4e..0c34fc7c5a2 100644 --- a/service/glacier/service.go +++ b/service/glacier/service.go @@ -49,6 +49,10 @@ const ( // svc := glacier.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Glacier { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/glue/service.go b/service/glue/service.go index 9d9c1e7fd86..a5de4edf909 100644 --- a/service/glue/service.go +++ b/service/glue/service.go @@ -49,6 +49,10 @@ const ( // svc := glue.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Glue { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/greengrassv2/service.go b/service/greengrassv2/service.go index 505d0402761..2603b8586a5 100644 --- a/service/greengrassv2/service.go +++ b/service/greengrassv2/service.go @@ -49,6 +49,10 @@ const ( // svc := greengrassv2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *GreengrassV2 { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/health/service.go b/service/health/service.go index 7c5f9d42965..5aa61681eba 100644 --- a/service/health/service.go +++ b/service/health/service.go @@ -49,6 +49,10 @@ const ( // svc := health.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Health { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/iam/service.go b/service/iam/service.go index 89fe8231012..7361474ed4f 100644 --- a/service/iam/service.go +++ b/service/iam/service.go @@ -48,6 +48,10 @@ const ( // svc := iam.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *IAM { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/inspector/service.go b/service/inspector/service.go index 64532e392fb..f709100cc98 100644 --- a/service/inspector/service.go +++ b/service/inspector/service.go @@ -49,6 +49,10 @@ const ( // svc := inspector.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Inspector { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kinesis/service.go b/service/kinesis/service.go index c6819dc44fd..ba48501994a 100644 --- a/service/kinesis/service.go +++ b/service/kinesis/service.go @@ -49,6 +49,10 @@ const ( // svc := kinesis.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Kinesis { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kinesisanalytics/service.go b/service/kinesisanalytics/service.go index 3f87dba976b..033d5346e31 100644 --- a/service/kinesisanalytics/service.go +++ b/service/kinesisanalytics/service.go @@ -49,6 +49,10 @@ const ( // svc := kinesisanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisAnalytics { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kinesisvideo/service.go b/service/kinesisvideo/service.go index cf64d5f61cb..887a8c5cc1b 100644 --- a/service/kinesisvideo/service.go +++ b/service/kinesisvideo/service.go @@ -49,6 +49,9 @@ const ( // svc := kinesisvideo.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisVideo { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "kinesisvideo" + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kinesisvideoarchivedmedia/service.go b/service/kinesisvideoarchivedmedia/service.go index 7ae2c43b1c4..820a72cc8a7 100644 --- a/service/kinesisvideoarchivedmedia/service.go +++ b/service/kinesisvideoarchivedmedia/service.go @@ -49,6 +49,10 @@ const ( // svc := kinesisvideoarchivedmedia.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisVideoArchivedMedia { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kinesisvideomedia/service.go b/service/kinesisvideomedia/service.go index e56f577f352..32225f50eff 100644 --- a/service/kinesisvideomedia/service.go +++ b/service/kinesisvideomedia/service.go @@ -49,6 +49,10 @@ const ( // svc := kinesisvideomedia.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisVideoMedia { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kinesisvideosignalingchannels/service.go b/service/kinesisvideosignalingchannels/service.go index 0460021b0f3..bcfff746bad 100644 --- a/service/kinesisvideosignalingchannels/service.go +++ b/service/kinesisvideosignalingchannels/service.go @@ -49,6 +49,10 @@ const ( // svc := kinesisvideosignalingchannels.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisVideoSignalingChannels { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/kms/service.go b/service/kms/service.go index 9492c2af3bf..18dfb8c7886 100644 --- a/service/kms/service.go +++ b/service/kms/service.go @@ -49,6 +49,10 @@ const ( // svc := kms.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KMS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/lambda/service.go b/service/lambda/service.go index 281eeab14a9..bb9124d2384 100644 --- a/service/lambda/service.go +++ b/service/lambda/service.go @@ -49,6 +49,10 @@ const ( // svc := lambda.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lambda { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/licensemanager/service.go b/service/licensemanager/service.go index 41e62de3a67..51917a6bebd 100644 --- a/service/licensemanager/service.go +++ b/service/licensemanager/service.go @@ -49,6 +49,10 @@ const ( // svc := licensemanager.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *LicenseManager { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/lightsail/service.go b/service/lightsail/service.go index 24f46df1e41..398fb3105e6 100644 --- a/service/lightsail/service.go +++ b/service/lightsail/service.go @@ -49,6 +49,10 @@ const ( // svc := lightsail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lightsail { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/lookoutequipment/service.go b/service/lookoutequipment/service.go index 2ef6d8135eb..711e389a553 100644 --- a/service/lookoutequipment/service.go +++ b/service/lookoutequipment/service.go @@ -49,6 +49,10 @@ const ( // svc := lookoutequipment.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *LookoutEquipment { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/machinelearning/service.go b/service/machinelearning/service.go index 20870966b85..8f862e97525 100644 --- a/service/machinelearning/service.go +++ b/service/machinelearning/service.go @@ -49,6 +49,10 @@ const ( // svc := machinelearning.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MachineLearning { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/macie/service.go b/service/macie/service.go index 2bfe9cd22e9..561c75910dc 100644 --- a/service/macie/service.go +++ b/service/macie/service.go @@ -49,6 +49,10 @@ const ( // svc := macie.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Macie { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/migrationhub/service.go b/service/migrationhub/service.go index 23edcbfcd0d..60dc583b19c 100644 --- a/service/migrationhub/service.go +++ b/service/migrationhub/service.go @@ -49,6 +49,10 @@ const ( // svc := migrationhub.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MigrationHub { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/mobileanalytics/service.go b/service/mobileanalytics/service.go index e5e61028359..8dbd6dfe4b4 100644 --- a/service/mobileanalytics/service.go +++ b/service/mobileanalytics/service.go @@ -49,6 +49,10 @@ const ( // svc := mobileanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MobileAnalytics { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/mturk/service.go b/service/mturk/service.go index 675d413bccc..56edb880e92 100644 --- a/service/mturk/service.go +++ b/service/mturk/service.go @@ -49,6 +49,10 @@ const ( // svc := mturk.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MTurk { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/opensearchservice/service.go b/service/opensearchservice/service.go index 9c6360bfdda..4fc2ff269b6 100644 --- a/service/opensearchservice/service.go +++ b/service/opensearchservice/service.go @@ -49,6 +49,10 @@ const ( // svc := opensearchservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *OpenSearchService { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/opsworks/service.go b/service/opsworks/service.go index 1859e94ec4a..0ce3de30fbb 100644 --- a/service/opsworks/service.go +++ b/service/opsworks/service.go @@ -49,6 +49,10 @@ const ( // svc := opsworks.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *OpsWorks { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/organizations/service.go b/service/organizations/service.go index f0b2e070607..f74f340bed8 100644 --- a/service/organizations/service.go +++ b/service/organizations/service.go @@ -49,6 +49,10 @@ const ( // svc := organizations.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Organizations { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/polly/service.go b/service/polly/service.go index 9b6cbbc9596..23936833d82 100644 --- a/service/polly/service.go +++ b/service/polly/service.go @@ -49,6 +49,10 @@ const ( // svc := polly.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Polly { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/quicksight/service.go b/service/quicksight/service.go index 1ef3dd37f2d..2ce79ed3b3b 100644 --- a/service/quicksight/service.go +++ b/service/quicksight/service.go @@ -49,6 +49,10 @@ const ( // svc := quicksight.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *QuickSight { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/ram/service.go b/service/ram/service.go index 1ac13742cc7..6da6f0a4cf1 100644 --- a/service/ram/service.go +++ b/service/ram/service.go @@ -49,6 +49,10 @@ const ( // svc := ram.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *RAM { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/rds/service.go b/service/rds/service.go index d7ff410cbeb..ca04c4d5473 100644 --- a/service/rds/service.go +++ b/service/rds/service.go @@ -48,6 +48,10 @@ const ( // svc := rds.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *RDS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/redshift/service.go b/service/redshift/service.go index 7d0c038d13d..c87d185a96b 100644 --- a/service/redshift/service.go +++ b/service/redshift/service.go @@ -48,6 +48,10 @@ const ( // svc := redshift.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Redshift { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/rekognition/service.go b/service/rekognition/service.go index ff6df8d8ea7..ab1394f1449 100644 --- a/service/rekognition/service.go +++ b/service/rekognition/service.go @@ -49,6 +49,10 @@ const ( // svc := rekognition.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Rekognition { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/resourcegroupstaggingapi/service.go b/service/resourcegroupstaggingapi/service.go index 3d09e0db4ac..b3464e4e486 100644 --- a/service/resourcegroupstaggingapi/service.go +++ b/service/resourcegroupstaggingapi/service.go @@ -49,6 +49,10 @@ const ( // svc := resourcegroupstaggingapi.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ResourceGroupsTaggingAPI { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/route53/service.go b/service/route53/service.go index 3aeb5fdfd6f..11d6c61bce1 100644 --- a/service/route53/service.go +++ b/service/route53/service.go @@ -48,6 +48,10 @@ const ( // svc := route53.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53 { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/route53domains/service.go b/service/route53domains/service.go index 22aebe9687c..d685a5493bf 100644 --- a/service/route53domains/service.go +++ b/service/route53domains/service.go @@ -49,6 +49,10 @@ const ( // svc := route53domains.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53Domains { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/route53resolver/service.go b/service/route53resolver/service.go index 2d5057144bc..7cb9d537af1 100644 --- a/service/route53resolver/service.go +++ b/service/route53resolver/service.go @@ -49,6 +49,10 @@ const ( // svc := route53resolver.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53Resolver { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/savingsplans/service.go b/service/savingsplans/service.go index d2cd1a98e13..6de1fb03895 100644 --- a/service/savingsplans/service.go +++ b/service/savingsplans/service.go @@ -49,6 +49,10 @@ const ( // svc := savingsplans.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SavingsPlans { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/servicecatalog/service.go b/service/servicecatalog/service.go index a770f4cc011..959cd33e015 100644 --- a/service/servicecatalog/service.go +++ b/service/servicecatalog/service.go @@ -49,6 +49,10 @@ const ( // svc := servicecatalog.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ServiceCatalog { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/servicediscovery/service.go b/service/servicediscovery/service.go index 0441f44ead2..09e505c9e05 100644 --- a/service/servicediscovery/service.go +++ b/service/servicediscovery/service.go @@ -49,6 +49,10 @@ const ( // svc := servicediscovery.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ServiceDiscovery { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/servicequotas/service.go b/service/servicequotas/service.go index 23ca3a0bab0..752a0a1c3c5 100644 --- a/service/servicequotas/service.go +++ b/service/servicequotas/service.go @@ -49,6 +49,10 @@ const ( // svc := servicequotas.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ServiceQuotas { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/sfn/service.go b/service/sfn/service.go index bdaa0e24cc6..80425112fa0 100644 --- a/service/sfn/service.go +++ b/service/sfn/service.go @@ -49,6 +49,10 @@ const ( // svc := sfn.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SFN { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/shield/service.go b/service/shield/service.go index a6122a39dde..bc92319ff9c 100644 --- a/service/shield/service.go +++ b/service/shield/service.go @@ -49,6 +49,10 @@ const ( // svc := shield.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Shield { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/simpledb/service.go b/service/simpledb/service.go index 88ee92cc42f..37ae02f31ff 100644 --- a/service/simpledb/service.go +++ b/service/simpledb/service.go @@ -49,6 +49,10 @@ const ( // svc := simpledb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SimpleDB { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/sms/service.go b/service/sms/service.go index a3c2e464874..0795ac78449 100644 --- a/service/sms/service.go +++ b/service/sms/service.go @@ -49,6 +49,10 @@ const ( // svc := sms.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SMS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/snowball/service.go b/service/snowball/service.go index 6de9f6d9b42..8477497095e 100644 --- a/service/snowball/service.go +++ b/service/snowball/service.go @@ -49,6 +49,10 @@ const ( // svc := snowball.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Snowball { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/sns/service.go b/service/sns/service.go index ec623a2e7b0..b56ae0bc941 100644 --- a/service/sns/service.go +++ b/service/sns/service.go @@ -48,6 +48,10 @@ const ( // svc := sns.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SNS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/sqs/service.go b/service/sqs/service.go index 432b4305729..d4beb27471c 100644 --- a/service/sqs/service.go +++ b/service/sqs/service.go @@ -48,6 +48,10 @@ const ( // svc := sqs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SQS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/ssm/service.go b/service/ssm/service.go index 89da3a2b347..ce43d22e201 100644 --- a/service/ssm/service.go +++ b/service/ssm/service.go @@ -49,6 +49,10 @@ const ( // svc := ssm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SSM { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/storagegateway/service.go b/service/storagegateway/service.go index 1a9ffb82c66..f9c6a759372 100644 --- a/service/storagegateway/service.go +++ b/service/storagegateway/service.go @@ -49,6 +49,10 @@ const ( // svc := storagegateway.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *StorageGateway { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/sts/service.go b/service/sts/service.go index 703defd969d..f324ff108a1 100644 --- a/service/sts/service.go +++ b/service/sts/service.go @@ -48,6 +48,10 @@ const ( // svc := sts.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *STS { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/support/service.go b/service/support/service.go index 5b61208bc31..c74dbbae3ee 100644 --- a/service/support/service.go +++ b/service/support/service.go @@ -49,6 +49,10 @@ const ( // svc := support.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Support { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/swf/service.go b/service/swf/service.go index 8b8ff871f6f..25d14c2fa46 100644 --- a/service/swf/service.go +++ b/service/swf/service.go @@ -49,6 +49,10 @@ const ( // svc := swf.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SWF { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/textract/service.go b/service/textract/service.go index 44d040fbdb8..1303caa7a91 100644 --- a/service/textract/service.go +++ b/service/textract/service.go @@ -49,6 +49,10 @@ const ( // svc := textract.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Textract { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/waf/service.go b/service/waf/service.go index 151857d82c4..0b8057b84c5 100644 --- a/service/waf/service.go +++ b/service/waf/service.go @@ -49,6 +49,10 @@ const ( // svc := waf.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WAF { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/wafregional/service.go b/service/wafregional/service.go index cd44dfae4c4..223b2e82cdf 100644 --- a/service/wafregional/service.go +++ b/service/wafregional/service.go @@ -49,6 +49,10 @@ const ( // svc := wafregional.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WAFRegional { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/wafv2/service.go b/service/wafv2/service.go index c146ad6cbcb..ae19c344574 100644 --- a/service/wafv2/service.go +++ b/service/wafv2/service.go @@ -49,6 +49,10 @@ const ( // svc := wafv2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WAFV2 { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/workdocs/service.go b/service/workdocs/service.go index eb4a62b1687..135a9428a03 100644 --- a/service/workdocs/service.go +++ b/service/workdocs/service.go @@ -49,6 +49,10 @@ const ( // svc := workdocs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkDocs { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/workmail/service.go b/service/workmail/service.go index 8e60ef7b022..b8c231329be 100644 --- a/service/workmail/service.go +++ b/service/workmail/service.go @@ -49,6 +49,10 @@ const ( // svc := workmail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkMail { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/workmailmessageflow/service.go b/service/workmailmessageflow/service.go index 1f0a49cb5fe..43506087c9c 100644 --- a/service/workmailmessageflow/service.go +++ b/service/workmailmessageflow/service.go @@ -49,6 +49,10 @@ const ( // svc := workmailmessageflow.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkMailMessageFlow { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/workspaces/service.go b/service/workspaces/service.go index 84b6eda7e30..bc6d06f6fc7 100644 --- a/service/workspaces/service.go +++ b/service/workspaces/service.go @@ -49,6 +49,10 @@ const ( // svc := workspaces.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkSpaces { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) } diff --git a/service/xray/service.go b/service/xray/service.go index 4a512965c02..ac6f99906e5 100644 --- a/service/xray/service.go +++ b/service/xray/service.go @@ -49,6 +49,10 @@ const ( // svc := xray.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *XRay { c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = EndpointsID + // No Fallback + } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) }