ALIYUN::ALB::AclAssociation digunakan untuk mengaitkan daftar kontrol akses (ACL) dengan pendengar.
Sintaksis
{
"Type": "ALIYUN::ALB::AclAssociation",
"Properties": {
"AclType": String,
"AclIds": List,
"ListenerId": String
}
}Properti
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Batasan |
AclIds | List | Ya | Ya | ID ACL. | Anda dapat menentukan hingga tiga ID. |
AclType | String | Ya | Tidak | Tipe ACL. | Nilai yang valid:
|
ListenerId | String | Ya | Tidak | ID pendengar. | Tidak ada. |
Nilai Pengembalian
Fn::GetAtt
ListenerId: ID pendengar.
Contoh
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AclIds:
Description: ID ACL. Anda dapat menentukan hingga tiga ID sekaligus.
MaxLength: 3
MinLength: 1
Type: Json
AclType:
AllowedValues:
- White
- Black
Description: Jenis ACL.
Type: String
ListenerId:
Description: ID pendengar.
Type: String
Resources:
AclAssociation:
Properties:
AclIds:
Ref: AclIds
AclType:
Ref: AclType
ListenerId:
Ref: ListenerId
Type: ALIYUN::ALB::AclAssociation
Outputs:
ListenerId:
Description: ID pendengar.
Value:
Fn::GetAtt:
- AclAssociation
- ListenerIdJSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AclType": {
"Type": "String",
"Description": "Jenis ACL.",
"AllowedValues": [
"White",
"Black"
]
},
"AclIds": {
"Type": "Json",
"Description": "ID ACL. Anda dapat menentukan hingga tiga ID sekaligus.",
"MinLength": 1,
"MaxLength": 3
},
"ListenerId": {
"Type": "String",
"Description": "ID pendengar."
}
},
"Resources": {
"AclAssociation": {
"Type": "ALIYUN::ALB::AclAssociation",
"Properties": {
"AclType": {
"Ref": "AclType"
},
"AclIds": {
"Ref": "AclIds"
},
"ListenerId": {
"Ref": "ListenerId"
}
}
}
},
"Outputs": {
"ListenerId": {
"Description": "ID pendengar.",
"Value": {
"Fn::GetAtt": [
"AclAssociation",
"ListenerId"
]
}
}
}
}