Skip to content

RoleProps

Properties for defining a Role.

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

Initializer

import ros_cdk_maxcompute
ros_cdk_maxcompute.RoleProps(
  project_name: typing.Union[str, IResolvable],
  role_name: typing.Union[str, IResolvable],
  type: typing.Union[str, IResolvable],
  acl: typing.Union[IResolvable, AclProperty] = None,
  policy: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None
)

Properties

Name Type Description
project_name typing.Union[str, ros_cdk_core.IResolvable] Property projectName: The name of the MaxCompute project.
role_name typing.Union[str, ros_cdk_core.IResolvable] Property roleName: The name of the project role.
type typing.Union[str, ros_cdk_core.IResolvable] Property type: Role types, MaxCompute provides administrator roles and resource roles.
acl typing.Union[ros_cdk_core.IResolvable, AclProperty] Property acl: The access-control list (ACL), This parameter is not required if a policy is used.
policy typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property policy: The document of the policy.

project_nameRequired

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

Property projectName: The name of the MaxCompute project.


role_nameRequired

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

Property roleName: The name of the project role.


typeRequired

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

Property type: Role types, MaxCompute provides administrator roles and resource roles.

Valid values: Admin: You can grant management-related permissions to administrator roles by using policies instead of access control lists (ACLs). You cannot grant resource-related permissions to administrator roles. Resource: You can grant resource-related permissions but not management-related permissions to resource roles.


aclOptional

acl: typing.Union[IResolvable, AclProperty]
  • Type: typing.Union[ros_cdk_core.IResolvable, AclProperty]

Property acl: The access-control list (ACL), This parameter is not required if a policy is used.


policyOptional

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

Property policy: The document of the policy.

This parameter is not required if an access-control list (ACL) is used.