ALIYUN::ALB::AclAssociation is used to associate access control lists (ACLs) with a listener.
Syntax
{
"Type": "ALIYUN::ALB::AclAssociation",
"Properties": {
"AclType": String,
"AclIds": List,
"ListenerId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
AclType | String | Yes | No | The type of the ACL. | Valid values:
|
AclIds | List | Yes | Yes | The IDs of the ACLs. | You can specify up to three IDs. |
ListenerId | String | Yes | No | The ID of the listener. | None. |
Return values
Fn::GetAtt
ListenerId: the ID of the listener.
Examples
-
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "AclType": { "Type": "String", "Description": "The type of ACL.", "AllowedValues": [ "White", "Black" ] }, "AclIds": { "Type": "Json", "Description": "The IDs of the ACLs. You can specify up to three IDs at a time.", "MinLength": 1, "MaxLength": 3 }, "ListenerId": { "Type": "String", "Description": "The ID of the listener." } }, "Resources": { "AclAssociation": { "Type": "ALIYUN::ALB::AclAssociation", "Properties": { "AclType": { "Ref": "AclType" }, "AclIds": { "Ref": "AclIds" }, "ListenerId": { "Ref": "ListenerId" } } } }, "Outputs": { "ListenerId": { "Description": "The ID of the listener.", "Value": { "Fn::GetAtt": [ "AclAssociation", "ListenerId" ] } } } }