Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets information about the products for the specified portfolio or all products.
This operation returns paginated results.
Synopsis
- data SearchProductsAsAdmin = SearchProductsAsAdmin' {}
- newSearchProductsAsAdmin :: SearchProductsAsAdmin
- searchProductsAsAdmin_portfolioId :: Lens' SearchProductsAsAdmin (Maybe Text)
- searchProductsAsAdmin_filters :: Lens' SearchProductsAsAdmin (Maybe (HashMap ProductViewFilterBy [Text]))
- searchProductsAsAdmin_sortOrder :: Lens' SearchProductsAsAdmin (Maybe SortOrder)
- searchProductsAsAdmin_acceptLanguage :: Lens' SearchProductsAsAdmin (Maybe Text)
- searchProductsAsAdmin_pageToken :: Lens' SearchProductsAsAdmin (Maybe Text)
- searchProductsAsAdmin_pageSize :: Lens' SearchProductsAsAdmin (Maybe Natural)
- searchProductsAsAdmin_productSource :: Lens' SearchProductsAsAdmin (Maybe ProductSource)
- searchProductsAsAdmin_sortBy :: Lens' SearchProductsAsAdmin (Maybe ProductViewSortBy)
- data SearchProductsAsAdminResponse = SearchProductsAsAdminResponse' {}
- newSearchProductsAsAdminResponse :: Int -> SearchProductsAsAdminResponse
- searchProductsAsAdminResponse_nextPageToken :: Lens' SearchProductsAsAdminResponse (Maybe Text)
- searchProductsAsAdminResponse_productViewDetails :: Lens' SearchProductsAsAdminResponse (Maybe [ProductViewDetail])
- searchProductsAsAdminResponse_httpStatus :: Lens' SearchProductsAsAdminResponse Int
Creating a Request
data SearchProductsAsAdmin Source #
See: newSearchProductsAsAdmin
smart constructor.
SearchProductsAsAdmin' | |
|
Instances
newSearchProductsAsAdmin :: SearchProductsAsAdmin Source #
Create a value of SearchProductsAsAdmin
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:portfolioId:SearchProductsAsAdmin'
, searchProductsAsAdmin_portfolioId
- The portfolio identifier.
$sel:filters:SearchProductsAsAdmin'
, searchProductsAsAdmin_filters
- The search filters. If no search filters are specified, the output
includes all products to which the administrator has access.
$sel:sortOrder:SearchProductsAsAdmin'
, searchProductsAsAdmin_sortOrder
- The sort order. If no value is specified, the results are not sorted.
$sel:acceptLanguage:SearchProductsAsAdmin'
, searchProductsAsAdmin_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:pageToken:SearchProductsAsAdmin'
, searchProductsAsAdmin_pageToken
- The page token for the next set of results. To retrieve the first set of
results, use null.
$sel:pageSize:SearchProductsAsAdmin'
, searchProductsAsAdmin_pageSize
- The maximum number of items to return with this call.
$sel:productSource:SearchProductsAsAdmin'
, searchProductsAsAdmin_productSource
- Access level of the source of the product.
$sel:sortBy:SearchProductsAsAdmin'
, searchProductsAsAdmin_sortBy
- The sort field. If no value is specified, the results are not sorted.
Request Lenses
searchProductsAsAdmin_portfolioId :: Lens' SearchProductsAsAdmin (Maybe Text) Source #
The portfolio identifier.
searchProductsAsAdmin_filters :: Lens' SearchProductsAsAdmin (Maybe (HashMap ProductViewFilterBy [Text])) Source #
The search filters. If no search filters are specified, the output includes all products to which the administrator has access.
searchProductsAsAdmin_sortOrder :: Lens' SearchProductsAsAdmin (Maybe SortOrder) Source #
The sort order. If no value is specified, the results are not sorted.
searchProductsAsAdmin_acceptLanguage :: Lens' SearchProductsAsAdmin (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
searchProductsAsAdmin_pageToken :: Lens' SearchProductsAsAdmin (Maybe Text) Source #
The page token for the next set of results. To retrieve the first set of results, use null.
searchProductsAsAdmin_pageSize :: Lens' SearchProductsAsAdmin (Maybe Natural) Source #
The maximum number of items to return with this call.
searchProductsAsAdmin_productSource :: Lens' SearchProductsAsAdmin (Maybe ProductSource) Source #
Access level of the source of the product.
searchProductsAsAdmin_sortBy :: Lens' SearchProductsAsAdmin (Maybe ProductViewSortBy) Source #
The sort field. If no value is specified, the results are not sorted.
Destructuring the Response
data SearchProductsAsAdminResponse Source #
See: newSearchProductsAsAdminResponse
smart constructor.
SearchProductsAsAdminResponse' | |
|
Instances
newSearchProductsAsAdminResponse Source #
Create a value of SearchProductsAsAdminResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextPageToken:SearchProductsAsAdminResponse'
, searchProductsAsAdminResponse_nextPageToken
- The page token to use to retrieve the next set of results. If there are
no additional results, this value is null.
$sel:productViewDetails:SearchProductsAsAdminResponse'
, searchProductsAsAdminResponse_productViewDetails
- Information about the product views.
$sel:httpStatus:SearchProductsAsAdminResponse'
, searchProductsAsAdminResponse_httpStatus
- The response's http status code.
Response Lenses
searchProductsAsAdminResponse_nextPageToken :: Lens' SearchProductsAsAdminResponse (Maybe Text) Source #
The page token to use to retrieve the next set of results. If there are no additional results, this value is null.
searchProductsAsAdminResponse_productViewDetails :: Lens' SearchProductsAsAdminResponse (Maybe [ProductViewDetail]) Source #
Information about the product views.
searchProductsAsAdminResponse_httpStatus :: Lens' SearchProductsAsAdminResponse Int Source #
The response's http status code.