Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ bool IsEndpointDiscoveryEnabled(const Aws::String& endpointOverride, const Aws::
}

#end
#set($inputProfileNameUsed = false)
void ${metadata.classNamePrefix}ClientConfiguration::Load${serviceNamespace}SpecificConfig(const Aws::String& inputProfileName)
{
#if($serviceModel.metadata.serviceId == "S3")
#set($inputProfileNameUsed = true)
if (Aws::${serviceNamespace}::US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET == this->useUSEast1RegionalEndPointOption)
{
const Aws::String& useUSEastOption =
Expand Down Expand Up @@ -111,6 +113,7 @@ void ${metadata.classNamePrefix}ClientConfiguration::Load${serviceNamespace}Spec

#end
#if($serviceModel.metadata.serviceId == "S3" || $serviceModel.metadata.serviceId == "S3 Control")
#set($inputProfileNameUsed = true)
Aws::String useArnRegionCfg = ClientConfiguration::LoadConfigFromEnvOrProfile(S3_USE_ARN_REGION_ENVIRONMENT_VARIABLE,
inputProfileName,
S3_USE_ARN_REGION_CONFIG_FILE_OPTION,
Expand All @@ -122,6 +125,7 @@ void ${metadata.classNamePrefix}ClientConfiguration::Load${serviceNamespace}Spec
}
#end
#if($metadata.hasEndpointDiscoveryTrait)
#set($inputProfileNameUsed = true)
if(!enableEndpointDiscovery) {
enableEndpointDiscovery = IsEndpointDiscoveryEnabled(this->endpointOverride, inputProfileName);
}
Expand All @@ -137,6 +141,7 @@ void ${metadata.classNamePrefix}ClientConfiguration::Load${serviceNamespace}Spec
#end
## Bedrock API key auth
#if($serviceModel.metadata.signingName == "bedrock")
#set($inputProfileNameUsed = true)
const Aws::String& bedrockToken =
BaseClientConfigClass::LoadConfigFromEnvOrProfile(AWS_BEARER_TOKEN_BEDROCK,
inputProfileName,
Expand All @@ -151,6 +156,9 @@ void ${metadata.classNamePrefix}ClientConfiguration::Load${serviceNamespace}Spec
authPreferences.insert(authPreferences.begin(), "bearer");
}
#end
#if(!$inputProfileNameUsed)
(void)(inputProfileName);
#end
}

${metadata.classNamePrefix}ClientConfiguration::${metadata.classNamePrefix}ClientConfiguration(const Aws::Client::ClientConfigurationInitValues &configuration)
Expand Down
Loading