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 |
是 |
否 |
产品模板的类型。 |
有效取值:
|
|
TemplateUrl |
String |
是 |
否 |
模板的URL。 |
无 |
|
Active |
Boolean |
否 |
是 |
指定产品版本是否激活。 |
无 |
|
Description |
String |
否 |
是 |
产品版本的描述。 |
长度范围为1到128个字符。 |
|
Guidance |
String |
否 |
是 |
推荐信息。 |
有效取值:
|
返回值
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."
}
}
}该文章对您有帮助吗?