From b3442469932326cf3cd56ba7014c410339b8b251 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 16 May 2022 14:48:20 -0700 Subject: [PATCH] Fix iotsecuretunneling and mobile API clients to use correct signing name (#1711) Fixes iotsecuretunneling and mobile API clients to use the correct name for signing requests. The models for these APIs contained the wrong name. This PR fixes that, and regenerates the API clients. Fixes #1686 --- .changelog/e4cddb5c443e4c7ab265dd02f294fbde.json | 9 +++++++++ codegen/sdk-codegen/aws-models/iotsecuretunneling.json | 2 +- codegen/sdk-codegen/aws-models/kinesis.json | 5 ++++- codegen/sdk-codegen/aws-models/lex-runtime-v2.json | 5 ++++- codegen/sdk-codegen/aws-models/mobile.json | 2 +- codegen/sdk-codegen/aws-models/transcribe-streaming.json | 5 ++++- service/iotsecuretunneling/api_op_CloseTunnel.go | 2 +- service/iotsecuretunneling/api_op_DescribeTunnel.go | 2 +- service/iotsecuretunneling/api_op_ListTagsForResource.go | 2 +- service/iotsecuretunneling/api_op_ListTunnels.go | 2 +- service/iotsecuretunneling/api_op_OpenTunnel.go | 2 +- .../iotsecuretunneling/api_op_RotateTunnelAccessToken.go | 2 +- service/iotsecuretunneling/api_op_TagResource.go | 2 +- service/iotsecuretunneling/api_op_UntagResource.go | 2 +- service/mobile/api_op_CreateProject.go | 2 +- service/mobile/api_op_DeleteProject.go | 2 +- service/mobile/api_op_DescribeBundle.go | 2 +- service/mobile/api_op_DescribeProject.go | 2 +- service/mobile/api_op_ExportBundle.go | 2 +- service/mobile/api_op_ExportProject.go | 2 +- service/mobile/api_op_ListBundles.go | 2 +- service/mobile/api_op_ListProjects.go | 2 +- service/mobile/api_op_UpdateProject.go | 2 +- 23 files changed, 40 insertions(+), 22 deletions(-) create mode 100644 .changelog/e4cddb5c443e4c7ab265dd02f294fbde.json diff --git a/.changelog/e4cddb5c443e4c7ab265dd02f294fbde.json b/.changelog/e4cddb5c443e4c7ab265dd02f294fbde.json new file mode 100644 index 00000000000..c304fce4e90 --- /dev/null +++ b/.changelog/e4cddb5c443e4c7ab265dd02f294fbde.json @@ -0,0 +1,9 @@ +{ + "id": "e4cddb5c-443e-4c7a-b265-dd02f294fbde", + "type": "bugfix", + "description": "Fixes iotsecuretunneling and mobile API clients to use the correct name for signing requests, Fixes [#1686](https://github.com/aws/aws-sdk-go-v2/issues/1686).", + "modules": [ + "service/iotsecuretunneling", + "service/mobile" + ] +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/iotsecuretunneling.json b/codegen/sdk-codegen/aws-models/iotsecuretunneling.json index 26d2606846a..caa781f3097 100644 --- a/codegen/sdk-codegen/aws-models/iotsecuretunneling.json +++ b/codegen/sdk-codegen/aws-models/iotsecuretunneling.json @@ -238,7 +238,7 @@ "endpointPrefix": "api.tunneling.iot" }, "aws.auth#sigv4": { - "name": "iotsecuredtunneling" + "name": "IoTSecuredTunneling" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "IoT Secure Tunneling\n\t\t

IoT Secure Tunneling creates remote connections to devices deployed in the\n\t\t\tfield.

\n\t\t

For more information about how IoT Secure Tunneling works, see IoT\n\t\t\t\tSecure Tunneling.

", diff --git a/codegen/sdk-codegen/aws-models/kinesis.json b/codegen/sdk-codegen/aws-models/kinesis.json index 519a8f2fab8..e18cd110707 100644 --- a/codegen/sdk-codegen/aws-models/kinesis.json +++ b/codegen/sdk-codegen/aws-models/kinesis.json @@ -1277,7 +1277,10 @@ "aws.auth#sigv4": { "name": "kinesis" }, - "aws.protocols#awsJson1_1": {}, + "aws.protocols#awsJson1_1": { + "http": ["http/1.1", "h2"], + "eventStreamHttp": ["h2"] + }, "smithy.api#documentation": "Amazon Kinesis Data Streams Service API Reference\n

Amazon Kinesis Data Streams is a managed service that scales elastically for real-time\n processing of streaming big data.

", "smithy.api#title": "Amazon Kinesis", "smithy.api#xmlNamespace": { diff --git a/codegen/sdk-codegen/aws-models/lex-runtime-v2.json b/codegen/sdk-codegen/aws-models/lex-runtime-v2.json index 66daa20ada7..61c201dbd6f 100644 --- a/codegen/sdk-codegen/aws-models/lex-runtime-v2.json +++ b/codegen/sdk-codegen/aws-models/lex-runtime-v2.json @@ -42,7 +42,10 @@ "aws.auth#sigv4": { "name": "lex" }, - "aws.protocols#restJson1": {}, + "aws.protocols#restJson1": { + "http": ["http/1.1", "h2"], + "eventStreamHttp": ["h2"] + }, "smithy.api#documentation": "

", "smithy.api#title": "Amazon Lex Runtime V2" }, diff --git a/codegen/sdk-codegen/aws-models/mobile.json b/codegen/sdk-codegen/aws-models/mobile.json index 785148ffd59..731bea56020 100644 --- a/codegen/sdk-codegen/aws-models/mobile.json +++ b/codegen/sdk-codegen/aws-models/mobile.json @@ -70,7 +70,7 @@ "endpointPrefix": "mobile" }, "aws.auth#sigv4": { - "name": "awsmobilehubservice" + "name": "AWSMobileHubService" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

\n AWS Mobile Service provides mobile app and website developers with capabilities\n required to configure AWS resources and bootstrap their developer desktop projects\n with the necessary SDKs, constants, tools and samples to make use of those resources.\n

", diff --git a/codegen/sdk-codegen/aws-models/transcribe-streaming.json b/codegen/sdk-codegen/aws-models/transcribe-streaming.json index 3f54217ce28..0fc0c6da42d 100644 --- a/codegen/sdk-codegen/aws-models/transcribe-streaming.json +++ b/codegen/sdk-codegen/aws-models/transcribe-streaming.json @@ -1447,7 +1447,10 @@ "aws.auth#sigv4": { "name": "transcribe" }, - "aws.protocols#restJson1": {}, + "aws.protocols#restJson1": { + "http": ["http/1.1", "h2"], + "eventStreamHttp": ["h2"] + }, "smithy.api#documentation": "

Operations and objects for transcribing streaming speech to text.

", "smithy.api#title": "Amazon Transcribe Streaming Service" }, diff --git a/service/iotsecuretunneling/api_op_CloseTunnel.go b/service/iotsecuretunneling/api_op_CloseTunnel.go index f622c64a4e4..cb048ef9cfb 100644 --- a/service/iotsecuretunneling/api_op_CloseTunnel.go +++ b/service/iotsecuretunneling/api_op_CloseTunnel.go @@ -118,7 +118,7 @@ func newServiceMetadataMiddleware_opCloseTunnel(region string) *awsmiddleware.Re return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "CloseTunnel", } } diff --git a/service/iotsecuretunneling/api_op_DescribeTunnel.go b/service/iotsecuretunneling/api_op_DescribeTunnel.go index 898d133e8e9..b98aef7af27 100644 --- a/service/iotsecuretunneling/api_op_DescribeTunnel.go +++ b/service/iotsecuretunneling/api_op_DescribeTunnel.go @@ -118,7 +118,7 @@ func newServiceMetadataMiddleware_opDescribeTunnel(region string) *awsmiddleware return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "DescribeTunnel", } } diff --git a/service/iotsecuretunneling/api_op_ListTagsForResource.go b/service/iotsecuretunneling/api_op_ListTagsForResource.go index ca01a57ed48..b321b37ece0 100644 --- a/service/iotsecuretunneling/api_op_ListTagsForResource.go +++ b/service/iotsecuretunneling/api_op_ListTagsForResource.go @@ -115,7 +115,7 @@ func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddl return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "ListTagsForResource", } } diff --git a/service/iotsecuretunneling/api_op_ListTunnels.go b/service/iotsecuretunneling/api_op_ListTunnels.go index 1a333f1f3e6..57a558dcbd4 100644 --- a/service/iotsecuretunneling/api_op_ListTunnels.go +++ b/service/iotsecuretunneling/api_op_ListTunnels.go @@ -211,7 +211,7 @@ func newServiceMetadataMiddleware_opListTunnels(region string) *awsmiddleware.Re return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "ListTunnels", } } diff --git a/service/iotsecuretunneling/api_op_OpenTunnel.go b/service/iotsecuretunneling/api_op_OpenTunnel.go index 4a61467bb5b..bd993264a54 100644 --- a/service/iotsecuretunneling/api_op_OpenTunnel.go +++ b/service/iotsecuretunneling/api_op_OpenTunnel.go @@ -136,7 +136,7 @@ func newServiceMetadataMiddleware_opOpenTunnel(region string) *awsmiddleware.Reg return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "OpenTunnel", } } diff --git a/service/iotsecuretunneling/api_op_RotateTunnelAccessToken.go b/service/iotsecuretunneling/api_op_RotateTunnelAccessToken.go index 5b456909747..82c44003148 100644 --- a/service/iotsecuretunneling/api_op_RotateTunnelAccessToken.go +++ b/service/iotsecuretunneling/api_op_RotateTunnelAccessToken.go @@ -139,7 +139,7 @@ func newServiceMetadataMiddleware_opRotateTunnelAccessToken(region string) *awsm return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "RotateTunnelAccessToken", } } diff --git a/service/iotsecuretunneling/api_op_TagResource.go b/service/iotsecuretunneling/api_op_TagResource.go index 1e6ebf28400..e122c715c2a 100644 --- a/service/iotsecuretunneling/api_op_TagResource.go +++ b/service/iotsecuretunneling/api_op_TagResource.go @@ -116,7 +116,7 @@ func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.Re return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "TagResource", } } diff --git a/service/iotsecuretunneling/api_op_UntagResource.go b/service/iotsecuretunneling/api_op_UntagResource.go index 2ff1bc6f134..c86c5614702 100644 --- a/service/iotsecuretunneling/api_op_UntagResource.go +++ b/service/iotsecuretunneling/api_op_UntagResource.go @@ -115,7 +115,7 @@ func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware. return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "iotsecuredtunneling", + SigningName: "IoTSecuredTunneling", OperationName: "UntagResource", } } diff --git a/service/mobile/api_op_CreateProject.go b/service/mobile/api_op_CreateProject.go index f8464cd7595..6a2feb0c1ae 100644 --- a/service/mobile/api_op_CreateProject.go +++ b/service/mobile/api_op_CreateProject.go @@ -124,7 +124,7 @@ func newServiceMetadataMiddleware_opCreateProject(region string) *awsmiddleware. return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "CreateProject", } } diff --git a/service/mobile/api_op_DeleteProject.go b/service/mobile/api_op_DeleteProject.go index 2ddbbdd8cc7..0e524c2b461 100644 --- a/service/mobile/api_op_DeleteProject.go +++ b/service/mobile/api_op_DeleteProject.go @@ -121,7 +121,7 @@ func newServiceMetadataMiddleware_opDeleteProject(region string) *awsmiddleware. return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "DeleteProject", } } diff --git a/service/mobile/api_op_DescribeBundle.go b/service/mobile/api_op_DescribeBundle.go index af62e1896e6..1eb964158d8 100644 --- a/service/mobile/api_op_DescribeBundle.go +++ b/service/mobile/api_op_DescribeBundle.go @@ -117,7 +117,7 @@ func newServiceMetadataMiddleware_opDescribeBundle(region string) *awsmiddleware return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "DescribeBundle", } } diff --git a/service/mobile/api_op_DescribeProject.go b/service/mobile/api_op_DescribeProject.go index 9b21bf81322..1169364319b 100644 --- a/service/mobile/api_op_DescribeProject.go +++ b/service/mobile/api_op_DescribeProject.go @@ -122,7 +122,7 @@ func newServiceMetadataMiddleware_opDescribeProject(region string) *awsmiddlewar return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "DescribeProject", } } diff --git a/service/mobile/api_op_ExportBundle.go b/service/mobile/api_op_ExportBundle.go index be978b9bdc2..ef0de57ff8c 100644 --- a/service/mobile/api_op_ExportBundle.go +++ b/service/mobile/api_op_ExportBundle.go @@ -128,7 +128,7 @@ func newServiceMetadataMiddleware_opExportBundle(region string) *awsmiddleware.R return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "ExportBundle", } } diff --git a/service/mobile/api_op_ExportProject.go b/service/mobile/api_op_ExportProject.go index 243db30ecd8..82f8cadcf5c 100644 --- a/service/mobile/api_op_ExportProject.go +++ b/service/mobile/api_op_ExportProject.go @@ -130,7 +130,7 @@ func newServiceMetadataMiddleware_opExportProject(region string) *awsmiddleware. return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "ExportProject", } } diff --git a/service/mobile/api_op_ListBundles.go b/service/mobile/api_op_ListBundles.go index de6ec900840..447384cd185 100644 --- a/service/mobile/api_op_ListBundles.go +++ b/service/mobile/api_op_ListBundles.go @@ -207,7 +207,7 @@ func newServiceMetadataMiddleware_opListBundles(region string) *awsmiddleware.Re return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "ListBundles", } } diff --git a/service/mobile/api_op_ListProjects.go b/service/mobile/api_op_ListProjects.go index 286afd62682..19fcc9af3f9 100644 --- a/service/mobile/api_op_ListProjects.go +++ b/service/mobile/api_op_ListProjects.go @@ -208,7 +208,7 @@ func newServiceMetadataMiddleware_opListProjects(region string) *awsmiddleware.R return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "ListProjects", } } diff --git a/service/mobile/api_op_UpdateProject.go b/service/mobile/api_op_UpdateProject.go index ba3df0aca8c..a82050d1e7d 100644 --- a/service/mobile/api_op_UpdateProject.go +++ b/service/mobile/api_op_UpdateProject.go @@ -122,7 +122,7 @@ func newServiceMetadataMiddleware_opUpdateProject(region string) *awsmiddleware. return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - SigningName: "awsmobilehubservice", + SigningName: "AWSMobileHubService", OperationName: "UpdateProject", } }