Package org.apache.pulsar.io.aws
Class STSAssumeRoleProviderPlugin
java.lang.Object
org.apache.pulsar.io.aws.STSAssumeRoleProviderPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,AwsCredentialProviderPlugin
-
Field Summary
Fields -
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.
-
Field Details
-
ASSUME_ROLE_ARN
- See Also:
-
ASSUME_ROLE_SESSION_NAME
- See Also:
-
-
Constructor Details
-
STSAssumeRoleProviderPlugin
public STSAssumeRoleProviderPlugin()
-
-
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
-