listHostedZoneAssociations method

Future<ListHostedZoneAssociationsOutput> listHostedZoneAssociations({
  1. int? maxResults,
  2. String? nextToken,
  3. String? resourceArn,
})

Lists hosted zone associations with pagination support. Specify a DNS view through the resourceArn parameter to list the hosted zone associations for that DNS view, or omit it to list all hosted zone associations in your Amazon Web Services account.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter maxResults : The maximum number of results to retrieve in a single call.

Parameter nextToken : A pagination token used for large sets of results that can't be returned in a single response.

Parameter resourceArn : The Amazon Resource Name (ARN) of the DNS view to list hosted zone associations for. This parameter is optional; if you omit it, all hosted zone associations in your Amazon Web Services account are returned.

Implementation

Future<ListHostedZoneAssociationsOutput> listHostedZoneAssociations({
  int? maxResults,
  String? nextToken,
  String? resourceArn,
}) async {
  final $query = <String, List<String>>{
    if (maxResults != null) 'max_results': [maxResults.toString()],
    if (nextToken != null) 'next_token': [nextToken],
    if (resourceArn != null) 'resourceArn': [resourceArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/hosted-zone-associations',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListHostedZoneAssociationsOutput.fromJson(response);
}