deleteAcmeEndpoint method

Future<void> deleteAcmeEndpoint({
  1. required String acmeEndpointArn,
})

Deletes an ACME endpoint. After deletion, the endpoint URL is no longer accessible and ACME clients cannot issue certificates through it. Any existing external account bindings and domain validations associated with the endpoint are also deleted.

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

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

Implementation

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