@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.
Files changed (183) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/TimestreamWrite.js +0 -4
  3. package/dist-cjs/TimestreamWriteClient.js +0 -9
  4. package/dist-cjs/commands/CreateDatabaseCommand.js +0 -28
  5. package/dist-cjs/commands/CreateTableCommand.js +0 -32
  6. package/dist-cjs/commands/DeleteDatabaseCommand.js +0 -33
  7. package/dist-cjs/commands/DeleteTableCommand.js +0 -30
  8. package/dist-cjs/commands/DescribeDatabaseCommand.js +0 -27
  9. package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -38
  10. package/dist-cjs/commands/DescribeTableCommand.js +0 -28
  11. package/dist-cjs/commands/ListDatabasesCommand.js +0 -27
  12. package/dist-cjs/commands/ListTablesCommand.js +0 -26
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
  14. package/dist-cjs/commands/TagResourceCommand.js +0 -29
  15. package/dist-cjs/commands/UntagResourceCommand.js +0 -27
  16. package/dist-cjs/commands/UpdateDatabaseCommand.js +0 -29
  17. package/dist-cjs/commands/UpdateTableCommand.js +0 -31
  18. package/dist-cjs/commands/WriteRecordsCommand.js +0 -38
  19. package/dist-cjs/commands/index.js +18 -0
  20. package/dist-cjs/endpoints.js +1 -2
  21. package/dist-cjs/index.js +4 -21
  22. package/dist-cjs/models/index.js +0 -1
  23. package/dist-cjs/models/models_0.js +0 -133
  24. package/dist-cjs/pagination/Interfaces.js +0 -1
  25. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -11
  26. package/dist-cjs/pagination/ListTablesPaginator.js +0 -11
  27. package/dist-cjs/pagination/index.js +6 -0
  28. package/dist-cjs/protocols/Aws_json1_0.js +0 -6
  29. package/dist-cjs/runtimeConfig.browser.js +1 -6
  30. package/dist-cjs/runtimeConfig.js +2 -7
  31. package/dist-cjs/runtimeConfig.native.js +0 -4
  32. package/dist-cjs/runtimeConfig.shared.js +0 -4
  33. package/dist-es/TimestreamWrite.js +0 -1
  34. package/dist-es/TimestreamWriteClient.js +0 -1
  35. package/dist-es/commands/CreateDatabaseCommand.js +0 -1
  36. package/dist-es/commands/CreateTableCommand.js +0 -1
  37. package/dist-es/commands/DeleteDatabaseCommand.js +0 -1
  38. package/dist-es/commands/DeleteTableCommand.js +0 -1
  39. package/dist-es/commands/DescribeDatabaseCommand.js +0 -1
  40. package/dist-es/commands/DescribeEndpointsCommand.js +0 -1
  41. package/dist-es/commands/DescribeTableCommand.js +0 -1
  42. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  43. package/dist-es/commands/ListTablesCommand.js +0 -1
  44. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  45. package/dist-es/commands/TagResourceCommand.js +0 -1
  46. package/dist-es/commands/UntagResourceCommand.js +0 -1
  47. package/dist-es/commands/UpdateDatabaseCommand.js +0 -1
  48. package/dist-es/commands/UpdateTableCommand.js +0 -1
  49. package/dist-es/commands/WriteRecordsCommand.js +0 -1
  50. package/dist-es/commands/index.js +15 -0
  51. package/dist-es/endpoints.js +1 -2
  52. package/dist-es/index.js +4 -21
  53. package/dist-es/models/index.js +0 -1
  54. package/dist-es/models/models_0.js +0 -1
  55. package/dist-es/pagination/Interfaces.js +0 -1
  56. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  57. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  58. package/dist-es/pagination/index.js +3 -0
  59. package/dist-es/protocols/Aws_json1_0.js +0 -1
  60. package/dist-es/runtimeConfig.browser.js +1 -2
  61. package/dist-es/runtimeConfig.js +2 -3
  62. package/dist-es/runtimeConfig.native.js +0 -1
  63. package/dist-es/runtimeConfig.shared.js +0 -1
  64. package/dist-types/commands/index.d.ts +15 -0
  65. package/dist-types/index.d.ts +4 -20
  66. package/dist-types/pagination/index.d.ts +3 -0
  67. package/dist-types/ts3.4/TimestreamWrite.d.ts +16 -123
  68. package/dist-types/ts3.4/TimestreamWriteClient.d.ts +25 -94
  69. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +2 -23
  70. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -27
  71. package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +2 -28
  72. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -25
  73. package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +2 -22
  74. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -33
  75. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -23
  76. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -22
  77. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -21
  78. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -22
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
  80. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -22
  81. package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +2 -24
  82. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -26
  83. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -33
  84. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  85. package/dist-types/ts3.4/index.d.ts +4 -20
  86. package/dist-types/ts3.4/models/models_0.d.ts +137 -581
  87. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  88. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  89. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  90. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  91. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  92. package/package.json +34 -31
  93. package/dist-cjs/TimestreamWrite.js.map +0 -1
  94. package/dist-cjs/TimestreamWriteClient.js.map +0 -1
  95. package/dist-cjs/commands/CreateDatabaseCommand.js.map +0 -1
  96. package/dist-cjs/commands/CreateTableCommand.js.map +0 -1
  97. package/dist-cjs/commands/DeleteDatabaseCommand.js.map +0 -1
  98. package/dist-cjs/commands/DeleteTableCommand.js.map +0 -1
  99. package/dist-cjs/commands/DescribeDatabaseCommand.js.map +0 -1
  100. package/dist-cjs/commands/DescribeEndpointsCommand.js.map +0 -1
  101. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  102. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  103. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  104. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  105. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  106. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  107. package/dist-cjs/commands/UpdateDatabaseCommand.js.map +0 -1
  108. package/dist-cjs/commands/UpdateTableCommand.js.map +0 -1
  109. package/dist-cjs/commands/WriteRecordsCommand.js.map +0 -1
  110. package/dist-cjs/endpoints.js.map +0 -1
  111. package/dist-cjs/index.js.map +0 -1
  112. package/dist-cjs/models/index.js.map +0 -1
  113. package/dist-cjs/models/models_0.js.map +0 -1
  114. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  115. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  116. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  117. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  118. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  119. package/dist-cjs/runtimeConfig.js.map +0 -1
  120. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  121. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  122. package/dist-es/TimestreamWrite.js.map +0 -1
  123. package/dist-es/TimestreamWriteClient.js.map +0 -1
  124. package/dist-es/commands/CreateDatabaseCommand.js.map +0 -1
  125. package/dist-es/commands/CreateTableCommand.js.map +0 -1
  126. package/dist-es/commands/DeleteDatabaseCommand.js.map +0 -1
  127. package/dist-es/commands/DeleteTableCommand.js.map +0 -1
  128. package/dist-es/commands/DescribeDatabaseCommand.js.map +0 -1
  129. package/dist-es/commands/DescribeEndpointsCommand.js.map +0 -1
  130. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  131. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  132. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  133. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  134. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  135. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  136. package/dist-es/commands/UpdateDatabaseCommand.js.map +0 -1
  137. package/dist-es/commands/UpdateTableCommand.js.map +0 -1
  138. package/dist-es/commands/WriteRecordsCommand.js.map +0 -1
  139. package/dist-es/endpoints.js.map +0 -1
  140. package/dist-es/index.js.map +0 -1
  141. package/dist-es/models/index.js.map +0 -1
  142. package/dist-es/models/models_0.js.map +0 -1
  143. package/dist-es/pagination/Interfaces.js.map +0 -1
  144. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  145. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  146. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  147. package/dist-es/runtimeConfig.browser.js.map +0 -1
  148. package/dist-es/runtimeConfig.js.map +0 -1
  149. package/dist-es/runtimeConfig.native.js.map +0 -1
  150. package/dist-es/runtimeConfig.shared.js.map +0 -1
  151. package/jest.config.js +0 -4
  152. package/src/TimestreamWrite.ts +0 -585
  153. package/src/TimestreamWriteClient.ts +0 -305
  154. package/src/commands/CreateDatabaseCommand.ts +0 -102
  155. package/src/commands/CreateTableCommand.ts +0 -106
  156. package/src/commands/DeleteDatabaseCommand.ts +0 -107
  157. package/src/commands/DeleteTableCommand.ts +0 -104
  158. package/src/commands/DescribeDatabaseCommand.ts +0 -101
  159. package/src/commands/DescribeEndpointsCommand.ts +0 -108
  160. package/src/commands/DescribeTableCommand.ts +0 -102
  161. package/src/commands/ListDatabasesCommand.ts +0 -101
  162. package/src/commands/ListTablesCommand.ts +0 -100
  163. package/src/commands/ListTagsForResourceCommand.ts +0 -101
  164. package/src/commands/TagResourceCommand.ts +0 -103
  165. package/src/commands/UntagResourceCommand.ts +0 -101
  166. package/src/commands/UpdateDatabaseCommand.ts +0 -103
  167. package/src/commands/UpdateTableCommand.ts +0 -105
  168. package/src/commands/WriteRecordsCommand.ts +0 -112
  169. package/src/endpoints.ts +0 -57
  170. package/src/index.ts +0 -21
  171. package/src/models/index.ts +0 -1
  172. package/src/models/models_0.ts +0 -1146
  173. package/src/pagination/Interfaces.ts +0 -8
  174. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  175. package/src/pagination/ListTablesPaginator.ts +0 -55
  176. package/src/protocols/Aws_json1_0.ts +0 -2388
  177. package/src/runtimeConfig.browser.ts +0 -42
  178. package/src/runtimeConfig.native.ts +0 -17
  179. package/src/runtimeConfig.shared.ts +0 -17
  180. package/src/runtimeConfig.ts +0 -49
  181. package/tsconfig.es.json +0 -10
  182. package/tsconfig.json +0 -33
  183. package/tsconfig.types.json +0 -9
@@ -1,305 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- EndpointDiscoveryInputConfig,
12
- EndpointDiscoveryResolvedConfig,
13
- resolveEndpointDiscoveryConfig,
14
- } from "@aws-sdk/middleware-endpoint-discovery";
15
- import {
16
- getHostHeaderPlugin,
17
- HostHeaderInputConfig,
18
- HostHeaderResolvedConfig,
19
- resolveHostHeaderConfig,
20
- } from "@aws-sdk/middleware-host-header";
21
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
22
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
23
- import {
24
- AwsAuthInputConfig,
25
- AwsAuthResolvedConfig,
26
- getAwsAuthPlugin,
27
- resolveAwsAuthConfig,
28
- } from "@aws-sdk/middleware-signing";
29
- import {
30
- getUserAgentPlugin,
31
- resolveUserAgentConfig,
32
- UserAgentInputConfig,
33
- UserAgentResolvedConfig,
34
- } from "@aws-sdk/middleware-user-agent";
35
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
36
- import {
37
- Client as __Client,
38
- SmithyConfiguration as __SmithyConfiguration,
39
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
40
- } from "@aws-sdk/smithy-client";
41
- import {
42
- Credentials as __Credentials,
43
- Decoder as __Decoder,
44
- Encoder as __Encoder,
45
- Hash as __Hash,
46
- HashConstructor as __HashConstructor,
47
- HttpHandlerOptions as __HttpHandlerOptions,
48
- Logger as __Logger,
49
- Provider as __Provider,
50
- Provider,
51
- RegionInfoProvider,
52
- StreamCollector as __StreamCollector,
53
- UrlParser as __UrlParser,
54
- UserAgent as __UserAgent,
55
- } from "@aws-sdk/types";
56
-
57
- import { CreateDatabaseCommandInput, CreateDatabaseCommandOutput } from "./commands/CreateDatabaseCommand";
58
- import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
59
- import { DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput } from "./commands/DeleteDatabaseCommand";
60
- import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
61
- import { DescribeDatabaseCommandInput, DescribeDatabaseCommandOutput } from "./commands/DescribeDatabaseCommand";
62
- import {
63
- DescribeEndpointsCommand,
64
- DescribeEndpointsCommandInput,
65
- DescribeEndpointsCommandOutput,
66
- } from "./commands/DescribeEndpointsCommand";
67
- import { DescribeTableCommandInput, DescribeTableCommandOutput } from "./commands/DescribeTableCommand";
68
- import { ListDatabasesCommandInput, ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
69
- import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
70
- import {
71
- ListTagsForResourceCommandInput,
72
- ListTagsForResourceCommandOutput,
73
- } from "./commands/ListTagsForResourceCommand";
74
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
75
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
76
- import { UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput } from "./commands/UpdateDatabaseCommand";
77
- import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
78
- import { WriteRecordsCommandInput, WriteRecordsCommandOutput } from "./commands/WriteRecordsCommand";
79
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
80
-
81
- export type ServiceInputTypes =
82
- | CreateDatabaseCommandInput
83
- | CreateTableCommandInput
84
- | DeleteDatabaseCommandInput
85
- | DeleteTableCommandInput
86
- | DescribeDatabaseCommandInput
87
- | DescribeEndpointsCommandInput
88
- | DescribeTableCommandInput
89
- | ListDatabasesCommandInput
90
- | ListTablesCommandInput
91
- | ListTagsForResourceCommandInput
92
- | TagResourceCommandInput
93
- | UntagResourceCommandInput
94
- | UpdateDatabaseCommandInput
95
- | UpdateTableCommandInput
96
- | WriteRecordsCommandInput;
97
-
98
- export type ServiceOutputTypes =
99
- | CreateDatabaseCommandOutput
100
- | CreateTableCommandOutput
101
- | DeleteDatabaseCommandOutput
102
- | DeleteTableCommandOutput
103
- | DescribeDatabaseCommandOutput
104
- | DescribeEndpointsCommandOutput
105
- | DescribeTableCommandOutput
106
- | ListDatabasesCommandOutput
107
- | ListTablesCommandOutput
108
- | ListTagsForResourceCommandOutput
109
- | TagResourceCommandOutput
110
- | UntagResourceCommandOutput
111
- | UpdateDatabaseCommandOutput
112
- | UpdateTableCommandOutput
113
- | WriteRecordsCommandOutput;
114
-
115
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
116
- /**
117
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
118
- */
119
- requestHandler?: __HttpHandler;
120
-
121
- /**
122
- * A constructor for a class implementing the {@link __Hash} interface
123
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
124
- * @internal
125
- */
126
- sha256?: __HashConstructor;
127
-
128
- /**
129
- * The function that will be used to convert strings into HTTP endpoints.
130
- * @internal
131
- */
132
- urlParser?: __UrlParser;
133
-
134
- /**
135
- * A function that can calculate the length of a request body.
136
- * @internal
137
- */
138
- bodyLengthChecker?: (body: any) => number | undefined;
139
-
140
- /**
141
- * A function that converts a stream into an array of bytes.
142
- * @internal
143
- */
144
- streamCollector?: __StreamCollector;
145
-
146
- /**
147
- * The function that will be used to convert a base64-encoded string to a byte array.
148
- * @internal
149
- */
150
- base64Decoder?: __Decoder;
151
-
152
- /**
153
- * The function that will be used to convert binary data to a base64-encoded string.
154
- * @internal
155
- */
156
- base64Encoder?: __Encoder;
157
-
158
- /**
159
- * The function that will be used to convert a UTF8-encoded string to a byte array.
160
- * @internal
161
- */
162
- utf8Decoder?: __Decoder;
163
-
164
- /**
165
- * The function that will be used to convert binary data to a UTF-8 encoded string.
166
- * @internal
167
- */
168
- utf8Encoder?: __Encoder;
169
-
170
- /**
171
- * The runtime environment.
172
- * @internal
173
- */
174
- runtime?: string;
175
-
176
- /**
177
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
178
- * trait of an operation.
179
- */
180
- disableHostPrefix?: boolean;
181
-
182
- /**
183
- * Value for how many times a request will be made at most in case of retry.
184
- */
185
- maxAttempts?: number | __Provider<number>;
186
-
187
- /**
188
- * Specifies which retry algorithm to use.
189
- */
190
- retryMode?: string | __Provider<string>;
191
-
192
- /**
193
- * Optional logger for logging debug/info/warn/error.
194
- */
195
- logger?: __Logger;
196
-
197
- /**
198
- * Unique service identifier.
199
- * @internal
200
- */
201
- serviceId?: string;
202
-
203
- /**
204
- * The AWS region to which this client will send requests
205
- */
206
- region?: string | __Provider<string>;
207
-
208
- /**
209
- * Default credentials provider; Not available in browser runtime.
210
- * @internal
211
- */
212
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
213
-
214
- /**
215
- * Fetch related hostname, signing name or signing region with given region.
216
- * @internal
217
- */
218
- regionInfoProvider?: RegionInfoProvider;
219
-
220
- /**
221
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
222
- * @internal
223
- */
224
- defaultUserAgentProvider?: Provider<__UserAgent>;
225
-
226
- /**
227
- * The provider which populates default for endpointDiscoveryEnabled configuration, if it's
228
- * not passed during client creation.
229
- * @internal
230
- */
231
- endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
232
- }
233
-
234
- type TimestreamWriteClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
235
- ClientDefaults &
236
- RegionInputConfig &
237
- EndpointsInputConfig &
238
- RetryInputConfig &
239
- HostHeaderInputConfig &
240
- AwsAuthInputConfig &
241
- UserAgentInputConfig &
242
- EndpointDiscoveryInputConfig;
243
- /**
244
- * The configuration interface of TimestreamWriteClient class constructor that set the region, credentials and other options.
245
- */
246
- export interface TimestreamWriteClientConfig extends TimestreamWriteClientConfigType {}
247
-
248
- type TimestreamWriteClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
249
- Required<ClientDefaults> &
250
- RegionResolvedConfig &
251
- EndpointsResolvedConfig &
252
- RetryResolvedConfig &
253
- HostHeaderResolvedConfig &
254
- AwsAuthResolvedConfig &
255
- UserAgentResolvedConfig &
256
- EndpointDiscoveryResolvedConfig;
257
- /**
258
- * The resolved configuration interface of TimestreamWriteClient class. This is resolved and normalized from the {@link TimestreamWriteClientConfig | constructor configuration interface}.
259
- */
260
- export interface TimestreamWriteClientResolvedConfig extends TimestreamWriteClientResolvedConfigType {}
261
-
262
- /**
263
- * <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>
264
- */
265
- export class TimestreamWriteClient extends __Client<
266
- __HttpHandlerOptions,
267
- ServiceInputTypes,
268
- ServiceOutputTypes,
269
- TimestreamWriteClientResolvedConfig
270
- > {
271
- /**
272
- * The resolved configuration of TimestreamWriteClient class. This is resolved and normalized from the {@link TimestreamWriteClientConfig | constructor configuration interface}.
273
- */
274
- readonly config: TimestreamWriteClientResolvedConfig;
275
-
276
- constructor(configuration: TimestreamWriteClientConfig) {
277
- const _config_0 = __getRuntimeConfig(configuration);
278
- const _config_1 = resolveRegionConfig(_config_0);
279
- const _config_2 = resolveEndpointsConfig(_config_1);
280
- const _config_3 = resolveRetryConfig(_config_2);
281
- const _config_4 = resolveHostHeaderConfig(_config_3);
282
- const _config_5 = resolveAwsAuthConfig(_config_4);
283
- const _config_6 = resolveUserAgentConfig(_config_5);
284
- const _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
285
- endpointDiscoveryCommandCtor: DescribeEndpointsCommand,
286
- });
287
- super(_config_7);
288
- this.config = _config_7;
289
- this.middlewareStack.use(getRetryPlugin(this.config));
290
- this.middlewareStack.use(getContentLengthPlugin(this.config));
291
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
292
- this.middlewareStack.use(getLoggerPlugin(this.config));
293
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
294
- this.middlewareStack.use(getUserAgentPlugin(this.config));
295
- }
296
-
297
- /**
298
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
299
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
300
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
301
- */
302
- destroy(): void {
303
- super.destroy();
304
- }
305
- }
@@ -1,102 +0,0 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
- import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import {
6
- FinalizeHandlerArguments,
7
- Handler,
8
- HandlerExecutionContext,
9
- HttpHandlerOptions as __HttpHandlerOptions,
10
- MetadataBearer as __MetadataBearer,
11
- MiddlewareStack,
12
- SerdeContext as __SerdeContext,
13
- } from "@aws-sdk/types";
14
-
15
- import { CreateDatabaseRequest, CreateDatabaseResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0CreateDatabaseCommand,
18
- serializeAws_json1_0CreateDatabaseCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface CreateDatabaseCommandInput extends CreateDatabaseRequest {}
23
- export interface CreateDatabaseCommandOutput extends CreateDatabaseResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <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.
27
- * 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.
28
- * 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.
29
- * </p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { TimestreamWriteClient, CreateDatabaseCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
34
- * // const { TimestreamWriteClient, CreateDatabaseCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
35
- * const client = new TimestreamWriteClient(config);
36
- * const command = new CreateDatabaseCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link CreateDatabaseCommandInput} for command's `input` shape.
41
- * @see {@link CreateDatabaseCommandOutput} for command's `response` shape.
42
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class CreateDatabaseCommand extends $Command<
46
- CreateDatabaseCommandInput,
47
- CreateDatabaseCommandOutput,
48
- TimestreamWriteClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: CreateDatabaseCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: TimestreamWriteClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<CreateDatabaseCommandInput, CreateDatabaseCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
- this.middlewareStack.use(
69
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
70
- );
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "TimestreamWriteClient";
76
- const commandName = "CreateDatabaseCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: CreateDatabaseRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: CreateDatabaseResponse.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: CreateDatabaseCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_json1_0CreateDatabaseCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDatabaseCommandOutput> {
97
- return deserializeAws_json1_0CreateDatabaseCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,106 +0,0 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
- import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import {
6
- FinalizeHandlerArguments,
7
- Handler,
8
- HandlerExecutionContext,
9
- HttpHandlerOptions as __HttpHandlerOptions,
10
- MetadataBearer as __MetadataBearer,
11
- MiddlewareStack,
12
- SerdeContext as __SerdeContext,
13
- } from "@aws-sdk/types";
14
-
15
- import { CreateTableRequest, CreateTableResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0CreateTableCommand,
18
- serializeAws_json1_0CreateTableCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface CreateTableCommandInput extends CreateTableRequest {}
23
- export interface CreateTableCommandOutput extends CreateTableResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <p>The CreateTable operation adds a new table to an existing database in your account. In an AWS account,
27
- * table names must be at least unique within each Region if they are in the same database.
28
- * You may have identical table names in the same Region if the tables are in seperate databases.
29
- * While creating the table, you must specify the table name, database name,
30
- * and the retention properties.
31
- * Service quotas apply. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a>
32
- * in the Timestream Developer Guide.
33
- * </p>
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { TimestreamWriteClient, CreateTableCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
38
- * // const { TimestreamWriteClient, CreateTableCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
39
- * const client = new TimestreamWriteClient(config);
40
- * const command = new CreateTableCommand(input);
41
- * const response = await client.send(command);
42
- * ```
43
- *
44
- * @see {@link CreateTableCommandInput} for command's `input` shape.
45
- * @see {@link CreateTableCommandOutput} for command's `response` shape.
46
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
47
- *
48
- */
49
- export class CreateTableCommand extends $Command<
50
- CreateTableCommandInput,
51
- CreateTableCommandOutput,
52
- TimestreamWriteClientResolvedConfig
53
- > {
54
- // Start section: command_properties
55
- // End section: command_properties
56
-
57
- constructor(readonly input: CreateTableCommandInput) {
58
- // Start section: command_constructor
59
- super();
60
- // End section: command_constructor
61
- }
62
-
63
- /**
64
- * @internal
65
- */
66
- resolveMiddleware(
67
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
- configuration: TimestreamWriteClientResolvedConfig,
69
- options?: __HttpHandlerOptions
70
- ): Handler<CreateTableCommandInput, CreateTableCommandOutput> {
71
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
- this.middlewareStack.use(
73
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
74
- );
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "TimestreamWriteClient";
80
- const commandName = "CreateTableCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: CreateTableRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: CreateTableResponse.filterSensitiveLog,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(input: CreateTableCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
97
- return serializeAws_json1_0CreateTableCommand(input, context);
98
- }
99
-
100
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateTableCommandOutput> {
101
- return deserializeAws_json1_0CreateTableCommand(output, context);
102
- }
103
-
104
- // Start section: command_body_extra
105
- // End section: command_body_extra
106
- }
@@ -1,107 +0,0 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
- import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import {
6
- FinalizeHandlerArguments,
7
- Handler,
8
- HandlerExecutionContext,
9
- HttpHandlerOptions as __HttpHandlerOptions,
10
- MetadataBearer as __MetadataBearer,
11
- MiddlewareStack,
12
- SerdeContext as __SerdeContext,
13
- } from "@aws-sdk/types";
14
-
15
- import { DeleteDatabaseRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0DeleteDatabaseCommand,
18
- serializeAws_json1_0DeleteDatabaseCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface DeleteDatabaseCommandInput extends DeleteDatabaseRequest {}
23
- export interface DeleteDatabaseCommandOutput extends __MetadataBearer {}
24
-
25
- /**
26
- * <p>Deletes a given Timestream database. <i>This is an irreversible operation.
27
- * After a database is deleted, the time series data from its tables cannot be recovered.</i>
28
- * </p>
29
- *
30
- * <p>All tables in the database must be deleted first, or a ValidationException error will be thrown.
31
- * </p>
32
- *
33
- * <p>Due to the nature of distributed retries,
34
- * the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { TimestreamWriteClient, DeleteDatabaseCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
39
- * // const { TimestreamWriteClient, DeleteDatabaseCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
40
- * const client = new TimestreamWriteClient(config);
41
- * const command = new DeleteDatabaseCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link DeleteDatabaseCommandInput} for command's `input` shape.
46
- * @see {@link DeleteDatabaseCommandOutput} for command's `response` shape.
47
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
- export class DeleteDatabaseCommand extends $Command<
51
- DeleteDatabaseCommandInput,
52
- DeleteDatabaseCommandOutput,
53
- TimestreamWriteClientResolvedConfig
54
- > {
55
- // Start section: command_properties
56
- // End section: command_properties
57
-
58
- constructor(readonly input: DeleteDatabaseCommandInput) {
59
- // Start section: command_constructor
60
- super();
61
- // End section: command_constructor
62
- }
63
-
64
- /**
65
- * @internal
66
- */
67
- resolveMiddleware(
68
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
69
- configuration: TimestreamWriteClientResolvedConfig,
70
- options?: __HttpHandlerOptions
71
- ): Handler<DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput> {
72
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
73
- this.middlewareStack.use(
74
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
75
- );
76
-
77
- const stack = clientStack.concat(this.middlewareStack);
78
-
79
- const { logger } = configuration;
80
- const clientName = "TimestreamWriteClient";
81
- const commandName = "DeleteDatabaseCommand";
82
- const handlerExecutionContext: HandlerExecutionContext = {
83
- logger,
84
- clientName,
85
- commandName,
86
- inputFilterSensitiveLog: DeleteDatabaseRequest.filterSensitiveLog,
87
- outputFilterSensitiveLog: (output: any) => output,
88
- };
89
- const { requestHandler } = configuration;
90
- return stack.resolve(
91
- (request: FinalizeHandlerArguments<any>) =>
92
- requestHandler.handle(request.request as __HttpRequest, options || {}),
93
- handlerExecutionContext
94
- );
95
- }
96
-
97
- private serialize(input: DeleteDatabaseCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
98
- return serializeAws_json1_0DeleteDatabaseCommand(input, context);
99
- }
100
-
101
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteDatabaseCommandOutput> {
102
- return deserializeAws_json1_0DeleteDatabaseCommand(output, context);
103
- }
104
-
105
- // Start section: command_body_extra
106
- // End section: command_body_extra
107
- }