Skip to main content

Initializer

import { CosBackendAssumeRole } from 'cdktn'

const cosBackendAssumeRole: CosBackendAssumeRole = { ... }

Properties

NameTypeDescription
roleArnstring(Required) The ARN of the role to assume.
sessionDurationnumber(Required) The duration of the session when making the AssumeRole call.
sessionNamestring(Required) The session name to use when making the AssumeRole call.
policyany(Optional) A more restrictive policy when making the AssumeRole call.

roleArnRequired

public readonly roleArn: string;
  • Type: string
(Required) The ARN of the role to assume. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_ARN.

sessionDurationRequired

public readonly sessionDuration: number;
  • Type: 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 readonly sessionName: string;
  • Type: 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 readonly policy: any;
  • Type: any
(Optional) A more restrictive policy when making the AssumeRole call. Its content must not contains principal elements. Please refer to policies syntax logic.