deleteUsageLimit method

Future<void> deleteUsageLimit({
  1. required String usageLimitId,
})

Deletes a usage limit from a cluster.

May throw UsageLimitNotFoundFault. May throw UnsupportedOperationFault.

Parameter usageLimitId : The identifier of the usage limit to delete.

Implementation

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