Skip to content

Commit a89d20d

Browse files
committed
remove members from profile
1 parent 9d3406c commit a89d20d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/aws-cpp-sdk-core/include/aws/core/config/AWSProfileConfig.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,17 @@ namespace Aws
9494
return iter->second;
9595
}
9696

97-
inline const Aws::String& GetServicesDefinitionName() const { return m_servicesDefinitionName; }
98-
inline void SetServicesDefinitionName(const Aws::String& value) { m_servicesDefinitionName = value; }
97+
inline const Aws::String& GetServicesDefinitionName() const {
98+
auto iter = m_allKeyValPairs.find("services");
99+
static const Aws::String empty;
100+
return (iter != m_allKeyValPairs.end()) ? iter->second : empty;
101+
}
99102

100-
inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
101-
inline void SetEndpointUrl(const Aws::String& value) { m_endpointUrl = value; }
103+
inline const Aws::String& GetEndpointUrl() const {
104+
auto iter = m_allKeyValPairs.find("endpoint_url");
105+
static const Aws::String empty;
106+
return (iter != m_allKeyValPairs.end()) ? iter->second : empty;
107+
}
102108

103109
inline bool IsSsoSessionSet() const { return m_ssoSessionSet; }
104110
inline const SsoSession& GetSsoSession() const { return m_ssoSession; }
@@ -118,8 +124,6 @@ namespace Aws
118124
Aws::String m_ssoAccountId;
119125
Aws::String m_ssoRoleName;
120126
Aws::String m_defaultsMode;
121-
Aws::String m_servicesDefinitionName;
122-
Aws::String m_endpointUrl;
123127
Aws::Map<Aws::String, Aws::String> m_allKeyValPairs;
124128

125129
bool m_ssoSessionSet = false;

src/aws-cpp-sdk-core/source/config/AWSConfigFileProfileConfigLoader.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ namespace Aws
7777
{EXTERNAL_ID_KEY, &Profile::SetExternalId, &Profile::GetExternalId},
7878
{CREDENTIAL_PROCESS_COMMAND, &Profile::SetCredentialProcess, &Profile::GetCredentialProcess},
7979
{SOURCE_PROFILE_KEY, &Profile::SetSourceProfile, &Profile::GetSourceProfile},
80-
{SERVICES_SECTION, &Profile::SetServicesDefinitionName, &Profile::GetServicesDefinitionName},
81-
{ENDPOINT_URL_KEY, &Profile::SetEndpointUrl, &Profile::GetEndpointUrl},
8280
{DEFAULTS_MODE_KEY, &Profile::SetDefaultsMode, &Profile::GetDefaultsMode}};
8381

8482
template<typename EntryT, size_t N>

0 commit comments

Comments
 (0)