describeChannelMembership method
Returns the full details of a user's channel membership.
May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter channelArn
:
The ARN of the channel.
Parameter memberArn
:
The ARN of the member.
Implementation
Future<DescribeChannelMembershipResponse> describeChannelMembership({
required String channelArn,
required String memberArn,
}) async {
ArgumentError.checkNotNull(channelArn, 'channelArn');
_s.validateStringLength(
'channelArn',
channelArn,
5,
1600,
isRequired: true,
);
ArgumentError.checkNotNull(memberArn, 'memberArn');
_s.validateStringLength(
'memberArn',
memberArn,
5,
1600,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/channels/${Uri.encodeComponent(channelArn)}/memberships/${Uri.encodeComponent(memberArn)}',
exceptionFnMap: _exceptionFns,
);
return DescribeChannelMembershipResponse.fromJson(response);
}