Class ImdsPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<T>
io.awspring.cloud.core.config.AwsPropertySource<ImdsPropertySource,ImdsUtils>
io.awspring.cloud.autoconfigure.imds.ImdsPropertySource
Adds properties from the EC2 Instance MetaData Service (IDMS) when it is available.
- Since:
- 3.1.0
- Author:
- Ken Krueger
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
-
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a non-initialized copy of the property source.getProperty
(String name) String[]
void
init()
Initializes & fetches properties.Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsProperty
-
Constructor Details
-
ImdsPropertySource
-
-
Method Details
-
copy
Description copied from class:AwsPropertySource
Creates a non-initialized copy of the property source.- Specified by:
copy
in classAwsPropertySource<ImdsPropertySource,
ImdsUtils> - Returns:
- a property source
-
init
public void init()Description copied from class:AwsPropertySource
Initializes & fetches properties.- Specified by:
init
in classAwsPropertySource<ImdsPropertySource,
ImdsUtils>
-
getPropertyNames
- Specified by:
getPropertyNames
in classEnumerablePropertySource<ImdsUtils>
-
getProperty
- Specified by:
getProperty
in classPropertySource<ImdsUtils>
-