describeGroupMembership method
Retrieves membership metadata and attributes from
MembershipId in an identity store.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter identityStoreId :
The globally unique identifier for the identity store.
Parameter membershipId :
The identifier for a GroupMembership in an identity store.
Implementation
Future<DescribeGroupMembershipResponse> describeGroupMembership({
required String identityStoreId,
required String membershipId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSIdentityStore.DescribeGroupMembership'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'IdentityStoreId': identityStoreId,
'MembershipId': membershipId,
},
);
return DescribeGroupMembershipResponse.fromJson(jsonResponse.body);
}