Skip to content

Commit 57ccc7b

Browse files
committed
feat: Add credentialProviderConfig to SDK credential chain generation
1 parent 1d75e99 commit 57ccc7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceClientSourceInit.vm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@
6363
#set($AdditionalServiceSpecificConfigLoadString = "Load${metadata.classNamePrefix}SpecificConfig(config);")
6464
#end
6565
#set($clientConfigurationNamespace = "Client")
66+
#if($clientConfiguration.profileName && !$clientConfiguration.profileName.empty())
67+
#set($defaultCredentialsProviderChainParam = "Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, Aws::Client::CredentialProviderConfiguration{clientConfiguration.profileName})")
68+
#else
6669
#set($defaultCredentialsProviderChainParam = "Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG)")
70+
#end
6771
#set($s3ExpressIdentityProviderParam = "clientConfiguration.identityProviderSupplier(*this)")
6872
#set($simpleCredentialsProviderParam = "Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials)")
6973
#set($hasEventStreamInputOperation = $serviceModel.hasStreamingRequestShapes())

0 commit comments

Comments
 (0)