list_benefits
¶
list_benefits(
catalog: CatalogName,
*,
config_overrides: Optional[PartnerCentralBenefitsClientConfig] = None,
programs: Optional[Programs] = None,
fulfillment_types: Optional[FulfillmentTypes] = None,
status: Optional[BenefitStatuses] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> ListBenefitsOutput
Retrieves a paginated list of available benefits based on specified filter criteria.
Parameters:
-
catalog(CatalogName) –The catalog identifier to filter benefits by catalog.
-
programs(Optional[Programs], default:None) –Filter benefits by specific AWS partner programs.
-
fulfillment_types(Optional[FulfillmentTypes], default:None) –Filter benefits by specific fulfillment types.
-
status(Optional[BenefitStatuses], default:None) –Filter benefits by their current status.
-
max_results(Optional[int], default:None) –The maximum number of benefits to return in a single response.
-
next_token(Optional[str], default:None) –A pagination token to retrieve the next set of results from a previous request.
Raises:
-
AccessDeniedException–Thrown when the caller does not have sufficient permissions to perform the requested operation.
-
InternalServerException–Thrown when an unexpected error occurs on the server side during request processing.
-
ResourceNotFoundException–Thrown when the requested resource cannot be found or does not exist.
-
ThrottlingException–Thrown when the request rate exceeds the allowed limits and the request is being throttled.
-
ValidationException–Thrown when the request contains invalid parameters or fails input validation requirements.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_benefits/_services/partner_central_benefits.py
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 | |