Skip to content

RoleProps

Properties for defining a Role.

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

Initializer

import com.aliyun.ros.cdk.resourcemanager.RoleProps;
RoleProps.builder()
    .assumeRolePolicyDocument(IResolvable)
    .assumeRolePolicyDocument(java.util.Map<java.lang.String, java.lang.Object>)
    .roleName(java.lang.String)
    .roleName(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .maxSessionDuration(java.lang.Number)
//  .maxSessionDuration(IResolvable)
    .build();

Properties

Name Type Description
assumeRolePolicyDocument com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property assumeRolePolicyDocument: The content of the permissions strategy that plays a role.
roleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property roleName: Role Name.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the Resource Manager role.
maxSessionDuration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property maxSessionDuration: Role maximum session time.

assumeRolePolicyDocumentRequired

public java.lang.Object getAssumeRolePolicyDocument();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

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


roleNameRequired

public java.lang.Object getRoleName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property roleName: Role Name.


descriptionOptional

public java.lang.Object getDescription();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: The description of the Resource Manager role.


maxSessionDurationOptional

public java.lang.Object getMaxSessionDuration();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property maxSessionDuration: Role maximum session time.

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