Package org.apache.pulsar.io.aws
Class AwsDefaultProviderChainPlugin
java.lang.Object
org.apache.pulsar.io.aws.AwsDefaultProviderChainPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,AwsCredentialProviderPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.amazonaws.auth.AWSCredentialsProviderReturnedAWSCredentialsProvidercan giveAWSCredentialsin case credential belongs to IAM user or it can returnBasicSessionCredentialsif user wants to generate temporary credential for a given IAM role.software.amazon.awssdk.auth.credentials.AwsCredentialsProviderReturns a V2 credential provider for use with the v2 SDK.voidaccepts aws-account related param and initialize credential provider.
-
Constructor Details
-
AwsDefaultProviderChainPlugin
public AwsDefaultProviderChainPlugin()
-
-
Method Details
-
init
Description copied from interface:AwsCredentialProviderPluginaccepts aws-account related param and initialize credential provider.- Specified by:
initin interfaceAwsCredentialProviderPlugin
-
getCredentialProvider
public com.amazonaws.auth.AWSCredentialsProvider getCredentialProvider()Description copied from interface:AwsCredentialProviderPluginReturnedAWSCredentialsProvidercan giveAWSCredentialsin case credential belongs to IAM user or it can returnBasicSessionCredentialsif user wants to generate temporary credential for a given IAM role.- Specified by:
getCredentialProviderin interfaceAwsCredentialProviderPlugin- Returns:
-
getV2CredentialsProvider
public software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getV2CredentialsProvider()Description copied from interface:AwsCredentialProviderPluginReturns a V2 credential provider for use with the v2 SDK. Defaults to an implementation that pulls credentials from a v1 provider- Specified by:
getV2CredentialsProviderin interfaceAwsCredentialProviderPlugin
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-