ALIYUN::ResourceManager::ResourceShareAssociation is used to associate a shared resource or a resource user.
Syntax
{
"Type": "ALIYUN::ResourceManager::ResourceShareAssociation",
"Properties": {
"ResourceShareId": String,
"Targets": List,
"Resources": List,
"PermissionNames": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ResourceShareId | String | Yes | No | The ID of the resource share. | None. |
Targets | List | No | Yes | The ID of the principal. | Valid values:
Note You can specify up to five IDs of principals. |
Resources | List | No | Yes | The resources. | You can specify up to five resources For more information, see Resources properties. |
PermissionNames | List | No | No | The name of a permission. | If you do not enter a name, the system automatically fills the name of the default permission that is associated with the resource type. For more information, see Permissions for resource sharing. You can specify up to five names. |
Resources syntax
"Resources": [
{
"ResourceId": String,
"ResourceType": String
}
]
Resources properties
Property | Type | Required | Editable | Description | Constraint |
ResourceId | String | Yes | Yes | The ID of the shared resource. | You can specify up to five IDs at a time. |
ResourceType | String | Yes | Yes | The type of the shared resource. | You can specify up to five shared resources at a time. For more information about the types of resources that can be shared, see Services that work with Resource Sharing. Note If you specify ResourceType, you must also specify ResourceId. |
Return values
Fn::GetAtt
ResourceShareId: the ID of the resource share.