AWS::WAFRegional::WebACLAssociation
AWS::WAFRegional::WebACLAssociation リソースは、AWS WAF Regional ウェブアクセスコントロールグループ (ACL) をリソースと関連付けます。
構文
AWS CloudFormation テンプレートでこのエンティティを宣言するには、次の構文を使用します。
JSON
{ "Type" : "AWS::WAFRegional::WebACLAssociation", "Properties" : { "ResourceArn" :
String
, "WebACLId" :String
} }
YAML
Type: AWS::WAFRegional::WebACLAssociation Properties: ResourceArn:
String
WebACLId:String
プロパティ
ResourceArn
-
ウェブ ACL で保護するリソースの Amazon リソースネーム (ARN)。
必須: はい
タイプ: 文字列
Update requires: Replacement
WebACLId
-
ウェブ ACL の一意の識別子 (ID)。
必須: はい
タイプ: 文字列
Update requires: Replacement
例
Application Load Balancer のリソースをウェブ ACL に関連付ける
次の例では、Application Load Balancer のリソースをウェブ ACL に関連付けます。
JSON
"MyWebACLAssociation": { "Type": "AWS::WAFRegional::WebACLAssociation", "Properties": { "ResourceArn": { "Ref": "MyLoadBalancer" }, "WebACLId": { "Ref": "MyWebACL" } } }
YAML
MyWebACLAssociation: Type: "AWS::WAFRegional::WebACLAssociation" Properties: ResourceArn: Ref: MyLoadBalancer WebACLId: Ref: MyWebACL