public final class ContainerCredentialsProvider extends HttpCredentialsProvider
AwsCredentialsProvider
implementation that loads credentials from a local metadata service.
Currently supported containers:
The URI path is retrieved from the environment variable "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" or "AWS_CONTAINER_CREDENTIALS_FULL_URI" in the container's environment. If the environment variable is not set, this credentials provider will throw an exception.
Modifier and Type | Class and Description |
---|---|
static interface |
ContainerCredentialsProvider.Builder
A builder for creating a custom a
ContainerCredentialsProvider . |
Modifier and Type | Method and Description |
---|---|
static ContainerCredentialsProvider.Builder |
builder()
Create a builder for creating a
ContainerCredentialsProvider . |
String |
toString() |
close, resolveCredentials
public static ContainerCredentialsProvider.Builder builder()
ContainerCredentialsProvider
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.