@aws-sdk/client-timestream-write 3.39.0 → 3.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +8 -1
- package/dist-cjs/commands/WriteRecordsCommand.js +1 -1
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +45 -1
- package/dist-cjs/protocols/Aws_json1_0.js +101 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/commands/WriteRecordsCommand.js +2 -2
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_json1_0.js +91 -11
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/TimestreamWrite.d.ts +83 -21
- package/dist-types/TimestreamWriteClient.d.ts +15 -1
- package/dist-types/commands/CreateDatabaseCommand.d.ts +7 -4
- package/dist-types/commands/CreateTableCommand.d.ts +6 -5
- package/dist-types/commands/DeleteDatabaseCommand.d.ts +8 -3
- package/dist-types/commands/DeleteTableCommand.d.ts +6 -2
- package/dist-types/commands/DescribeDatabaseCommand.d.ts +3 -2
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +10 -5
- package/dist-types/commands/DescribeTableCommand.d.ts +3 -2
- package/dist-types/commands/ListDatabasesCommand.d.ts +3 -2
- package/dist-types/commands/ListTablesCommand.d.ts +3 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDatabaseCommand.d.ts +3 -1
- package/dist-types/commands/UpdateTableCommand.d.ts +3 -2
- package/dist-types/commands/WriteRecordsCommand.d.ts +35 -5
- package/dist-types/models/models_0.d.ts +207 -18
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/TimestreamWriteClient.d.ts +4 -0
- package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +84 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +24 -24
|
@@ -11,11 +11,16 @@ export interface DeleteDatabaseCommandOutput extends __MetadataBearer {
|
|
|
11
11
|
* After a database is deleted, the time series data from its tables cannot be recovered.</i>
|
|
12
12
|
* </p>
|
|
13
13
|
*
|
|
14
|
-
* <
|
|
14
|
+
* <note>
|
|
15
|
+
* <p>All tables in the database must be deleted first, or a ValidationException error will be thrown.
|
|
15
16
|
* </p>
|
|
16
17
|
*
|
|
17
|
-
*
|
|
18
|
+
* <p>Due to the nature of distributed retries,
|
|
18
19
|
* the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
|
|
20
|
+
* </note>
|
|
21
|
+
*
|
|
22
|
+
* <p>See
|
|
23
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-db.html">code sample</a> for details.</p>
|
|
19
24
|
* @example
|
|
20
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
21
26
|
* ```javascript
|
|
@@ -28,7 +33,7 @@ export interface DeleteDatabaseCommandOutput extends __MetadataBearer {
|
|
|
28
33
|
*
|
|
29
34
|
* @see {@link DeleteDatabaseCommandInput} for command's `input` shape.
|
|
30
35
|
* @see {@link DeleteDatabaseCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
36
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
32
37
|
*
|
|
33
38
|
*/
|
|
34
39
|
export declare class DeleteDatabaseCommand extends $Command<DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -11,8 +11,12 @@ export interface DeleteTableCommandOutput extends __MetadataBearer {
|
|
|
11
11
|
* After a Timestream database table is deleted, the time series data stored in
|
|
12
12
|
* the table cannot be recovered.
|
|
13
13
|
* </p>
|
|
14
|
-
* <
|
|
14
|
+
* <note>
|
|
15
|
+
* <p>Due to the nature of distributed retries,
|
|
15
16
|
* the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
|
|
17
|
+
* </note>
|
|
18
|
+
* <p>See
|
|
19
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-table.html">code sample</a> for details.</p>
|
|
16
20
|
* @example
|
|
17
21
|
* Use a bare-bones client and the command you need to make an API call.
|
|
18
22
|
* ```javascript
|
|
@@ -25,7 +29,7 @@ export interface DeleteTableCommandOutput extends __MetadataBearer {
|
|
|
25
29
|
*
|
|
26
30
|
* @see {@link DeleteTableCommandInput} for command's `input` shape.
|
|
27
31
|
* @see {@link DeleteTableCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
32
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
29
33
|
*
|
|
30
34
|
*/
|
|
31
35
|
export declare class DeleteTableCommand extends $Command<DeleteTableCommandInput, DeleteTableCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -9,7 +9,8 @@ export interface DescribeDatabaseCommandOutput extends DescribeDatabaseResponse,
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns information about the database, including the database name, time that the database was created,
|
|
11
11
|
* and the total number of tables found within the database.
|
|
12
|
-
*
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
|
|
13
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-db.html">code sample</a> for details.</p>
|
|
13
14
|
* @example
|
|
14
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
16
|
* ```javascript
|
|
@@ -22,7 +23,7 @@ export interface DescribeDatabaseCommandOutput extends DescribeDatabaseResponse,
|
|
|
22
23
|
*
|
|
23
24
|
* @see {@link DescribeDatabaseCommandInput} for command's `input` shape.
|
|
24
25
|
* @see {@link DescribeDatabaseCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
26
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
28
29
|
export declare class DescribeDatabaseCommand extends $Command<DescribeDatabaseCommandInput, DescribeDatabaseCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -7,20 +7,25 @@ export interface DescribeEndpointsCommandInput extends DescribeEndpointsRequest
|
|
|
7
7
|
export interface DescribeEndpointsCommandOutput extends DescribeEndpointsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
|
11
|
-
*
|
|
10
|
+
* <p>DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
|
11
|
+
* This API is available through both Write and Query.</p>
|
|
12
|
+
* <p>Because the Timestream SDKs are designed to transparently work with the service’s architecture,
|
|
12
13
|
* including the management and mapping of the service endpoints,
|
|
13
14
|
* <i>it is not recommended that you use this API unless</i>:</p>
|
|
14
15
|
* <ul>
|
|
15
16
|
* <li>
|
|
17
|
+
* <p>You are using <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/VPCEndpoints">VPC endpoints (Amazon Web Services PrivateLink) with Timestream</a>
|
|
18
|
+
* </p>
|
|
19
|
+
* </li>
|
|
20
|
+
* <li>
|
|
16
21
|
* <p>Your application uses a programming language that does not yet have SDK support</p>
|
|
17
22
|
* </li>
|
|
18
23
|
* <li>
|
|
19
24
|
* <p>You require better control over the client-side implementation</p>
|
|
20
25
|
* </li>
|
|
21
26
|
* </ul>
|
|
22
|
-
* <p>For detailed information on how to use DescribeEndpoints,
|
|
23
|
-
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using-API.endpoint-discovery
|
|
27
|
+
* <p>For detailed information on how and when to use and implement DescribeEndpoints,
|
|
28
|
+
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using.API.html#Using-API.endpoint-discovery">The Endpoint Discovery Pattern</a>.</p>
|
|
24
29
|
* @example
|
|
25
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
26
31
|
* ```javascript
|
|
@@ -33,7 +38,7 @@ export interface DescribeEndpointsCommandOutput extends DescribeEndpointsRespons
|
|
|
33
38
|
*
|
|
34
39
|
* @see {@link DescribeEndpointsCommandInput} for command's `input` shape.
|
|
35
40
|
* @see {@link DescribeEndpointsCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
41
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
37
42
|
*
|
|
38
43
|
*/
|
|
39
44
|
export declare class DescribeEndpointsCommand extends $Command<DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -9,7 +9,8 @@ export interface DescribeTableCommandOutput extends DescribeTableResponse, __Met
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns information about the table, including the table name, database name,
|
|
11
11
|
* retention duration of the memory store and the magnetic store.
|
|
12
|
-
*
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
|
|
13
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-table.html">code sample</a> for details.
|
|
13
14
|
* </p>
|
|
14
15
|
* @example
|
|
15
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -23,7 +24,7 @@ export interface DescribeTableCommandOutput extends DescribeTableResponse, __Met
|
|
|
23
24
|
*
|
|
24
25
|
* @see {@link DescribeTableCommandInput} for command's `input` shape.
|
|
25
26
|
* @see {@link DescribeTableCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
27
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
30
|
export declare class DescribeTableCommand extends $Command<DescribeTableCommandInput, DescribeTableCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -8,7 +8,8 @@ export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __Met
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns a list of your Timestream databases.
|
|
11
|
-
*
|
|
11
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-db.html">code sample</a> for details.
|
|
12
13
|
* </p>
|
|
13
14
|
* @example
|
|
14
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -22,7 +23,7 @@ export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __Met
|
|
|
22
23
|
*
|
|
23
24
|
* @see {@link ListDatabasesCommandInput} for command's `input` shape.
|
|
24
25
|
* @see {@link ListDatabasesCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
26
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
28
29
|
export declare class ListDatabasesCommand extends $Command<ListDatabasesCommandInput, ListDatabasesCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -8,6 +8,8 @@ export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataB
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>A list of tables, along with the name, status and retention properties of each table.
|
|
11
|
+
* See
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-table.html">code sample</a> for details.
|
|
11
13
|
* </p>
|
|
12
14
|
* @example
|
|
13
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -21,7 +23,7 @@ export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataB
|
|
|
21
23
|
*
|
|
22
24
|
* @see {@link ListTablesCommandInput} for command's `input` shape.
|
|
23
25
|
* @see {@link ListTablesCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
26
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
25
27
|
*
|
|
26
28
|
*/
|
|
27
29
|
export declare class ListTablesCommand extends $Command<ListTablesCommandInput, ListTablesCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -24,7 +24,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
24
24
|
*
|
|
25
25
|
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
26
26
|
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
27
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -12,6 +12,8 @@ export interface UpdateDatabaseCommandOutput extends UpdateDatabaseResponse, __M
|
|
|
12
12
|
* you must specify the database name and the identifier of the new KMS key to be used (<code>KmsKeyId</code>).
|
|
13
13
|
* If there are any concurrent <code>UpdateDatabase</code> requests, first writer wins.
|
|
14
14
|
* </p>
|
|
15
|
+
* <p>See
|
|
16
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-db.html">code sample</a> for details.</p>
|
|
15
17
|
* @example
|
|
16
18
|
* Use a bare-bones client and the command you need to make an API call.
|
|
17
19
|
* ```javascript
|
|
@@ -24,7 +26,7 @@ export interface UpdateDatabaseCommandOutput extends UpdateDatabaseResponse, __M
|
|
|
24
26
|
*
|
|
25
27
|
* @see {@link UpdateDatabaseCommandInput} for command's `input` shape.
|
|
26
28
|
* @see {@link UpdateDatabaseCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
29
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
28
30
|
*
|
|
29
31
|
*/
|
|
30
32
|
export declare class UpdateDatabaseCommand extends $Command<UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -13,7 +13,8 @@ export interface UpdateTableCommandOutput extends UpdateTableResponse, __Metadat
|
|
|
13
13
|
* the memory store will be capable of holding 24 hours of data, but will
|
|
14
14
|
* be populated with 24 hours of data 22 hours after this change was made.
|
|
15
15
|
* Timestream does not retrieve data from the magnetic store to populate the memory store. </p>
|
|
16
|
-
* <p>
|
|
16
|
+
* <p>See
|
|
17
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-table.html">code sample</a> for details.</p>
|
|
17
18
|
* @example
|
|
18
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
19
20
|
* ```javascript
|
|
@@ -26,7 +27,7 @@ export interface UpdateTableCommandOutput extends UpdateTableResponse, __Metadat
|
|
|
26
27
|
*
|
|
27
28
|
* @see {@link UpdateTableCommandInput} for command's `input` shape.
|
|
28
29
|
* @see {@link UpdateTableCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
30
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
30
31
|
*
|
|
31
32
|
*/
|
|
32
33
|
export declare class UpdateTableCommand extends $Command<UpdateTableCommandInput, UpdateTableCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { WriteRecordsRequest } from "../models/models_0";
|
|
3
|
+
import { WriteRecordsRequest, WriteRecordsResponse } from "../models/models_0";
|
|
4
4
|
import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
|
|
5
5
|
export interface WriteRecordsCommandInput extends WriteRecordsRequest {
|
|
6
6
|
}
|
|
7
|
-
export interface WriteRecordsCommandOutput extends __MetadataBearer {
|
|
7
|
+
export interface WriteRecordsCommandOutput extends WriteRecordsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>The WriteRecords operation enables you to write your time series
|
|
@@ -18,9 +18,39 @@ export interface WriteRecordsCommandOutput extends __MetadataBearer {
|
|
|
18
18
|
* the query results might not reflect the results of a recently completed write
|
|
19
19
|
* operation. The results may also include some stale data. If you repeat the
|
|
20
20
|
* query request after a short time, the results should return the latest data.
|
|
21
|
-
*
|
|
22
|
-
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
|
|
21
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>.
|
|
23
22
|
* </p>
|
|
23
|
+
*
|
|
24
|
+
* <p>See
|
|
25
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.write.html">code sample</a> for details.</p>
|
|
26
|
+
*
|
|
27
|
+
* <p>
|
|
28
|
+
* <b>Upserts</b>
|
|
29
|
+
* </p>
|
|
30
|
+
*
|
|
31
|
+
* <p>You can use the <code>Version</code> parameter in a <code>WriteRecords</code> request to update data points.
|
|
32
|
+
* Timestream tracks a version number with each record. <code>Version</code> defaults to <code>1</code> when not specified for the record in the request.
|
|
33
|
+
* Timestream will update an existing record’s measure value along with its <code>Version</code> upon receiving a write request with a higher
|
|
34
|
+
* <code>Version</code> number for that record.
|
|
35
|
+
* Upon receiving an update request where the measure value is the same as that of the existing record,
|
|
36
|
+
* Timestream still updates <code>Version</code>, if it is greater than the existing value of <code>Version</code>.
|
|
37
|
+
* You can update a data point as many times as desired, as long as the value of <code>Version</code> continuously increases.
|
|
38
|
+
* </p>
|
|
39
|
+
* <p>
|
|
40
|
+
* For example, suppose you write a new record without indicating <code>Version</code> in the request.
|
|
41
|
+
* Timestream will store this record, and set <code>Version</code> to <code>1</code>.
|
|
42
|
+
* Now, suppose you try to update this record with a <code>WriteRecords</code> request of the same record with a different measure value but,
|
|
43
|
+
* like before, do not provide <code>Version</code>.
|
|
44
|
+
* In this case, Timestream will reject this update with a <code>RejectedRecordsException</code> since the updated record’s version is not greater than the existing value of Version.
|
|
45
|
+
* However, if you were to resend the update request with <code>Version</code> set to <code>2</code>,
|
|
46
|
+
* Timestream would then succeed in updating the record’s value,
|
|
47
|
+
* and the <code>Version</code> would be set to <code>2</code>.
|
|
48
|
+
* Next, suppose you sent a <code>WriteRecords</code> request with this same record and an identical measure value,
|
|
49
|
+
* but with <code>Version</code> set to <code>3</code>.
|
|
50
|
+
* In this case, Timestream would only update <code>Version</code> to <code>3</code>.
|
|
51
|
+
* Any further updates would need to send a version number greater than <code>3</code>,
|
|
52
|
+
* or the update requests would receive a <code>RejectedRecordsException</code>.
|
|
53
|
+
* </p>
|
|
24
54
|
* @example
|
|
25
55
|
* Use a bare-bones client and the command you need to make an API call.
|
|
26
56
|
* ```javascript
|
|
@@ -33,7 +63,7 @@ export interface WriteRecordsCommandOutput extends __MetadataBearer {
|
|
|
33
63
|
*
|
|
34
64
|
* @see {@link WriteRecordsCommandInput} for command's `input` shape.
|
|
35
65
|
* @see {@link WriteRecordsCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
66
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
37
67
|
*
|
|
38
68
|
*/
|
|
39
69
|
export declare class WriteRecordsCommand extends $Command<WriteRecordsCommandInput, WriteRecordsCommandOutput, TimestreamWriteClientResolvedConfig> {
|