| 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.Wisdom.SearchSessions
Description
Searches for sessions.
This operation returns paginated results.
Synopsis
- data SearchSessions = SearchSessions' {}
- newSearchSessions :: Text -> SearchExpression -> SearchSessions
- searchSessions_maxResults :: Lens' SearchSessions (Maybe Natural)
- searchSessions_nextToken :: Lens' SearchSessions (Maybe Text)
- searchSessions_assistantId :: Lens' SearchSessions Text
- searchSessions_searchExpression :: Lens' SearchSessions SearchExpression
- data SearchSessionsResponse = SearchSessionsResponse' {}
- newSearchSessionsResponse :: Int -> SearchSessionsResponse
- searchSessionsResponse_nextToken :: Lens' SearchSessionsResponse (Maybe Text)
- searchSessionsResponse_httpStatus :: Lens' SearchSessionsResponse Int
- searchSessionsResponse_sessionSummaries :: Lens' SearchSessionsResponse [SessionSummary]
Creating a Request
data SearchSessions Source #
See: newSearchSessions smart constructor.
Constructors
| SearchSessions' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SearchExpression | |
| -> SearchSessions |
Create a value of SearchSessions 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:maxResults:SearchSessions', searchSessions_maxResults - The maximum number of results to return per page.
SearchSessions, searchSessions_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.
SearchSessions, searchSessions_assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
$sel:searchExpression:SearchSessions', searchSessions_searchExpression - The search expression to filter results.
Request Lenses
searchSessions_maxResults :: Lens' SearchSessions (Maybe Natural) Source #
The maximum number of results to return per page.
searchSessions_nextToken :: Lens' SearchSessions (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.
searchSessions_assistantId :: Lens' SearchSessions Text Source #
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
searchSessions_searchExpression :: Lens' SearchSessions SearchExpression Source #
The search expression to filter results.
Destructuring the Response
data SearchSessionsResponse Source #
See: newSearchSessionsResponse smart constructor.
Constructors
| SearchSessionsResponse' | |
Fields
| |
Instances
newSearchSessionsResponse Source #
Create a value of SearchSessionsResponse 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:
SearchSessions, searchSessionsResponse_nextToken - If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:SearchSessionsResponse', searchSessionsResponse_httpStatus - The response's http status code.
$sel:sessionSummaries:SearchSessionsResponse', searchSessionsResponse_sessionSummaries - Summary information about the sessions.
Response Lenses
searchSessionsResponse_nextToken :: Lens' SearchSessionsResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
searchSessionsResponse_httpStatus :: Lens' SearchSessionsResponse Int Source #
The response's http status code.
searchSessionsResponse_sessionSummaries :: Lens' SearchSessionsResponse [SessionSummary] Source #
Summary information about the sessions.