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 |
Run queries to access information from your knowledge graph of entities within individual workspaces.
Synopsis
- data ExecuteQuery = ExecuteQuery' {}
- newExecuteQuery :: Text -> Text -> ExecuteQuery
- executeQuery_maxResults :: Lens' ExecuteQuery (Maybe Natural)
- executeQuery_nextToken :: Lens' ExecuteQuery (Maybe Text)
- executeQuery_workspaceId :: Lens' ExecuteQuery Text
- executeQuery_queryStatement :: Lens' ExecuteQuery Text
- data ExecuteQueryResponse = ExecuteQueryResponse' {
- columnDescriptions :: Maybe [ColumnDescription]
- nextToken :: Maybe Text
- rows :: Maybe [Row]
- httpStatus :: Int
- newExecuteQueryResponse :: Int -> ExecuteQueryResponse
- executeQueryResponse_columnDescriptions :: Lens' ExecuteQueryResponse (Maybe [ColumnDescription])
- executeQueryResponse_nextToken :: Lens' ExecuteQueryResponse (Maybe Text)
- executeQueryResponse_rows :: Lens' ExecuteQueryResponse (Maybe [Row])
- executeQueryResponse_httpStatus :: Lens' ExecuteQueryResponse Int
Creating a Request
data ExecuteQuery Source #
See: newExecuteQuery
smart constructor.
ExecuteQuery' | |
|
Instances
Create a value of ExecuteQuery
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:ExecuteQuery'
, executeQuery_maxResults
- The maximum number of results to return at one time. The default is 25.
Valid Range: Minimum value of 1. Maximum value of 250.
ExecuteQuery
, executeQuery_nextToken
- The string that specifies the next page of results.
ExecuteQuery
, executeQuery_workspaceId
- The ID of the workspace.
$sel:queryStatement:ExecuteQuery'
, executeQuery_queryStatement
- The query statement.
Request Lenses
executeQuery_maxResults :: Lens' ExecuteQuery (Maybe Natural) Source #
The maximum number of results to return at one time. The default is 25.
Valid Range: Minimum value of 1. Maximum value of 250.
executeQuery_nextToken :: Lens' ExecuteQuery (Maybe Text) Source #
The string that specifies the next page of results.
executeQuery_workspaceId :: Lens' ExecuteQuery Text Source #
The ID of the workspace.
executeQuery_queryStatement :: Lens' ExecuteQuery Text Source #
The query statement.
Destructuring the Response
data ExecuteQueryResponse Source #
See: newExecuteQueryResponse
smart constructor.
ExecuteQueryResponse' | |
|
Instances
newExecuteQueryResponse Source #
Create a value of ExecuteQueryResponse
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:columnDescriptions:ExecuteQueryResponse'
, executeQueryResponse_columnDescriptions
- A list of ColumnDescription objects.
ExecuteQuery
, executeQueryResponse_nextToken
- The string that specifies the next page of results.
$sel:rows:ExecuteQueryResponse'
, executeQueryResponse_rows
- Represents a single row in the query results.
$sel:httpStatus:ExecuteQueryResponse'
, executeQueryResponse_httpStatus
- The response's http status code.
Response Lenses
executeQueryResponse_columnDescriptions :: Lens' ExecuteQueryResponse (Maybe [ColumnDescription]) Source #
A list of ColumnDescription objects.
executeQueryResponse_nextToken :: Lens' ExecuteQueryResponse (Maybe Text) Source #
The string that specifies the next page of results.
executeQueryResponse_rows :: Lens' ExecuteQueryResponse (Maybe [Row]) Source #
Represents a single row in the query results.
executeQueryResponse_httpStatus :: Lens' ExecuteQueryResponse Int Source #
The response's http status code.