The ALIYUN::ResourceManager::SavedQuery type creates a SavedQuery.
Syntax
{
"Type": "ALIYUN::ResourceManager::SavedQuery",
"Properties": {
"Expression": String,
"SavedQueryName": String,
"Description": String
}
}
Properties
|
Parameter |
Type |
Required |
Updatable |
Description |
Constraints |
|
Expression |
String |
Yes |
Yes |
The query expression. |
None |
|
SavedQueryName |
String |
Yes |
Yes |
The name of the SavedQuery. |
* The name must be 1 to 64 characters in length. * The name can contain letters, digits, underscores (_), and hyphens (-). The SavedQuery name must be unique. |
|
Description |
String |
No |
Yes |
A description of the SavedQuery. |
The description must be 1 to 256 characters in length. |
Return values
Fn::GetAtt
-
Description: The description of the SavedQuery.
-
Expression: The query expression of the SavedQuery.
-
CreateTime: The time when the SavedQuery was created.
-
UpdateTime: The time when the SavedQuery was last updated.
-
SavedQueryId: The ID of the SavedQuery.
-
SavedQueryName: The name of the SavedQuery.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SavedQueryName:
Type: String
Description:
en: |-
The name of the SavedQuery.
* The name must be 1 to 64 characters in length.
* The name can contain letters, digits, underscores (_), and hyphens (-).
* The SavedQuery name must be unique.
MinLength: 1
MaxLength: 64
Required: true
Expression:
Type: String
Description:
en: The query expression.
Required: true
Description:
Type: String
Description:
en: A description of the SavedQuery. The description must be 1 to 256 characters in length.
AssociationProperty: TextArea
MinLength: 1
MaxLength: 256
Default: Null
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::ResourceManager::SavedQuery
Properties:
SavedQueryName:
Ref: SavedQueryName
Expression:
Ref: Expression
Description:
Ref: Description
Outputs:
UpdateTime:
Value:
Fn::GetAtt:
- ExtensionResource
- UpdateTime
Description: The time when the SavedQuery was last updated.
Description:
Value:
Fn::GetAtt:
- ExtensionResource
- Description
Description: The description of the SavedQuery.
SavedQueryName:
Value:
Fn::GetAtt:
- ExtensionResource
- SavedQueryName
Description: The name of the SavedQuery.
SavedQueryId:
Value:
Fn::GetAtt:
- ExtensionResource
- SavedQueryId
Description: The ID of the SavedQuery.
Expression:
Value:
Fn::GetAtt:
- ExtensionResource
- Expression
Description: The query expression of the SavedQuery.
CreateTime:
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description: The time when the SavedQuery was created.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SavedQueryName": {
"Type": "String",
"Description": {
"en": "The name of the SavedQuery.\n* The name must be 1 to 64 characters in length.\n* The name can contain letters, digits, underscores (_), and hyphens (-).\n* The SavedQuery name must be unique."
},
"MinLength": 1,
"MaxLength": 64,
"Required": true
},
"Expression": {
"Type": "String",
"Description": {
"en": "The query expression."
},
"Required": true
},
"Description": {
"Type": "String",
"Description": {
"en": "A description of the SavedQuery. The description must be 1 to 256 characters in length."
},
"AssociationProperty": "TextArea",
"MinLength": 1,
"MaxLength": 256,
"Default": null,
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ResourceManager::SavedQuery",
"Properties": {
"SavedQueryName": {
"Ref": "SavedQueryName"
},
"Expression": {
"Ref": "Expression"
},
"Description": {
"Ref": "Description"
}
}
}
},
"Outputs": {
"UpdateTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"UpdateTime"
]
},
"Description": "The time when the SavedQuery was last updated."
},
"Description": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
},
"Description": "The description of the SavedQuery."
},
"SavedQueryName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SavedQueryName"
]
},
"Description": "The name of the SavedQuery."
},
"SavedQueryId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SavedQueryId"
]
},
"Description": "The ID of the SavedQuery."
},
"Expression": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Expression"
]
},
"Description": "The query expression of the SavedQuery."
},
"CreateTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
},
"Description": "The time when the SavedQuery was created."
}
}
}