facets
Creates, updates, deletes, gets or lists a facets resource.
Overview
| Name | facets |
| Type | Resource |
| Id | aws.marketplace_discovery.facets |
Fields
The following fields are returned by SELECT queries:
- search_facets
| Name | Datatype | Description |
|---|---|---|
listing_facets | object | A map of facet types to their corresponding facet values. Each facet value includes a display name, internal value, and count of matching listings. |
next_token | string | If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. (pattern: <code>[a-zA-Z0-9+/=]+</code>) |
total_results | integer (int64) | The total number of listings matching the search criteria. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
search_facets | select | region | Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings. Each facet value includes a count of matching listings. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- search_facets
Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings. Each facet value includes a count of matching listings.
SELECT
listing_facets,
next_token,
total_results
FROM aws.marketplace_discovery.facets
WHERE region = '{{ region }}' -- required
;