Skip to content

RoleProps

Properties for defining a Role.

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

Initializer

import { RoleProps } from '@alicloud/ros-cdk-maxcompute'
const roleProps: RoleProps = { ... }

Properties

Name Type Description
projectName string | @alicloud/ros-cdk-core.IResolvable Property projectName: The name of the MaxCompute project.
roleName string | @alicloud/ros-cdk-core.IResolvable Property roleName: The name of the project role.
type string | @alicloud/ros-cdk-core.IResolvable Property type: Role types, MaxCompute provides administrator roles and resource roles.
acl @alicloud/ros-cdk-core.IResolvable | AclProperty Property acl: The access-control list (ACL), This parameter is not required if a policy is used.
policy @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any} Property policy: The document of the policy.

projectNameRequired

public readonly projectName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property projectName: The name of the MaxCompute project.


roleNameRequired

public readonly roleName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property roleName: The name of the project role.


typeRequired

public readonly type: string | IResolvable;
  • Type: string | @alicloud/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

public readonly acl: IResolvable | AclProperty;
  • Type: @alicloud/ros-cdk-core.IResolvable | AclProperty

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


policyOptional

public readonly policy: IResolvable | {[ key: string ]: any};
  • Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}

Property policy: The document of the policy.

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