Package io.awspring.cloud.core.region
Class StaticRegionProvider
java.lang.Object
io.awspring.cloud.core.region.StaticRegionProvider
- All Implemented Interfaces:
software.amazon.awssdk.regions.providers.AwsRegionProvider
public class StaticRegionProvider
extends Object
implements software.amazon.awssdk.regions.providers.AwsRegionProvider
Static
AwsRegionProvider
implementation that can used to statically configure a region. The region could be
provided through a configuration file at configuration time.- Since:
- 1.0
- Author:
- Agim Emruli, Maciej Walkowiak
-
Constructor Summary
ConstructorsConstructorDescriptionStaticRegionProvider
(String configuredRegion) Constructs and configures the static region for this RegionProvider implementation. -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.regions.Region
Return the configured Region configured at construction time.
-
Constructor Details
-
StaticRegionProvider
Constructs and configures the static region for this RegionProvider implementation.- Parameters:
configuredRegion
- - the region that will be statically returned ingetRegion()
-
-
Method Details
-
getRegion
public software.amazon.awssdk.regions.Region getRegion()Return the configured Region configured at construction time.- Specified by:
getRegion
in interfacesoftware.amazon.awssdk.regions.providers.AwsRegionProvider
- Returns:
- the configured region, for every call the same
-