Package com.hashicorp.cdktf
Class S3BackendAssumeRoleWithWebIdentityConfig.Builder
java.lang.Object
com.hashicorp.cdktf.S3BackendAssumeRoleWithWebIdentityConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3BackendAssumeRoleWithWebIdentityConfig>
- Enclosing interface:
S3BackendAssumeRoleWithWebIdentityConfig
@Stability(Experimental)
public static final class S3BackendAssumeRoleWithWebIdentityConfig.Builder
extends Object
implements software.amazon.jsii.Builder<S3BackendAssumeRoleWithWebIdentityConfig>
A builder for
S3BackendAssumeRoleWithWebIdentityConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getDuration()Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getPolicy()policyArns(List<String> policyArns) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getPolicyArns()Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getRoleArn()sessionName(String sessionName) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getSessionName()webIdentityToken(String webIdentityToken) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getWebIdentityToken()webIdentityTokenFile(String webIdentityTokenFile) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getWebIdentityTokenFile()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder duration(String duration) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getDuration()- Parameters:
duration- (Optional) The duration individual credentials will be valid. Credentials are automatically renewed up to the maximum defined by the AWS account. Specified using the formath m s with any unit being optional. For example, an hour and a half can be specified as 1h30m or 90m. Must be between 15 minutes (15m) and 12 hours (12h). - Returns:
this
-
policy
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder policy(String policy) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getPolicy()- Parameters:
policy- (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.- Returns:
this
-
policyArns
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder policyArns(List<String> policyArns) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getPolicyArns()- Parameters:
policyArns- (Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.- Returns:
this
-
roleArn
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder roleArn(String roleArn) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getRoleArn()- Parameters:
roleArn- (Required) Amazon Resource Name (ARN) of the IAM Role to assume. Can also be set with the AWS_ROLE_ARN environment variable.- Returns:
this
-
sessionName
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder sessionName(String sessionName) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getSessionName()- Parameters:
sessionName- (Optional) Session name to use when assuming the role. Can also be set with the AWS_ROLE_SESSION_NAME environment variable.- Returns:
this
-
webIdentityToken
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder webIdentityToken(String webIdentityToken) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getWebIdentityToken()- Parameters:
webIdentityToken- (Optional) The value of a web identity token from an OpenID Connect (OIDC) or OAuth provider. One of web_identity_token or web_identity_token_file is required.- Returns:
this
-
webIdentityTokenFile
@Stability(Experimental) public S3BackendAssumeRoleWithWebIdentityConfig.Builder webIdentityTokenFile(String webIdentityTokenFile) Sets the value ofS3BackendAssumeRoleWithWebIdentityConfig.getWebIdentityTokenFile()- Parameters:
webIdentityTokenFile- (Optional) File containing a web identity token from an OpenID Connect (OIDC) or OAuth provider. One of web_identity_token_file or web_identity_token is required. Can also be set with the AWS_WEB_IDENTITY_TOKEN_FILE environment variable.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3BackendAssumeRoleWithWebIdentityConfig>- Returns:
- a new instance of
S3BackendAssumeRoleWithWebIdentityConfig - Throws:
NullPointerException- if any required attribute was not provided
-