deleteHsmConfiguration method

Future<void> deleteHsmConfiguration({
  1. required String hsmConfigurationIdentifier,
})

Deletes the specified Amazon Redshift HSM configuration.

May throw InvalidHsmConfigurationStateFault. May throw HsmConfigurationNotFoundFault.

Parameter hsmConfigurationIdentifier : The identifier of the Amazon Redshift HSM configuration to be deleted.

Implementation

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