Skip to main content

Initializer

import cdktn

cdktn.CosBackendAssumeRole(
  role_arn: str,
  session_duration: typing.Union[int, float],
  session_name: str,
  policy: typing.Any = None
)

Properties

NameTypeDescription
role_arnstr(Required) The ARN of the role to assume.
session_durationtyping.Union[int, float](Required) The duration of the session when making the AssumeRole call.
session_namestr(Required) The session name to use when making the AssumeRole call.
policytyping.Any(Optional) A more restrictive policy when making the AssumeRole call.

role_arnRequired

role_arn: str
  • Type: str
(Required) The ARN of the role to assume. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_ARN.

session_durationRequired

session_duration: typing.Union[int, float]
  • Type: typing.Union[int, float]
(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.

session_nameRequired

session_name: str
  • Type: str
(Required) The session name to use when making the AssumeRole call. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME.

policyOptional

policy: typing.Any
  • Type: typing.Any
(Optional) A more restrictive policy when making the AssumeRole call. Its content must not contains principal elements. Please refer to policies syntax logic.