@Factory
public class CredentialsAndRegionFactory
extends java.lang.Object
Constructor and Description |
---|
CredentialsAndRegionFactory() |
Modifier and Type | Method and Description |
---|---|
software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain |
awsCredentialsProvider(io.micronaut.context.env.Environment environment) |
software.amazon.awssdk.regions.providers.AwsRegionProviderChain |
awsRegionProvider(io.micronaut.context.env.Environment environment) |
@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain awsCredentialsProvider(io.micronaut.context.env.Environment environment)
environment
- The Environment
AwsCredentialsProviderChain
that attempts to read the values from the Micronaut environment
first, then delegates to DefaultCredentialsProvider
.@Singleton public software.amazon.awssdk.regions.providers.AwsRegionProviderChain awsRegionProvider(io.micronaut.context.env.Environment environment)
environment
- The Environment
AwsRegionProviderChain
that attempts to read the values from the Micronaut environment
first, then delegates to DefaultAwsRegionProviderChain
.