deleteV2LoggingLevel method

Future<void> deleteV2LoggingLevel({
  1. required String targetName,
  2. required LogTargetType targetType,
})

Deletes a logging level.

May throw InternalException. May throw InvalidRequestException. May throw ServiceUnavailableException.

Parameter targetName : The name of the resource for which you are configuring logging.

Parameter targetType : The type of resource for which you are configuring logging. Must be THING_Group.

Implementation

Future<void> deleteV2LoggingLevel({
  required String targetName,
  required LogTargetType targetType,
}) async {
  ArgumentError.checkNotNull(targetName, 'targetName');
  ArgumentError.checkNotNull(targetType, 'targetType');
  final $query = <String, List<String>>{
    'targetName': [targetName],
    'targetType': [targetType.toValue()],
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/v2LoggingLevel',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}