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 Details

    • Builder

      public Builder()
  • Method Details

    • roleArn

      @Stability(Experimental) public CosBackendAssumeRole.Builder roleArn(String roleArn)
      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)
      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

      @Stability(Experimental) public CosBackendAssumeRole.Builder sessionName(String sessionName)
      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

      @Stability(Experimental) public CosBackendAssumeRole.Builder policy(Object policy)
      Parameters:
      policy - (Optional) A more restrictive policy when making the AssumeRole call. Its content must not contains principal elements. Please refer to
      invalid @link
      {@link https://www.tencentcloud.com/document/product/598/10603
      policies syntax logic}.
      Returns:
      this
    • build

      @Stability(Experimental) public CosBackendAssumeRole build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CosBackendAssumeRole>
      Returns:
      a new instance of CosBackendAssumeRole
      Throws:
      NullPointerException - if any required attribute was not provided