deleteChannel method

Future<void> deleteChannel({
  1. required String channel,
})

Deletes a channel.

May throw ChannelARNInvalidException. May throw ChannelNotFoundException. May throw OperationNotPermittedException. May throw UnsupportedOperationException.

Parameter channel : The ARN or the UUID value of the channel that you want to delete.

Implementation

Future<void> deleteChannel({
  required String channel,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CloudTrail_20131101.DeleteChannel'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Channel': channel,
    },
  );
}