list_distributions_by_web_acl_id
¶
list_distributions_by_web_acl_id(
web_acl_id: string,
*,
config_overrides: Optional[CloudFrontClientConfig] = None,
marker: Optional[string] = None,
max_items: Optional[integer] = None,
) -> ListDistributionsByWebACLIdResult
List the distributions that are associated with a specified WAF web ACL.
Parameters:
-
marker(Optional[string], default:None) –Use
MarkerandMaxItemsto control pagination of results. If you have more thanMaxItemsdistributions that satisfy the request, the response includes aNextMarkerelement. To get the next page of results, submit another request. For the value ofMarker, specify the value ofNextMarkerfrom the last response. (For the first request, omitMarker.) -
max_items(Optional[integer], default:None) –The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.
-
web_acl_id(string) –The ID of the WAF web ACL that you want to list the associated distributions. If you specify "null" for the ID, the request returns a list of the distributions that aren't associated with a web ACL.
For WAFV2, this is the ARN of the web ACL, such as
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111.For WAF Classic, this is the ID of the web ACL, such as
a1b2c3d4-5678-90ab-cdef-EXAMPLE11111.
Raises:
-
InvalidArgument–An argument is invalid.
-
InvalidWebACLId–A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using WAF Classic, use the ACL ID, for example473e64fd-f30b-4765-81a0-62ad96dd167a. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/cloud_front.py
7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 | |