libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data
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.RedshiftData.CancelStatement

Description

Cancels a running query. To be canceled, a query must be running.

Synopsis

Creating a Request

data CancelStatement Source #

See: newCancelStatement smart constructor.

Constructors

CancelStatement' 

Fields

  • id :: Text

    The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

Instances

Instances details
Eq CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Read CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Show CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Generic CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Associated Types

type Rep CancelStatement :: Type -> Type #

NFData CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Methods

rnf :: CancelStatement -> () #

Hashable CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

ToJSON CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

AWSRequest CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Associated Types

type AWSResponse CancelStatement #

ToHeaders CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

ToPath CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

ToQuery CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

type Rep CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

type Rep CancelStatement = D1 ('MetaData "CancelStatement" "Amazonka.RedshiftData.CancelStatement" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" 'False) (C1 ('MetaCons "CancelStatement'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

newCancelStatement Source #

Create a value of CancelStatement 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:id:CancelStatement', cancelStatement_id - The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

Request Lenses

cancelStatement_id :: Lens' CancelStatement Text Source #

The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

Destructuring the Response

data CancelStatementResponse Source #

See: newCancelStatementResponse smart constructor.

Constructors

CancelStatementResponse' 

Fields

Instances

Instances details
Eq CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Read CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Show CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Generic CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Associated Types

type Rep CancelStatementResponse :: Type -> Type #

NFData CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Methods

rnf :: CancelStatementResponse -> () #

type Rep CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

type Rep CancelStatementResponse = D1 ('MetaData "CancelStatementResponse" "Amazonka.RedshiftData.CancelStatement" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" 'False) (C1 ('MetaCons "CancelStatementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelStatementResponse Source #

Create a value of CancelStatementResponse 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:status:CancelStatementResponse', cancelStatementResponse_status - A value that indicates whether the cancel statement succeeded (true).

$sel:httpStatus:CancelStatementResponse', cancelStatementResponse_httpStatus - The response's http status code.

Response Lenses

cancelStatementResponse_status :: Lens' CancelStatementResponse (Maybe Bool) Source #

A value that indicates whether the cancel statement succeeded (true).