Example usage for com.amazonaws SDKGlobalConfiguration EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY

List of usage examples for com.amazonaws SDKGlobalConfiguration EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY

Introduction

In this page you can find the example usage for com.amazonaws SDKGlobalConfiguration EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY.

Prototype

String EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY

To view the source code for com.amazonaws SDKGlobalConfiguration EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY.

Click Source Link

Document

System property for overriding the Amazon EC2 Instance Metadata Service endpoint.

Usage

From source file:org.springframework.cloud.aws.autoconfigure.context.MetaDataServer.java

License:Apache License

private static void overwriteMetadataEndpointUrl(String localMetadataServiceEndpointUrl) {
    System.setProperty(SDKGlobalConfiguration.EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY,
            localMetadataServiceEndpointUrl);
}

From source file:org.springframework.cloud.aws.autoconfigure.context.MetaDataServer.java

License:Apache License

private static void resetMetadataEndpointUrlOverwrite() {
    System.clearProperty(SDKGlobalConfiguration.EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY);
}