list_distributions_by_web_acl_id
async
¶
list_distributions_by_web_acl_id(
web_acl_id: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = 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/async_cloud_front.py
7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 | |