deactivateContactChannel method

Future<void> deactivateContactChannel({
  1. required String contactChannelId,
})

To no longer receive Incident Manager engagements to a contact channel, you can deactivate the channel.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter contactChannelId : The Amazon Resource Name (ARN) of the contact channel you're deactivating.

Implementation

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