deleteDestination method
Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.
May throw InvalidParameterException. May throw ResourceNotFoundException. May throw OperationAbortedException. May throw ServiceUnavailableException.
Parameter destinationName
:
The name of the destination.
Implementation
Future<void> deleteDestination({
required String destinationName,
}) async {
ArgumentError.checkNotNull(destinationName, 'destinationName');
_s.validateStringLength(
'destinationName',
destinationName,
1,
512,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.DeleteDestination'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'destinationName': destinationName,
},
);
}