Class EcsCredentialsProvider
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.auth.credentials.CredentialsProvider
-
- software.amazon.awssdk.crt.auth.credentials.EcsCredentialsProvider
-
- All Implemented Interfaces:
AutoCloseable
public class EcsCredentialsProvider extends CredentialsProvider
A class that wraps a provider that gets credentials from an ECS service. See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html for details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EcsCredentialsProvider.Builder
A builder for creating a custom ECS credentials provider.-
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EcsCredentialsProvider.Builder
builder()
Get a builder for creating a custom ECS credentials provider.static EcsCredentialsProvider
create()
Create an ECS credentials provider using the defaults.-
Methods inherited from class software.amazon.awssdk.crt.auth.credentials.CredentialsProvider
getCredentials, getShutdownCompleteFuture
-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
-
-
-
Method Detail
-
create
public static EcsCredentialsProvider create()
Create an ECS credentials provider using the defaults.- Returns:
- An ECS credentials provider.
-
builder
public static EcsCredentialsProvider.Builder builder()
Get a builder for creating a custom ECS credentials provider.- Returns:
- A builder.
-
-