listAcmeDomainValidations method

Future<ListAcmeDomainValidationsResponse> listAcmeDomainValidations({
  1. required String acmeEndpointArn,
  2. int? maxResults,
  3. String? nextToken,
})

Retrieves a list of domain validations for the specified ACME endpoint.

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

Parameter acmeEndpointArn : The Amazon Resource Name (ARN) of the ACME endpoint.

Parameter maxResults : The maximum number of results to return.

Parameter nextToken : A token for pagination.

Implementation

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

  return ListAcmeDomainValidationsResponse.fromJson(jsonResponse.body);
}