@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);
        }
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.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/ProfilesConfigFileWriter.java