| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ConnectCases.SearchRelatedItems
Description
Searches for related items that are associated with a case.
If no filters are provided, this returns all related items associated with a case.
This operation returns paginated results.
Synopsis
- data SearchRelatedItems = SearchRelatedItems' {}
- newSearchRelatedItems :: Text -> Text -> SearchRelatedItems
- searchRelatedItems_filters :: Lens' SearchRelatedItems (Maybe [RelatedItemTypeFilter])
- searchRelatedItems_maxResults :: Lens' SearchRelatedItems (Maybe Natural)
- searchRelatedItems_nextToken :: Lens' SearchRelatedItems (Maybe Text)
- searchRelatedItems_caseId :: Lens' SearchRelatedItems Text
- searchRelatedItems_domainId :: Lens' SearchRelatedItems Text
- data SearchRelatedItemsResponse = SearchRelatedItemsResponse' {}
- newSearchRelatedItemsResponse :: Int -> SearchRelatedItemsResponse
- searchRelatedItemsResponse_nextToken :: Lens' SearchRelatedItemsResponse (Maybe Text)
- searchRelatedItemsResponse_httpStatus :: Lens' SearchRelatedItemsResponse Int
- searchRelatedItemsResponse_relatedItems :: Lens' SearchRelatedItemsResponse [SearchRelatedItemsResponseItem]
Creating a Request
data SearchRelatedItems Source #
See: newSearchRelatedItems smart constructor.
Constructors
| SearchRelatedItems' | |
Fields
| |
Instances
newSearchRelatedItems Source #
Arguments
| :: Text | |
| -> Text | |
| -> SearchRelatedItems |
Create a value of SearchRelatedItems 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:filters:SearchRelatedItems', searchRelatedItems_filters - The list of types of related items and their parameters to use for
filtering.
$sel:maxResults:SearchRelatedItems', searchRelatedItems_maxResults - The maximum number of results to return per page.
SearchRelatedItems, searchRelatedItems_nextToken - The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
SearchRelatedItems, searchRelatedItems_caseId - A unique identifier of the case.
SearchRelatedItems, searchRelatedItems_domainId - The unique identifier of the Cases domain.
Request Lenses
searchRelatedItems_filters :: Lens' SearchRelatedItems (Maybe [RelatedItemTypeFilter]) Source #
The list of types of related items and their parameters to use for filtering.
searchRelatedItems_maxResults :: Lens' SearchRelatedItems (Maybe Natural) Source #
The maximum number of results to return per page.
searchRelatedItems_nextToken :: Lens' SearchRelatedItems (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
searchRelatedItems_caseId :: Lens' SearchRelatedItems Text Source #
A unique identifier of the case.
searchRelatedItems_domainId :: Lens' SearchRelatedItems Text Source #
The unique identifier of the Cases domain.
Destructuring the Response
data SearchRelatedItemsResponse Source #
See: newSearchRelatedItemsResponse smart constructor.
Constructors
| SearchRelatedItemsResponse' | |
Fields
| |
Instances
newSearchRelatedItemsResponse Source #
Create a value of SearchRelatedItemsResponse 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:
SearchRelatedItems, searchRelatedItemsResponse_nextToken - The token for the next set of results. This is null if there are no more
results to return.
$sel:httpStatus:SearchRelatedItemsResponse', searchRelatedItemsResponse_httpStatus - The response's http status code.
$sel:relatedItems:SearchRelatedItemsResponse', searchRelatedItemsResponse_relatedItems - A list of items related to a case.
Response Lenses
searchRelatedItemsResponse_nextToken :: Lens' SearchRelatedItemsResponse (Maybe Text) Source #
The token for the next set of results. This is null if there are no more results to return.
searchRelatedItemsResponse_httpStatus :: Lens' SearchRelatedItemsResponse Int Source #
The response's http status code.
searchRelatedItemsResponse_relatedItems :: Lens' SearchRelatedItemsResponse [SearchRelatedItemsResponseItem] Source #
A list of items related to a case.