Skip to content

ResourceShareProps

Properties for defining a ResourceShare.

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

Initializer

import ros_cdk_resourcemanager
ros_cdk_resourcemanager.ResourceShareProps(
  resource_share_name: typing.Union[str, IResolvable],
  allow_external_targets: typing.Union[bool, IResolvable] = None,
  permission_names: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  resources: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourcesProperty]]] = None,
  targets: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None
)

Properties

Name Type Description
resource_share_name typing.Union[str, ros_cdk_core.IResolvable] Property resourceShareName: The name of the resource share.
allow_external_targets typing.Union[bool, ros_cdk_core.IResolvable] Property allowExternalTargets: Whether to allow sharing to accounts outside the resource directory.
permission_names typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property permissionNames: Sharing permission name.
resources typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ResourcesProperty]]] Property resources:.
targets typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property targets: The shared target.

resource_share_nameRequired

resource_share_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 (-).


allow_external_targetsOptional

allow_external_targets: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, 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.


permission_namesOptional

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

Property permissionNames: Sharing permission name.

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


resourcesOptional

resources: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourcesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ResourcesProperty]]]

Property resources:.


targetsOptional

targets: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, 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.