amazonka-cloudtrail-2.0: Amazon CloudTrail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudTrail.CancelQuery

Description

Cancels a query if the query is not in a terminated state, such as CANCELLED, FAILED, TIMED_OUT, or FINISHED. You must specify an ARN value for EventDataStore. The ID of the query that you want to cancel is also required. When you run CancelQuery, the query status might show as CANCELLED even if the operation is not yet finished.

Synopsis

Creating a Request

data CancelQuery Source #

See: newCancelQuery smart constructor.

Constructors

CancelQuery' 

Fields

  • eventDataStore :: Maybe Text

    The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.

  • queryId :: Text

    The ID of the query that you want to cancel. The QueryId comes from the response of a StartQuery operation.

Instances

Instances details
ToJSON CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

ToHeaders CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Methods

toHeaders :: CancelQuery -> [Header] #

ToPath CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

ToQuery CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

AWSRequest CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Associated Types

type AWSResponse CancelQuery #

Generic CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Associated Types

type Rep CancelQuery :: Type -> Type #

Read CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Show CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

NFData CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Methods

rnf :: CancelQuery -> () #

Eq CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Hashable CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

type AWSResponse CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

type Rep CancelQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

type Rep CancelQuery = D1 ('MetaData "CancelQuery" "Amazonka.CloudTrail.CancelQuery" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "CancelQuery'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventDataStore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCancelQuery Source #

Create a value of CancelQuery 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:eventDataStore:CancelQuery', cancelQuery_eventDataStore - The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.

CancelQuery, cancelQuery_queryId - The ID of the query that you want to cancel. The QueryId comes from the response of a StartQuery operation.

Request Lenses

cancelQuery_eventDataStore :: Lens' CancelQuery (Maybe Text) Source #

The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.

cancelQuery_queryId :: Lens' CancelQuery Text Source #

The ID of the query that you want to cancel. The QueryId comes from the response of a StartQuery operation.

Destructuring the Response

data CancelQueryResponse Source #

See: newCancelQueryResponse smart constructor.

Constructors

CancelQueryResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • queryId :: Text

    The ID of the canceled query.

  • queryStatus :: QueryStatus

    Shows the status of a query after a CancelQuery request. Typically, the values shown are either RUNNING or CANCELLED.

Instances

Instances details
Generic CancelQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Associated Types

type Rep CancelQueryResponse :: Type -> Type #

Read CancelQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Show CancelQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

NFData CancelQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

Methods

rnf :: CancelQueryResponse -> () #

Eq CancelQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

type Rep CancelQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.CancelQuery

type Rep CancelQueryResponse = D1 ('MetaData "CancelQueryResponse" "Amazonka.CloudTrail.CancelQuery" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "CancelQueryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "queryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "queryStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QueryStatus))))

newCancelQueryResponse Source #

Create a value of CancelQueryResponse 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:httpStatus:CancelQueryResponse', cancelQueryResponse_httpStatus - The response's http status code.

CancelQuery, cancelQueryResponse_queryId - The ID of the canceled query.

CancelQueryResponse, cancelQueryResponse_queryStatus - Shows the status of a query after a CancelQuery request. Typically, the values shown are either RUNNING or CANCELLED.

Response Lenses

cancelQueryResponse_queryStatus :: Lens' CancelQueryResponse QueryStatus Source #

Shows the status of a query after a CancelQuery request. Typically, the values shown are either RUNNING or CANCELLED.