libZSservicesZSamazonka-rds-dataZSamazonka-rds-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.RDSData.BeginTransaction

Description

Starts a SQL transaction.

 <important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important>
Synopsis

Creating a Request

data BeginTransaction Source #

The request parameters represent the input of a request to start a SQL transaction.

See: newBeginTransaction smart constructor.

Constructors

BeginTransaction' 

Fields

Instances

Instances details
Eq BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Read BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Show BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Generic BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Associated Types

type Rep BeginTransaction :: Type -> Type #

NFData BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Methods

rnf :: BeginTransaction -> () #

Hashable BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

ToJSON BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

AWSRequest BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Associated Types

type AWSResponse BeginTransaction #

ToHeaders BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

ToPath BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

ToQuery BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

type Rep BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

type Rep BeginTransaction = D1 ('MetaData "BeginTransaction" "Amazonka.RDSData.BeginTransaction" "libZSservicesZSamazonka-rds-dataZSamazonka-rds-data" 'False) (C1 ('MetaCons "BeginTransaction'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "secretArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse BeginTransaction Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

newBeginTransaction Source #

Create a value of BeginTransaction 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:database:BeginTransaction', beginTransaction_database - The name of the database.

$sel:schema:BeginTransaction', beginTransaction_schema - The name of the database schema.

$sel:resourceArn:BeginTransaction', beginTransaction_resourceArn - The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

$sel:secretArn:BeginTransaction', beginTransaction_secretArn - The name or ARN of the secret that enables access to the DB cluster.

Request Lenses

beginTransaction_schema :: Lens' BeginTransaction (Maybe Text) Source #

The name of the database schema.

beginTransaction_resourceArn :: Lens' BeginTransaction Text Source #

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

beginTransaction_secretArn :: Lens' BeginTransaction Text Source #

The name or ARN of the secret that enables access to the DB cluster.

Destructuring the Response

data BeginTransactionResponse Source #

The response elements represent the output of a request to start a SQL transaction.

See: newBeginTransactionResponse smart constructor.

Constructors

BeginTransactionResponse' 

Fields

Instances

Instances details
Eq BeginTransactionResponse Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Read BeginTransactionResponse Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Show BeginTransactionResponse Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Generic BeginTransactionResponse Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

Associated Types

type Rep BeginTransactionResponse :: Type -> Type #

NFData BeginTransactionResponse Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

type Rep BeginTransactionResponse Source # 
Instance details

Defined in Amazonka.RDSData.BeginTransaction

type Rep BeginTransactionResponse = D1 ('MetaData "BeginTransactionResponse" "Amazonka.RDSData.BeginTransaction" "libZSservicesZSamazonka-rds-dataZSamazonka-rds-data" 'False) (C1 ('MetaCons "BeginTransactionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "transactionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBeginTransactionResponse Source #

Create a value of BeginTransactionResponse 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:transactionId:BeginTransactionResponse', beginTransactionResponse_transactionId - The transaction ID of the transaction started by the call.

$sel:httpStatus:BeginTransactionResponse', beginTransactionResponse_httpStatus - The response's http status code.

Response Lenses

beginTransactionResponse_transactionId :: Lens' BeginTransactionResponse (Maybe Text) Source #

The transaction ID of the transaction started by the call.