Skip to content

ResourceShareProps

Properties for defining a ResourceShare.

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

Initializer

import com.aliyun.ros.cdk.resourcemanager.ResourceShareProps;
ResourceShareProps.builder()
    .resourceShareName(java.lang.String)
    .resourceShareName(IResolvable)
//  .allowExternalTargets(java.lang.Boolean)
//  .allowExternalTargets(IResolvable)
//  .permissionNames(IResolvable)
//  .permissionNames(java.util.List<java.lang.String)
//  .permissionNames(IResolvable>)
//  .resources(IResolvable)
//  .resources(java.util.List<IResolvable)
//  .resources(ResourcesProperty>)
//  .targets(IResolvable)
//  .targets(java.util.List<java.lang.String)
//  .targets(IResolvable>)
    .build();

Properties

Name Type Description
resourceShareName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceShareName: The name of the resource share.
allowExternalTargets java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property allowExternalTargets: Whether to allow sharing to accounts outside the resource directory.
permissionNames com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property permissionNames: Sharing permission name.
resources com.aliyun.ros.cdk.core.IResolvable OR java.util.ListResourcesProperty> Property resources:.
targets com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property targets: The shared target.

resourceShareNameRequired

public java.lang.Object getResourceShareName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getAllowExternalTargets();
  • Type: java.lang.Boolean OR com.aliyun.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 java.lang.Object getPermissionNames();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property permissionNames: Sharing permission name.

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


resourcesOptional

public java.lang.Object getResources();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListResourcesProperty>

Property resources:.


targetsOptional

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

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.