deleteHsmClientCertificate method

Future<void> deleteHsmClientCertificate({
  1. required String hsmClientCertificateIdentifier,
})

Deletes the specified HSM client certificate.

May throw InvalidHsmClientCertificateStateFault. May throw HsmClientCertificateNotFoundFault.

Parameter hsmClientCertificateIdentifier : The identifier of the HSM client certificate to be deleted.

Implementation

Future<void> deleteHsmClientCertificate({
  required String hsmClientCertificateIdentifier,
}) async {
  ArgumentError.checkNotNull(
      hsmClientCertificateIdentifier, 'hsmClientCertificateIdentifier');
  _s.validateStringLength(
    'hsmClientCertificateIdentifier',
    hsmClientCertificateIdentifier,
    0,
    2147483647,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['HsmClientCertificateIdentifier'] = hsmClientCertificateIdentifier;
  await _protocol.send(
    $request,
    action: 'DeleteHsmClientCertificate',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteHsmClientCertificateMessage'],
    shapes: shapes,
  );
}