{ "version":"2.0", "metadata":{ "apiVersion":"2018-08-01", "endpointPrefix":"rds-data", "jsonVersion":"1.1", "protocol":"rest-json", "serviceFullName":"AWS RDS DataService", "serviceId":"RDS Data", "signatureVersion":"v4", "signingName":"rds-data", "uid":"rds-data-2018-08-01" }, "operations":{ "BatchExecuteStatement":{ "name":"BatchExecuteStatement", "http":{ "method":"POST", "requestUri":"/BatchExecute", "responseCode":200 }, "input":{"shape":"BatchExecuteStatementRequest"}, "output":{"shape":"BatchExecuteStatementResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"StatementTimeoutException"}, {"shape":"InternalServerErrorException"}, {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"} ], "documentation":"

Runs a batch SQL statement over an array of data.

You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

" }, "BeginTransaction":{ "name":"BeginTransaction", "http":{ "method":"POST", "requestUri":"/BeginTransaction", "responseCode":200 }, "input":{"shape":"BeginTransactionRequest"}, "output":{"shape":"BeginTransactionResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"StatementTimeoutException"}, {"shape":"InternalServerErrorException"}, {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"} ], "documentation":"

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> 
" }, "CommitTransaction":{ "name":"CommitTransaction", "http":{ "method":"POST", "requestUri":"/CommitTransaction", "responseCode":200 }, "input":{"shape":"CommitTransactionRequest"}, "output":{"shape":"CommitTransactionResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"StatementTimeoutException"}, {"shape":"InternalServerErrorException"}, {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"}, {"shape":"NotFoundException"} ], "documentation":"

Ends a SQL transaction started with the BeginTransaction operation and commits the changes.

" }, "ExecuteSql":{ "name":"ExecuteSql", "http":{ "method":"POST", "requestUri":"/ExecuteSql", "responseCode":200 }, "input":{"shape":"ExecuteSqlRequest"}, "output":{"shape":"ExecuteSqlResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"InternalServerErrorException"}, {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"} ], "documentation":"

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

", "deprecated":true, "deprecatedMessage":"The ExecuteSql API is deprecated, please use the ExecuteStatement API." }, "ExecuteStatement":{ "name":"ExecuteStatement", "http":{ "method":"POST", "requestUri":"/Execute", "responseCode":200 }, "input":{"shape":"ExecuteStatementRequest"}, "output":{"shape":"ExecuteStatementResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"StatementTimeoutException"}, {"shape":"InternalServerErrorException"}, {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"} ], "documentation":"

Runs a SQL statement against a database.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

The response size limit is 1 MB. If the call returns more than 1 MB of response data, the call is terminated.

" }, "RollbackTransaction":{ "name":"RollbackTransaction", "http":{ "method":"POST", "requestUri":"/RollbackTransaction", "responseCode":200 }, "input":{"shape":"RollbackTransactionRequest"}, "output":{"shape":"RollbackTransactionResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"StatementTimeoutException"}, {"shape":"InternalServerErrorException"}, {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"}, {"shape":"NotFoundException"} ], "documentation":"

Performs a rollback of a transaction. Rolling back a transaction cancels its changes.

" } }, "shapes":{ "Arn":{ "type":"string", "max":100, "min":11 }, "ArrayOfArray":{ "type":"list", "member":{"shape":"ArrayValue"}, "documentation":"

An array of arrays.

Some array entries can be null.

" }, "ArrayValue":{ "type":"structure", "members":{ "arrayValues":{ "shape":"ArrayOfArray", "documentation":"

An array of arrays.

" }, "booleanValues":{ "shape":"BooleanArray", "documentation":"

An array of Boolean values.

" }, "doubleValues":{ "shape":"DoubleArray", "documentation":"

An array of integers.

" }, "longValues":{ "shape":"LongArray", "documentation":"

An array of floating point numbers.

" }, "stringValues":{ "shape":"StringArray", "documentation":"

An array of strings.

" } }, "documentation":"

Contains an array.

", "union":true }, "ArrayValueList":{ "type":"list", "member":{"shape":"Value"} }, "BadRequestException":{ "type":"structure", "members":{ "message":{ "shape":"ErrorMessage", "documentation":"

The error message returned by this BadRequestException error.

" } }, "documentation":"

There is an error in the call or in a SQL statement.

", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "BatchExecuteStatementRequest":{ "type":"structure", "required":[ "resourceArn", "secretArn", "sql" ], "members":{ "database":{ "shape":"DbName", "documentation":"

The name of the database.

" }, "parameterSets":{ "shape":"SqlParameterSets", "documentation":"

The parameter set for the batch operation.

The SQL statement is executed as many times as the number of parameter sets provided. To execute a SQL statement with no parameters, use one of the following options:

Array parameters are not supported.

" }, "resourceArn":{ "shape":"Arn", "documentation":"

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

" }, "schema":{ "shape":"DbName", "documentation":"

The name of the database schema.

" }, "secretArn":{ "shape":"Arn", "documentation":"

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

" }, "sql":{ "shape":"SqlStatement", "documentation":"

The SQL statement to run.

" }, "transactionId":{ "shape":"Id", "documentation":"

The identifier of a transaction that was started by using the BeginTransaction operation. Specify the transaction ID of the transaction that you want to include the SQL statement in.

If the SQL statement is not part of a transaction, don't set this parameter.

" } }, "documentation":"

The request parameters represent the input of a SQL statement over an array of data.

" }, "BatchExecuteStatementResponse":{ "type":"structure", "members":{ "updateResults":{ "shape":"UpdateResults", "documentation":"

The execution results of each batch entry.

" } }, "documentation":"

The response elements represent the output of a SQL statement over an array of data.

" }, "BeginTransactionRequest":{ "type":"structure", "required":[ "resourceArn", "secretArn" ], "members":{ "database":{ "shape":"DbName", "documentation":"

The name of the database.

" }, "resourceArn":{ "shape":"Arn", "documentation":"

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

" }, "schema":{ "shape":"DbName", "documentation":"

The name of the database schema.

" }, "secretArn":{ "shape":"Arn", "documentation":"

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

" } }, "documentation":"

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

" }, "BeginTransactionResponse":{ "type":"structure", "members":{ "transactionId":{ "shape":"Id", "documentation":"

The transaction ID of the transaction started by the call.

" } }, "documentation":"

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

" }, "Blob":{"type":"blob"}, "Boolean":{"type":"boolean"}, "BooleanArray":{ "type":"list", "member":{"shape":"BoxedBoolean"}, "documentation":"

An array of Boolean values.

Some array entries can be null.

" }, "BoxedBoolean":{ "type":"boolean", "box":true }, "BoxedDouble":{ "type":"double", "box":true }, "BoxedFloat":{ "type":"float", "box":true }, "BoxedInteger":{ "type":"integer", "box":true }, "BoxedLong":{ "type":"long", "box":true }, "ColumnMetadata":{ "type":"structure", "members":{ "arrayBaseColumnType":{ "shape":"Integer", "documentation":"

The type of the column.

" }, "isAutoIncrement":{ "shape":"Boolean", "documentation":"

A value that indicates whether the column increments automatically.

" }, "isCaseSensitive":{ "shape":"Boolean", "documentation":"

A value that indicates whether the column is case-sensitive.

" }, "isCurrency":{ "shape":"Boolean", "documentation":"

A value that indicates whether the column contains currency values.

" }, "isSigned":{ "shape":"Boolean", "documentation":"

A value that indicates whether an integer column is signed.

" }, "label":{ "shape":"String", "documentation":"

The label for the column.

" }, "name":{ "shape":"String", "documentation":"

The name of the column.

" }, "nullable":{ "shape":"Integer", "documentation":"

A value that indicates whether the column is nullable.

" }, "precision":{ "shape":"Integer", "documentation":"

The precision value of a decimal number column.

" }, "scale":{ "shape":"Integer", "documentation":"

The scale value of a decimal number column.

" }, "schemaName":{ "shape":"String", "documentation":"

The name of the schema that owns the table that includes the column.

" }, "tableName":{ "shape":"String", "documentation":"

The name of the table that includes the column.

" }, "type":{ "shape":"Integer", "documentation":"

The type of the column.

" }, "typeName":{ "shape":"String", "documentation":"

The database-specific data type of the column.

" } }, "documentation":"

Contains the metadata for a column.

" }, "CommitTransactionRequest":{ "type":"structure", "required":[ "resourceArn", "secretArn", "transactionId" ], "members":{ "resourceArn":{ "shape":"Arn", "documentation":"

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

" }, "secretArn":{ "shape":"Arn", "documentation":"

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

" }, "transactionId":{ "shape":"Id", "documentation":"

The identifier of the transaction to end and commit.

" } }, "documentation":"

The request parameters represent the input of a commit transaction request.

" }, "CommitTransactionResponse":{ "type":"structure", "members":{ "transactionStatus":{ "shape":"TransactionStatus", "documentation":"

The status of the commit operation.

" } }, "documentation":"

The response elements represent the output of a commit transaction request.

" }, "DbName":{ "type":"string", "max":64, "min":0 }, "DecimalReturnType":{ "type":"string", "enum":[ "STRING", "DOUBLE_OR_LONG" ] }, "DoubleArray":{ "type":"list", "member":{"shape":"BoxedDouble"}, "documentation":"

An array of floating point numbers.

Some array entries can be null.

" }, "ErrorMessage":{"type":"string"}, "ExecuteSqlRequest":{ "type":"structure", "required":[ "awsSecretStoreArn", "dbClusterOrInstanceArn", "sqlStatements" ], "members":{ "awsSecretStoreArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster.

" }, "database":{ "shape":"DbName", "documentation":"

The name of the database.

" }, "dbClusterOrInstanceArn":{ "shape":"Arn", "documentation":"

The ARN of the Aurora Serverless DB cluster.

" }, "schema":{ "shape":"DbName", "documentation":"

The name of the database schema.

" }, "sqlStatements":{ "shape":"SqlStatement", "documentation":"

One or more SQL statements to run on the DB cluster.

You can separate SQL statements from each other with a semicolon (;). Any valid SQL statement is permitted, including data definition, data manipulation, and commit statements.

" } }, "documentation":"

The request parameters represent the input of a request to run one or more SQL statements.

" }, "ExecuteSqlResponse":{ "type":"structure", "members":{ "sqlStatementResults":{ "shape":"SqlStatementResults", "documentation":"

The results of the SQL statement or statements.

" } }, "documentation":"

The response elements represent the output of a request to run one or more SQL statements.

" }, "ExecuteStatementRequest":{ "type":"structure", "required":[ "resourceArn", "secretArn", "sql" ], "members":{ "continueAfterTimeout":{ "shape":"Boolean", "documentation":"

A value that indicates whether to continue running the statement after the call times out. By default, the statement stops running when the call times out.

For DDL statements, we recommend continuing to run the statement after the call times out. When a DDL statement terminates before it is finished running, it can result in errors and possibly corrupted data structures.

" }, "database":{ "shape":"DbName", "documentation":"

The name of the database.

" }, "includeResultMetadata":{ "shape":"Boolean", "documentation":"

A value that indicates whether to include metadata in the results.

" }, "parameters":{ "shape":"SqlParametersList", "documentation":"

The parameters for the SQL statement.

Array parameters are not supported.

" }, "resourceArn":{ "shape":"Arn", "documentation":"

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

" }, "resultSetOptions":{ "shape":"ResultSetOptions", "documentation":"

Options that control how the result set is returned.

" }, "schema":{ "shape":"DbName", "documentation":"

The name of the database schema.

Currently, the schema parameter isn't supported.

" }, "secretArn":{ "shape":"Arn", "documentation":"

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

" }, "sql":{ "shape":"SqlStatement", "documentation":"

The SQL statement to run.

" }, "transactionId":{ "shape":"Id", "documentation":"

The identifier of a transaction that was started by using the BeginTransaction operation. Specify the transaction ID of the transaction that you want to include the SQL statement in.

If the SQL statement is not part of a transaction, don't set this parameter.

" } }, "documentation":"

The request parameters represent the input of a request to run a SQL statement against a database.

" }, "ExecuteStatementResponse":{ "type":"structure", "members":{ "columnMetadata":{ "shape":"Metadata", "documentation":"

Metadata for the columns included in the results.

" }, "generatedFields":{ "shape":"FieldList", "documentation":"

Values for fields generated during the request.

 <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note> 
" }, "numberOfRecordsUpdated":{ "shape":"RecordsUpdated", "documentation":"

The number of records updated by the request.

" }, "records":{ "shape":"SqlRecords", "documentation":"

The records returned by the SQL statement.

" } }, "documentation":"

The response elements represent the output of a request to run a SQL statement against a database.

" }, "Field":{ "type":"structure", "members":{ "arrayValue":{ "shape":"ArrayValue", "documentation":"

An array of values.

" }, "blobValue":{ "shape":"Blob", "documentation":"

A value of BLOB data type.

" }, "booleanValue":{ "shape":"BoxedBoolean", "documentation":"

A value of Boolean data type.

" }, "doubleValue":{ "shape":"BoxedDouble", "documentation":"

A value of double data type.

" }, "isNull":{ "shape":"BoxedBoolean", "documentation":"

A NULL value.

" }, "longValue":{ "shape":"BoxedLong", "documentation":"

A value of long data type.

" }, "stringValue":{ "shape":"String", "documentation":"

A value of string data type.

" } }, "documentation":"

Contains a value.

", "union":true }, "FieldList":{ "type":"list", "member":{"shape":"Field"} }, "ForbiddenException":{ "type":"structure", "members":{ "message":{ "shape":"ErrorMessage", "documentation":"

The error message returned by this ForbiddenException error.

" } }, "documentation":"

There are insufficient privileges to make the call.

", "error":{ "httpStatusCode":403, "senderFault":true }, "exception":true }, "Id":{ "type":"string", "max":192, "min":0 }, "Integer":{"type":"integer"}, "InternalServerErrorException":{ "type":"structure", "members":{ }, "documentation":"

An internal error occurred.

", "error":{"httpStatusCode":500}, "exception":true, "fault":true }, "Long":{"type":"long"}, "LongArray":{ "type":"list", "member":{"shape":"BoxedLong"}, "documentation":"

An array of integers.

Some array entries can be null.

" }, "Metadata":{ "type":"list", "member":{"shape":"ColumnMetadata"} }, "NotFoundException":{ "type":"structure", "members":{ "message":{ "shape":"ErrorMessage", "documentation":"

The error message returned by this NotFoundException error.

" } }, "documentation":"

The resourceArn, secretArn, or transactionId value can't be found.

", "error":{ "httpStatusCode":404, "senderFault":true }, "exception":true }, "ParameterName":{"type":"string"}, "Record":{ "type":"structure", "members":{ "values":{ "shape":"Row", "documentation":"

The values returned in the record.

" } }, "documentation":"

A record returned by a call.

" }, "Records":{ "type":"list", "member":{"shape":"Record"} }, "RecordsUpdated":{"type":"long"}, "ResultFrame":{ "type":"structure", "members":{ "records":{ "shape":"Records", "documentation":"

The records in the result set.

" }, "resultSetMetadata":{ "shape":"ResultSetMetadata", "documentation":"

The result-set metadata in the result set.

" } }, "documentation":"

The result set returned by a SQL statement.

" }, "ResultSetMetadata":{ "type":"structure", "members":{ "columnCount":{ "shape":"Long", "documentation":"

The number of columns in the result set.

" }, "columnMetadata":{ "shape":"Metadata", "documentation":"

The metadata of the columns in the result set.

" } }, "documentation":"

The metadata of the result set returned by a SQL statement.

" }, "ResultSetOptions":{ "type":"structure", "members":{ "decimalReturnType":{ "shape":"DecimalReturnType", "documentation":"

A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

" } }, "documentation":"

Options that control how the result set is returned.

" }, "RollbackTransactionRequest":{ "type":"structure", "required":[ "resourceArn", "secretArn", "transactionId" ], "members":{ "resourceArn":{ "shape":"Arn", "documentation":"

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

" }, "secretArn":{ "shape":"Arn", "documentation":"

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

" }, "transactionId":{ "shape":"Id", "documentation":"

The identifier of the transaction to roll back.

" } }, "documentation":"

The request parameters represent the input of a request to perform a rollback of a transaction.

" }, "RollbackTransactionResponse":{ "type":"structure", "members":{ "transactionStatus":{ "shape":"TransactionStatus", "documentation":"

The status of the rollback operation.

" } }, "documentation":"

The response elements represent the output of a request to perform a rollback of a transaction.

" }, "Row":{ "type":"list", "member":{"shape":"Value"} }, "ServiceUnavailableError":{ "type":"structure", "members":{ }, "documentation":"

The service specified by the resourceArn parameter is not available.

", "error":{"httpStatusCode":503}, "exception":true, "fault":true }, "SqlParameter":{ "type":"structure", "members":{ "name":{ "shape":"ParameterName", "documentation":"

The name of the parameter.

" }, "typeHint":{ "shape":"TypeHint", "documentation":"

A hint that specifies the correct object type for data type mapping. Possible values are as follows:

" }, "value":{ "shape":"Field", "documentation":"

The value of the parameter.

" } }, "documentation":"

A parameter used in a SQL statement.

" }, "SqlParameterSets":{ "type":"list", "member":{"shape":"SqlParametersList"} }, "SqlParametersList":{ "type":"list", "member":{"shape":"SqlParameter"} }, "SqlRecords":{ "type":"list", "member":{"shape":"FieldList"} }, "SqlStatement":{ "type":"string", "max":65536, "min":0 }, "SqlStatementResult":{ "type":"structure", "members":{ "numberOfRecordsUpdated":{ "shape":"RecordsUpdated", "documentation":"

The number of records updated by a SQL statement.

" }, "resultFrame":{ "shape":"ResultFrame", "documentation":"

The result set of the SQL statement.

" } }, "documentation":"

The result of a SQL statement.

 <important> <p>This data type is deprecated.</p> </important> 
" }, "SqlStatementResults":{ "type":"list", "member":{"shape":"SqlStatementResult"} }, "StatementTimeoutException":{ "type":"structure", "members":{ "dbConnectionId":{ "shape":"Long", "documentation":"

The database connection ID that executed the SQL statement.

" }, "message":{ "shape":"ErrorMessage", "documentation":"

The error message returned by this StatementTimeoutException error.

" } }, "documentation":"

The execution of the SQL statement timed out.

", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "String":{"type":"string"}, "StringArray":{ "type":"list", "member":{"shape":"String"}, "documentation":"

An array of strings.

Some array entries can be null.

" }, "StructValue":{ "type":"structure", "members":{ "attributes":{ "shape":"ArrayValueList", "documentation":"

The attributes returned in the record.

" } }, "documentation":"

A structure value returned by a call.

" }, "TransactionStatus":{ "type":"string", "max":128, "min":0 }, "TypeHint":{ "type":"string", "enum":[ "JSON", "UUID", "TIMESTAMP", "DATE", "TIME", "DECIMAL" ] }, "UpdateResult":{ "type":"structure", "members":{ "generatedFields":{ "shape":"FieldList", "documentation":"

Values for fields generated during the request.

" } }, "documentation":"

The response elements represent the results of an update.

" }, "UpdateResults":{ "type":"list", "member":{"shape":"UpdateResult"} }, "Value":{ "type":"structure", "members":{ "arrayValues":{ "shape":"ArrayValueList", "documentation":"

An array of column values.

" }, "bigIntValue":{ "shape":"BoxedLong", "documentation":"

A value for a column of big integer data type.

" }, "bitValue":{ "shape":"BoxedBoolean", "documentation":"

A value for a column of BIT data type.

" }, "blobValue":{ "shape":"Blob", "documentation":"

A value for a column of BLOB data type.

" }, "doubleValue":{ "shape":"BoxedDouble", "documentation":"

A value for a column of double data type.

" }, "intValue":{ "shape":"BoxedInteger", "documentation":"

A value for a column of integer data type.

" }, "isNull":{ "shape":"BoxedBoolean", "documentation":"

A NULL value.

" }, "realValue":{ "shape":"BoxedFloat", "documentation":"

A value for a column of real data type.

" }, "stringValue":{ "shape":"String", "documentation":"

A value for a column of string data type.

" }, "structValue":{ "shape":"StructValue", "documentation":"

A value for a column of STRUCT data type.

" } }, "documentation":"

Contains the value of a column.

 <important> <p>This data type is deprecated.</p> </important> 
", "union":true } }, "documentation":"

Amazon RDS Data Service

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work with the Data Service API.

For more information about the Data Service API, see Using the Data API for Aurora Serverless in the Amazon Aurora User Guide.

" }