@aws-sdk/client-timestream-write 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/TimestreamWrite.js +0 -4
- package/dist-cjs/TimestreamWriteClient.js +0 -9
- package/dist-cjs/commands/CreateDatabaseCommand.js +0 -28
- package/dist-cjs/commands/CreateTableCommand.js +0 -32
- package/dist-cjs/commands/DeleteDatabaseCommand.js +0 -33
- package/dist-cjs/commands/DeleteTableCommand.js +0 -30
- package/dist-cjs/commands/DescribeDatabaseCommand.js +0 -27
- package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -38
- package/dist-cjs/commands/DescribeTableCommand.js +0 -28
- package/dist-cjs/commands/ListDatabasesCommand.js +0 -27
- package/dist-cjs/commands/ListTablesCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
- package/dist-cjs/commands/TagResourceCommand.js +0 -29
- package/dist-cjs/commands/UntagResourceCommand.js +0 -27
- package/dist-cjs/commands/UpdateDatabaseCommand.js +0 -29
- package/dist-cjs/commands/UpdateTableCommand.js +0 -31
- package/dist-cjs/commands/WriteRecordsCommand.js +0 -38
- package/dist-cjs/commands/index.js +18 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -21
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -133
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -11
- package/dist-cjs/pagination/ListTablesPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_json1_0.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/TimestreamWrite.js +0 -1
- package/dist-es/TimestreamWriteClient.js +0 -1
- package/dist-es/commands/CreateDatabaseCommand.js +0 -1
- package/dist-es/commands/CreateTableCommand.js +0 -1
- package/dist-es/commands/DeleteDatabaseCommand.js +0 -1
- package/dist-es/commands/DeleteTableCommand.js +0 -1
- package/dist-es/commands/DescribeDatabaseCommand.js +0 -1
- package/dist-es/commands/DescribeEndpointsCommand.js +0 -1
- package/dist-es/commands/DescribeTableCommand.js +0 -1
- package/dist-es/commands/ListDatabasesCommand.js +0 -1
- package/dist-es/commands/ListTablesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateDatabaseCommand.js +0 -1
- package/dist-es/commands/UpdateTableCommand.js +0 -1
- package/dist-es/commands/WriteRecordsCommand.js +0 -1
- package/dist-es/commands/index.js +15 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -21
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
- package/dist-es/pagination/ListTablesPaginator.js +0 -1
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_0.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/index.d.ts +4 -20
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/TimestreamWrite.d.ts +16 -123
- package/dist-types/ts3.4/TimestreamWriteClient.d.ts +25 -94
- package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/index.d.ts +4 -20
- package/dist-types/ts3.4/models/models_0.d.ts +137 -581
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +34 -31
- package/dist-cjs/TimestreamWrite.js.map +0 -1
- package/dist-cjs/TimestreamWriteClient.js.map +0 -1
- package/dist-cjs/commands/CreateDatabaseCommand.js.map +0 -1
- package/dist-cjs/commands/CreateTableCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDatabaseCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTableCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDatabaseCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEndpointsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
- package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDatabaseCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateTableCommand.js.map +0 -1
- package/dist-cjs/commands/WriteRecordsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/TimestreamWrite.js.map +0 -1
- package/dist-es/TimestreamWriteClient.js.map +0 -1
- package/dist-es/commands/CreateDatabaseCommand.js.map +0 -1
- package/dist-es/commands/CreateTableCommand.js.map +0 -1
- package/dist-es/commands/DeleteDatabaseCommand.js.map +0 -1
- package/dist-es/commands/DeleteTableCommand.js.map +0 -1
- package/dist-es/commands/DescribeDatabaseCommand.js.map +0 -1
- package/dist-es/commands/DescribeEndpointsCommand.js.map +0 -1
- package/dist-es/commands/DescribeTableCommand.js.map +0 -1
- package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
- package/dist-es/commands/ListTablesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateDatabaseCommand.js.map +0 -1
- package/dist-es/commands/UpdateTableCommand.js.map +0 -1
- package/dist-es/commands/WriteRecordsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
- package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_0.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/TimestreamWrite.ts +0 -585
- package/src/TimestreamWriteClient.ts +0 -305
- package/src/commands/CreateDatabaseCommand.ts +0 -102
- package/src/commands/CreateTableCommand.ts +0 -106
- package/src/commands/DeleteDatabaseCommand.ts +0 -107
- package/src/commands/DeleteTableCommand.ts +0 -104
- package/src/commands/DescribeDatabaseCommand.ts +0 -101
- package/src/commands/DescribeEndpointsCommand.ts +0 -108
- package/src/commands/DescribeTableCommand.ts +0 -102
- package/src/commands/ListDatabasesCommand.ts +0 -101
- package/src/commands/ListTablesCommand.ts +0 -100
- package/src/commands/ListTagsForResourceCommand.ts +0 -101
- package/src/commands/TagResourceCommand.ts +0 -103
- package/src/commands/UntagResourceCommand.ts +0 -101
- package/src/commands/UpdateDatabaseCommand.ts +0 -103
- package/src/commands/UpdateTableCommand.ts +0 -105
- package/src/commands/WriteRecordsCommand.ts +0 -112
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -21
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1146
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDatabasesPaginator.ts +0 -59
- package/src/pagination/ListTablesPaginator.ts +0 -55
- package/src/protocols/Aws_json1_0.ts +0 -2388
- package/src/runtimeConfig.browser.ts +0 -42
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -49
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/TimestreamWrite.ts
DELETED
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
CreateDatabaseCommand,
|
|
5
|
-
CreateDatabaseCommandInput,
|
|
6
|
-
CreateDatabaseCommandOutput,
|
|
7
|
-
} from "./commands/CreateDatabaseCommand";
|
|
8
|
-
import { CreateTableCommand, CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
|
|
9
|
-
import {
|
|
10
|
-
DeleteDatabaseCommand,
|
|
11
|
-
DeleteDatabaseCommandInput,
|
|
12
|
-
DeleteDatabaseCommandOutput,
|
|
13
|
-
} from "./commands/DeleteDatabaseCommand";
|
|
14
|
-
import { DeleteTableCommand, DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
|
|
15
|
-
import {
|
|
16
|
-
DescribeDatabaseCommand,
|
|
17
|
-
DescribeDatabaseCommandInput,
|
|
18
|
-
DescribeDatabaseCommandOutput,
|
|
19
|
-
} from "./commands/DescribeDatabaseCommand";
|
|
20
|
-
import {
|
|
21
|
-
DescribeEndpointsCommand,
|
|
22
|
-
DescribeEndpointsCommandInput,
|
|
23
|
-
DescribeEndpointsCommandOutput,
|
|
24
|
-
} from "./commands/DescribeEndpointsCommand";
|
|
25
|
-
import {
|
|
26
|
-
DescribeTableCommand,
|
|
27
|
-
DescribeTableCommandInput,
|
|
28
|
-
DescribeTableCommandOutput,
|
|
29
|
-
} from "./commands/DescribeTableCommand";
|
|
30
|
-
import {
|
|
31
|
-
ListDatabasesCommand,
|
|
32
|
-
ListDatabasesCommandInput,
|
|
33
|
-
ListDatabasesCommandOutput,
|
|
34
|
-
} from "./commands/ListDatabasesCommand";
|
|
35
|
-
import { ListTablesCommand, ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
36
|
-
import {
|
|
37
|
-
ListTagsForResourceCommand,
|
|
38
|
-
ListTagsForResourceCommandInput,
|
|
39
|
-
ListTagsForResourceCommandOutput,
|
|
40
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
41
|
-
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
42
|
-
import {
|
|
43
|
-
UntagResourceCommand,
|
|
44
|
-
UntagResourceCommandInput,
|
|
45
|
-
UntagResourceCommandOutput,
|
|
46
|
-
} from "./commands/UntagResourceCommand";
|
|
47
|
-
import {
|
|
48
|
-
UpdateDatabaseCommand,
|
|
49
|
-
UpdateDatabaseCommandInput,
|
|
50
|
-
UpdateDatabaseCommandOutput,
|
|
51
|
-
} from "./commands/UpdateDatabaseCommand";
|
|
52
|
-
import { UpdateTableCommand, UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
|
|
53
|
-
import {
|
|
54
|
-
WriteRecordsCommand,
|
|
55
|
-
WriteRecordsCommandInput,
|
|
56
|
-
WriteRecordsCommandOutput,
|
|
57
|
-
} from "./commands/WriteRecordsCommand";
|
|
58
|
-
import { TimestreamWriteClient } from "./TimestreamWriteClient";
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* <p>Amazon Timestream is a fast, scalable, fully managed time series database service that makes it easy to store and analyze trillions of time series data points per day. With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications. You can analyze industrial telemetry to streamline equipment management and maintenance. You can also store and analyze log data and metrics to improve the performance and availability of your applications. Timestream is built from the ground up to effectively ingest, process, and store time series data. It organizes data to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.</p>
|
|
62
|
-
*/
|
|
63
|
-
export class TimestreamWrite extends TimestreamWriteClient {
|
|
64
|
-
/**
|
|
65
|
-
* <p>Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account.
|
|
66
|
-
* Refer to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">AWS managed KMS keys</a> for more info.
|
|
67
|
-
* Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
|
|
68
|
-
* </p>
|
|
69
|
-
*/
|
|
70
|
-
public createDatabase(
|
|
71
|
-
args: CreateDatabaseCommandInput,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Promise<CreateDatabaseCommandOutput>;
|
|
74
|
-
public createDatabase(
|
|
75
|
-
args: CreateDatabaseCommandInput,
|
|
76
|
-
cb: (err: any, data?: CreateDatabaseCommandOutput) => void
|
|
77
|
-
): void;
|
|
78
|
-
public createDatabase(
|
|
79
|
-
args: CreateDatabaseCommandInput,
|
|
80
|
-
options: __HttpHandlerOptions,
|
|
81
|
-
cb: (err: any, data?: CreateDatabaseCommandOutput) => void
|
|
82
|
-
): void;
|
|
83
|
-
public createDatabase(
|
|
84
|
-
args: CreateDatabaseCommandInput,
|
|
85
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDatabaseCommandOutput) => void),
|
|
86
|
-
cb?: (err: any, data?: CreateDatabaseCommandOutput) => void
|
|
87
|
-
): Promise<CreateDatabaseCommandOutput> | void {
|
|
88
|
-
const command = new CreateDatabaseCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
} else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
} else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* <p>The CreateTable operation adds a new table to an existing database in your account. In an AWS account,
|
|
101
|
-
* table names must be at least unique within each Region if they are in the same database.
|
|
102
|
-
* You may have identical table names in the same Region if the tables are in seperate databases.
|
|
103
|
-
* While creating the table, you must specify the table name, database name,
|
|
104
|
-
* and the retention properties.
|
|
105
|
-
* Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a>
|
|
106
|
-
* in the Timestream Developer Guide.
|
|
107
|
-
* </p>
|
|
108
|
-
*/
|
|
109
|
-
public createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
|
|
110
|
-
public createTable(args: CreateTableCommandInput, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
|
|
111
|
-
public createTable(
|
|
112
|
-
args: CreateTableCommandInput,
|
|
113
|
-
options: __HttpHandlerOptions,
|
|
114
|
-
cb: (err: any, data?: CreateTableCommandOutput) => void
|
|
115
|
-
): void;
|
|
116
|
-
public createTable(
|
|
117
|
-
args: CreateTableCommandInput,
|
|
118
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateTableCommandOutput) => void),
|
|
119
|
-
cb?: (err: any, data?: CreateTableCommandOutput) => void
|
|
120
|
-
): Promise<CreateTableCommandOutput> | void {
|
|
121
|
-
const command = new CreateTableCommand(args);
|
|
122
|
-
if (typeof optionsOrCb === "function") {
|
|
123
|
-
this.send(command, optionsOrCb);
|
|
124
|
-
} else if (typeof cb === "function") {
|
|
125
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
} else {
|
|
128
|
-
return this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* <p>Deletes a given Timestream database. <i>This is an irreversible operation.
|
|
134
|
-
* After a database is deleted, the time series data from its tables cannot be recovered.</i>
|
|
135
|
-
* </p>
|
|
136
|
-
*
|
|
137
|
-
* <p>All tables in the database must be deleted first, or a ValidationException error will be thrown.
|
|
138
|
-
* </p>
|
|
139
|
-
*
|
|
140
|
-
* <p>Due to the nature of distributed retries,
|
|
141
|
-
* the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
|
|
142
|
-
*/
|
|
143
|
-
public deleteDatabase(
|
|
144
|
-
args: DeleteDatabaseCommandInput,
|
|
145
|
-
options?: __HttpHandlerOptions
|
|
146
|
-
): Promise<DeleteDatabaseCommandOutput>;
|
|
147
|
-
public deleteDatabase(
|
|
148
|
-
args: DeleteDatabaseCommandInput,
|
|
149
|
-
cb: (err: any, data?: DeleteDatabaseCommandOutput) => void
|
|
150
|
-
): void;
|
|
151
|
-
public deleteDatabase(
|
|
152
|
-
args: DeleteDatabaseCommandInput,
|
|
153
|
-
options: __HttpHandlerOptions,
|
|
154
|
-
cb: (err: any, data?: DeleteDatabaseCommandOutput) => void
|
|
155
|
-
): void;
|
|
156
|
-
public deleteDatabase(
|
|
157
|
-
args: DeleteDatabaseCommandInput,
|
|
158
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDatabaseCommandOutput) => void),
|
|
159
|
-
cb?: (err: any, data?: DeleteDatabaseCommandOutput) => void
|
|
160
|
-
): Promise<DeleteDatabaseCommandOutput> | void {
|
|
161
|
-
const command = new DeleteDatabaseCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
} else if (typeof cb === "function") {
|
|
165
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
} else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* <p>Deletes a given Timestream table. This is an irreversible operation.
|
|
174
|
-
* After a Timestream database table is deleted, the time series data stored in
|
|
175
|
-
* the table cannot be recovered.
|
|
176
|
-
* </p>
|
|
177
|
-
* <p>Due to the nature of distributed retries,
|
|
178
|
-
* the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
|
|
179
|
-
*/
|
|
180
|
-
public deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
|
|
181
|
-
public deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
|
|
182
|
-
public deleteTable(
|
|
183
|
-
args: DeleteTableCommandInput,
|
|
184
|
-
options: __HttpHandlerOptions,
|
|
185
|
-
cb: (err: any, data?: DeleteTableCommandOutput) => void
|
|
186
|
-
): void;
|
|
187
|
-
public deleteTable(
|
|
188
|
-
args: DeleteTableCommandInput,
|
|
189
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteTableCommandOutput) => void),
|
|
190
|
-
cb?: (err: any, data?: DeleteTableCommandOutput) => void
|
|
191
|
-
): Promise<DeleteTableCommandOutput> | void {
|
|
192
|
-
const command = new DeleteTableCommand(args);
|
|
193
|
-
if (typeof optionsOrCb === "function") {
|
|
194
|
-
this.send(command, optionsOrCb);
|
|
195
|
-
} else if (typeof cb === "function") {
|
|
196
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
197
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
198
|
-
} else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* <p>Returns information about the database, including the database name, time that the database was created,
|
|
205
|
-
* and the total number of tables found within the database.
|
|
206
|
-
* Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.</p>
|
|
207
|
-
*/
|
|
208
|
-
public describeDatabase(
|
|
209
|
-
args: DescribeDatabaseCommandInput,
|
|
210
|
-
options?: __HttpHandlerOptions
|
|
211
|
-
): Promise<DescribeDatabaseCommandOutput>;
|
|
212
|
-
public describeDatabase(
|
|
213
|
-
args: DescribeDatabaseCommandInput,
|
|
214
|
-
cb: (err: any, data?: DescribeDatabaseCommandOutput) => void
|
|
215
|
-
): void;
|
|
216
|
-
public describeDatabase(
|
|
217
|
-
args: DescribeDatabaseCommandInput,
|
|
218
|
-
options: __HttpHandlerOptions,
|
|
219
|
-
cb: (err: any, data?: DescribeDatabaseCommandOutput) => void
|
|
220
|
-
): void;
|
|
221
|
-
public describeDatabase(
|
|
222
|
-
args: DescribeDatabaseCommandInput,
|
|
223
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDatabaseCommandOutput) => void),
|
|
224
|
-
cb?: (err: any, data?: DescribeDatabaseCommandOutput) => void
|
|
225
|
-
): Promise<DescribeDatabaseCommandOutput> | void {
|
|
226
|
-
const command = new DescribeDatabaseCommand(args);
|
|
227
|
-
if (typeof optionsOrCb === "function") {
|
|
228
|
-
this.send(command, optionsOrCb);
|
|
229
|
-
} else if (typeof cb === "function") {
|
|
230
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
-
} else {
|
|
233
|
-
return this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* <p>DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.</p>
|
|
239
|
-
* <p>Because Timestream’s SDKs are designed to transparently work with the service’s architecture,
|
|
240
|
-
* including the management and mapping of the service endpoints,
|
|
241
|
-
* <i>it is not recommended that you use this API unless</i>:</p>
|
|
242
|
-
* <ul>
|
|
243
|
-
* <li>
|
|
244
|
-
* <p>Your application uses a programming language that does not yet have SDK support</p>
|
|
245
|
-
* </li>
|
|
246
|
-
* <li>
|
|
247
|
-
* <p>You require better control over the client-side implementation</p>
|
|
248
|
-
* </li>
|
|
249
|
-
* </ul>
|
|
250
|
-
* <p>For detailed information on how to use DescribeEndpoints,
|
|
251
|
-
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using-API.endpoint-discovery.html">The Endpoint Discovery Pattern and REST APIs</a>.</p>
|
|
252
|
-
*/
|
|
253
|
-
public describeEndpoints(
|
|
254
|
-
args: DescribeEndpointsCommandInput,
|
|
255
|
-
options?: __HttpHandlerOptions
|
|
256
|
-
): Promise<DescribeEndpointsCommandOutput>;
|
|
257
|
-
public describeEndpoints(
|
|
258
|
-
args: DescribeEndpointsCommandInput,
|
|
259
|
-
cb: (err: any, data?: DescribeEndpointsCommandOutput) => void
|
|
260
|
-
): void;
|
|
261
|
-
public describeEndpoints(
|
|
262
|
-
args: DescribeEndpointsCommandInput,
|
|
263
|
-
options: __HttpHandlerOptions,
|
|
264
|
-
cb: (err: any, data?: DescribeEndpointsCommandOutput) => void
|
|
265
|
-
): void;
|
|
266
|
-
public describeEndpoints(
|
|
267
|
-
args: DescribeEndpointsCommandInput,
|
|
268
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEndpointsCommandOutput) => void),
|
|
269
|
-
cb?: (err: any, data?: DescribeEndpointsCommandOutput) => void
|
|
270
|
-
): Promise<DescribeEndpointsCommandOutput> | void {
|
|
271
|
-
const command = new DescribeEndpointsCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
} else if (typeof cb === "function") {
|
|
275
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
277
|
-
} else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* <p>Returns information about the table, including the table name, database name,
|
|
284
|
-
* retention duration of the memory store and the magnetic store.
|
|
285
|
-
* Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
|
|
286
|
-
* </p>
|
|
287
|
-
*/
|
|
288
|
-
public describeTable(
|
|
289
|
-
args: DescribeTableCommandInput,
|
|
290
|
-
options?: __HttpHandlerOptions
|
|
291
|
-
): Promise<DescribeTableCommandOutput>;
|
|
292
|
-
public describeTable(
|
|
293
|
-
args: DescribeTableCommandInput,
|
|
294
|
-
cb: (err: any, data?: DescribeTableCommandOutput) => void
|
|
295
|
-
): void;
|
|
296
|
-
public describeTable(
|
|
297
|
-
args: DescribeTableCommandInput,
|
|
298
|
-
options: __HttpHandlerOptions,
|
|
299
|
-
cb: (err: any, data?: DescribeTableCommandOutput) => void
|
|
300
|
-
): void;
|
|
301
|
-
public describeTable(
|
|
302
|
-
args: DescribeTableCommandInput,
|
|
303
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTableCommandOutput) => void),
|
|
304
|
-
cb?: (err: any, data?: DescribeTableCommandOutput) => void
|
|
305
|
-
): Promise<DescribeTableCommandOutput> | void {
|
|
306
|
-
const command = new DescribeTableCommand(args);
|
|
307
|
-
if (typeof optionsOrCb === "function") {
|
|
308
|
-
this.send(command, optionsOrCb);
|
|
309
|
-
} else if (typeof cb === "function") {
|
|
310
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
311
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
312
|
-
} else {
|
|
313
|
-
return this.send(command, optionsOrCb);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* <p>Returns a list of your Timestream databases.
|
|
319
|
-
* Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
|
|
320
|
-
* </p>
|
|
321
|
-
*/
|
|
322
|
-
public listDatabases(
|
|
323
|
-
args: ListDatabasesCommandInput,
|
|
324
|
-
options?: __HttpHandlerOptions
|
|
325
|
-
): Promise<ListDatabasesCommandOutput>;
|
|
326
|
-
public listDatabases(
|
|
327
|
-
args: ListDatabasesCommandInput,
|
|
328
|
-
cb: (err: any, data?: ListDatabasesCommandOutput) => void
|
|
329
|
-
): void;
|
|
330
|
-
public listDatabases(
|
|
331
|
-
args: ListDatabasesCommandInput,
|
|
332
|
-
options: __HttpHandlerOptions,
|
|
333
|
-
cb: (err: any, data?: ListDatabasesCommandOutput) => void
|
|
334
|
-
): void;
|
|
335
|
-
public listDatabases(
|
|
336
|
-
args: ListDatabasesCommandInput,
|
|
337
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDatabasesCommandOutput) => void),
|
|
338
|
-
cb?: (err: any, data?: ListDatabasesCommandOutput) => void
|
|
339
|
-
): Promise<ListDatabasesCommandOutput> | void {
|
|
340
|
-
const command = new ListDatabasesCommand(args);
|
|
341
|
-
if (typeof optionsOrCb === "function") {
|
|
342
|
-
this.send(command, optionsOrCb);
|
|
343
|
-
} else if (typeof cb === "function") {
|
|
344
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
-
} else {
|
|
347
|
-
return this.send(command, optionsOrCb);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* <p>A list of tables, along with the name, status and retention properties of each table.
|
|
353
|
-
* </p>
|
|
354
|
-
*/
|
|
355
|
-
public listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
|
|
356
|
-
public listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
|
|
357
|
-
public listTables(
|
|
358
|
-
args: ListTablesCommandInput,
|
|
359
|
-
options: __HttpHandlerOptions,
|
|
360
|
-
cb: (err: any, data?: ListTablesCommandOutput) => void
|
|
361
|
-
): void;
|
|
362
|
-
public listTables(
|
|
363
|
-
args: ListTablesCommandInput,
|
|
364
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTablesCommandOutput) => void),
|
|
365
|
-
cb?: (err: any, data?: ListTablesCommandOutput) => void
|
|
366
|
-
): Promise<ListTablesCommandOutput> | void {
|
|
367
|
-
const command = new ListTablesCommand(args);
|
|
368
|
-
if (typeof optionsOrCb === "function") {
|
|
369
|
-
this.send(command, optionsOrCb);
|
|
370
|
-
} else if (typeof cb === "function") {
|
|
371
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
372
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
373
|
-
} else {
|
|
374
|
-
return this.send(command, optionsOrCb);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* <p>
|
|
380
|
-
* List all tags on a Timestream resource.
|
|
381
|
-
* </p>
|
|
382
|
-
*/
|
|
383
|
-
public listTagsForResource(
|
|
384
|
-
args: ListTagsForResourceCommandInput,
|
|
385
|
-
options?: __HttpHandlerOptions
|
|
386
|
-
): Promise<ListTagsForResourceCommandOutput>;
|
|
387
|
-
public listTagsForResource(
|
|
388
|
-
args: ListTagsForResourceCommandInput,
|
|
389
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
390
|
-
): void;
|
|
391
|
-
public listTagsForResource(
|
|
392
|
-
args: ListTagsForResourceCommandInput,
|
|
393
|
-
options: __HttpHandlerOptions,
|
|
394
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
395
|
-
): void;
|
|
396
|
-
public listTagsForResource(
|
|
397
|
-
args: ListTagsForResourceCommandInput,
|
|
398
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
|
|
399
|
-
cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
400
|
-
): Promise<ListTagsForResourceCommandOutput> | void {
|
|
401
|
-
const command = new ListTagsForResourceCommand(args);
|
|
402
|
-
if (typeof optionsOrCb === "function") {
|
|
403
|
-
this.send(command, optionsOrCb);
|
|
404
|
-
} else if (typeof cb === "function") {
|
|
405
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
407
|
-
} else {
|
|
408
|
-
return this.send(command, optionsOrCb);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* <p>
|
|
414
|
-
* Associate a set of tags with a Timestream resource. You can then activate
|
|
415
|
-
* these user-defined tags so that they appear on the Billing and Cost
|
|
416
|
-
* Management console for cost allocation tracking.
|
|
417
|
-
* </p>
|
|
418
|
-
*/
|
|
419
|
-
public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
420
|
-
public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
421
|
-
public tagResource(
|
|
422
|
-
args: TagResourceCommandInput,
|
|
423
|
-
options: __HttpHandlerOptions,
|
|
424
|
-
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
425
|
-
): void;
|
|
426
|
-
public tagResource(
|
|
427
|
-
args: TagResourceCommandInput,
|
|
428
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
|
|
429
|
-
cb?: (err: any, data?: TagResourceCommandOutput) => void
|
|
430
|
-
): Promise<TagResourceCommandOutput> | void {
|
|
431
|
-
const command = new TagResourceCommand(args);
|
|
432
|
-
if (typeof optionsOrCb === "function") {
|
|
433
|
-
this.send(command, optionsOrCb);
|
|
434
|
-
} else if (typeof cb === "function") {
|
|
435
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
436
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
437
|
-
} else {
|
|
438
|
-
return this.send(command, optionsOrCb);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* <p>
|
|
444
|
-
* Removes the association of tags from a Timestream resource.
|
|
445
|
-
* </p>
|
|
446
|
-
*/
|
|
447
|
-
public untagResource(
|
|
448
|
-
args: UntagResourceCommandInput,
|
|
449
|
-
options?: __HttpHandlerOptions
|
|
450
|
-
): Promise<UntagResourceCommandOutput>;
|
|
451
|
-
public untagResource(
|
|
452
|
-
args: UntagResourceCommandInput,
|
|
453
|
-
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
454
|
-
): void;
|
|
455
|
-
public untagResource(
|
|
456
|
-
args: UntagResourceCommandInput,
|
|
457
|
-
options: __HttpHandlerOptions,
|
|
458
|
-
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
459
|
-
): void;
|
|
460
|
-
public untagResource(
|
|
461
|
-
args: UntagResourceCommandInput,
|
|
462
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
|
|
463
|
-
cb?: (err: any, data?: UntagResourceCommandOutput) => void
|
|
464
|
-
): Promise<UntagResourceCommandOutput> | void {
|
|
465
|
-
const command = new UntagResourceCommand(args);
|
|
466
|
-
if (typeof optionsOrCb === "function") {
|
|
467
|
-
this.send(command, optionsOrCb);
|
|
468
|
-
} else if (typeof cb === "function") {
|
|
469
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
470
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
471
|
-
} else {
|
|
472
|
-
return this.send(command, optionsOrCb);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* <p>
|
|
478
|
-
* Modifies the KMS key for an existing database. While updating the database,
|
|
479
|
-
* you must specify the database name and the identifier of the new KMS key to be used (<code>KmsKeyId</code>).
|
|
480
|
-
* If there are any concurrent <code>UpdateDatabase</code> requests, first writer wins.
|
|
481
|
-
* </p>
|
|
482
|
-
*/
|
|
483
|
-
public updateDatabase(
|
|
484
|
-
args: UpdateDatabaseCommandInput,
|
|
485
|
-
options?: __HttpHandlerOptions
|
|
486
|
-
): Promise<UpdateDatabaseCommandOutput>;
|
|
487
|
-
public updateDatabase(
|
|
488
|
-
args: UpdateDatabaseCommandInput,
|
|
489
|
-
cb: (err: any, data?: UpdateDatabaseCommandOutput) => void
|
|
490
|
-
): void;
|
|
491
|
-
public updateDatabase(
|
|
492
|
-
args: UpdateDatabaseCommandInput,
|
|
493
|
-
options: __HttpHandlerOptions,
|
|
494
|
-
cb: (err: any, data?: UpdateDatabaseCommandOutput) => void
|
|
495
|
-
): void;
|
|
496
|
-
public updateDatabase(
|
|
497
|
-
args: UpdateDatabaseCommandInput,
|
|
498
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDatabaseCommandOutput) => void),
|
|
499
|
-
cb?: (err: any, data?: UpdateDatabaseCommandOutput) => void
|
|
500
|
-
): Promise<UpdateDatabaseCommandOutput> | void {
|
|
501
|
-
const command = new UpdateDatabaseCommand(args);
|
|
502
|
-
if (typeof optionsOrCb === "function") {
|
|
503
|
-
this.send(command, optionsOrCb);
|
|
504
|
-
} else if (typeof cb === "function") {
|
|
505
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
506
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
507
|
-
} else {
|
|
508
|
-
return this.send(command, optionsOrCb);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* <p>Modifies the retention duration of the memory store and magnetic store for your Timestream table.
|
|
514
|
-
* Note that the change in retention duration takes effect immediately.
|
|
515
|
-
* For example, if the retention period of the memory store was initially set to 2 hours and then changed to 24 hours,
|
|
516
|
-
* the memory store will be capable of holding 24 hours of data, but will
|
|
517
|
-
* be populated with 24 hours of data 22 hours after this change was made.
|
|
518
|
-
* Timestream does not retrieve data from the magnetic store to populate the memory store. </p>
|
|
519
|
-
* <p>Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.</p>
|
|
520
|
-
*/
|
|
521
|
-
public updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
|
|
522
|
-
public updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
|
|
523
|
-
public updateTable(
|
|
524
|
-
args: UpdateTableCommandInput,
|
|
525
|
-
options: __HttpHandlerOptions,
|
|
526
|
-
cb: (err: any, data?: UpdateTableCommandOutput) => void
|
|
527
|
-
): void;
|
|
528
|
-
public updateTable(
|
|
529
|
-
args: UpdateTableCommandInput,
|
|
530
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateTableCommandOutput) => void),
|
|
531
|
-
cb?: (err: any, data?: UpdateTableCommandOutput) => void
|
|
532
|
-
): Promise<UpdateTableCommandOutput> | void {
|
|
533
|
-
const command = new UpdateTableCommand(args);
|
|
534
|
-
if (typeof optionsOrCb === "function") {
|
|
535
|
-
this.send(command, optionsOrCb);
|
|
536
|
-
} else if (typeof cb === "function") {
|
|
537
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
538
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
539
|
-
} else {
|
|
540
|
-
return this.send(command, optionsOrCb);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* <p>The WriteRecords operation enables you to write your time series
|
|
546
|
-
* data into Timestream. You can specify a single data point or a batch
|
|
547
|
-
* of data points to be inserted into the system. Timestream offers you
|
|
548
|
-
* with a flexible schema that auto detects the column names and data types
|
|
549
|
-
* for your Timestream tables based on the dimension names and data types of
|
|
550
|
-
* the data points you specify when invoking writes into the database.
|
|
551
|
-
* Timestream support eventual consistency read semantics. This means that
|
|
552
|
-
* when you query data immediately after writing a batch of data into Timestream,
|
|
553
|
-
* the query results might not reflect the results of a recently completed write
|
|
554
|
-
* operation. The results may also include some stale data. If you repeat the
|
|
555
|
-
* query request after a short time, the results should return the latest data.
|
|
556
|
-
* Service quotas apply. For more information,
|
|
557
|
-
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
|
|
558
|
-
* </p>
|
|
559
|
-
*/
|
|
560
|
-
public writeRecords(
|
|
561
|
-
args: WriteRecordsCommandInput,
|
|
562
|
-
options?: __HttpHandlerOptions
|
|
563
|
-
): Promise<WriteRecordsCommandOutput>;
|
|
564
|
-
public writeRecords(args: WriteRecordsCommandInput, cb: (err: any, data?: WriteRecordsCommandOutput) => void): void;
|
|
565
|
-
public writeRecords(
|
|
566
|
-
args: WriteRecordsCommandInput,
|
|
567
|
-
options: __HttpHandlerOptions,
|
|
568
|
-
cb: (err: any, data?: WriteRecordsCommandOutput) => void
|
|
569
|
-
): void;
|
|
570
|
-
public writeRecords(
|
|
571
|
-
args: WriteRecordsCommandInput,
|
|
572
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: WriteRecordsCommandOutput) => void),
|
|
573
|
-
cb?: (err: any, data?: WriteRecordsCommandOutput) => void
|
|
574
|
-
): Promise<WriteRecordsCommandOutput> | void {
|
|
575
|
-
const command = new WriteRecordsCommand(args);
|
|
576
|
-
if (typeof optionsOrCb === "function") {
|
|
577
|
-
this.send(command, optionsOrCb);
|
|
578
|
-
} else if (typeof cb === "function") {
|
|
579
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
580
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
581
|
-
} else {
|
|
582
|
-
return this.send(command, optionsOrCb);
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|