ALIYUN::ALB::AclAssociation は、アクセス制御リスト (ACL) をリスナーに関連付けるために使用されます。
構文
{
"Type": "ALIYUN::ALB::AclAssociation",
"Properties": {
"AclType": String,
"AclIds": List,
"ListenerId": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
AclIds | List | はい | はい | ACL ID。 | 最大 3 つの ID を指定できます。 |
AclType | String | はい | いいえ | ACL タイプ。 | 有効な値:
|
ListenerId | String | はい | いいえ | リスナー ID。 | なし。 |
戻り値
Fn::GetAtt
ListenerId: リスナー ID。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AclIds:
Description: ACL の ID。一度に最大 3 つの ID を指定できます。
MaxLength: 3
MinLength: 1
Type: Json
AclType:
AllowedValues:
- White
- Black
Description: ACL のタイプ。
Type: String
ListenerId:
Description: リスナーの ID。
Type: String
Resources:
AclAssociation:
Properties:
AclIds:
Ref: AclIds
AclType:
Ref: AclType
ListenerId:
Ref: ListenerId
Type: ALIYUN::ALB::AclAssociation
Outputs:
ListenerId:
Description: リスナーの ID。
Value:
Fn::GetAtt:
- AclAssociation
- ListenerIdJSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AclType": {
"Type": "String",
"Description": "ACL のタイプ。",
"AllowedValues": [
"White",
"Black"
]
},
"AclIds": {
"Type": "Json",
"Description": "ACL の ID。一度に最大 3 つの ID を指定できます。",
"MinLength": 1,
"MaxLength": 3
},
"ListenerId": {
"Type": "String",
"Description": "リスナーの ID。"
}
},
"Resources": {
"AclAssociation": {
"Type": "ALIYUN::ALB::AclAssociation",
"Properties": {
"AclType": {
"Ref": "AclType"
},
"AclIds": {
"Ref": "AclIds"
},
"ListenerId": {
"Ref": "ListenerId"
}
}
}
},
"Outputs": {
"ListenerId": {
"Description": "リスナーの ID。",
"Value": {
"Fn::GetAtt": [
"AclAssociation",
"ListenerId"
]
}
}
}
}