revokeAcmeAccount method
Revokes an ACME account, preventing it from requesting or revoking certificates. This operation is irreversible.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter accountUrl :
The URL of the ACME account to revoke.
Parameter acmeEndpointArn :
The Amazon Resource Name (ARN) of the ACME endpoint.
Implementation
Future<void> revokeAcmeAccount({
required String accountUrl,
required String acmeEndpointArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CertificateManager.RevokeAcmeAccount'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AccountUrl': accountUrl,
'AcmeEndpointArn': acmeEndpointArn,
},
endpoint: _resolveEndpoint(
serviceType: 'ACM-ACME',
),
);
}