Skip to main content

Initializer

import io.cdktn.cdktn.CosBackendAssumeRole;

CosBackendAssumeRole.builder()
    .roleArn(java.lang.String)
    .sessionDuration(java.lang.Number)
    .sessionName(java.lang.String)
//  .policy(java.lang.Object)
    .build();

Properties

NameTypeDescription
roleArnjava.lang.String(Required) The ARN of the role to assume.
sessionDurationjava.lang.Number(Required) The duration of the session when making the AssumeRole call.
sessionNamejava.lang.String(Required) The session name to use when making the AssumeRole call.
policyjava.lang.Object(Optional) A more restrictive policy when making the AssumeRole call.

roleArnRequired

public java.lang.String getRoleArn();
  • Type: java.lang.String
(Required) The ARN of the role to assume. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_ARN.

sessionDurationRequired

public java.lang.Number getSessionDuration();
  • Type: java.lang.Number
(Required) The duration of the session when making the AssumeRole call. Its value ranges from 0 to 43200(seconds), and default is 7200 seconds. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_DURATION.

sessionNameRequired

public java.lang.String getSessionName();
  • Type: java.lang.String
(Required) The session name to use when making the AssumeRole call. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME.

policyOptional

public java.lang.Object getPolicy();
  • Type: java.lang.Object
(Optional) A more restrictive policy when making the AssumeRole call. Its content must not contains principal elements. Please refer to policies syntax logic.