disassociateChannel method
Disassociates a Channel from a specified
NotificationConfiguration. Supported Channels include Amazon
Q Developer in chat applications, the Console Mobile Application, and
emails (notifications-contacts).
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter arn :
The Amazon Resource Name (ARN) of the Channel to disassociate.
Parameter notificationConfigurationArn :
The ARN of the NotificationConfiguration to disassociate.
Implementation
Future<void> disassociateChannel({
required String arn,
required String notificationConfigurationArn,
}) async {
final $payload = <String, dynamic>{
'notificationConfigurationArn': notificationConfigurationArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/channels/disassociate/${Uri.encodeComponent(arn)}',
exceptionFnMap: _exceptionFns,
);
}