Package org.apache.beam.sdk.io.aws2.auth
Class StsAssumeRoleForFederatedCredentialsProvider.Builder
java.lang.Object
org.apache.beam.sdk.io.aws2.auth.StsAssumeRoleForFederatedCredentialsProvider.Builder
- Enclosing class:
StsAssumeRoleForFederatedCredentialsProvider
Builder class for
StsAssumeRoleForFederatedCredentialsProvider
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and fully initializes aStsAssumeRoleForFederatedCredentialsProvider
instance.setAssumedRoleArn
(String roleArn) Sets the role to be assumed by the authentication request.setAudience
(String audience) Sets the audience to be used for the web id token request.setSessionDurationSecs
(Integer durationSecs) The session duration in seconds for the authentication request, by default this value is 3600.setWebIdTokenProviderFQCN
(String idTokenProviderFQCN) The fully qualified class name for the web id token provider.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAssumedRoleArn
public abstract StsAssumeRoleForFederatedCredentialsProvider.Builder setAssumedRoleArn(String roleArn) Sets the role to be assumed by the authentication request.- Parameters:
roleArn
- the AWS role ARN.- Returns:
- this builder instance.
-
setAudience
Sets the audience to be used for the web id token request.- Parameters:
audience
- the audience value.- Returns:
- this builder instance.
-
setWebIdTokenProviderFQCN
public abstract StsAssumeRoleForFederatedCredentialsProvider.Builder setWebIdTokenProviderFQCN(String idTokenProviderFQCN) The fully qualified class name for the web id token provider. The class should be accessible in the classpath.- Parameters:
idTokenProviderFQCN
- the class name.- Returns:
- this builder instance.
-
setSessionDurationSecs
public abstract StsAssumeRoleForFederatedCredentialsProvider.Builder setSessionDurationSecs(@Nullable Integer durationSecs) The session duration in seconds for the authentication request, by default this value is 3600.- Parameters:
durationSecs
- the duration in seconds.- Returns:
- this builder instance.
-
build
Validates and fully initializes aStsAssumeRoleForFederatedCredentialsProvider
instance.- Returns:
- the initialized credentials provider instance.
-