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 |
Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents.
This operation returns paginated results.
Synopsis
- data SearchCases = SearchCases' {
- fields :: Maybe [FieldIdentifier]
- filter' :: Maybe CaseFilter
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- searchTerm :: Maybe Text
- sorts :: Maybe [Sort]
- domainId :: Text
- newSearchCases :: Text -> SearchCases
- searchCases_fields :: Lens' SearchCases (Maybe [FieldIdentifier])
- searchCases_filter :: Lens' SearchCases (Maybe CaseFilter)
- searchCases_maxResults :: Lens' SearchCases (Maybe Natural)
- searchCases_nextToken :: Lens' SearchCases (Maybe Text)
- searchCases_searchTerm :: Lens' SearchCases (Maybe Text)
- searchCases_sorts :: Lens' SearchCases (Maybe [Sort])
- searchCases_domainId :: Lens' SearchCases Text
- data SearchCasesResponse = SearchCasesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- cases :: [SearchCasesResponseItem]
- newSearchCasesResponse :: Int -> SearchCasesResponse
- searchCasesResponse_nextToken :: Lens' SearchCasesResponse (Maybe Text)
- searchCasesResponse_httpStatus :: Lens' SearchCasesResponse Int
- searchCasesResponse_cases :: Lens' SearchCasesResponse [SearchCasesResponseItem]
Creating a Request
data SearchCases Source #
See: newSearchCases
smart constructor.
SearchCases' | |
|
Instances
Create a value of SearchCases
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:
SearchCases
, searchCases_fields
- The list of field identifiers to be returned as part of the response.
$sel:filter':SearchCases'
, searchCases_filter
- A list of filter objects.
$sel:maxResults:SearchCases'
, searchCases_maxResults
- The maximum number of cases to return. The current maximum supported
value is 25. This is also the default value when no other value is
provided.
SearchCases
, searchCases_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.
$sel:searchTerm:SearchCases'
, searchCases_searchTerm
- A word or phrase used to perform a quick search.
$sel:sorts:SearchCases'
, searchCases_sorts
- A list of sorts where each sort specifies a field and their sort order
to be applied to the results.
SearchCases
, searchCases_domainId
- The unique identifier of the Cases domain.
Request Lenses
searchCases_fields :: Lens' SearchCases (Maybe [FieldIdentifier]) Source #
The list of field identifiers to be returned as part of the response.
searchCases_filter :: Lens' SearchCases (Maybe CaseFilter) Source #
A list of filter objects.
searchCases_maxResults :: Lens' SearchCases (Maybe Natural) Source #
The maximum number of cases to return. The current maximum supported value is 25. This is also the default value when no other value is provided.
searchCases_nextToken :: Lens' SearchCases (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.
searchCases_searchTerm :: Lens' SearchCases (Maybe Text) Source #
A word or phrase used to perform a quick search.
searchCases_sorts :: Lens' SearchCases (Maybe [Sort]) Source #
A list of sorts where each sort specifies a field and their sort order to be applied to the results.
searchCases_domainId :: Lens' SearchCases Text Source #
The unique identifier of the Cases domain.
Destructuring the Response
data SearchCasesResponse Source #
See: newSearchCasesResponse
smart constructor.
SearchCasesResponse' | |
|
Instances
newSearchCasesResponse Source #
Create a value of SearchCasesResponse
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:
SearchCases
, searchCasesResponse_nextToken
- The token for the next set of results. This is null if there are no more
results to return.
$sel:httpStatus:SearchCasesResponse'
, searchCasesResponse_httpStatus
- The response's http status code.
$sel:cases:SearchCasesResponse'
, searchCasesResponse_cases
- A list of case documents where each case contains the properties
CaseId
and Fields
where each field is a complex union structure.
Response Lenses
searchCasesResponse_nextToken :: Lens' SearchCasesResponse (Maybe Text) Source #
The token for the next set of results. This is null if there are no more results to return.
searchCasesResponse_httpStatus :: Lens' SearchCasesResponse Int Source #
The response's http status code.
searchCasesResponse_cases :: Lens' SearchCasesResponse [SearchCasesResponseItem] Source #
A list of case documents where each case contains the properties
CaseId
and Fields
where each field is a complex union structure.