CloudFront / Client / associate_distribution_web_acl
associate_distribution_web_acl¶
- CloudFront.Client.associate_distribution_web_acl(**kwargs)¶
Associates the WAF web ACL with a distribution.
See also: AWS API Documentation
Request Syntax
response = client.associate_distribution_web_acl( Id='string', WebACLArn='string', IfMatch='string' )
- Parameters:
Id (string) –
[REQUIRED]
The ID of the distribution.
WebACLArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the WAF web ACL to associate.
IfMatch (string) – The value of the
ETag
header that you received when retrieving the distribution that you’re associating with the WAF web ACL.
- Return type:
dict
- Returns:
Response Syntax
{ 'Id': 'string', 'WebACLArn': 'string', 'ETag': 'string' }
Response Structure
(dict) –
Id (string) –
The ID of the distribution.
WebACLArn (string) –
The ARN of the WAF web ACL that you associated with the distribution.
ETag (string) –
The current version of the distribution.
Exceptions