@@ -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 */
139144DynamoDBClient::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
147155DynamoDBClient::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
155167DynamoDBClient::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
166181DynamoDBClient::~DynamoDBClient () { ShutdownSdkClient (this , -1 ); }
0 commit comments