ALIYUN::ALB::AScript is used to create an AScript rule.
Syntax
{
"Type": "ALIYUN::ALB::AScript",
"Properties": {
"AScriptName": String,
"ListenerId": String,
"ScriptContent": String,
"Enabled": Boolean,
"ExtAttributeEnabled": Boolean,
"ExtAttributes": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
AScriptName | String | Yes | Yes | The name of the AScript rule. | The name must be 2 to 128 character in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. |
ListenerId | String | Yes | No | The listener ID. | None. |
ScriptContent | String | Yes | Yes | The content of the AScript rule. | None. |
Enabled | Boolean | No | Yes | Specifies whether to enable the AScript rule. | Valid values:
|
ExtAttributeEnabled | Boolean | No | Yes | Specifies whether to enable the extended attributes of the AScript rule. | Valid values:
|
ExtAttributes | List | No | Yes | The extended attributes. | For more information, see ExtAttributes properties. |
ExtAttributes syntax
"ExtAttributes": [
{
"AttributeKey": String,
"AttributeValue": String
}
]
ExtAttributes properties
Property | Type | Required | Editable | Description | Constraint |
AttributeKey | String | No | No | The attribute name of the AScript rule. | Set the value to EsDebug. A value of EsDebug specifies that when requests carry the _es_dbg parameter and the property value is the specified key, the debugging header is enabled to return the execution result. |
AttributeValue | String | No | No | The attribute value of the AScript rule. | The value must be 1 to 128 characters in length, and can contain letters and digits. |
Return values
Fn::GetAtt
AScriptId: the ID of the AScript rule.