getMembership method

Future<GetMembershipOutput> getMembership({
  1. required String membershipIdentifier,
})

Retrieves a specified membership for an identifier.

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

Parameter membershipIdentifier : The identifier for a membership resource.

Implementation

Future<GetMembershipOutput> getMembership({
  required String membershipIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/memberships/${Uri.encodeComponent(membershipIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetMembershipOutput.fromJson(response);
}