list_entities
¶
list_entities(
catalog: Catalog,
entity_type: EntityType,
*,
config_overrides: Optional[MarketplaceCatalogClientConfig] = None,
filter_list: Optional[FilterList] = None,
sort: Optional[Sort] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[ListEntitiesMaxResultInteger] = None,
ownership_type: Optional[OwnershipType] = None,
entity_type_filters: Optional[EntityTypeFilters] = None,
entity_type_sort: Optional[EntityTypeSort] = None,
) -> ListEntitiesResponse
Provides the list of entities of a given type.
Parameters:
-
catalog(Catalog) –The catalog related to the request. Fixed value:
AWSMarketplace -
entity_type(EntityType) –The type of entities to retrieve. Valid values are:
AmiProduct,ContainerProduct,DataProduct,SaaSProduct,ProcurementPolicy,Experience,Audience,BrandingSettings,Offer,OfferSet,Seller,ResaleAuthorization,Solution. -
filter_list(Optional[FilterList], default:None) –An array of filter objects. Each filter object contains two attributes,
filterNameandfilterValues. -
sort(Optional[Sort], default:None) –An object that contains two attributes,
SortByandSortOrder. -
next_token(Optional[NextToken], default:None) –The value of the next token, if it exists. Null if there are no more results.
-
max_results(Optional[ListEntitiesMaxResultInteger], default:None) –Specifies the upper limit of the elements on a single page. If a value isn't provided, the default value is 20.
-
ownership_type(Optional[OwnershipType], default:None) –Filters the returned set of entities based on their owner. The default is
SELF. To list entities shared with you through AWS Resource Access Manager (AWS RAM), set toSHARED. Entities shared through the AWS Marketplace Catalog APIPutResourcePolicyoperation can't be discovered through theSHAREDparameter. -
entity_type_filters(Optional[EntityTypeFilters], default:None) –A Union object containing filter shapes for all
EntityTypes. EachEntityTypeFiltershape will have filters applicable for thatEntityTypethat can be used to search or filter entities. -
entity_type_sort(Optional[EntityTypeSort], default:None) –A Union object containing
Sortshapes for allEntityTypes. EachEntityTypeSortshape will haveSortByandSortOrderapplicable for fields on thatEntityType. This can be used to sort the results of the filter query.
Raises:
-
AccessDeniedException–Access is denied.
HTTP status code: 403
-
InternalServiceException–There was an internal service exception.
HTTP status code: 500
-
ResourceNotFoundException–The specified resource wasn't found.
HTTP status code: 404
-
ThrottlingException–Too many requests.
HTTP status code: 429
-
ValidationException–An error occurred during validation.
HTTP status code: 422
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_marketplace_catalog/_services/marketplace_catalog.py
829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 | |