describeChannel method

Future<DescribeChannelResponse> describeChannel({
  1. required String channelArn,
})

Returns the full details of a channel in an Amazon Chime app instance.

May throw BadRequestException. May throw ForbiddenException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter channelArn : The ARN of the channel.

Implementation

Future<DescribeChannelResponse> describeChannel({
  required String channelArn,
}) async {
  ArgumentError.checkNotNull(channelArn, 'channelArn');
  _s.validateStringLength(
    'channelArn',
    channelArn,
    5,
    1600,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/channels/${Uri.encodeComponent(channelArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeChannelResponse.fromJson(response);
}