ALIYUN::ServiceCatalog::ProductPortfolioAssociation

更新时间:
复制为 MD 格式

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."
    }
  }
}