deleteCACertificate method

Future<void> deleteCACertificate({
  1. required String certificateId,
})

Deletes a registered CA certificate.

May throw InvalidRequestException. May throw CertificateStateException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException. May throw ResourceNotFoundException.

Parameter certificateId : The ID of the certificate to delete. (The last part of the certificate ARN contains the certificate ID.)

Implementation

Future<void> deleteCACertificate({
  required String certificateId,
}) async {
  ArgumentError.checkNotNull(certificateId, 'certificateId');
  _s.validateStringLength(
    'certificateId',
    certificateId,
    64,
    64,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/cacertificate/${Uri.encodeComponent(certificateId)}',
    exceptionFnMap: _exceptionFns,
  );
}