Package org.apache.pulsar.io.aws
Interface AwsCredentialProviderPlugin
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
AwsDefaultProviderChainPlugin,STSAssumeRoleProviderPlugin
public interface AwsCredentialProviderPlugin extends java.io.CloseableKinesis source/sink calls credential-provider while refreshing aws accessKey and secreKey. So, implementation AwsCredentialProviderPlugin needs to makes sure to return non-expired keys when it requires.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.amazonaws.auth.AWSCredentialsProvidergetCredentialProvider()ReturnedAWSCredentialsProvidercan giveAWSCredentialsin case credential belongs to IAM user or it can returnBasicSessionCredentialsif user wants to generate temporary credential for a given IAM role.default software.amazon.awssdk.auth.credentials.AwsCredentialsProvidergetV2CredentialsProvider()Returns a V2 credential provider for use with the v2 SDK.voidinit(java.lang.String param)accepts aws-account related param and initialize credential provider.
-
-
-
Method Detail
-
init
void init(java.lang.String param)
accepts aws-account related param and initialize credential provider.- Parameters:
param-
-
getCredentialProvider
com.amazonaws.auth.AWSCredentialsProvider getCredentialProvider()
ReturnedAWSCredentialsProvidercan giveAWSCredentialsin case credential belongs to IAM user or it can returnBasicSessionCredentialsif user wants to generate temporary credential for a given IAM role.- Returns:
-
getV2CredentialsProvider
default software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getV2CredentialsProvider()
Returns a V2 credential provider for use with the v2 SDK. Defaults to an implementation that pulls credentials from a v1 provider
-
-