ALIYUN::ServiceCatalog::ProductPortfolioAssociation类型用于将产品加入产品组合。
语法
{
"Type": "ALIYUN::ServiceCatalog::ProductPortfolioAssociation",
"Properties": {
"PortfolioId": String,
"ProductId": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
PortfolioId |
String |
是 |
否 |
产品组合的ID。 |
无 |
|
ProductId |
String |
是 |
否 |
产品的ID。 |
无 |
返回值
Fn::GetAtt
ProductId:产品的ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PortfolioId:
Type: String
Description:
en: The ID of the product portfolio.
Required: true
ProductId:
Type: String
Description:
en: The ID of the product.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ServiceCatalog::ProductPortfolioAssociation
Properties:
PortfolioId:
Ref: PortfolioId
ProductId:
Ref: ProductId
Outputs:
ProductId:
Value:
Fn::GetAtt:
- ExtensionResource
- ProductId
Description: The ID of the product.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PortfolioId": {
"Type": "String",
"Description": {
"en": "The ID of the product portfolio."
},
"Required": true
},
"ProductId": {
"Type": "String",
"Description": {
"en": "The ID of the product."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ServiceCatalog::ProductPortfolioAssociation",
"Properties": {
"PortfolioId": {
"Ref": "PortfolioId"
},
"ProductId": {
"Ref": "ProductId"
}
}
}
},
"Outputs": {
"ProductId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ProductId"
]
},
"Description": "The ID of the product."
}
}
}该文章对您有帮助吗?