Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a saved CloudWatch Logs Insights query definition. A query definition contains details about a saved CloudWatch Logs Insights query.
Each DeleteQueryDefinition
operation can delete one query definition.
You must have the logs:DeleteQueryDefinition
permission to be able to
perform this operation.
Synopsis
- data DeleteQueryDefinition = DeleteQueryDefinition' {}
- newDeleteQueryDefinition :: Text -> DeleteQueryDefinition
- deleteQueryDefinition_queryDefinitionId :: Lens' DeleteQueryDefinition Text
- data DeleteQueryDefinitionResponse = DeleteQueryDefinitionResponse' {
- success :: Maybe Bool
- httpStatus :: Int
- newDeleteQueryDefinitionResponse :: Int -> DeleteQueryDefinitionResponse
- deleteQueryDefinitionResponse_success :: Lens' DeleteQueryDefinitionResponse (Maybe Bool)
- deleteQueryDefinitionResponse_httpStatus :: Lens' DeleteQueryDefinitionResponse Int
Creating a Request
data DeleteQueryDefinition Source #
See: newDeleteQueryDefinition
smart constructor.
DeleteQueryDefinition' | |
|
Instances
newDeleteQueryDefinition Source #
Create a value of DeleteQueryDefinition
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:queryDefinitionId:DeleteQueryDefinition'
, deleteQueryDefinition_queryDefinitionId
- The ID of the query definition that you want to delete. You can use
DescribeQueryDefinitions
to retrieve the IDs of your saved query definitions.
Request Lenses
deleteQueryDefinition_queryDefinitionId :: Lens' DeleteQueryDefinition Text Source #
The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
Destructuring the Response
data DeleteQueryDefinitionResponse Source #
See: newDeleteQueryDefinitionResponse
smart constructor.
DeleteQueryDefinitionResponse' | |
|
Instances
newDeleteQueryDefinitionResponse Source #
Create a value of DeleteQueryDefinitionResponse
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:DeleteQueryDefinitionResponse'
, deleteQueryDefinitionResponse_success
- A value of TRUE indicates that the operation succeeded. FALSE indicates
that the operation failed.
$sel:httpStatus:DeleteQueryDefinitionResponse'
, deleteQueryDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteQueryDefinitionResponse_success :: Lens' DeleteQueryDefinitionResponse (Maybe Bool) Source #
A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed.
deleteQueryDefinitionResponse_httpStatus :: Lens' DeleteQueryDefinitionResponse Int Source #
The response's http status code.