deleteDimension method

Future<void> deleteDimension({
  1. required String name,
})

Removes the specified dimension from your AWS account.

May throw InternalFailureException. May throw InvalidRequestException. May throw ThrottlingException.

Parameter name : The unique identifier for the dimension that you want to delete.

Implementation

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