com.amazonaws.auth.profile.internal.ProfileKeyConstants Java Examples

The following examples show how to use com.amazonaws.auth.profile.internal.ProfileKeyConstants. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProfilesConfigFileWriter.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * ProfilesConfigFileWriter still deals with legacy {@link Profile} interface so it can only
 * modify credential related properties. All other properties should be preserved when
 * modifying profiles.
 */
@Override
protected boolean isSupportedProperty(String propertyName) {
    return ProfileKeyConstants.AWS_ACCESS_KEY_ID.equals(propertyName) ||
           ProfileKeyConstants.AWS_SECRET_ACCESS_KEY.equals(propertyName) ||
           ProfileKeyConstants.AWS_SESSION_TOKEN.equals(propertyName) ||
           ProfileKeyConstants.EXTERNAL_ID.equals(propertyName) ||
           ProfileKeyConstants.ROLE_ARN.equals(propertyName) ||
           ProfileKeyConstants.ROLE_SESSION_NAME.equals(propertyName) ||
           ProfileKeyConstants.SOURCE_PROFILE.equals(propertyName);
}