public String getRoleSourceProfile() { return getPropertyValue(ProfileKeyConstants.SOURCE_PROFILE); }
public String getEndpointDiscovery() { return getPropertyValue(ProfileKeyConstants.ENDPOINT_DISCOVERY); }
public String getCredentialProcess() { return getPropertyValue(ProfileKeyConstants.CREDENTIAL_PROCESS); }
public String getAwsAccessIdKey() { return getPropertyValue(ProfileKeyConstants.AWS_ACCESS_KEY_ID); }
public String getAwsSecretAccessKey() { return getPropertyValue(ProfileKeyConstants.AWS_SECRET_ACCESS_KEY); }
public String getRoleSessionName() { return getPropertyValue(ProfileKeyConstants.ROLE_SESSION_NAME); }
public String getRoleExternalId() { return getPropertyValue(ProfileKeyConstants.EXTERNAL_ID); }
public String getRegion() { return getPropertyValue(ProfileKeyConstants.REGION); }
public String getAwsSessionToken() { return getPropertyValue(ProfileKeyConstants.AWS_SESSION_TOKEN); }
public String getRoleArn() { return getPropertyValue(ProfileKeyConstants.ROLE_ARN); }
@Override public CsmConfiguration getConfiguration() { String profileName = getProfileName(); BasicProfile profile = getProfile(profileName); if (profile == null) { throw new SdkClientException(String.format("Could not find the '%s' profile!", profileName)); } String enabled = profile.getPropertyValue(CSM_ENABLED_PROPERTY); if (enabled == null) { throw new SdkClientException(String.format("The '%s' profile does not define all the" + " required properties!", profileName)); } String port = profile.getPropertyValue(CSM_PORT_PROPERTY); String clientId = profile.getPropertyValue(CSM_CLIENT_ID_PROPERTY); clientId = clientId == null ? DEFAULT_AWS_CSM_CLIENT_ID : clientId; try { int portNumber = port == null ? DEFAULT_AWS_CSM_PORT : Integer.parseInt(port); return new CsmConfiguration(Boolean.parseBoolean(enabled), portNumber, clientId); } catch (Exception e) { throw new SdkClientException(String.format("Unable to load configuration from the '%s'" + " profile!", profileName), e); } }
public String getRoleExternalId() { return getPropertyValue(ProfileKeyConstants.EXTERNAL_ID); }
public String getEndpointDiscovery() { return getPropertyValue(ProfileKeyConstants.ENDPOINT_DISCOVERY); }
public String getCredentialProcess() { return getPropertyValue(ProfileKeyConstants.CREDENTIAL_PROCESS); }
public String getRegion() { return getPropertyValue(ProfileKeyConstants.REGION); }
public String getAwsSecretAccessKey() { return getPropertyValue(ProfileKeyConstants.AWS_SECRET_ACCESS_KEY); }
public String getRoleSourceProfile() { return getPropertyValue(ProfileKeyConstants.SOURCE_PROFILE); }
public String getAwsAccessIdKey() { return getPropertyValue(ProfileKeyConstants.AWS_ACCESS_KEY_ID); }
public String getAwsSessionToken() { return getPropertyValue(ProfileKeyConstants.AWS_SESSION_TOKEN); }
public String getRoleArn() { return getPropertyValue(ProfileKeyConstants.ROLE_ARN); }