getConnectionPreferences method
Retrieves the connection preferences for a partner account, including access settings and exclusions.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter catalog :
The catalog identifier for the partner account.
Implementation
Future<GetConnectionPreferencesResponse> getConnectionPreferences({
required String catalog,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PartnerCentralAccount.GetConnectionPreferences'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Catalog': catalog,
},
);
return GetConnectionPreferencesResponse.fromJson(jsonResponse.body);
}