listDistributionsByWebACLId2017_03_25 method

Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLId2017_03_25({
  1. required String webACLId,
  2. String? marker,
  3. String? maxItems,
})

List the distributions that are associated with a specified AWS WAF web ACL.

May throw InvalidArgument. May throw InvalidWebACLId.

Parameter webACLId : The ID of the AWS 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.

Parameter marker : Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)

Parameter maxItems : The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.

Implementation

Future<ListDistributionsByWebACLIdResult>
    listDistributionsByWebACLId2017_03_25({
  required String webACLId,
  String? marker,
  String? maxItems,
}) async {
  ArgumentError.checkNotNull(webACLId, 'webACLId');
  final $query = <String, List<String>>{
    if (marker != null) 'Marker': [marker],
    if (maxItems != null) 'MaxItems': [maxItems],
  };
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri:
        '/2017-03-25/distributionsByWebACLId/${Uri.encodeComponent(webACLId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return ListDistributionsByWebACLIdResult(
    distributionList: DistributionList.fromXml($elem),
  );
}