@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,101 +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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0ListTagsForResourceCommand,
18
- serializeAws_json1_0ListTagsForResourceCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
23
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <p>
27
- * List all tags on a Timestream resource.
28
- * </p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { TimestreamWriteClient, ListTagsForResourceCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
33
- * // const { TimestreamWriteClient, ListTagsForResourceCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
34
- * const client = new TimestreamWriteClient(config);
35
- * const command = new ListTagsForResourceCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
40
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
41
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class ListTagsForResourceCommand extends $Command<
45
- ListTagsForResourceCommandInput,
46
- ListTagsForResourceCommandOutput,
47
- TimestreamWriteClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: ListTagsForResourceCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: TimestreamWriteClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
- this.middlewareStack.use(
68
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
69
- );
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "TimestreamWriteClient";
75
- const commandName = "ListTagsForResourceCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_0ListTagsForResourceCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
96
- return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,103 +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 { TagResourceRequest, TagResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0TagResourceCommand,
18
- serializeAws_json1_0TagResourceCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface TagResourceCommandInput extends TagResourceRequest {}
23
- export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <p>
27
- * Associate a set of tags with a Timestream resource. You can then activate
28
- * these user-defined tags so that they appear on the Billing and Cost
29
- * Management console for cost allocation tracking.
30
- * </p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { TimestreamWriteClient, TagResourceCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
35
- * // const { TimestreamWriteClient, TagResourceCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
36
- * const client = new TimestreamWriteClient(config);
37
- * const command = new TagResourceCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link TagResourceCommandInput} for command's `input` shape.
42
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
43
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class TagResourceCommand extends $Command<
47
- TagResourceCommandInput,
48
- TagResourceCommandOutput,
49
- TimestreamWriteClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: TagResourceCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: TimestreamWriteClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
- this.middlewareStack.use(
70
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
71
- );
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "TimestreamWriteClient";
77
- const commandName = "TagResourceCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
83
- outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
94
- return serializeAws_json1_0TagResourceCommand(input, context);
95
- }
96
-
97
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
98
- return deserializeAws_json1_0TagResourceCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,101 +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 { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0UntagResourceCommand,
18
- serializeAws_json1_0UntagResourceCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface UntagResourceCommandInput extends UntagResourceRequest {}
23
- export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <p>
27
- * Removes the association of tags from a Timestream resource.
28
- * </p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { TimestreamWriteClient, UntagResourceCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
33
- * // const { TimestreamWriteClient, UntagResourceCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
34
- * const client = new TimestreamWriteClient(config);
35
- * const command = new UntagResourceCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
40
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
41
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class UntagResourceCommand extends $Command<
45
- UntagResourceCommandInput,
46
- UntagResourceCommandOutput,
47
- TimestreamWriteClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: UntagResourceCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: TimestreamWriteClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
- this.middlewareStack.use(
68
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
69
- );
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "TimestreamWriteClient";
75
- const commandName = "UntagResourceCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_0UntagResourceCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
96
- return deserializeAws_json1_0UntagResourceCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,103 +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 { UpdateDatabaseRequest, UpdateDatabaseResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0UpdateDatabaseCommand,
18
- serializeAws_json1_0UpdateDatabaseCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface UpdateDatabaseCommandInput extends UpdateDatabaseRequest {}
23
- export interface UpdateDatabaseCommandOutput extends UpdateDatabaseResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <p>
27
- * Modifies the KMS key for an existing database. While updating the database,
28
- * you must specify the database name and the identifier of the new KMS key to be used (<code>KmsKeyId</code>).
29
- * If there are any concurrent <code>UpdateDatabase</code> requests, first writer wins.
30
- * </p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { TimestreamWriteClient, UpdateDatabaseCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
35
- * // const { TimestreamWriteClient, UpdateDatabaseCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
36
- * const client = new TimestreamWriteClient(config);
37
- * const command = new UpdateDatabaseCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link UpdateDatabaseCommandInput} for command's `input` shape.
42
- * @see {@link UpdateDatabaseCommandOutput} for command's `response` shape.
43
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class UpdateDatabaseCommand extends $Command<
47
- UpdateDatabaseCommandInput,
48
- UpdateDatabaseCommandOutput,
49
- TimestreamWriteClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: UpdateDatabaseCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: TimestreamWriteClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
- this.middlewareStack.use(
70
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
71
- );
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "TimestreamWriteClient";
77
- const commandName = "UpdateDatabaseCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: UpdateDatabaseRequest.filterSensitiveLog,
83
- outputFilterSensitiveLog: UpdateDatabaseResponse.filterSensitiveLog,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(input: UpdateDatabaseCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
94
- return serializeAws_json1_0UpdateDatabaseCommand(input, context);
95
- }
96
-
97
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDatabaseCommandOutput> {
98
- return deserializeAws_json1_0UpdateDatabaseCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,105 +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 { UpdateTableRequest, UpdateTableResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0UpdateTableCommand,
18
- serializeAws_json1_0UpdateTableCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface UpdateTableCommandInput extends UpdateTableRequest {}
23
- export interface UpdateTableCommandOutput extends UpdateTableResponse, __MetadataBearer {}
24
-
25
- /**
26
- * <p>Modifies the retention duration of the memory store and magnetic store for your Timestream table.
27
- * Note that the change in retention duration takes effect immediately.
28
- * For example, if the retention period of the memory store was initially set to 2 hours and then changed to 24 hours,
29
- * the memory store will be capable of holding 24 hours of data, but will
30
- * be populated with 24 hours of data 22 hours after this change was made.
31
- * Timestream does not retrieve data from the magnetic store to populate the memory store. </p>
32
- * <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>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { TimestreamWriteClient, UpdateTableCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
37
- * // const { TimestreamWriteClient, UpdateTableCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
38
- * const client = new TimestreamWriteClient(config);
39
- * const command = new UpdateTableCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link UpdateTableCommandInput} for command's `input` shape.
44
- * @see {@link UpdateTableCommandOutput} for command's `response` shape.
45
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class UpdateTableCommand extends $Command<
49
- UpdateTableCommandInput,
50
- UpdateTableCommandOutput,
51
- TimestreamWriteClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: UpdateTableCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: TimestreamWriteClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<UpdateTableCommandInput, UpdateTableCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
- this.middlewareStack.use(
72
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
73
- );
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "TimestreamWriteClient";
79
- const commandName = "UpdateTableCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: UpdateTableRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: UpdateTableResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: UpdateTableCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_0UpdateTableCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateTableCommandOutput> {
100
- return deserializeAws_json1_0UpdateTableCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,112 +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 { WriteRecordsRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0WriteRecordsCommand,
18
- serializeAws_json1_0WriteRecordsCommand,
19
- } from "../protocols/Aws_json1_0";
20
- import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
21
-
22
- export interface WriteRecordsCommandInput extends WriteRecordsRequest {}
23
- export interface WriteRecordsCommandOutput extends __MetadataBearer {}
24
-
25
- /**
26
- * <p>The WriteRecords operation enables you to write your time series
27
- * data into Timestream. You can specify a single data point or a batch
28
- * of data points to be inserted into the system. Timestream offers you
29
- * with a flexible schema that auto detects the column names and data types
30
- * for your Timestream tables based on the dimension names and data types of
31
- * the data points you specify when invoking writes into the database.
32
- * Timestream support eventual consistency read semantics. This means that
33
- * when you query data immediately after writing a batch of data into Timestream,
34
- * the query results might not reflect the results of a recently completed write
35
- * operation. The results may also include some stale data. If you repeat the
36
- * query request after a short time, the results should return the latest data.
37
- * Service quotas apply. For more information,
38
- * see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
39
- * </p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { TimestreamWriteClient, WriteRecordsCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
44
- * // const { TimestreamWriteClient, WriteRecordsCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
45
- * const client = new TimestreamWriteClient(config);
46
- * const command = new WriteRecordsCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link WriteRecordsCommandInput} for command's `input` shape.
51
- * @see {@link WriteRecordsCommandOutput} for command's `response` shape.
52
- * @see {@link TimestreamWriteClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class WriteRecordsCommand extends $Command<
56
- WriteRecordsCommandInput,
57
- WriteRecordsCommandOutput,
58
- TimestreamWriteClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: WriteRecordsCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: TimestreamWriteClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<WriteRecordsCommandInput, WriteRecordsCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
- this.middlewareStack.use(
79
- getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true })
80
- );
81
-
82
- const stack = clientStack.concat(this.middlewareStack);
83
-
84
- const { logger } = configuration;
85
- const clientName = "TimestreamWriteClient";
86
- const commandName = "WriteRecordsCommand";
87
- const handlerExecutionContext: HandlerExecutionContext = {
88
- logger,
89
- clientName,
90
- commandName,
91
- inputFilterSensitiveLog: WriteRecordsRequest.filterSensitiveLog,
92
- outputFilterSensitiveLog: (output: any) => output,
93
- };
94
- const { requestHandler } = configuration;
95
- return stack.resolve(
96
- (request: FinalizeHandlerArguments<any>) =>
97
- requestHandler.handle(request.request as __HttpRequest, options || {}),
98
- handlerExecutionContext
99
- );
100
- }
101
-
102
- private serialize(input: WriteRecordsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
103
- return serializeAws_json1_0WriteRecordsCommand(input, context);
104
- }
105
-
106
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<WriteRecordsCommandOutput> {
107
- return deserializeAws_json1_0WriteRecordsCommand(output, context);
108
- }
109
-
110
- // Start section: command_body_extra
111
- // End section: command_body_extra
112
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "ingest.timestream.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "ingest.timestream.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "ingest.timestream.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "ingest.timestream.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "ingest.timestream.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "timestream",
55
- regionHash,
56
- partitionHash,
57
- });