Skip to content

Commit d866e4a

Browse files
author
awstools
committed
docs(client-rds-data): Documentation updates for RDS Data API
1 parent 4227bb3 commit d866e4a

File tree

9 files changed

+73
-75
lines changed

9 files changed

+73
-75
lines changed

clients/client-rds-data/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ AWS SDK for JavaScript RDSData Client for Node.js, Browser and React Native.
1111

1212
<fullname>Amazon RDS Data Service</fullname>
1313

14-
<p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora
15-
Serverless DB cluster. To run these statements, you work with the Data Service
16-
API.</p>
14+
<p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless v1 DB cluster. To run these
15+
statements, you work with the Data Service API.</p>
16+
<note>
17+
<p>The Data Service API isn't supported on Amazon Aurora Serverless v2 DB clusters.</p>
18+
</note>
1719
<p>For more information about the Data Service API, see
1820
<a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using the Data API</a>
1921
in the <i>Amazon Aurora User Guide</i>.</p>

clients/client-rds-data/src/RDSData.ts

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ import { RDSDataClient } from "./RDSDataClient";
3131

3232
/**
3333
* <fullname>Amazon RDS Data Service</fullname>
34-
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora
35-
* Serverless DB cluster. To run these statements, you work with the Data Service
36-
* API.</p>
34+
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless v1 DB cluster. To run these
35+
* statements, you work with the Data Service API.</p>
36+
* <note>
37+
* <p>The Data Service API isn't supported on Amazon Aurora Serverless v2 DB clusters.</p>
38+
* </note>
3739
* <p>For more information about the Data Service API, see
3840
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using the Data API</a>
3941
* in the <i>Amazon Aurora User Guide</i>.</p>
@@ -44,17 +46,16 @@ export class RDSData extends RDSDataClient {
4446
* <p>You can run bulk update and insert operations for multiple records using a DML
4547
* statement with different parameter sets. Bulk operations can provide a significant
4648
* performance improvement over individual insert and update operations.</p>
47-
* <important>
48-
* <p>If a call isn't part of a transaction because it doesn't include the
49-
* <code>transactionID</code> parameter, changes that result from the call are
50-
* committed automatically.</p>
49+
* <note>
50+
* <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter,
51+
* changes that result from the call are committed automatically.</p>
5152
* <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request
5253
* submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't
5354
* process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the
5455
* number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and
5556
* the size of each parameter set.</p>
5657
* <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p>
57-
* </important>
58+
* </note>
5859
*/
5960
public batchExecuteStatement(
6061
args: BatchExecuteStatementCommandInput,
@@ -87,17 +88,14 @@ export class RDSData extends RDSDataClient {
8788

8889
/**
8990
* <p>Starts a SQL transaction.</p>
90-
*
91-
* <important>
92-
* <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and
93-
* rolled back automatically after 24 hours.</p>
94-
* <p>A transaction times out if no calls use its transaction ID in three minutes.
95-
* If a transaction times out before it's committed, it's rolled back
96-
* automatically.</p>
97-
* <p>DDL statements inside a transaction cause an implicit commit. We recommend
98-
* that you run each DDL statement in a separate <code>ExecuteStatement</code> call with
99-
* <code>continueAfterTimeout</code> enabled.</p>
100-
* </important>
91+
* <note>
92+
* <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24
93+
* hours.</p>
94+
* <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's
95+
* committed, it's rolled back automatically.</p>
96+
* <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate
97+
* <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p>
98+
* </note>
10199
*/
102100
public beginTransaction(
103101
args: BeginTransactionCommandInput,
@@ -165,10 +163,10 @@ export class RDSData extends RDSDataClient {
165163
* @deprecated
166164
*
167165
* <p>Runs one or more SQL statements.</p>
168-
* <important>
166+
* <note>
169167
* <p>This operation is deprecated. Use the <code>BatchExecuteStatement</code> or
170168
* <code>ExecuteStatement</code> operation.</p>
171-
* </important>
169+
* </note>
172170
*/
173171
public executeSql(args: ExecuteSqlCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteSqlCommandOutput>;
174172
public executeSql(args: ExecuteSqlCommandInput, cb: (err: any, data?: ExecuteSqlCommandOutput) => void): void;
@@ -195,12 +193,12 @@ export class RDSData extends RDSDataClient {
195193

196194
/**
197195
* <p>Runs a SQL statement against a database.</p>
198-
* <important>
196+
* <note>
199197
* <p>If a call isn't part of a transaction because it doesn't include the
200198
* <code>transactionID</code> parameter, changes that result from the call are
201199
* committed automatically.</p>
202200
* <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>
203-
* </important>
201+
* </note>
204202
*/
205203
public executeStatement(
206204
args: ExecuteStatementCommandInput,

clients/client-rds-data/src/RDSDataClient.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ export interface RDSDataClientResolvedConfig extends RDSDataClientResolvedConfig
238238

239239
/**
240240
* <fullname>Amazon RDS Data Service</fullname>
241-
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora
242-
* Serverless DB cluster. To run these statements, you work with the Data Service
243-
* API.</p>
241+
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless v1 DB cluster. To run these
242+
* statements, you work with the Data Service API.</p>
243+
* <note>
244+
* <p>The Data Service API isn't supported on Amazon Aurora Serverless v2 DB clusters.</p>
245+
* </note>
244246
* <p>For more information about the Data Service API, see
245247
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using the Data API</a>
246248
* in the <i>Amazon Aurora User Guide</i>.</p>

clients/client-rds-data/src/commands/BatchExecuteStatementCommand.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
3232
* <p>You can run bulk update and insert operations for multiple records using a DML
3333
* statement with different parameter sets. Bulk operations can provide a significant
3434
* performance improvement over individual insert and update operations.</p>
35-
* <important>
36-
* <p>If a call isn't part of a transaction because it doesn't include the
37-
* <code>transactionID</code> parameter, changes that result from the call are
38-
* committed automatically.</p>
35+
* <note>
36+
* <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter,
37+
* changes that result from the call are committed automatically.</p>
3938
* <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request
4039
* submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't
4140
* process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the
4241
* number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and
4342
* the size of each parameter set.</p>
4443
* <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p>
45-
* </important>
44+
* </note>
4645
* @example
4746
* Use a bare-bones client and the command you need to make an API call.
4847
* ```javascript

clients/client-rds-data/src/commands/BeginTransactionCommand.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@ export interface BeginTransactionCommandOutput extends BeginTransactionResponse,
2929

3030
/**
3131
* <p>Starts a SQL transaction.</p>
32-
*
33-
* <important>
34-
* <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and
35-
* rolled back automatically after 24 hours.</p>
36-
* <p>A transaction times out if no calls use its transaction ID in three minutes.
37-
* If a transaction times out before it's committed, it's rolled back
38-
* automatically.</p>
39-
* <p>DDL statements inside a transaction cause an implicit commit. We recommend
40-
* that you run each DDL statement in a separate <code>ExecuteStatement</code> call with
41-
* <code>continueAfterTimeout</code> enabled.</p>
42-
* </important>
32+
* <note>
33+
* <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24
34+
* hours.</p>
35+
* <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's
36+
* committed, it's rolled back automatically.</p>
37+
* <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate
38+
* <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p>
39+
* </note>
4340
* @example
4441
* Use a bare-bones client and the command you need to make an API call.
4542
* ```javascript

clients/client-rds-data/src/commands/ExecuteSqlCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export interface ExecuteSqlCommandOutput extends ExecuteSqlResponse, __MetadataB
3131
* @deprecated
3232
*
3333
* <p>Runs one or more SQL statements.</p>
34-
* <important>
34+
* <note>
3535
* <p>This operation is deprecated. Use the <code>BatchExecuteStatement</code> or
3636
* <code>ExecuteStatement</code> operation.</p>
37-
* </important>
37+
* </note>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.
4040
* ```javascript

clients/client-rds-data/src/commands/ExecuteStatementCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export interface ExecuteStatementCommandOutput extends ExecuteStatementResponse,
2929

3030
/**
3131
* <p>Runs a SQL statement against a database.</p>
32-
* <important>
32+
* <note>
3333
* <p>If a call isn't part of a transaction because it doesn't include the
3434
* <code>transactionID</code> parameter, changes that result from the call are
3535
* committed automatically.</p>
3636
* <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>
37-
* </important>
37+
* </note>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.
4040
* ```javascript

clients/client-rds-data/src/models/models_0.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,10 @@ export interface ResultSetOptions {
370370
* it is converted to a String value. The value of <code>DOUBLE_OR_LONG</code>
371371
* specifies that it is converted to a Long value if its scale is 0, or to a Double
372372
* value otherwise.</p>
373-
* <important>
373+
* <note>
374374
* <p>Conversion to Double or Long can result in roundoff errors due to precision loss.
375375
* We recommend converting to String, especially when working with currency values.</p>
376-
* </important>
376+
* </note>
377377
*/
378378
decimalReturnType?: DecimalReturnType | string;
379379

@@ -732,10 +732,10 @@ export interface UpdateResult {
732732
/**
733733
* <p>Contains the value of a column.</p>
734734
*
735-
* <important>
735+
* <note>
736736
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
737737
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
738-
* </important>
738+
* </note>
739739
*/
740740
export type Value =
741741
| Value.ArrayValuesMember
@@ -1024,11 +1024,11 @@ export interface ExecuteStatementRequest {
10241024
* <p>A value that indicates whether to continue running the statement after
10251025
* the call times out. By default, the statement stops running when the call
10261026
* times out.</p>
1027-
* <important>
1027+
* <note>
10281028
* <p>For DDL statements, we recommend continuing to run the statement after
10291029
* the call times out. When a DDL statement terminates before it is finished
10301030
* running, it can result in errors and possibly corrupted data structures.</p>
1031-
* </important>
1031+
* </note>
10321032
*/
10331033
continueAfterTimeout?: boolean;
10341034

@@ -1051,10 +1051,10 @@ export interface ExecuteStatementRequest {
10511051

10521052
/**
10531053
* <p>A structure value returned by a call.</p>
1054-
* <important>
1054+
* <note>
10551055
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
10561056
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
1057-
* </important>
1057+
* </note>
10581058
*/
10591059
export interface StructValue {
10601060
/**
@@ -1136,10 +1136,10 @@ export interface BatchExecuteStatementResponse {
11361136

11371137
/**
11381138
* <p>A record returned by a call.</p>
1139-
* <important>
1139+
* <note>
11401140
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
11411141
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
1142-
* </important>
1142+
* </note>
11431143
*/
11441144
export interface _Record {
11451145
/**
@@ -1194,10 +1194,10 @@ export interface ExecuteStatementResponse {
11941194

11951195
/**
11961196
* <p>The result set returned by a SQL statement.</p>
1197-
* <important>
1197+
* <note>
11981198
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
11991199
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
1200-
* </important>
1200+
* </note>
12011201
*/
12021202
export interface ResultFrame {
12031203
/**
@@ -1214,10 +1214,10 @@ export interface ResultFrame {
12141214
/**
12151215
* <p>The result of a SQL statement.</p>
12161216
*
1217-
* <important>
1217+
* <note>
12181218
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
12191219
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
1220-
* </important>
1220+
* </note>
12211221
*/
12221222
export interface SqlStatementResult {
12231223
/**

0 commit comments

Comments
 (0)