listDistributionConfigurations method

Future<ListDistributionConfigurationsResponse> listDistributionConfigurations({
  1. List<Filter>? filters,
  2. int? maxResults,
  3. String? nextToken,
})

Returns a list of distribution configurations.

May throw ServiceException. May throw ClientException. May throw ServiceUnavailableException. May throw InvalidRequestException. May throw InvalidPaginationTokenException. May throw ForbiddenException. May throw CallRateLimitExceededException.

Parameter filters : The filters.

  • name - The name of this distribution configuration.

Parameter maxResults : The maximum items to return in a request.

Parameter nextToken : A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Implementation

Future<ListDistributionConfigurationsResponse>
    listDistributionConfigurations({
  List<Filter>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    25,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    65535,
  );
  final $payload = <String, dynamic>{
    if (filters != null) 'filters': filters,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListDistributionConfigurations',
    exceptionFnMap: _exceptionFns,
  );
  return ListDistributionConfigurationsResponse.fromJson(response);
}