private boolean isEc2MetadataV1DisabledInProfileFile() {
        return profileConfigFileLoader != null &&
                profileConfigFileLoader.getProfile() != null &&
                isPropertyTrue(profileConfigFileLoader.getProfile()
                        .getPropertyValue(AWS_EC2_METADATA_V1_DISABLED_PROFILE_PROPERTY));
    }
Token is unsupported if the exception is a non-retryable, non-400 status code or the exception is caused by timeout
aws-java-sdk-core/src/main/java/com/amazonaws/internal/InstanceMetadataServiceResourceFetcher.java