@Retention(value=RUNTIME) @Target(value=TYPE) @Import(value=ContextRegionConfigurationRegistrar.class) @Deprecated 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. If the application context is running
inside a EC2 instance The region can also be dynamically retrieved from the EC2
instance meta-data by enabling the autoDetect()
attribute
or from the default AWS SDK AwsRegionProviderChain
by enabling
autoDetect()
and
useDefaultAwsRegionChain()
.Modifier and Type | Optional Element and Description |
---|---|
boolean |
autoDetect
Deprecated.
Configures the auto-detection of a region that should be fetched from the EC2
meta-data.
|
String |
region
Deprecated.
Configures the region as a String value.
|
boolean |
useDefaultAwsRegionChain
Deprecated.
Whether default AWS SDK region provider chain should be used when auto is set to
true.
|
public abstract String region
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 © 2022 Pivotal Software, Inc.. All rights reserved.