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.StartQuery

Description

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

Creating a Request

data StartQuery Source #

See: newStartQuery smart constructor.

Constructors

StartQuery' 

Fields

Instances

Instances details
ToJSON StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

ToHeaders StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Methods

toHeaders :: StartQuery -> [Header] #

ToPath StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

ToQuery StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

AWSRequest StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Associated Types

type AWSResponse StartQuery #

Generic StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Associated Types

type Rep StartQuery :: Type -> Type #

Read StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Show StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

NFData StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Methods

rnf :: StartQuery -> () #

Eq StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Hashable StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

type AWSResponse StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

type Rep StartQuery Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

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

newStartQuery Source #

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.

Constructors

StartQueryResponse' 

Fields

Instances

Instances details
Generic StartQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Associated Types

type Rep StartQueryResponse :: Type -> Type #

Read StartQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Show StartQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

NFData StartQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

Methods

rnf :: StartQueryResponse -> () #

Eq StartQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

type Rep StartQueryResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartQuery

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

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