Skip to content

RoleProps

Properties for defining a Role.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-resourcemanager-role

Initializer

import ros_cdk_resourcemanager
ros_cdk_resourcemanager.RoleProps(
  assume_role_policy_document: typing.Union[IResolvable, typing.Mapping[typing.Any]],
  role_name: typing.Union[str, IResolvable],
  description: typing.Union[str, IResolvable] = None,
  max_session_duration: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
assume_role_policy_document typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property assumeRolePolicyDocument: The content of the permissions strategy that plays a role.
role_name typing.Union[str, ros_cdk_core.IResolvable] Property roleName: Role Name.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the Resource Manager role.
max_session_duration typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property maxSessionDuration: Role maximum session time.

assume_role_policy_documentRequired

assume_role_policy_document: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property assumeRolePolicyDocument: The content of the permissions strategy that plays a role.


role_nameRequired

role_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property roleName: Role Name.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the Resource Manager role.


max_session_durationOptional

max_session_duration: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property maxSessionDuration: Role maximum session time.

Valid values: [3600-43200]. Default to 3600.