describeAcmeAccount method

Future<DescribeAcmeAccountResponse> describeAcmeAccount({
  1. required String accountUrl,
  2. required String acmeEndpointArn,
})

Returns detailed metadata about the specified ACME account, including its status, public key thumbprint, and associated external account binding.

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

Parameter accountUrl : The URL of the ACME account.

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

Implementation

Future<DescribeAcmeAccountResponse> describeAcmeAccount({
  required String accountUrl,
  required String acmeEndpointArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CertificateManager.DescribeAcmeAccount'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AccountUrl': accountUrl,
      'AcmeEndpointArn': acmeEndpointArn,
    },
    endpoint: _resolveEndpoint(
      serviceType: 'ACM-ACME',
    ),
  );

  return DescribeAcmeAccountResponse.fromJson(jsonResponse.body);
}