removeNotificationChannel method
Remove one anomaly notifications channel for a profiling group.
May throw InternalServerException. May throw ValidationException. May throw ThrottlingException. May throw ResourceNotFoundException.
Parameter channelId
:
The id of the channel that we want to stop receiving notifications.
Parameter profilingGroupName
:
The name of the profiling group we want to change notification
configuration for.
Implementation
Future<RemoveNotificationChannelResponse> removeNotificationChannel({
required String channelId,
required String profilingGroupName,
}) async {
ArgumentError.checkNotNull(channelId, 'channelId');
ArgumentError.checkNotNull(profilingGroupName, 'profilingGroupName');
_s.validateStringLength(
'profilingGroupName',
profilingGroupName,
1,
255,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/profilingGroups/${Uri.encodeComponent(profilingGroupName)}/notificationConfiguration/${Uri.encodeComponent(channelId)}',
exceptionFnMap: _exceptionFns,
);
return RemoveNotificationChannelResponse.fromJson(response);
}