Package org.apache.pulsar.io.aws
Class AwsDefaultProviderChainPlugin
- java.lang.Object
-
- org.apache.pulsar.io.aws.AwsDefaultProviderChainPlugin
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,AwsCredentialProviderPlugin
public class AwsDefaultProviderChainPlugin extends java.lang.Object implements AwsCredentialProviderPlugin
-
-
Constructor Summary
Constructors Constructor Description AwsDefaultProviderChainPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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.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
public void init(java.lang.String param)
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
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-