| 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.CloudWatchLogs.StopQuery
Description
Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.
Synopsis
- data StopQuery = StopQuery' {}
- newStopQuery :: Text -> StopQuery
- stopQuery_queryId :: Lens' StopQuery Text
- data StopQueryResponse = StopQueryResponse' {
- success :: Maybe Bool
- httpStatus :: Int
- newStopQueryResponse :: Int -> StopQueryResponse
- stopQueryResponse_success :: Lens' StopQueryResponse (Maybe Bool)
- stopQueryResponse_httpStatus :: Lens' StopQueryResponse Int
Creating a Request
See: newStopQuery smart constructor.
Constructors
| StopQuery' | |
Instances
Create a value of StopQuery 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:
StopQuery, stopQuery_queryId - The ID number of the query to stop. To find this ID number, use
DescribeQueries.
Request Lenses
stopQuery_queryId :: Lens' StopQuery Text Source #
The ID number of the query to stop. To find this ID number, use
DescribeQueries.
Destructuring the Response
data StopQueryResponse Source #
See: newStopQueryResponse smart constructor.
Constructors
| StopQueryResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> StopQueryResponse |
Create a value of StopQueryResponse 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:success:StopQueryResponse', stopQueryResponse_success - This is true if the query was stopped by the StopQuery operation.
$sel:httpStatus:StopQueryResponse', stopQueryResponse_httpStatus - The response's http status code.
Response Lenses
stopQueryResponse_success :: Lens' StopQueryResponse (Maybe Bool) Source #
This is true if the query was stopped by the StopQuery operation.
stopQueryResponse_httpStatus :: Lens' StopQueryResponse Int Source #
The response's http status code.