libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchLogs.DeleteQueryDefinition

Description

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

Creating a Request

data DeleteQueryDefinition Source #

See: newDeleteQueryDefinition smart constructor.

Constructors

DeleteQueryDefinition' 

Fields

Instances

Instances details
Eq DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Read DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Show DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Generic DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Associated Types

type Rep DeleteQueryDefinition :: Type -> Type #

NFData DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Methods

rnf :: DeleteQueryDefinition -> () #

Hashable DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

ToJSON DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

AWSRequest DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Associated Types

type AWSResponse DeleteQueryDefinition #

ToHeaders DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

ToPath DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

ToQuery DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

type Rep DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

type Rep DeleteQueryDefinition = D1 ('MetaData "DeleteQueryDefinition" "Amazonka.CloudWatchLogs.DeleteQueryDefinition" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DeleteQueryDefinition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queryDefinitionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteQueryDefinition Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

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.

Constructors

DeleteQueryDefinitionResponse' 

Fields

  • success :: Maybe Bool

    A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteQueryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Read DeleteQueryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Show DeleteQueryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Generic DeleteQueryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

Associated Types

type Rep DeleteQueryDefinitionResponse :: Type -> Type #

NFData DeleteQueryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

type Rep DeleteQueryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DeleteQueryDefinition

type Rep DeleteQueryDefinitionResponse = D1 ('MetaData "DeleteQueryDefinitionResponse" "Amazonka.CloudWatchLogs.DeleteQueryDefinition" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DeleteQueryDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "success") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.