Ec2InstanceProfile
fun CredentialsChain.Companion.Ec2InstanceProfile(ec2InstanceMetadata: InstanceMetadataService, clock: Clock, gracePeriod: Duration): CredentialsChain
fun RegionProvider.Companion.Ec2InstanceProfile(ec2InstanceMetadata: InstanceMetadataService): RegionProvider
This provider will time out if not in an EC2 Environment. For that reason, if there are multiple providers in a chain, this provider should be last.
fun CredentialsChain.Companion.Ec2InstanceProfile(http: HttpHandler = JavaHttpClient(), clock: Clock = Clock.systemUTC(), gracePeriod: Duration = Duration.ofSeconds(30)): CredentialsChain
fun CredentialsProvider.Companion.Ec2InstanceProfile(http: HttpHandler = JavaHttpClient(), clock: Clock = Clock.systemUTC(), gracePeriod: Duration = Duration.ofSeconds(30)): CredentialsProvider
fun RegionProvider.Companion.Ec2InstanceProfile(http: HttpHandler = JavaHttpClient()): RegionProvider