The ALIYUN::ResourceManager::SharedTarget resource is used to associate shared resources or resource users.
Syntax
{
"Type": "ALIYUN::ResourceManager::SharedTarget",
"Properties": {
"ResourceShareId": String,
"TargetId": String
}
}Properties
Parameter | Type | Required | Update allowed | Description | Constraints |
ResourceShareId | String | Yes | No | The ID of the resource share. | None |
TargetId | String | No | No | The ID of the principal. | None |
Return values
Fn::GetAtt
ResourceShareId: The ID of the resource share.
ResourceShareName: The name of the resource share.
CreateTime: The creation time of the resource share.
UpdateTime: The update time of the resource share.
TargetId: The ID of the principal.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceShareId:
Type: String
Description:
en: The ID of the resource share.
Required: true
TargetId:
Type: String
Description:
en: The ID of the principal.
Default: Null
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::ResourceManager::SharedTarget
Properties:
ResourceShareId:
Ref: ResourceShareId
TargetId:
Ref: TargetId
Outputs:
ResourceShareId:
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceShareId
Description: The ID of the resource share.
UpdateTime:
Value:
Fn::GetAtt:
- ExtensionResource
- UpdateTime
Description: The update time of the resource share.
TargetId:
Value:
Fn::GetAtt:
- ExtensionResource
- TargetId
Description: The ID of the principal.
CreateTime:
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description: The creation time of the resource share.
ResourceShareName:
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceShareName
Description: The name of the resource share.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceShareId": {
"Type": "String",
"Description": {
"en": "The ID of the resource share."
},
"Required": true
},
"TargetId": {
"Type": "String",
"Description": {
"en": "The ID of the principal."
},
"Default": null,
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ResourceManager::SharedTarget",
"Properties": {
"ResourceShareId": {
"Ref": "ResourceShareId"
},
"TargetId": {
"Ref": "TargetId"
}
}
}
},
"Outputs": {
"ResourceShareId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceShareId"
]
},
"Description": "The ID of the resource share."
},
"UpdateTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"UpdateTime"
]
},
"Description": "The update time of the resource share."
},
"TargetId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TargetId"
]
},
"Description": "The ID of the principal."
},
"CreateTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
},
"Description": "The creation time of the resource share."
},
"ResourceShareName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceShareName"
]
},
"Description": "The name of the resource share."
}
}
}