getContactChannel method

Future<GetContactChannelResult> getContactChannel({
  1. required String contactChannelId,
})

List details about a specific contact channel.

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

Parameter contactChannelId : The Amazon Resource Name (ARN) of the contact channel you want information about.

Implementation

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

  return GetContactChannelResult.fromJson(jsonResponse.body);
}