Interface EcsCredentialsProvider.Builder
-
- Enclosing class:
- EcsCredentialsProvider
public static interface EcsCredentialsProvider.BuilderA builder for creating a custom ECS credentials provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EcsCredentialsProviderbuild()Create an ECS credentials provider using the configuration applied to this builder.EcsCredentialsProvider.BuilderwithAuthToken(String authToken)EcsCredentialsProvider.BuilderwithClientBootstrap(ClientBootstrap clientBootstrap)Sets the client bootstrap (host resolver and event loop group) to use when making the connections required by this provider.EcsCredentialsProvider.BuilderwithHost(String host)EcsCredentialsProvider.BuilderwithPathAndQuery(String pathAndQuery)EcsCredentialsProvider.BuilderwithTlsContext(TlsContext tlsContext)Sets the tls context to use for any secure network connections made while sourcing credentials.
-
-
-
Method Detail
-
withClientBootstrap
EcsCredentialsProvider.Builder withClientBootstrap(ClientBootstrap clientBootstrap)
Sets the client bootstrap (host resolver and event loop group) to use when making the connections required by this provider. The default is a bootstrap which uses the static default event loop group and host resolver.- Parameters:
clientBootstrap- client bootstrap to use- Returns:
- The current builder
-
withTlsContext
EcsCredentialsProvider.Builder withTlsContext(TlsContext tlsContext)
Sets the tls context to use for any secure network connections made while sourcing credentials.- Parameters:
tlsContext- the tls context to use when establishing network connections- Returns:
- The current builder
-
withHost
EcsCredentialsProvider.Builder withHost(String host)
- Parameters:
host- Host used to connect to the credential service.- Returns:
- The current builder
-
withPathAndQuery
EcsCredentialsProvider.Builder withPathAndQuery(String pathAndQuery)
- Parameters:
pathAndQuery- The URL path and query used to connect to the credential service.- Returns:
- The current builder
-
withAuthToken
EcsCredentialsProvider.Builder withAuthToken(String authToken)
- Parameters:
authToken- Token used to retrieve credentials.- Returns:
- The current builder
-
build
EcsCredentialsProvider build()
Create an ECS credentials provider using the configuration applied to this builder.- Returns:
- A new ECS credentials provider.
-
-