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 |
Starts a CloudTrail Lake query. The required QueryStatement
parameter
provides your SQL query, enclosed in single quotation marks. Use the
optional DeliveryS3Uri
parameter to deliver the query results to an S3
bucket.
Synopsis
- data StartQuery = StartQuery' {}
- newStartQuery :: Text -> StartQuery
- startQuery_deliveryS3Uri :: Lens' StartQuery (Maybe Text)
- startQuery_queryStatement :: Lens' StartQuery Text
- data StartQueryResponse = StartQueryResponse' {
- queryId :: Maybe Text
- httpStatus :: Int
- newStartQueryResponse :: Int -> StartQueryResponse
- startQueryResponse_queryId :: Lens' StartQueryResponse (Maybe Text)
- startQueryResponse_httpStatus :: Lens' StartQueryResponse Int
Creating a Request
data StartQuery Source #
See: newStartQuery
smart constructor.
StartQuery' | |
|
Instances
Create a value of StartQuery
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:deliveryS3Uri:StartQuery'
, startQuery_deliveryS3Uri
- The URI for the S3 bucket where CloudTrail delivers the query results.
$sel:queryStatement:StartQuery'
, startQuery_queryStatement
- The SQL code of your query.
Request Lenses
startQuery_deliveryS3Uri :: Lens' StartQuery (Maybe Text) Source #
The URI for the S3 bucket where CloudTrail delivers the query results.
startQuery_queryStatement :: Lens' StartQuery Text Source #
The SQL code of your query.
Destructuring the Response
data StartQueryResponse Source #
See: newStartQueryResponse
smart constructor.
StartQueryResponse' | |
|
Instances
newStartQueryResponse Source #
Create a value of StartQueryResponse
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:
StartQueryResponse
, startQueryResponse_queryId
- The ID of the started query.
$sel:httpStatus:StartQueryResponse'
, startQueryResponse_httpStatus
- The response's http status code.
Response Lenses
startQueryResponse_queryId :: Lens' StartQueryResponse (Maybe Text) Source #
The ID of the started query.
startQueryResponse_httpStatus :: Lens' StartQueryResponse Int Source #
The response's http status code.