describeChannelModeratedByAppInstanceUser method

Future<DescribeChannelModeratedByAppInstanceUserResponse> describeChannelModeratedByAppInstanceUser({
  1. required String appInstanceUserArn,
  2. required String channelArn,
})

Returns the full details of a channel moderated by the specified AppInstanceUser.

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

Parameter appInstanceUserArn : The ARN of the app instance user in the moderated channel.

Parameter channelArn : The ARN of the moderated channel.

Implementation

Future<DescribeChannelModeratedByAppInstanceUserResponse>
    describeChannelModeratedByAppInstanceUser({
  required String appInstanceUserArn,
  required String channelArn,
}) async {
  ArgumentError.checkNotNull(appInstanceUserArn, 'appInstanceUserArn');
  _s.validateStringLength(
    'appInstanceUserArn',
    appInstanceUserArn,
    5,
    1600,
    isRequired: true,
  );
  ArgumentError.checkNotNull(channelArn, 'channelArn');
  _s.validateStringLength(
    'channelArn',
    channelArn,
    5,
    1600,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    'app-instance-user-arn': [appInstanceUserArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/channels/${Uri.encodeComponent(channelArn)}?scope=app-instance-user-moderated-channel',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DescribeChannelModeratedByAppInstanceUserResponse.fromJson(response);
}