amazonka-timestream-query-2.0: Amazon Timestream Query 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.TimeStreamQuery.PrepareQuery

Description

A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with the PrepareQueryRequest$ValidateOnly set to true.

Synopsis

Creating a Request

data PrepareQuery Source #

See: newPrepareQuery smart constructor.

Constructors

PrepareQuery' 

Fields

  • validateOnly :: Maybe Bool

    By setting this value to true, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.

  • queryString :: Sensitive Text

    The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @ character followed by an identifier.

Instances

Instances details
ToJSON PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

ToHeaders PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

ToPath PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

ToQuery PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

AWSRequest PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

Associated Types

type AWSResponse PrepareQuery #

Generic PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

Associated Types

type Rep PrepareQuery :: Type -> Type #

Show PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

NFData PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

Methods

rnf :: PrepareQuery -> () #

Eq PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

Hashable PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

type AWSResponse PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

type Rep PrepareQuery Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

type Rep PrepareQuery = D1 ('MetaData "PrepareQuery" "Amazonka.TimeStreamQuery.PrepareQuery" "amazonka-timestream-query-2.0-HD7xx47Lw3eG6c52GyReXL" 'False) (C1 ('MetaCons "PrepareQuery'" 'PrefixI 'True) (S1 ('MetaSel ('Just "validateOnly") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newPrepareQuery Source #

Create a value of PrepareQuery 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:validateOnly:PrepareQuery', prepareQuery_validateOnly - By setting this value to true, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.

PrepareQuery, prepareQuery_queryString - The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @ character followed by an identifier.

Request Lenses

prepareQuery_validateOnly :: Lens' PrepareQuery (Maybe Bool) Source #

By setting this value to true, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.

prepareQuery_queryString :: Lens' PrepareQuery Text Source #

The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @ character followed by an identifier.

Destructuring the Response

data PrepareQueryResponse Source #

See: newPrepareQueryResponse smart constructor.

Constructors

PrepareQueryResponse' 

Fields

Instances

Instances details
Generic PrepareQueryResponse Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

Associated Types

type Rep PrepareQueryResponse :: Type -> Type #

Show PrepareQueryResponse Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

NFData PrepareQueryResponse Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

Methods

rnf :: PrepareQueryResponse -> () #

Eq PrepareQueryResponse Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

type Rep PrepareQueryResponse Source # 
Instance details

Defined in Amazonka.TimeStreamQuery.PrepareQuery

type Rep PrepareQueryResponse = D1 ('MetaData "PrepareQueryResponse" "Amazonka.TimeStreamQuery.PrepareQuery" "amazonka-timestream-query-2.0-HD7xx47Lw3eG6c52GyReXL" 'False) (C1 ('MetaCons "PrepareQueryResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))) :*: (S1 ('MetaSel ('Just "columns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [SelectColumn]) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ParameterMapping]))))

newPrepareQueryResponse Source #

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

PrepareQuery, prepareQueryResponse_queryString - The query string that you want prepare.

$sel:columns:PrepareQueryResponse', prepareQueryResponse_columns - A list of SELECT clause columns of the submitted query string.

$sel:parameters:PrepareQueryResponse', prepareQueryResponse_parameters - A list of parameters used in the submitted query string.

Response Lenses

prepareQueryResponse_queryString :: Lens' PrepareQueryResponse Text Source #

The query string that you want prepare.

prepareQueryResponse_columns :: Lens' PrepareQueryResponse [SelectColumn] Source #

A list of SELECT clause columns of the submitted query string.

prepareQueryResponse_parameters :: Lens' PrepareQueryResponse [ParameterMapping] Source #

A list of parameters used in the submitted query string.