listAcmeEndpoints method

Future<ListAcmeEndpointsResponse> listAcmeEndpoints({
  1. int? maxResults,
  2. String? nextToken,
})

Retrieves a list of ACME endpoints in your account. Use this operation to view all configured ACME endpoints and their current status.

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

Parameter maxResults : The maximum number of results to return.

Parameter nextToken : A token for pagination.

Implementation

Future<ListAcmeEndpointsResponse> listAcmeEndpoints({
  int? maxResults,
  String? nextToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CertificateManager.ListAcmeEndpoints'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
    endpoint: _resolveEndpoint(
      serviceType: 'ACM-ACME',
    ),
  );

  return ListAcmeEndpointsResponse.fromJson(jsonResponse.body);
}