getConnectionInvitation method
Retrieves detailed information about a specific connection invitation.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter catalog :
The catalog identifier where the connection invitation exists.
Parameter identifier :
The unique identifier of the connection invitation to retrieve.
Implementation
Future<GetConnectionInvitationResponse> getConnectionInvitation({
required String catalog,
required String identifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PartnerCentralAccount.GetConnectionInvitation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Catalog': catalog,
'Identifier': identifier,
},
);
return GetConnectionInvitationResponse.fromJson(jsonResponse.body);
}