ALIYUN::ServiceCatalog::ProductVersion

更新时间:
复制为 MD 格式

ALIYUN::ServiceCatalog::ProductVersion类型用于创建产品版本。

语法

{
  "Type": "ALIYUN::ServiceCatalog::ProductVersion",
  "Properties": {
    "ProductVersionName": String,
    "ProductId": String,
    "TemplateUrl": String,
    "TemplateType": String,
    "Active": Boolean,
    "Description": String,
    "Guidance": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ProductId

String

产品版本所属产品的ID。

ProductVersionName

String

产品版本的名称。

TemplateType

String

产品模板的类型。

有效取值:

  • RosTerraformTemplate:资源编排服务(ROS)支持的Terraform模板。

  • RosStandardTemplate:标准ROS模板。

TemplateUrl

String

模板的URL。

Active

Boolean

指定产品版本是否激活。

Description

String

产品版本的描述。

长度范围为1128个字符。

Guidance

String

推荐信息。

有效取值:

  • Default:不提供推荐信息,为默认值。

  • Recommended:推荐版本。

  • Latest:最新版本。

  • Deprecated:即将停用的版本。

返回值

Fn::GetAtt

  • Guidance:推荐信息。

  • TemplateUrl:模板的URL。

  • Active:指定产品版本是否激活。

  • Description:产品版本的描述。

  • ProductVersionId:产品版本的ID。

  • ProductVersionName:产品版本的名称。

  • CreateTime:产品版本的创建时间。

  • ProductId:产品版本所属产品的ID。

  • TemplateType:产品模板的类型。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Description:
    Type: String
    Description:
      en: The description of the product version. The value must be 1 to 128 characters in length.
    AssociationProperty: TextArea
    MinLength: 1
    MaxLength: 128
    Default: Null
    Required: false
  Guidance:
    Type: String
    Description:
      en: |-
        The recommendation information. Valid values: 
        * Default: No recommendation information is provided. This is the default value.
        * Recommended: the recommendation version.
        * Latest: the latest version.
        * Deprecated: the version that is about to be discontinued.
    AllowedValues:
      - Default
      - Recommended
      - Latest
      - Deprecated
    Default: Null
    Required: false
  TemplateType:
    Type: String
    Description:
      en: |-
        The type of the product template. Valid values:
        * RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).
        * RosStandardTemplate: the standard ROS template.
    AllowedValues:
      - RosTerraformTemplate
      - RosStandardTemplate
    Required: true
  Active:
    Type: Boolean
    Description:
      en: Specifies whether the product version is active.
    Default: Null
    Required: false
  TemplateUrl:
    Type: String
    Description:
      en: The URL of the template.
    Required: true
  ProductVersionName:
    Type: String
    Description:
      en: The name of the product version.
    Required: true
  ProductId:
    Type: String
    Description:
      en: The ID of the product to which the product version belongs.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ServiceCatalog::ProductVersion
    Properties:
      Description:
        Ref: Description
      Guidance:
        Ref: Guidance
      TemplateType:
        Ref: TemplateType
      Active:
        Ref: Active
      TemplateUrl:
        Ref: TemplateUrl
      ProductVersionName:
        Ref: ProductVersionName
      ProductId:
        Ref: ProductId
Outputs:
  Description:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Description
    Description: 'The description of the product version. '
  ProductVersionName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ProductVersionName
    Description: The name of the product version.
  Guidance:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Guidance
    Description: The recommendation information.
  TemplateType:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TemplateType
    Description: The type of the product template.
  Active:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Active
    Description: Specifies whether the product version is active.
  TemplateUrl:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TemplateUrl
    Description: The URL of the template.
  ProductVersionId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ProductVersionId
    Description: The ID of the product version.
  CreateTime:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
    Description: The creation time of the product version.
  ProductId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ProductId
    Description: The ID of the product to which the product version belongs.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Description": {
      "Type": "String",
      "Description": {
        "en": "The description of the product version. The value must be 1 to 128 characters in length."
      },
      "AssociationProperty": "TextArea",
      "MinLength": 1,
      "MaxLength": 128,
      "Default": null,
      "Required": false
    },
    "Guidance": {
      "Type": "String",
      "Description": {
        "en": "The recommendation information. Valid values: \n* Default: No recommendation information is provided. This is the default value.\n* Recommended: the recommendation version.\n* Latest: the latest version.\n* Deprecated: the version that is about to be discontinued."
      },
      "AllowedValues": [
        "Default",
        "Recommended",
        "Latest",
        "Deprecated"
      ],
      "Default": null,
      "Required": false
    },
    "TemplateType": {
      "Type": "String",
      "Description": {
        "en": "The type of the product template. Valid values:\n* RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).\n* RosStandardTemplate: the standard ROS template."
      },
      "AllowedValues": [
        "RosTerraformTemplate",
        "RosStandardTemplate"
      ],
      "Required": true
    },
    "Active": {
      "Type": "Boolean",
      "Description": {
        "en": "Specifies whether the product version is active."
      },
      "Default": null,
      "Required": false
    },
    "TemplateUrl": {
      "Type": "String",
      "Description": {
        "en": "The URL of the template."
      },
      "Required": true
    },
    "ProductVersionName": {
      "Type": "String",
      "Description": {
        "en": "The name of the product version."
      },
      "Required": true
    },
    "ProductId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the product to which the product version belongs."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ServiceCatalog::ProductVersion",
      "Properties": {
        "Description": {
          "Ref": "Description"
        },
        "Guidance": {
          "Ref": "Guidance"
        },
        "TemplateType": {
          "Ref": "TemplateType"
        },
        "Active": {
          "Ref": "Active"
        },
        "TemplateUrl": {
          "Ref": "TemplateUrl"
        },
        "ProductVersionName": {
          "Ref": "ProductVersionName"
        },
        "ProductId": {
          "Ref": "ProductId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      },
      "Description": "The description of the product version. "
    },
    "ProductVersionName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ProductVersionName"
        ]
      },
      "Description": "The name of the product version."
    },
    "Guidance": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Guidance"
        ]
      },
      "Description": "The recommendation information."
    },
    "TemplateType": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TemplateType"
        ]
      },
      "Description": "The type of the product template."
    },
    "Active": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Active"
        ]
      },
      "Description": "Specifies whether the product version is active."
    },
    "TemplateUrl": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TemplateUrl"
        ]
      },
      "Description": "The URL of the template."
    },
    "ProductVersionId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ProductVersionId"
        ]
      },
      "Description": "The ID of the product version."
    },
    "CreateTime": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      },
      "Description": "The creation time of the product version."
    },
    "ProductId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ProductId"
        ]
      },
      "Description": "The ID of the product to which the product version belongs."
    }
  }
}