From f27370164ed5fdee75ba81f08a5100aa5ae149d6 Mon Sep 17 00:00:00 2001 From: Muhammad Othman Date: Thu, 11 Jan 2024 20:33:39 -0500 Subject: [PATCH] Fix: update CloudFrontKeyValueStore client to use AWS4aSignerCRTWrapper --- .../9dba8c79-b860-4427-9ea4-f8625d376658.json | 11 +++++++++++ .../ServiceClientGeneratorLib/GeneratorHelpers.cs | 2 ++ .../_bcl35/AmazonCloudFrontKeyValueStoreClient.cs | 2 +- .../_bcl45/AmazonCloudFrontKeyValueStoreClient.cs | 2 +- .../AmazonCloudFrontKeyValueStoreClient.cs | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 generator/.DevConfigs/9dba8c79-b860-4427-9ea4-f8625d376658.json diff --git a/generator/.DevConfigs/9dba8c79-b860-4427-9ea4-f8625d376658.json b/generator/.DevConfigs/9dba8c79-b860-4427-9ea4-f8625d376658.json new file mode 100644 index 000000000000..16ea91a270ff --- /dev/null +++ b/generator/.DevConfigs/9dba8c79-b860-4427-9ea4-f8625d376658.json @@ -0,0 +1,11 @@ +{ + "services": [ + { + "serviceName": "CloudFrontKeyValueStore", + "type": "patch", + "changeLogMessages": [ + "Fixed CloudFrontKeyValueStore to use Sigv4a instead of Sigv4." + ] + } + ] +} \ No newline at end of file diff --git a/generator/ServiceClientGeneratorLib/GeneratorHelpers.cs b/generator/ServiceClientGeneratorLib/GeneratorHelpers.cs index 2e90545b0479..b849712298c1 100644 --- a/generator/ServiceClientGeneratorLib/GeneratorHelpers.cs +++ b/generator/ServiceClientGeneratorLib/GeneratorHelpers.cs @@ -17,6 +17,8 @@ public static string DetermineSigner(string signatureVersion, string serviceBase // we should not continue to add new hardcoded service specific signers // and instead implement a solution based on a signer selection specification return "EventBridgeSigner"; + case "CloudFrontKeyValueStore": + return "AWS4aSignerCRTWrapper"; } switch (signatureVersion) diff --git a/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl35/AmazonCloudFrontKeyValueStoreClient.cs b/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl35/AmazonCloudFrontKeyValueStoreClient.cs index 42dfc23c8482..3fadfc772873 100644 --- a/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl35/AmazonCloudFrontKeyValueStoreClient.cs +++ b/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl35/AmazonCloudFrontKeyValueStoreClient.cs @@ -225,7 +225,7 @@ public AmazonCloudFrontKeyValueStoreClient(string awsAccessKeyId, string awsSecr /// protected override AbstractAWSSigner CreateSigner() { - return new AWS4Signer(); + return new AWS4aSignerCRTWrapper(); } /// diff --git a/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl45/AmazonCloudFrontKeyValueStoreClient.cs b/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl45/AmazonCloudFrontKeyValueStoreClient.cs index a01b13106e7c..c20740759c41 100644 --- a/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl45/AmazonCloudFrontKeyValueStoreClient.cs +++ b/sdk/src/Services/CloudFrontKeyValueStore/Generated/_bcl45/AmazonCloudFrontKeyValueStoreClient.cs @@ -225,7 +225,7 @@ public AmazonCloudFrontKeyValueStoreClient(string awsAccessKeyId, string awsSecr /// protected override AbstractAWSSigner CreateSigner() { - return new AWS4Signer(); + return new AWS4aSignerCRTWrapper(); } /// diff --git a/sdk/src/Services/CloudFrontKeyValueStore/Generated/_netstandard/AmazonCloudFrontKeyValueStoreClient.cs b/sdk/src/Services/CloudFrontKeyValueStore/Generated/_netstandard/AmazonCloudFrontKeyValueStoreClient.cs index 9a22a8e46791..d7c545a7a931 100644 --- a/sdk/src/Services/CloudFrontKeyValueStore/Generated/_netstandard/AmazonCloudFrontKeyValueStoreClient.cs +++ b/sdk/src/Services/CloudFrontKeyValueStore/Generated/_netstandard/AmazonCloudFrontKeyValueStoreClient.cs @@ -229,7 +229,7 @@ public ICloudFrontKeyValueStorePaginatorFactory Paginators /// protected override AbstractAWSSigner CreateSigner() { - return new AWS4Signer(); + return new AWS4aSignerCRTWrapper(); } ///