Package com.hashicorp.cdktf
Class CosBackendAssumeRole.Builder
java.lang.Object
com.hashicorp.cdktf.CosBackendAssumeRole.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CosBackendAssumeRole>
- Enclosing interface:
CosBackendAssumeRole
@Stability(Experimental)
public static final class CosBackendAssumeRole.Builder
extends Object
implements software.amazon.jsii.Builder<CosBackendAssumeRole>
A builder for
CosBackendAssumeRole
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCosBackendAssumeRole.getPolicy()
Sets the value ofCosBackendAssumeRole.getRoleArn()
sessionDuration
(Number sessionDuration) Sets the value ofCosBackendAssumeRole.getSessionDuration()
sessionName
(String sessionName) Sets the value ofCosBackendAssumeRole.getSessionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCosBackendAssumeRole.getRoleArn()
- Parameters:
roleArn
- (Required) The ARN of the role to assume. This parameter is required. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_ARN.- Returns:
this
-
sessionDuration
@Stability(Experimental) public CosBackendAssumeRole.Builder sessionDuration(Number sessionDuration) Sets the value ofCosBackendAssumeRole.getSessionDuration()
- Parameters:
sessionDuration
- (Required) The duration of the session when making the AssumeRole call. This parameter is required. Its value ranges from 0 to 43200(seconds), and default is 7200 seconds. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_DURATION.- Returns:
this
-
sessionName
Sets the value ofCosBackendAssumeRole.getSessionName()
- Parameters:
sessionName
- (Required) The session name to use when making the AssumeRole call. This parameter is required. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME.- Returns:
this
-
policy
Sets the value ofCosBackendAssumeRole.getPolicy()
- Parameters:
policy
- (Optional) A more restrictive policy when making the AssumeRole call. Its content must not contains principal elements. Please refer toinvalid @link
{@link https://www.tencentcloud.com/document/product/598/10603
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CosBackendAssumeRole>
- Returns:
- a new instance of
CosBackendAssumeRole
- Throws:
NullPointerException
- if any required attribute was not provided
-