getPartnerAccount method

Future<GetPartnerAccountResponse> getPartnerAccount({
  1. required String partnerAccountId,
  2. required PartnerType partnerType,
})

Gets information about a partner account. If PartnerAccountId and PartnerType are null, returns all partner accounts.

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

Parameter partnerAccountId : The partner account ID to disassociate from the AWS account.

Parameter partnerType : The partner type.

Implementation

Future<GetPartnerAccountResponse> getPartnerAccount({
  required String partnerAccountId,
  required PartnerType partnerType,
}) async {
  final $query = <String, List<String>>{
    'partnerType': [partnerType.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/partner-accounts/${Uri.encodeComponent(partnerAccountId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetPartnerAccountResponse.fromJson(response);
}