amazonka-redshift-data-2.0: Amazon Redshift Data API Service 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.RedshiftData.CancelStatement

Description

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

For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.

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
ToJSON CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.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

AWSRequest CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Associated Types

type AWSResponse CancelStatement #

Generic CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Associated Types

type Rep CancelStatement :: Type -> Type #

Read CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Show CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

NFData CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Methods

rnf :: CancelStatement -> () #

Eq CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Hashable CancelStatement Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

type AWSResponse 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" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'False) (C1 ('MetaCons "CancelStatement'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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
Generic CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Associated Types

type Rep CancelStatementResponse :: Type -> Type #

Read CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Show CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

NFData CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

Methods

rnf :: CancelStatementResponse -> () #

Eq CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

type Rep CancelStatementResponse Source # 
Instance details

Defined in Amazonka.RedshiftData.CancelStatement

type Rep CancelStatementResponse = D1 ('MetaData "CancelStatementResponse" "Amazonka.RedshiftData.CancelStatement" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" '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:

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