Skip to content

Commit edaaafe

Browse files
committed
Updated dynamoDB client
1 parent da6a1b4 commit edaaafe

File tree

2 files changed

+38
-22
lines changed

2 files changed

+38
-22
lines changed

generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/DynamoDBClient.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
1212
#include <smithy/client/AwsSmithyClient.h>
1313
#include <smithy/client/serializer/JsonOutcomeSerializer.h>
14+
#include <smithy/identity/auth/built-in/GenericAuthSchemeResolver.h>
1415
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
15-
#include <smithy/identity/auth/built-in/SigV4AuthSchemeResolver.h>
16+
#include <smithy/identity/auth/built-in/SigV4aAuthScheme.h>
1617

1718
namespace Aws {
1819
namespace DynamoDB {
@@ -38,7 +39,7 @@ AWS_DYNAMODB_API extern const char SERVICE_NAME[];
3839
class AWS_DYNAMODB_API DynamoDBClient
3940
: Aws::Client::ClientWithAsyncTemplateMethods<DynamoDBClient>,
4041
smithy::client::AwsSmithyClientT<Aws::DynamoDB::SERVICE_NAME, Aws::DynamoDB::DynamoDBClientConfiguration,
41-
smithy::SigV4AuthSchemeResolver<>, Aws::Crt::Variant<smithy::SigV4AuthScheme>,
42+
smithy::AuthSchemeResolverBase<>, Aws::Crt::Variant<smithy::SigV4AuthScheme>,
4243
DynamoDBEndpointProviderBase, smithy::client::JsonOutcomeSerializer, smithy::client::JsonOutcome,
4344
Aws::Client::DynamoDBErrorMarshaller> {
4445
public:

generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBClient.cpp

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ DynamoDBClient::DynamoDBClient(const DynamoDB::DynamoDBClientConfiguration& clie
104104
: AwsSmithyClientT(clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
105105
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG),
106106
endpointProvider ? endpointProvider : Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
107-
Aws::MakeShared<smithy::SigV4AuthSchemeResolver<>>(ALLOCATION_TAG),
107+
Aws::MakeShared<smithy::GenericAuthSchemeResolver<>>(
108+
ALLOCATION_TAG, Aws::Vector<smithy::AuthSchemeOption>({smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption})),
108109
{
109110
{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
110111
smithy::SigV4AuthScheme{GetServiceName(), clientConfiguration.region}},
@@ -116,7 +117,8 @@ DynamoDBClient::DynamoDBClient(const AWSCredentials& credentials, std::shared_pt
116117
clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
117118
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG),
118119
endpointProvider ? endpointProvider : Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
119-
Aws::MakeShared<smithy::SigV4AuthSchemeResolver<>>(ALLOCATION_TAG),
120+
Aws::MakeShared<smithy::GenericAuthSchemeResolver<>>(
121+
ALLOCATION_TAG, Aws::Vector<smithy::AuthSchemeOption>({smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption})),
120122
{
121123
{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
122124
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::SimpleAwsCredentialIdentityResolver>(ALLOCATION_TAG, credentials),
@@ -130,37 +132,50 @@ DynamoDBClient::DynamoDBClient(const std::shared_ptr<AWSCredentialsProvider>& cr
130132
clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
131133
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG),
132134
endpointProvider ? endpointProvider : Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
133-
Aws::MakeShared<smithy::SigV4AuthSchemeResolver<>>(ALLOCATION_TAG),
134-
{{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
135-
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::AwsCredentialsProviderIdentityResolver>(ALLOCATION_TAG, credentialsProvider),
136-
GetServiceName(), clientConfiguration.region}}}) {}
135+
Aws::MakeShared<smithy::GenericAuthSchemeResolver<>>(
136+
ALLOCATION_TAG, Aws::Vector<smithy::AuthSchemeOption>({smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption})),
137+
{
138+
{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
139+
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::AwsCredentialsProviderIdentityResolver>(ALLOCATION_TAG, credentialsProvider),
140+
GetServiceName(), clientConfiguration.region}},
141+
}) {}
137142

138143
/* Legacy constructors due deprecation */
139144
DynamoDBClient::DynamoDBClient(const Client::ClientConfiguration& clientConfiguration)
140145
: AwsSmithyClientT(clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
141146
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG), Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
142-
Aws::MakeShared<smithy::SigV4AuthSchemeResolver<>>(ALLOCATION_TAG),
143-
{{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
144-
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::DefaultAwsCredentialIdentityResolver>(ALLOCATION_TAG),
145-
GetServiceName(), clientConfiguration.region}}}) {}
147+
Aws::MakeShared<smithy::GenericAuthSchemeResolver<>>(
148+
ALLOCATION_TAG, Aws::Vector<smithy::AuthSchemeOption>({smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption})),
149+
{
150+
{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
151+
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::DefaultAwsCredentialIdentityResolver>(ALLOCATION_TAG),
152+
GetServiceName(), clientConfiguration.region}},
153+
}) {}
146154

147155
DynamoDBClient::DynamoDBClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration)
148-
: AwsSmithyClientT(clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
149-
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG), Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
150-
Aws::MakeShared<smithy::SigV4AuthSchemeResolver<>>(ALLOCATION_TAG),
151-
{{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
152-
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::SimpleAwsCredentialIdentityResolver>(ALLOCATION_TAG, credentials),
153-
GetServiceName(), clientConfiguration.region}}}) {}
156+
: AwsSmithyClientT(
157+
clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
158+
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG), Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
159+
Aws::MakeShared<smithy::GenericAuthSchemeResolver<>>(
160+
ALLOCATION_TAG, Aws::Vector<smithy::AuthSchemeOption>({smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption})),
161+
{
162+
{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
163+
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::SimpleAwsCredentialIdentityResolver>(ALLOCATION_TAG, credentials),
164+
GetServiceName(), clientConfiguration.region}},
165+
}) {}
154166

155167
DynamoDBClient::DynamoDBClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
156168
const Client::ClientConfiguration& clientConfiguration)
157169
: AwsSmithyClientT(
158170
clientConfiguration, GetServiceName(), "DynamoDB", Aws::Http::CreateHttpClient(clientConfiguration),
159171
Aws::MakeShared<DynamoDBErrorMarshaller>(ALLOCATION_TAG), Aws::MakeShared<DynamoDBEndpointProvider>(ALLOCATION_TAG),
160-
Aws::MakeShared<smithy::SigV4AuthSchemeResolver<>>(ALLOCATION_TAG),
161-
{{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
162-
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::AwsCredentialsProviderIdentityResolver>(ALLOCATION_TAG, credentialsProvider),
163-
GetServiceName(), clientConfiguration.region}}}) {}
172+
Aws::MakeShared<smithy::GenericAuthSchemeResolver<>>(
173+
ALLOCATION_TAG, Aws::Vector<smithy::AuthSchemeOption>({smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption})),
174+
{
175+
{smithy::SigV4AuthSchemeOption::sigV4AuthSchemeOption.schemeId,
176+
smithy::SigV4AuthScheme{Aws::MakeShared<smithy::AwsCredentialsProviderIdentityResolver>(ALLOCATION_TAG, credentialsProvider),
177+
GetServiceName(), clientConfiguration.region}},
178+
}) {}
164179
/* End of legacy constructors due deprecation */
165180

166181
DynamoDBClient::~DynamoDBClient() { ShutdownSdkClient(this, -1); }

0 commit comments

Comments
 (0)