Skip to content

ResourceShareProps

Properties for defining a ResourceShare.

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

Initializer

import { ResourceShareProps } from '@alicloud/ros-cdk-resourcemanager'
const resourceShareProps: ResourceShareProps = { ... }

Properties

Name Type Description
resourceShareName string | @alicloud/ros-cdk-core.IResolvable Property resourceShareName: The name of the resource share.
allowExternalTargets boolean | @alicloud/ros-cdk-core.IResolvable Property allowExternalTargets: Whether to allow sharing to accounts outside the resource directory.
permissionNames @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property permissionNames: Sharing permission name.
resources @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ResourcesProperty[] Property resources:.
targets @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property targets: The shared target.

resourceShareNameRequired

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

Property resourceShareName: The name of the resource share.

The name must be 1 to 50 characters in length. It can contain letters, digits, periods (.), underscores (_), and hyphens (-).


allowExternalTargetsOptional

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

Property allowExternalTargets: Whether to allow sharing to accounts outside the resource directory.

Value: false (default): Only allow sharing within the resource directory. true: Allow sharing to any account.


permissionNamesOptional

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

Property permissionNames: Sharing permission name.

When empty, the system automatically binds the default permissions associated with the resource type.


resourcesOptional

public readonly resources: IResolvable | IResolvable | ResourcesProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ResourcesProperty[]

Property resources:.


targetsOptional

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

Property targets: The shared target.

A shared target shares the resources of resource owners. You can share your resources only with the member accounts in your resource directory. A shared target is indicated by its account ID. For more information about how to obtain the ID, see View the basic information of a member account.