@Retention(value=RUNTIME) @Target(value=TYPE) @Import(value=ContextRegionConfigurationRegistrar.class) public @interface EnableContextRegion
RegionProvider
instance for the application context. The
region provider will be used for all Amazon Web Service clients that are created inside the application context (by
the Spring Cloud AWS classes). A region can be either manually configured region()
with
a constant expression, dynamic expression (using a SpEL expression) or a place holder. The region can also be dynamically
retrieved from the EC2 instance meta-data if the application context is running inside a EC2 instance by enabling the
autoDetect()
attribute.Modifier and Type | Optional Element and Description |
---|---|
boolean |
autoDetect
Configures the auto-detection of a region that should be fetched from the EC2 meta-data.
|
String |
region
Configures the region as a String value.
|
public abstract String region
com.amazonaws.regions.Regions
. This attribute is a String value allowing expressions and placeholders to
be used for the region configuration.public abstract boolean autoDetect
region()
attribute.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.