deleteMetricStream method

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

Permanently deletes the metric stream that you specify.

May throw InternalServiceFault. May throw InvalidParameterValueException. May throw MissingRequiredParameterException.

Parameter name : The name of the metric stream to delete.

Implementation

Future<void> deleteMetricStream({
  required String name,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'GraniteServiceVersion20100801.DeleteMetricStream'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
    },
  );
}