getRelationship method
Retrieves details of a specific partner relationship.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter catalog :
The catalog identifier for the relationship.
Parameter identifier :
The unique identifier of the relationship to retrieve.
Parameter programManagementAccountIdentifier :
The identifier of the program management account associated with the
relationship.
Implementation
Future<GetRelationshipResponse> getRelationship({
required String catalog,
required String identifier,
required String programManagementAccountIdentifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PartnerCentralChannel.GetRelationship'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'catalog': catalog,
'identifier': identifier,
'programManagementAccountIdentifier':
programManagementAccountIdentifier,
},
);
return GetRelationshipResponse.fromJson(jsonResponse.body);
}