Package com.hashicorp.cdktf
Class S3BackendAssumeRoleConfig.Builder
java.lang.Object
com.hashicorp.cdktf.S3BackendAssumeRoleConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3BackendAssumeRoleConfig>
- Enclosing interface:
S3BackendAssumeRoleConfig
@Stability(Experimental)
public static final class S3BackendAssumeRoleConfig.Builder
extends Object
implements software.amazon.jsii.Builder<S3BackendAssumeRoleConfig>
A builder for
S3BackendAssumeRoleConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofS3BackendAssumeRoleConfig.getDuration()
externalId
(String externalId) Sets the value ofS3BackendAssumeRoleConfig.getExternalId()
Sets the value ofS3BackendAssumeRoleConfig.getPolicy()
policyArns
(List<String> policyArns) Sets the value ofS3BackendAssumeRoleConfig.getPolicyArns()
Sets the value ofS3BackendAssumeRoleConfig.getRoleArn()
sessionName
(String sessionName) Sets the value ofS3BackendAssumeRoleConfig.getSessionName()
sourceIdentity
(String sourceIdentity) Sets the value ofS3BackendAssumeRoleConfig.getSourceIdentity()
Sets the value ofS3BackendAssumeRoleConfig.getTags()
transitiveTagKeys
(List<String> transitiveTagKeys) Sets the value ofS3BackendAssumeRoleConfig.getTransitiveTagKeys()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofS3BackendAssumeRoleConfig.getRoleArn()
- Parameters:
roleArn
- (Required) Amazon Resource Name (ARN) of the IAM Role to assume. This parameter is required.- Returns:
this
-
duration
Sets the value ofS3BackendAssumeRoleConfig.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
-
externalId
Sets the value ofS3BackendAssumeRoleConfig.getExternalId()
- Parameters:
externalId
- (Optional) External identifier to use when assuming the role.- Returns:
this
-
policy
Sets the value ofS3BackendAssumeRoleConfig.getPolicy()
- Parameters:
policy
- (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.- Returns:
this
-
policyArns
@Stability(Experimental) public S3BackendAssumeRoleConfig.Builder policyArns(List<String> policyArns) Sets the value ofS3BackendAssumeRoleConfig.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
-
sessionName
Sets the value ofS3BackendAssumeRoleConfig.getSessionName()
- Parameters:
sessionName
- (Optional) Session name to use when assuming the role.- Returns:
this
-
sourceIdentity
@Stability(Experimental) public S3BackendAssumeRoleConfig.Builder sourceIdentity(String sourceIdentity) Sets the value ofS3BackendAssumeRoleConfig.getSourceIdentity()
- Parameters:
sourceIdentity
- (Optional) Source identity specified by the principal assuming the.- Returns:
this
-
tags
Sets the value ofS3BackendAssumeRoleConfig.getTags()
- Parameters:
tags
- (Optional) Map of assume role session tags.- Returns:
this
-
transitiveTagKeys
@Stability(Experimental) public S3BackendAssumeRoleConfig.Builder transitiveTagKeys(List<String> transitiveTagKeys) Sets the value ofS3BackendAssumeRoleConfig.getTransitiveTagKeys()
- Parameters:
transitiveTagKeys
- (Optional) Set of assume role session tag keys to pass to any subsequent sessions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3BackendAssumeRoleConfig>
- Returns:
- a new instance of
S3BackendAssumeRoleConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-