The ALIYUN::ServiceCatalog::Constraint resource type creates constraints.
Syntax
{
"Type": "ALIYUN::ServiceCatalog::Constraint",
"Properties": {
"Config": Map,
"ConstraintType": String,
"PortfolioId": String,
"ProductId": String,
"Description": String
}
}Properties
Property Name | Type | Required | Updatable | Description | Constraints |
Config | Map | Yes | Yes | Constraint configuration. | Format: |
ConstraintType | String | Yes | No | Constraint type. | The value is Launch, indicating a launch constraint. |
PortfolioId | String | Yes | No | The ID of the product portfolio to which the constraint belongs. | None |
ProductId | String | Yes | No | The ID of the product corresponding to the constraint. | None |
Description | String | No | Yes | Constraint description. | Length is 1 to 128 characters. |
Return Values
Fn::GetAtt
ConstraintId: The ID of the constraint.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Config:
Type: Json
Description:
en: The configuration of the constraint.
Required: true
PortfolioId:
Type: String
Description:
en: The ID of the portfolio.
Required: true
ConstraintType:
Type: String
Description:
en: The type of the constraint.
Required: true
ProductId:
Type: String
Description:
en: The ID of the product.
Required: true
Resources:
Constraint:
Type: ALIYUN::ServiceCatalog::Constraint
Properties:
Config:
Ref: Config
PortfolioId:
Ref: PortfolioId
ConstraintType:
Ref: ConstraintType
ProductId:
Ref: ProductId
Outputs:
ConstraintId:
Description: The ID of the constraint.
Value:
Fn::GetAtt:
- Constraint
- ConstraintId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Config": {
"Type": "Json",
"Description": {
"en": "The configuration of the constraint."
},
"Required": true
},
"PortfolioId": {
"Type": "String",
"Description": {
"en": "The ID of the portfolio."
},
"Required": true
},
"ConstraintType": {
"Type": "String",
"Description": {
"en": "The type of the constraint."
},
"Required": true
},
"ProductId": {
"Type": "String",
"Description": {
"en": "The ID of the product."
},
"Required": true
}
},
"Resources": {
"Constraint": {
"Type": "ALIYUN::ServiceCatalog::Constraint",
"Properties": {
"Config": {
"Ref": "Config"
},
"PortfolioId": {
"Ref": "PortfolioId"
},
"ConstraintType": {
"Ref": "ConstraintType"
},
"ProductId": {
"Ref": "ProductId"
}
}
}
},
"Outputs": {
"ConstraintId": {
"Description": "The ID of the constraint.",
"Value": {
"Fn::GetAtt": [
"Constraint",
"ConstraintId"
]
}
}
}
}