Associe des listes de contrôle d'accès (ACL) à un écouteur.
Syntaxe
{
"Type": "ALIYUN::ALB::AclAssociation",
"Properties": {
"AclType": String,
"AclIds": List,
"ListenerId": String
}
}
Propriétés
|
Propriété |
Type |
Obligatoire |
Modifiable |
Description |
Contrainte |
|
AclIds |
List |
Oui |
Oui |
Les ID des ACL. |
Spécifiez jusqu'à trois ID. |
|
AclType |
String |
Oui |
Non |
Le type d'ACL. |
Valeurs valides :
|
|
ListenerId |
String |
Oui |
Non |
L'ID de l'écouteur. |
Aucune. |
Valeurs de retour
Fn::GetAtt
ListenerId : l'ID de l'écouteur.
Exemples
Format YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AclIds:
Description: The IDs of the ACLs. You can specify up to three IDs at a time.
MaxLength: 3
MinLength: 1
Type: Json
AclType:
AllowedValues:
- White
- Black
Description: The type of ACL.
Type: String
ListenerId:
Description: The ID of the listener.
Type: String
Resources:
AclAssociation:
Properties:
AclIds:
Ref: AclIds
AclType:
Ref: AclType
ListenerId:
Ref: ListenerId
Type: ALIYUN::ALB::AclAssociation
Outputs:
ListenerId:
Description: The ID of the listener.
Value:
Fn::GetAtt:
- AclAssociation
- ListenerId
Format JSON
{
"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"
]
}
}
}
}