From 0ca0d28e7b08de8c540e315d7e77a47cd6fc9fe9 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 14 Mar 2024 18:15:00 +0000 Subject: [PATCH] feat(client-timestream-influxdb): This is the initial SDK release for Amazon Timestream for InfluxDB. Amazon Timestream for InfluxDB is a new time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open source APIs. --- clients/client-timestream-influxdb/.gitignore | 9 + clients/client-timestream-influxdb/LICENSE | 201 ++ clients/client-timestream-influxdb/README.md | 293 ++ .../api-extractor.json | 4 + .../client-timestream-influxdb/package.json | 101 + .../src/TimestreamInfluxDB.ts | 245 ++ .../src/TimestreamInfluxDBClient.ts | 352 ++ .../auth/httpAuthExtensionConfiguration.ts | 72 + .../src/auth/httpAuthSchemeProvider.ts | 140 + .../src/commands/CreateDbInstanceCommand.ts | 160 + .../commands/CreateDbParameterGroupCommand.ts | 135 + .../src/commands/DeleteDbInstanceCommand.ts | 128 + .../src/commands/GetDbInstanceCommand.ts | 125 + .../commands/GetDbParameterGroupCommand.ts | 114 + .../src/commands/ListDbInstancesCommand.ts | 114 + .../commands/ListDbParameterGroupsCommand.ts | 109 + .../commands/ListTagsForResourceCommand.ts | 90 + .../src/commands/TagResourceCommand.ts | 89 + .../src/commands/UntagResourceCommand.ts | 89 + .../src/commands/UpdateDbInstanceCommand.ts | 135 + .../src/commands/index.ts | 12 + .../src/endpoint/EndpointParameters.ts | 41 + .../src/endpoint/endpointResolver.ts | 16 + .../src/endpoint/ruleset.ts | 32 + .../src/extensionConfiguration.ts | 15 + .../client-timestream-influxdb/src/index.ts | 19 + .../TimestreamInfluxDBServiceException.ts | 22 + .../src/models/index.ts | 2 + .../src/models/models_0.ts | 1336 ++++++++ .../src/pagination/Interfaces.ts | 11 + .../pagination/ListDbInstancesPaginator.ts | 24 + .../ListDbParameterGroupsPaginator.ts | 24 + .../src/pagination/index.ts | 4 + .../src/protocols/Aws_json1_0.ts | 701 ++++ .../src/runtimeConfig.browser.ts | 44 + .../src/runtimeConfig.native.ts | 18 + .../src/runtimeConfig.shared.ts | 38 + .../src/runtimeConfig.ts | 59 + .../src/runtimeExtensions.ts | 48 + .../tsconfig.cjs.json | 6 + .../tsconfig.es.json | 8 + .../client-timestream-influxdb/tsconfig.json | 13 + .../tsconfig.types.json | 10 + .../aws-models/timestream-influxdb.json | 2849 +++++++++++++++++ 44 files changed, 8057 insertions(+) create mode 100644 clients/client-timestream-influxdb/.gitignore create mode 100644 clients/client-timestream-influxdb/LICENSE create mode 100644 clients/client-timestream-influxdb/README.md create mode 100644 clients/client-timestream-influxdb/api-extractor.json create mode 100644 clients/client-timestream-influxdb/package.json create mode 100644 clients/client-timestream-influxdb/src/TimestreamInfluxDB.ts create mode 100644 clients/client-timestream-influxdb/src/TimestreamInfluxDBClient.ts create mode 100644 clients/client-timestream-influxdb/src/auth/httpAuthExtensionConfiguration.ts create mode 100644 clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts create mode 100644 clients/client-timestream-influxdb/src/commands/CreateDbInstanceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/CreateDbParameterGroupCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/DeleteDbInstanceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/GetDbInstanceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/GetDbParameterGroupCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/ListDbInstancesCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/ListDbParameterGroupsCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/ListTagsForResourceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/TagResourceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/UntagResourceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/UpdateDbInstanceCommand.ts create mode 100644 clients/client-timestream-influxdb/src/commands/index.ts create mode 100644 clients/client-timestream-influxdb/src/endpoint/EndpointParameters.ts create mode 100644 clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts create mode 100644 clients/client-timestream-influxdb/src/endpoint/ruleset.ts create mode 100644 clients/client-timestream-influxdb/src/extensionConfiguration.ts create mode 100644 clients/client-timestream-influxdb/src/index.ts create mode 100644 clients/client-timestream-influxdb/src/models/TimestreamInfluxDBServiceException.ts create mode 100644 clients/client-timestream-influxdb/src/models/index.ts create mode 100644 clients/client-timestream-influxdb/src/models/models_0.ts create mode 100644 clients/client-timestream-influxdb/src/pagination/Interfaces.ts create mode 100644 clients/client-timestream-influxdb/src/pagination/ListDbInstancesPaginator.ts create mode 100644 clients/client-timestream-influxdb/src/pagination/ListDbParameterGroupsPaginator.ts create mode 100644 clients/client-timestream-influxdb/src/pagination/index.ts create mode 100644 clients/client-timestream-influxdb/src/protocols/Aws_json1_0.ts create mode 100644 clients/client-timestream-influxdb/src/runtimeConfig.browser.ts create mode 100644 clients/client-timestream-influxdb/src/runtimeConfig.native.ts create mode 100644 clients/client-timestream-influxdb/src/runtimeConfig.shared.ts create mode 100644 clients/client-timestream-influxdb/src/runtimeConfig.ts create mode 100644 clients/client-timestream-influxdb/src/runtimeExtensions.ts create mode 100644 clients/client-timestream-influxdb/tsconfig.cjs.json create mode 100644 clients/client-timestream-influxdb/tsconfig.es.json create mode 100644 clients/client-timestream-influxdb/tsconfig.json create mode 100644 clients/client-timestream-influxdb/tsconfig.types.json create mode 100644 codegen/sdk-codegen/aws-models/timestream-influxdb.json diff --git a/clients/client-timestream-influxdb/.gitignore b/clients/client-timestream-influxdb/.gitignore new file mode 100644 index 000000000000..54f14c9aef25 --- /dev/null +++ b/clients/client-timestream-influxdb/.gitignore @@ -0,0 +1,9 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +/dist-* +*.tsbuildinfo +*.tgz +*.log +package-lock.json diff --git a/clients/client-timestream-influxdb/LICENSE b/clients/client-timestream-influxdb/LICENSE new file mode 100644 index 000000000000..1349aa7c9923 --- /dev/null +++ b/clients/client-timestream-influxdb/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/clients/client-timestream-influxdb/README.md b/clients/client-timestream-influxdb/README.md new file mode 100644 index 000000000000..581816ce259b --- /dev/null +++ b/clients/client-timestream-influxdb/README.md @@ -0,0 +1,293 @@ + + +# @aws-sdk/client-timestream-influxdb + +## Description + +AWS SDK for JavaScript TimestreamInfluxDB Client for Node.js, Browser and React Native. + +

Amazon Timestream for InfluxDB is a managed time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open-source APIs. With Amazon Timestream for InfluxDB, it is easy to set up, operate, and scale time-series workloads that can answer queries with single-digit millisecond query response time.

+ +## Installing + +To install the this package, simply type add or install @aws-sdk/client-timestream-influxdb +using your favorite package manager: + +- `npm install @aws-sdk/client-timestream-influxdb` +- `yarn add @aws-sdk/client-timestream-influxdb` +- `pnpm add @aws-sdk/client-timestream-influxdb` + +## Getting Started + +### Import + +The AWS SDK is modulized by clients and commands. +To send a request, you only need to import the `TimestreamInfluxDBClient` and +the commands you need, for example `ListDbInstancesCommand`: + +```js +// ES5 example +const { TimestreamInfluxDBClient, ListDbInstancesCommand } = require("@aws-sdk/client-timestream-influxdb"); +``` + +```ts +// ES6+ example +import { TimestreamInfluxDBClient, ListDbInstancesCommand } from "@aws-sdk/client-timestream-influxdb"; +``` + +### Usage + +To send a request, you: + +- Initiate client with configuration (e.g. credentials, region). +- Initiate command with input parameters. +- Call `send` operation on client with command object as input. +- If you are using a custom http handler, you may call `destroy()` to close open connections. + +```js +// a client can be shared by different commands. +const client = new TimestreamInfluxDBClient({ region: "REGION" }); + +const params = { + /** input parameters */ +}; +const command = new ListDbInstancesCommand(params); +``` + +#### Async/await + +We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) +operator to wait for the promise returned by send operation as follows: + +```js +// async/await. +try { + const data = await client.send(command); + // process data. +} catch (error) { + // error handling. +} finally { + // finally. +} +``` + +Async-await is clean, concise, intuitive, easy to debug and has better error handling +as compared to using Promise chains or callbacks. + +#### Promises + +You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) +to execute send operation. + +```js +client.send(command).then( + (data) => { + // process data. + }, + (error) => { + // error handling. + } +); +``` + +Promises can also be called using `.catch()` and `.finally()` as follows: + +```js +client + .send(command) + .then((data) => { + // process data. + }) + .catch((error) => { + // error handling. + }) + .finally(() => { + // finally. + }); +``` + +#### Callbacks + +We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), +but they are supported by the send operation. + +```js +// callbacks. +client.send(command, (err, data) => { + // process err and data. +}); +``` + +#### v2 compatible style + +The client can also send requests using v2 compatible style. +However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post +on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) + +```ts +import * as AWS from "@aws-sdk/client-timestream-influxdb"; +const client = new AWS.TimestreamInfluxDB({ region: "REGION" }); + +// async/await. +try { + const data = await client.listDbInstances(params); + // process data. +} catch (error) { + // error handling. +} + +// Promises. +client + .listDbInstances(params) + .then((data) => { + // process data. + }) + .catch((error) => { + // error handling. + }); + +// callbacks. +client.listDbInstances(params, (err, data) => { + // process err and data. +}); +``` + +### Troubleshooting + +When the service returns an exception, the error will include the exception information, +as well as response metadata (e.g. request id). + +```js +try { + const data = await client.send(command); + // process data. +} catch (error) { + const { requestId, cfId, extendedRequestId } = error.$metadata; + console.log({ requestId, cfId, extendedRequestId }); + /** + * The keys within exceptions are also parsed. + * You can access them by specifying exception names: + * if (error.name === 'SomeServiceException') { + * const value = error.specialKeyInException; + * } + */ +} +``` + +## Getting Help + +Please use these community resources for getting help. +We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. + +- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) + or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). +- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) + on AWS Developer Blog. +- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. +- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). +- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). + +To test your universal JavaScript code in Node.js, browser and react-native environments, +visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). + +## Contributing + +This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-timestream-influxdb` package is updated. +To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). + +## License + +This SDK is distributed under the +[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), +see LICENSE for more information. + +## Client Commands (Operations List) + +
+ +CreateDbInstance + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/CreateDbInstanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/CreateDbInstanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/CreateDbInstanceCommandOutput/) + +
+
+ +CreateDbParameterGroup + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/CreateDbParameterGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/CreateDbParameterGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/CreateDbParameterGroupCommandOutput/) + +
+
+ +DeleteDbInstance + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/DeleteDbInstanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/DeleteDbInstanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/DeleteDbInstanceCommandOutput/) + +
+
+ +GetDbInstance + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/GetDbInstanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/GetDbInstanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/GetDbInstanceCommandOutput/) + +
+
+ +GetDbParameterGroup + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/GetDbParameterGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/GetDbParameterGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/GetDbParameterGroupCommandOutput/) + +
+
+ +ListDbInstances + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/ListDbInstancesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/ListDbInstancesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/ListDbInstancesCommandOutput/) + +
+
+ +ListDbParameterGroups + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/ListDbParameterGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/ListDbParameterGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/ListDbParameterGroupsCommandOutput/) + +
+
+ +ListTagsForResource + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/ListTagsForResourceCommandOutput/) + +
+
+ +TagResource + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/TagResourceCommandOutput/) + +
+
+ +UntagResource + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/UntagResourceCommandOutput/) + +
+
+ +UpdateDbInstance + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-influxdb/command/UpdateDbInstanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/UpdateDbInstanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-influxdb/Interface/UpdateDbInstanceCommandOutput/) + +
diff --git a/clients/client-timestream-influxdb/api-extractor.json b/clients/client-timestream-influxdb/api-extractor.json new file mode 100644 index 000000000000..d5bf5ffeee85 --- /dev/null +++ b/clients/client-timestream-influxdb/api-extractor.json @@ -0,0 +1,4 @@ +{ + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/dist-types/index.d.ts" +} diff --git a/clients/client-timestream-influxdb/package.json b/clients/client-timestream-influxdb/package.json new file mode 100644 index 000000000000..199efc66c2fa --- /dev/null +++ b/clients/client-timestream-influxdb/package.json @@ -0,0 +1,101 @@ +{ + "name": "@aws-sdk/client-timestream-influxdb", + "description": "AWS SDK for JavaScript Timestream Influxdb Client for Node.js, Browser and React Native", + "version": "3.0.0", + "scripts": { + "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "tsc -p tsconfig.cjs.json", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo timestream-influxdb" + }, + "main": "./dist-cjs/index.js", + "types": "./dist-types/index.d.ts", + "module": "./dist-es/index.js", + "sideEffects": false, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", + "@aws-sdk/credential-provider-node": "*", + "@aws-sdk/middleware-host-header": "*", + "@aws-sdk/middleware-logger": "*", + "@aws-sdk/middleware-recursion-detection": "*", + "@aws-sdk/middleware-user-agent": "*", + "@aws-sdk/region-config-resolver": "*", + "@aws-sdk/types": "*", + "@aws-sdk/util-endpoints": "*", + "@aws-sdk/util-user-agent-browser": "*", + "@aws-sdk/util-user-agent-node": "*", + "@smithy/config-resolver": "^2.1.5", + "@smithy/core": "^1.3.8", + "@smithy/fetch-http-handler": "^2.4.5", + "@smithy/hash-node": "^2.1.4", + "@smithy/invalid-dependency": "^2.1.4", + "@smithy/middleware-content-length": "^2.1.4", + "@smithy/middleware-endpoint": "^2.4.6", + "@smithy/middleware-retry": "^2.1.7", + "@smithy/middleware-serde": "^2.2.1", + "@smithy/middleware-stack": "^2.1.4", + "@smithy/node-config-provider": "^2.2.5", + "@smithy/node-http-handler": "^2.4.3", + "@smithy/protocol-http": "^3.2.2", + "@smithy/smithy-client": "^2.4.5", + "@smithy/types": "^2.11.0", + "@smithy/url-parser": "^2.1.4", + "@smithy/util-base64": "^2.2.1", + "@smithy/util-body-length-browser": "^2.1.1", + "@smithy/util-body-length-node": "^2.2.2", + "@smithy/util-defaults-mode-browser": "^2.1.7", + "@smithy/util-defaults-mode-node": "^2.2.7", + "@smithy/util-endpoints": "^1.1.5", + "@smithy/util-middleware": "^2.1.4", + "@smithy/util-retry": "^2.1.4", + "@smithy/util-utf8": "^2.2.0", + "tslib": "^2.5.0" + }, + "devDependencies": { + "@smithy/service-client-documentation-generator": "^2.1.1", + "@tsconfig/node14": "1.0.3", + "@types/node": "^14.14.31", + "concurrently": "7.0.0", + "downlevel-dts": "0.10.1", + "rimraf": "3.0.2", + "typescript": "~4.9.5" + }, + "engines": { + "node": ">=14.0.0" + }, + "typesVersions": { + "<4.0": { + "dist-types/*": [ + "dist-types/ts3.4/*" + ] + } + }, + "files": [ + "dist-*/**" + ], + "author": { + "name": "AWS SDK for JavaScript Team", + "url": "https://aws.amazon.com/javascript/" + }, + "license": "Apache-2.0", + "browser": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" + }, + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-timestream-influxdb", + "repository": { + "type": "git", + "url": "https://github.com/aws/aws-sdk-js-v3.git", + "directory": "clients/client-timestream-influxdb" + } +} diff --git a/clients/client-timestream-influxdb/src/TimestreamInfluxDB.ts b/clients/client-timestream-influxdb/src/TimestreamInfluxDB.ts new file mode 100644 index 000000000000..10e02e47466b --- /dev/null +++ b/clients/client-timestream-influxdb/src/TimestreamInfluxDB.ts @@ -0,0 +1,245 @@ +// smithy-typescript generated code +import { createAggregatedClient } from "@smithy/smithy-client"; +import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; + +import { + CreateDbInstanceCommand, + CreateDbInstanceCommandInput, + CreateDbInstanceCommandOutput, +} from "./commands/CreateDbInstanceCommand"; +import { + CreateDbParameterGroupCommand, + CreateDbParameterGroupCommandInput, + CreateDbParameterGroupCommandOutput, +} from "./commands/CreateDbParameterGroupCommand"; +import { + DeleteDbInstanceCommand, + DeleteDbInstanceCommandInput, + DeleteDbInstanceCommandOutput, +} from "./commands/DeleteDbInstanceCommand"; +import { + GetDbInstanceCommand, + GetDbInstanceCommandInput, + GetDbInstanceCommandOutput, +} from "./commands/GetDbInstanceCommand"; +import { + GetDbParameterGroupCommand, + GetDbParameterGroupCommandInput, + GetDbParameterGroupCommandOutput, +} from "./commands/GetDbParameterGroupCommand"; +import { + ListDbInstancesCommand, + ListDbInstancesCommandInput, + ListDbInstancesCommandOutput, +} from "./commands/ListDbInstancesCommand"; +import { + ListDbParameterGroupsCommand, + ListDbParameterGroupsCommandInput, + ListDbParameterGroupsCommandOutput, +} from "./commands/ListDbParameterGroupsCommand"; +import { + ListTagsForResourceCommand, + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "./commands/ListTagsForResourceCommand"; +import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; +import { + UntagResourceCommand, + UntagResourceCommandInput, + UntagResourceCommandOutput, +} from "./commands/UntagResourceCommand"; +import { + UpdateDbInstanceCommand, + UpdateDbInstanceCommandInput, + UpdateDbInstanceCommandOutput, +} from "./commands/UpdateDbInstanceCommand"; +import { TimestreamInfluxDBClient, TimestreamInfluxDBClientConfig } from "./TimestreamInfluxDBClient"; + +const commands = { + CreateDbInstanceCommand, + CreateDbParameterGroupCommand, + DeleteDbInstanceCommand, + GetDbInstanceCommand, + GetDbParameterGroupCommand, + ListDbInstancesCommand, + ListDbParameterGroupsCommand, + ListTagsForResourceCommand, + TagResourceCommand, + UntagResourceCommand, + UpdateDbInstanceCommand, +}; + +export interface TimestreamInfluxDB { + /** + * @see {@link CreateDbInstanceCommand} + */ + createDbInstance( + args: CreateDbInstanceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createDbInstance( + args: CreateDbInstanceCommandInput, + cb: (err: any, data?: CreateDbInstanceCommandOutput) => void + ): void; + createDbInstance( + args: CreateDbInstanceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDbInstanceCommandOutput) => void + ): void; + + /** + * @see {@link CreateDbParameterGroupCommand} + */ + createDbParameterGroup( + args: CreateDbParameterGroupCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createDbParameterGroup( + args: CreateDbParameterGroupCommandInput, + cb: (err: any, data?: CreateDbParameterGroupCommandOutput) => void + ): void; + createDbParameterGroup( + args: CreateDbParameterGroupCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDbParameterGroupCommandOutput) => void + ): void; + + /** + * @see {@link DeleteDbInstanceCommand} + */ + deleteDbInstance( + args: DeleteDbInstanceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteDbInstance( + args: DeleteDbInstanceCommandInput, + cb: (err: any, data?: DeleteDbInstanceCommandOutput) => void + ): void; + deleteDbInstance( + args: DeleteDbInstanceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDbInstanceCommandOutput) => void + ): void; + + /** + * @see {@link GetDbInstanceCommand} + */ + getDbInstance(args: GetDbInstanceCommandInput, options?: __HttpHandlerOptions): Promise; + getDbInstance(args: GetDbInstanceCommandInput, cb: (err: any, data?: GetDbInstanceCommandOutput) => void): void; + getDbInstance( + args: GetDbInstanceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetDbInstanceCommandOutput) => void + ): void; + + /** + * @see {@link GetDbParameterGroupCommand} + */ + getDbParameterGroup( + args: GetDbParameterGroupCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getDbParameterGroup( + args: GetDbParameterGroupCommandInput, + cb: (err: any, data?: GetDbParameterGroupCommandOutput) => void + ): void; + getDbParameterGroup( + args: GetDbParameterGroupCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetDbParameterGroupCommandOutput) => void + ): void; + + /** + * @see {@link ListDbInstancesCommand} + */ + listDbInstances( + args: ListDbInstancesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listDbInstances(args: ListDbInstancesCommandInput, cb: (err: any, data?: ListDbInstancesCommandOutput) => void): void; + listDbInstances( + args: ListDbInstancesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDbInstancesCommandOutput) => void + ): void; + + /** + * @see {@link ListDbParameterGroupsCommand} + */ + listDbParameterGroups( + args: ListDbParameterGroupsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listDbParameterGroups( + args: ListDbParameterGroupsCommandInput, + cb: (err: any, data?: ListDbParameterGroupsCommandOutput) => void + ): void; + listDbParameterGroups( + args: ListDbParameterGroupsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDbParameterGroupsCommandOutput) => void + ): void; + + /** + * @see {@link ListTagsForResourceCommand} + */ + listTagsForResource( + args: ListTagsForResourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listTagsForResource( + args: ListTagsForResourceCommandInput, + cb: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): void; + listTagsForResource( + args: ListTagsForResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): void; + + /** + * @see {@link TagResourceCommand} + */ + tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise; + tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void; + tagResource( + args: TagResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: TagResourceCommandOutput) => void + ): void; + + /** + * @see {@link UntagResourceCommand} + */ + untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise; + untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void; + untagResource( + args: UntagResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UntagResourceCommandOutput) => void + ): void; + + /** + * @see {@link UpdateDbInstanceCommand} + */ + updateDbInstance( + args: UpdateDbInstanceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateDbInstance( + args: UpdateDbInstanceCommandInput, + cb: (err: any, data?: UpdateDbInstanceCommandOutput) => void + ): void; + updateDbInstance( + args: UpdateDbInstanceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDbInstanceCommandOutput) => void + ): void; +} + +/** + * @public + *

Amazon Timestream for InfluxDB is a managed time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open-source APIs. With Amazon Timestream for InfluxDB, it is easy to set up, operate, and scale time-series workloads that can answer queries with single-digit millisecond query response time.

+ */ +export class TimestreamInfluxDB extends TimestreamInfluxDBClient implements TimestreamInfluxDB {} +createAggregatedClient(commands, TimestreamInfluxDB); diff --git a/clients/client-timestream-influxdb/src/TimestreamInfluxDBClient.ts b/clients/client-timestream-influxdb/src/TimestreamInfluxDBClient.ts new file mode 100644 index 000000000000..6c23e38c0d35 --- /dev/null +++ b/clients/client-timestream-influxdb/src/TimestreamInfluxDBClient.ts @@ -0,0 +1,352 @@ +// smithy-typescript generated code +import { + getHostHeaderPlugin, + HostHeaderInputConfig, + HostHeaderResolvedConfig, + resolveHostHeaderConfig, +} from "@aws-sdk/middleware-host-header"; +import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; +import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; +import { + getUserAgentPlugin, + resolveUserAgentConfig, + UserAgentInputConfig, + UserAgentResolvedConfig, +} from "@aws-sdk/middleware-user-agent"; +import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@smithy/config-resolver"; +import { + DefaultIdentityProviderConfig, + getHttpAuthSchemeEndpointRuleSetPlugin, + getHttpSigningPlugin, +} from "@smithy/core"; +import { getContentLengthPlugin } from "@smithy/middleware-content-length"; +import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint"; +import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"; +import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http"; +import { + Client as __Client, + DefaultsMode as __DefaultsMode, + SmithyConfiguration as __SmithyConfiguration, + SmithyResolvedConfiguration as __SmithyResolvedConfiguration, +} from "@smithy/smithy-client"; +import { + AwsCredentialIdentityProvider, + BodyLengthCalculator as __BodyLengthCalculator, + CheckOptionalClientConfig as __CheckOptionalClientConfig, + ChecksumConstructor as __ChecksumConstructor, + Decoder as __Decoder, + Encoder as __Encoder, + EndpointV2 as __EndpointV2, + HashConstructor as __HashConstructor, + HttpHandlerOptions as __HttpHandlerOptions, + Logger as __Logger, + Provider as __Provider, + Provider, + StreamCollector as __StreamCollector, + UrlParser as __UrlParser, + UserAgent as __UserAgent, +} from "@smithy/types"; + +import { + defaultTimestreamInfluxDBHttpAuthSchemeParametersProvider, + HttpAuthSchemeInputConfig, + HttpAuthSchemeResolvedConfig, + resolveHttpAuthSchemeConfig, +} from "./auth/httpAuthSchemeProvider"; +import { CreateDbInstanceCommandInput, CreateDbInstanceCommandOutput } from "./commands/CreateDbInstanceCommand"; +import { + CreateDbParameterGroupCommandInput, + CreateDbParameterGroupCommandOutput, +} from "./commands/CreateDbParameterGroupCommand"; +import { DeleteDbInstanceCommandInput, DeleteDbInstanceCommandOutput } from "./commands/DeleteDbInstanceCommand"; +import { GetDbInstanceCommandInput, GetDbInstanceCommandOutput } from "./commands/GetDbInstanceCommand"; +import { + GetDbParameterGroupCommandInput, + GetDbParameterGroupCommandOutput, +} from "./commands/GetDbParameterGroupCommand"; +import { ListDbInstancesCommandInput, ListDbInstancesCommandOutput } from "./commands/ListDbInstancesCommand"; +import { + ListDbParameterGroupsCommandInput, + ListDbParameterGroupsCommandOutput, +} from "./commands/ListDbParameterGroupsCommand"; +import { + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "./commands/ListTagsForResourceCommand"; +import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; +import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; +import { UpdateDbInstanceCommandInput, UpdateDbInstanceCommandOutput } from "./commands/UpdateDbInstanceCommand"; +import { + ClientInputEndpointParameters, + ClientResolvedEndpointParameters, + EndpointParameters, + resolveClientEndpointParameters, +} from "./endpoint/EndpointParameters"; +import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; +import { resolveRuntimeExtensions, RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; + +export { __Client }; + +/** + * @public + */ +export type ServiceInputTypes = + | CreateDbInstanceCommandInput + | CreateDbParameterGroupCommandInput + | DeleteDbInstanceCommandInput + | GetDbInstanceCommandInput + | GetDbParameterGroupCommandInput + | ListDbInstancesCommandInput + | ListDbParameterGroupsCommandInput + | ListTagsForResourceCommandInput + | TagResourceCommandInput + | UntagResourceCommandInput + | UpdateDbInstanceCommandInput; + +/** + * @public + */ +export type ServiceOutputTypes = + | CreateDbInstanceCommandOutput + | CreateDbParameterGroupCommandOutput + | DeleteDbInstanceCommandOutput + | GetDbInstanceCommandOutput + | GetDbParameterGroupCommandOutput + | ListDbInstancesCommandOutput + | ListDbParameterGroupsCommandOutput + | ListTagsForResourceCommandOutput + | TagResourceCommandOutput + | UntagResourceCommandOutput + | UpdateDbInstanceCommandOutput; + +/** + * @public + */ +export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> { + /** + * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. + */ + requestHandler?: __HttpHandlerUserInput; + + /** + * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface + * that computes the SHA-256 HMAC or checksum of a string or binary buffer. + * @internal + */ + sha256?: __ChecksumConstructor | __HashConstructor; + + /** + * The function that will be used to convert strings into HTTP endpoints. + * @internal + */ + urlParser?: __UrlParser; + + /** + * A function that can calculate the length of a request body. + * @internal + */ + bodyLengthChecker?: __BodyLengthCalculator; + + /** + * A function that converts a stream into an array of bytes. + * @internal + */ + streamCollector?: __StreamCollector; + + /** + * The function that will be used to convert a base64-encoded string to a byte array. + * @internal + */ + base64Decoder?: __Decoder; + + /** + * The function that will be used to convert binary data to a base64-encoded string. + * @internal + */ + base64Encoder?: __Encoder; + + /** + * The function that will be used to convert a UTF8-encoded string to a byte array. + * @internal + */ + utf8Decoder?: __Decoder; + + /** + * The function that will be used to convert binary data to a UTF-8 encoded string. + * @internal + */ + utf8Encoder?: __Encoder; + + /** + * The runtime environment. + * @internal + */ + runtime?: string; + + /** + * Disable dynamically changing the endpoint of the client based on the hostPrefix + * trait of an operation. + */ + disableHostPrefix?: boolean; + + /** + * Unique service identifier. + * @internal + */ + serviceId?: string; + + /** + * Enables IPv6/IPv4 dualstack endpoint. + */ + useDualstackEndpoint?: boolean | __Provider; + + /** + * Enables FIPS compatible endpoints. + */ + useFipsEndpoint?: boolean | __Provider; + + /** + * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header + * @internal + */ + defaultUserAgentProvider?: Provider<__UserAgent>; + + /** + * The AWS region to which this client will send requests + */ + region?: string | __Provider; + + /** + * Default credentials provider; Not available in browser runtime. + * @deprecated + * @internal + */ + credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider; + + /** + * Value for how many times a request will be made at most in case of retry. + */ + maxAttempts?: number | __Provider; + + /** + * Specifies which retry algorithm to use. + * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/ + * + */ + retryMode?: string | __Provider; + + /** + * Optional logger for logging debug/info/warn/error. + */ + logger?: __Logger; + + /** + * Optional extensions + */ + extensions?: RuntimeExtension[]; + + /** + * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. + */ + defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; +} + +/** + * @public + */ +export type TimestreamInfluxDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & + ClientDefaults & + RegionInputConfig & + EndpointInputConfig & + RetryInputConfig & + HostHeaderInputConfig & + UserAgentInputConfig & + HttpAuthSchemeInputConfig & + ClientInputEndpointParameters; +/** + * @public + * + * The configuration interface of TimestreamInfluxDBClient class constructor that set the region, credentials and other options. + */ +export interface TimestreamInfluxDBClientConfig extends TimestreamInfluxDBClientConfigType {} + +/** + * @public + */ +export type TimestreamInfluxDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & + Required & + RuntimeExtensionsConfig & + RegionResolvedConfig & + EndpointResolvedConfig & + RetryResolvedConfig & + HostHeaderResolvedConfig & + UserAgentResolvedConfig & + HttpAuthSchemeResolvedConfig & + ClientResolvedEndpointParameters; +/** + * @public + * + * The resolved configuration interface of TimestreamInfluxDBClient class. This is resolved and normalized from the {@link TimestreamInfluxDBClientConfig | constructor configuration interface}. + */ +export interface TimestreamInfluxDBClientResolvedConfig extends TimestreamInfluxDBClientResolvedConfigType {} + +/** + * @public + *

Amazon Timestream for InfluxDB is a managed time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open-source APIs. With Amazon Timestream for InfluxDB, it is easy to set up, operate, and scale time-series workloads that can answer queries with single-digit millisecond query response time.

+ */ +export class TimestreamInfluxDBClient extends __Client< + __HttpHandlerOptions, + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig +> { + /** + * The resolved configuration of TimestreamInfluxDBClient class. This is resolved and normalized from the {@link TimestreamInfluxDBClientConfig | constructor configuration interface}. + */ + readonly config: TimestreamInfluxDBClientResolvedConfig; + + constructor(...[configuration]: __CheckOptionalClientConfig) { + const _config_0 = __getRuntimeConfig(configuration || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveRegionConfig(_config_1); + const _config_3 = resolveEndpointConfig(_config_2); + const _config_4 = resolveRetryConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveUserAgentConfig(_config_5); + const _config_7 = resolveHttpAuthSchemeConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + super(_config_8); + this.config = _config_8; + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use( + getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), + identityProviderConfigProvider: this.getIdentityProviderConfigProvider(), + }) + ); + this.middlewareStack.use(getHttpSigningPlugin(this.config)); + } + + /** + * Destroy underlying resources, like sockets. It's usually not necessary to do this. + * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. + * Otherwise, sockets might stay open for quite a long time before the server terminates them. + */ + destroy(): void { + super.destroy(); + } + private getDefaultHttpAuthSchemeParametersProvider() { + return defaultTimestreamInfluxDBHttpAuthSchemeParametersProvider; + } + private getIdentityProviderConfigProvider() { + return async (config: TimestreamInfluxDBClientResolvedConfig) => + new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + }); + } +} diff --git a/clients/client-timestream-influxdb/src/auth/httpAuthExtensionConfiguration.ts b/clients/client-timestream-influxdb/src/auth/httpAuthExtensionConfiguration.ts new file mode 100644 index 000000000000..b9a2847a031c --- /dev/null +++ b/clients/client-timestream-influxdb/src/auth/httpAuthExtensionConfiguration.ts @@ -0,0 +1,72 @@ +// smithy-typescript generated code +import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types"; + +import { TimestreamInfluxDBHttpAuthSchemeProvider } from "./httpAuthSchemeProvider"; + +/** + * @internal + */ +export interface HttpAuthExtensionConfiguration { + setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void; + httpAuthSchemes(): HttpAuthScheme[]; + setHttpAuthSchemeProvider(httpAuthSchemeProvider: TimestreamInfluxDBHttpAuthSchemeProvider): void; + httpAuthSchemeProvider(): TimestreamInfluxDBHttpAuthSchemeProvider; + setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void; + credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined; +} + +/** + * @internal + */ +export type HttpAuthRuntimeConfig = Partial<{ + httpAuthSchemes: HttpAuthScheme[]; + httpAuthSchemeProvider: TimestreamInfluxDBHttpAuthSchemeProvider; + credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider; +}>; + +/** + * @internal + */ +export const getHttpAuthExtensionConfiguration = ( + runtimeConfig: HttpAuthRuntimeConfig +): HttpAuthExtensionConfiguration => { + const _httpAuthSchemes = runtimeConfig.httpAuthSchemes!; + let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider!; + let _credentials = runtimeConfig.credentials; + return { + setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void { + const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); + if (index === -1) { + _httpAuthSchemes.push(httpAuthScheme); + } else { + _httpAuthSchemes.splice(index, 1, httpAuthScheme); + } + }, + httpAuthSchemes(): HttpAuthScheme[] { + return _httpAuthSchemes; + }, + setHttpAuthSchemeProvider(httpAuthSchemeProvider: TimestreamInfluxDBHttpAuthSchemeProvider): void { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider(): TimestreamInfluxDBHttpAuthSchemeProvider { + return _httpAuthSchemeProvider; + }, + setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void { + _credentials = credentials; + }, + credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined { + return _credentials; + }, + }; +}; + +/** + * @internal + */ +export const resolveHttpAuthRuntimeConfig = (config: HttpAuthExtensionConfiguration): HttpAuthRuntimeConfig => { + return { + httpAuthSchemes: config.httpAuthSchemes(), + httpAuthSchemeProvider: config.httpAuthSchemeProvider(), + credentials: config.credentials(), + }; +}; diff --git a/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts b/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts new file mode 100644 index 000000000000..7dbae09235d8 --- /dev/null +++ b/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts @@ -0,0 +1,140 @@ +// smithy-typescript generated code +import { + AwsSdkSigV4AuthInputConfig, + AwsSdkSigV4AuthResolvedConfig, + AwsSdkSigV4PreviouslyResolved, + resolveAwsSdkSigV4Config, +} from "@aws-sdk/core"; +import { + HandlerExecutionContext, + HttpAuthOption, + HttpAuthScheme, + HttpAuthSchemeParameters, + HttpAuthSchemeParametersProvider, + HttpAuthSchemeProvider, +} from "@smithy/types"; +import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; + +import { TimestreamInfluxDBClientConfig, TimestreamInfluxDBClientResolvedConfig } from "../TimestreamInfluxDBClient"; + +/** + * @internal + */ +export interface TimestreamInfluxDBHttpAuthSchemeParameters extends HttpAuthSchemeParameters { + region?: string; +} + +/** + * @internal + */ +export interface TimestreamInfluxDBHttpAuthSchemeParametersProvider + extends HttpAuthSchemeParametersProvider< + TimestreamInfluxDBClientResolvedConfig, + HandlerExecutionContext, + TimestreamInfluxDBHttpAuthSchemeParameters, + object + > {} + +/** + * @internal + */ +export const defaultTimestreamInfluxDBHttpAuthSchemeParametersProvider = async ( + config: TimestreamInfluxDBClientResolvedConfig, + context: HandlerExecutionContext, + input: object +): Promise => { + return { + operation: getSmithyContext(context).operation as string, + region: + (await normalizeProvider(config.region)()) || + (() => { + throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); + })(), + }; +}; + +function createAwsAuthSigv4HttpAuthOption(authParameters: TimestreamInfluxDBHttpAuthSchemeParameters): HttpAuthOption { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "timestream-influxdb", + region: authParameters.region, + }, + propertiesExtractor: (config: TimestreamInfluxDBClientConfig, context) => ({ + /** + * @internal + */ + signingProperties: { + config, + context, + }, + }), + }; +} + +/** + * @internal + */ +export interface TimestreamInfluxDBHttpAuthSchemeProvider + extends HttpAuthSchemeProvider {} + +/** + * @internal + */ +export const defaultTimestreamInfluxDBHttpAuthSchemeProvider: TimestreamInfluxDBHttpAuthSchemeProvider = ( + authParameters +) => { + const options: HttpAuthOption[] = []; + switch (authParameters.operation) { + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + } + } + return options; +}; + +/** + * @internal + */ +export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. + * @internal + */ + httpAuthSchemes?: HttpAuthScheme[]; + + /** + * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. + * @internal + */ + httpAuthSchemeProvider?: TimestreamInfluxDBHttpAuthSchemeProvider; +} + +/** + * @internal + */ +export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. + * @internal + */ + readonly httpAuthSchemes: HttpAuthScheme[]; + + /** + * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. + * @internal + */ + readonly httpAuthSchemeProvider: TimestreamInfluxDBHttpAuthSchemeProvider; +} + +/** + * @internal + */ +export const resolveHttpAuthSchemeConfig = ( + config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved +): T & HttpAuthSchemeResolvedConfig => { + const config_0 = resolveAwsSdkSigV4Config(config); + return { + ...config_0, + } as T & HttpAuthSchemeResolvedConfig; +}; diff --git a/clients/client-timestream-influxdb/src/commands/CreateDbInstanceCommand.ts b/clients/client-timestream-influxdb/src/commands/CreateDbInstanceCommand.ts new file mode 100644 index 000000000000..2d20c655a7ab --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/CreateDbInstanceCommand.ts @@ -0,0 +1,160 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { + CreateDbInstanceInput, + CreateDbInstanceInputFilterSensitiveLog, + CreateDbInstanceOutput, +} from "../models/models_0"; +import { de_CreateDbInstanceCommand, se_CreateDbInstanceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateDbInstanceCommand}. + */ +export interface CreateDbInstanceCommandInput extends CreateDbInstanceInput {} +/** + * @public + * + * The output of {@link CreateDbInstanceCommand}. + */ +export interface CreateDbInstanceCommandOutput extends CreateDbInstanceOutput, __MetadataBearer {} + +/** + * @public + *

Creates a new Timestream for InfluxDB DB instance.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, CreateDbInstanceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, CreateDbInstanceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // CreateDbInstanceInput + * name: "STRING_VALUE", // required + * username: "STRING_VALUE", + * password: "STRING_VALUE", // required + * organization: "STRING_VALUE", + * bucket: "STRING_VALUE", + * dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge", // required + * vpcSubnetIds: [ // VpcSubnetIdList // required + * "STRING_VALUE", + * ], + * vpcSecurityGroupIds: [ // VpcSecurityGroupIdList // required + * "STRING_VALUE", + * ], + * publiclyAccessible: true || false, + * dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3", + * allocatedStorage: Number("int"), // required + * dbParameterGroupIdentifier: "STRING_VALUE", + * deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY", + * logDeliveryConfiguration: { // LogDeliveryConfiguration + * s3Configuration: { // S3Configuration + * bucketName: "STRING_VALUE", // required + * enabled: true || false, // required + * }, + * }, + * tags: { // RequestTagMap + * "": "STRING_VALUE", + * }, + * }; + * const command = new CreateDbInstanceCommand(input); + * const response = await client.send(command); + * // { // CreateDbInstanceOutput + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED", + * // endpoint: "STRING_VALUE", + * // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge", + * // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3", + * // allocatedStorage: Number("int"), + * // deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY", + * // vpcSubnetIds: [ // VpcSubnetIdList // required + * // "STRING_VALUE", + * // ], + * // publiclyAccessible: true || false, + * // vpcSecurityGroupIds: [ // VpcSecurityGroupIdList + * // "STRING_VALUE", + * // ], + * // dbParameterGroupIdentifier: "STRING_VALUE", + * // availabilityZone: "STRING_VALUE", + * // secondaryAvailabilityZone: "STRING_VALUE", + * // logDeliveryConfiguration: { // LogDeliveryConfiguration + * // s3Configuration: { // S3Configuration + * // bucketName: "STRING_VALUE", // required + * // enabled: true || false, // required + * // }, + * // }, + * // influxAuthParametersSecretArn: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CreateDbInstanceCommandInput - {@link CreateDbInstanceCommandInput} + * @returns {@link CreateDbInstanceCommandOutput} + * @see {@link CreateDbInstanceCommandInput} for command's `input` shape. + * @see {@link CreateDbInstanceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request conflicts with an existing resource in Timestream for InfluxDB.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds the service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class CreateDbInstanceCommand extends $Command + .classBuilder< + CreateDbInstanceCommandInput, + CreateDbInstanceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "CreateDbInstance", {}) + .n("TimestreamInfluxDBClient", "CreateDbInstanceCommand") + .f(CreateDbInstanceInputFilterSensitiveLog, void 0) + .ser(se_CreateDbInstanceCommand) + .de(de_CreateDbInstanceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/CreateDbParameterGroupCommand.ts b/clients/client-timestream-influxdb/src/commands/CreateDbParameterGroupCommand.ts new file mode 100644 index 000000000000..2aba820dce44 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/CreateDbParameterGroupCommand.ts @@ -0,0 +1,135 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { CreateDbParameterGroupInput, CreateDbParameterGroupOutput } from "../models/models_0"; +import { de_CreateDbParameterGroupCommand, se_CreateDbParameterGroupCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateDbParameterGroupCommand}. + */ +export interface CreateDbParameterGroupCommandInput extends CreateDbParameterGroupInput {} +/** + * @public + * + * The output of {@link CreateDbParameterGroupCommand}. + */ +export interface CreateDbParameterGroupCommandOutput extends CreateDbParameterGroupOutput, __MetadataBearer {} + +/** + * @public + *

Creates a new Timestream for InfluxDB DB parameter group to associate with DB instances.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, CreateDbParameterGroupCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, CreateDbParameterGroupCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // CreateDbParameterGroupInput + * name: "STRING_VALUE", // required + * description: "STRING_VALUE", + * parameters: { // Parameters Union: only one key present + * InfluxDBv2: { // InfluxDBv2Parameters + * fluxLogEnabled: true || false, + * logLevel: "debug" || "info" || "error", + * noTasks: true || false, + * queryConcurrency: Number("int"), + * queryQueueSize: Number("int"), + * tracingType: "log" || "jaeger", + * metricsDisabled: true || false, + * }, + * }, + * tags: { // RequestTagMap + * "": "STRING_VALUE", + * }, + * }; + * const command = new CreateDbParameterGroupCommand(input); + * const response = await client.send(command); + * // { // CreateDbParameterGroupOutput + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // description: "STRING_VALUE", + * // parameters: { // Parameters Union: only one key present + * // InfluxDBv2: { // InfluxDBv2Parameters + * // fluxLogEnabled: true || false, + * // logLevel: "debug" || "info" || "error", + * // noTasks: true || false, + * // queryConcurrency: Number("int"), + * // queryQueueSize: Number("int"), + * // tracingType: "log" || "jaeger", + * // metricsDisabled: true || false, + * // }, + * // }, + * // }; + * + * ``` + * + * @param CreateDbParameterGroupCommandInput - {@link CreateDbParameterGroupCommandInput} + * @returns {@link CreateDbParameterGroupCommandOutput} + * @see {@link CreateDbParameterGroupCommandInput} for command's `input` shape. + * @see {@link CreateDbParameterGroupCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request conflicts with an existing resource in Timestream for InfluxDB.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds the service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class CreateDbParameterGroupCommand extends $Command + .classBuilder< + CreateDbParameterGroupCommandInput, + CreateDbParameterGroupCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "CreateDbParameterGroup", {}) + .n("TimestreamInfluxDBClient", "CreateDbParameterGroupCommand") + .f(void 0, void 0) + .ser(se_CreateDbParameterGroupCommand) + .de(de_CreateDbParameterGroupCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/DeleteDbInstanceCommand.ts b/clients/client-timestream-influxdb/src/commands/DeleteDbInstanceCommand.ts new file mode 100644 index 000000000000..d1a21b837777 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/DeleteDbInstanceCommand.ts @@ -0,0 +1,128 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteDbInstanceInput, DeleteDbInstanceOutput } from "../models/models_0"; +import { de_DeleteDbInstanceCommand, se_DeleteDbInstanceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteDbInstanceCommand}. + */ +export interface DeleteDbInstanceCommandInput extends DeleteDbInstanceInput {} +/** + * @public + * + * The output of {@link DeleteDbInstanceCommand}. + */ +export interface DeleteDbInstanceCommandOutput extends DeleteDbInstanceOutput, __MetadataBearer {} + +/** + * @public + *

Deletes a Timestream for InfluxDB DB instance.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, DeleteDbInstanceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, DeleteDbInstanceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // DeleteDbInstanceInput + * identifier: "STRING_VALUE", // required + * }; + * const command = new DeleteDbInstanceCommand(input); + * const response = await client.send(command); + * // { // DeleteDbInstanceOutput + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED", + * // endpoint: "STRING_VALUE", + * // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge", + * // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3", + * // allocatedStorage: Number("int"), + * // deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY", + * // vpcSubnetIds: [ // VpcSubnetIdList // required + * // "STRING_VALUE", + * // ], + * // publiclyAccessible: true || false, + * // vpcSecurityGroupIds: [ // VpcSecurityGroupIdList + * // "STRING_VALUE", + * // ], + * // dbParameterGroupIdentifier: "STRING_VALUE", + * // availabilityZone: "STRING_VALUE", + * // secondaryAvailabilityZone: "STRING_VALUE", + * // logDeliveryConfiguration: { // LogDeliveryConfiguration + * // s3Configuration: { // S3Configuration + * // bucketName: "STRING_VALUE", // required + * // enabled: true || false, // required + * // }, + * // }, + * // influxAuthParametersSecretArn: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DeleteDbInstanceCommandInput - {@link DeleteDbInstanceCommandInput} + * @returns {@link DeleteDbInstanceCommandOutput} + * @see {@link DeleteDbInstanceCommandInput} for command's `input` shape. + * @see {@link DeleteDbInstanceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request conflicts with an existing resource in Timestream for InfluxDB.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class DeleteDbInstanceCommand extends $Command + .classBuilder< + DeleteDbInstanceCommandInput, + DeleteDbInstanceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "DeleteDbInstance", {}) + .n("TimestreamInfluxDBClient", "DeleteDbInstanceCommand") + .f(void 0, void 0) + .ser(se_DeleteDbInstanceCommand) + .de(de_DeleteDbInstanceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/GetDbInstanceCommand.ts b/clients/client-timestream-influxdb/src/commands/GetDbInstanceCommand.ts new file mode 100644 index 000000000000..87beff8c8ae1 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/GetDbInstanceCommand.ts @@ -0,0 +1,125 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetDbInstanceInput, GetDbInstanceOutput } from "../models/models_0"; +import { de_GetDbInstanceCommand, se_GetDbInstanceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetDbInstanceCommand}. + */ +export interface GetDbInstanceCommandInput extends GetDbInstanceInput {} +/** + * @public + * + * The output of {@link GetDbInstanceCommand}. + */ +export interface GetDbInstanceCommandOutput extends GetDbInstanceOutput, __MetadataBearer {} + +/** + * @public + *

Returns a Timestream for InfluxDB DB instance.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, GetDbInstanceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, GetDbInstanceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // GetDbInstanceInput + * identifier: "STRING_VALUE", // required + * }; + * const command = new GetDbInstanceCommand(input); + * const response = await client.send(command); + * // { // GetDbInstanceOutput + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED", + * // endpoint: "STRING_VALUE", + * // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge", + * // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3", + * // allocatedStorage: Number("int"), + * // deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY", + * // vpcSubnetIds: [ // VpcSubnetIdList // required + * // "STRING_VALUE", + * // ], + * // publiclyAccessible: true || false, + * // vpcSecurityGroupIds: [ // VpcSecurityGroupIdList + * // "STRING_VALUE", + * // ], + * // dbParameterGroupIdentifier: "STRING_VALUE", + * // availabilityZone: "STRING_VALUE", + * // secondaryAvailabilityZone: "STRING_VALUE", + * // logDeliveryConfiguration: { // LogDeliveryConfiguration + * // s3Configuration: { // S3Configuration + * // bucketName: "STRING_VALUE", // required + * // enabled: true || false, // required + * // }, + * // }, + * // influxAuthParametersSecretArn: "STRING_VALUE", + * // }; + * + * ``` + * + * @param GetDbInstanceCommandInput - {@link GetDbInstanceCommandInput} + * @returns {@link GetDbInstanceCommandOutput} + * @see {@link GetDbInstanceCommandInput} for command's `input` shape. + * @see {@link GetDbInstanceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class GetDbInstanceCommand extends $Command + .classBuilder< + GetDbInstanceCommandInput, + GetDbInstanceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "GetDbInstance", {}) + .n("TimestreamInfluxDBClient", "GetDbInstanceCommand") + .f(void 0, void 0) + .ser(se_GetDbInstanceCommand) + .de(de_GetDbInstanceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/GetDbParameterGroupCommand.ts b/clients/client-timestream-influxdb/src/commands/GetDbParameterGroupCommand.ts new file mode 100644 index 000000000000..52bf3031eea1 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/GetDbParameterGroupCommand.ts @@ -0,0 +1,114 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetDbParameterGroupInput, GetDbParameterGroupOutput } from "../models/models_0"; +import { de_GetDbParameterGroupCommand, se_GetDbParameterGroupCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetDbParameterGroupCommand}. + */ +export interface GetDbParameterGroupCommandInput extends GetDbParameterGroupInput {} +/** + * @public + * + * The output of {@link GetDbParameterGroupCommand}. + */ +export interface GetDbParameterGroupCommandOutput extends GetDbParameterGroupOutput, __MetadataBearer {} + +/** + * @public + *

Returns a Timestream for InfluxDB DB parameter group.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, GetDbParameterGroupCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, GetDbParameterGroupCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // GetDbParameterGroupInput + * identifier: "STRING_VALUE", // required + * }; + * const command = new GetDbParameterGroupCommand(input); + * const response = await client.send(command); + * // { // GetDbParameterGroupOutput + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // description: "STRING_VALUE", + * // parameters: { // Parameters Union: only one key present + * // InfluxDBv2: { // InfluxDBv2Parameters + * // fluxLogEnabled: true || false, + * // logLevel: "debug" || "info" || "error", + * // noTasks: true || false, + * // queryConcurrency: Number("int"), + * // queryQueueSize: Number("int"), + * // tracingType: "log" || "jaeger", + * // metricsDisabled: true || false, + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetDbParameterGroupCommandInput - {@link GetDbParameterGroupCommandInput} + * @returns {@link GetDbParameterGroupCommandOutput} + * @see {@link GetDbParameterGroupCommandInput} for command's `input` shape. + * @see {@link GetDbParameterGroupCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class GetDbParameterGroupCommand extends $Command + .classBuilder< + GetDbParameterGroupCommandInput, + GetDbParameterGroupCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "GetDbParameterGroup", {}) + .n("TimestreamInfluxDBClient", "GetDbParameterGroupCommand") + .f(void 0, void 0) + .ser(se_GetDbParameterGroupCommand) + .de(de_GetDbParameterGroupCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/ListDbInstancesCommand.ts b/clients/client-timestream-influxdb/src/commands/ListDbInstancesCommand.ts new file mode 100644 index 000000000000..ec388da1080f --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/ListDbInstancesCommand.ts @@ -0,0 +1,114 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListDbInstancesInput, ListDbInstancesOutput } from "../models/models_0"; +import { de_ListDbInstancesCommand, se_ListDbInstancesCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListDbInstancesCommand}. + */ +export interface ListDbInstancesCommandInput extends ListDbInstancesInput {} +/** + * @public + * + * The output of {@link ListDbInstancesCommand}. + */ +export interface ListDbInstancesCommandOutput extends ListDbInstancesOutput, __MetadataBearer {} + +/** + * @public + *

Returns a list of Timestream for InfluxDB DB instances.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, ListDbInstancesCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, ListDbInstancesCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // ListDbInstancesInput + * nextToken: "STRING_VALUE", + * maxResults: Number("int"), + * }; + * const command = new ListDbInstancesCommand(input); + * const response = await client.send(command); + * // { // ListDbInstancesOutput + * // items: [ // DbInstanceSummaryList // required + * // { // DbInstanceSummary + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED", + * // endpoint: "STRING_VALUE", + * // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge", + * // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3", + * // allocatedStorage: Number("int"), + * // deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY", + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListDbInstancesCommandInput - {@link ListDbInstancesCommandInput} + * @returns {@link ListDbInstancesCommandOutput} + * @see {@link ListDbInstancesCommandInput} for command's `input` shape. + * @see {@link ListDbInstancesCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class ListDbInstancesCommand extends $Command + .classBuilder< + ListDbInstancesCommandInput, + ListDbInstancesCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "ListDbInstances", {}) + .n("TimestreamInfluxDBClient", "ListDbInstancesCommand") + .f(void 0, void 0) + .ser(se_ListDbInstancesCommand) + .de(de_ListDbInstancesCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/ListDbParameterGroupsCommand.ts b/clients/client-timestream-influxdb/src/commands/ListDbParameterGroupsCommand.ts new file mode 100644 index 000000000000..919cc002ce8b --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/ListDbParameterGroupsCommand.ts @@ -0,0 +1,109 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListDbParameterGroupsInput, ListDbParameterGroupsOutput } from "../models/models_0"; +import { de_ListDbParameterGroupsCommand, se_ListDbParameterGroupsCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListDbParameterGroupsCommand}. + */ +export interface ListDbParameterGroupsCommandInput extends ListDbParameterGroupsInput {} +/** + * @public + * + * The output of {@link ListDbParameterGroupsCommand}. + */ +export interface ListDbParameterGroupsCommandOutput extends ListDbParameterGroupsOutput, __MetadataBearer {} + +/** + * @public + *

Returns a list of Timestream for InfluxDB DB parameter groups.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, ListDbParameterGroupsCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, ListDbParameterGroupsCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // ListDbParameterGroupsInput + * nextToken: "STRING_VALUE", + * maxResults: Number("int"), + * }; + * const command = new ListDbParameterGroupsCommand(input); + * const response = await client.send(command); + * // { // ListDbParameterGroupsOutput + * // items: [ // DbParameterGroupSummaryList // required + * // { // DbParameterGroupSummary + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // description: "STRING_VALUE", + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListDbParameterGroupsCommandInput - {@link ListDbParameterGroupsCommandInput} + * @returns {@link ListDbParameterGroupsCommandOutput} + * @see {@link ListDbParameterGroupsCommandInput} for command's `input` shape. + * @see {@link ListDbParameterGroupsCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class ListDbParameterGroupsCommand extends $Command + .classBuilder< + ListDbParameterGroupsCommandInput, + ListDbParameterGroupsCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "ListDbParameterGroups", {}) + .n("TimestreamInfluxDBClient", "ListDbParameterGroupsCommand") + .f(void 0, void 0) + .ser(se_ListDbParameterGroupsCommand) + .de(de_ListDbParameterGroupsCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/ListTagsForResourceCommand.ts b/clients/client-timestream-influxdb/src/commands/ListTagsForResourceCommand.ts new file mode 100644 index 000000000000..a6b095a01a3c --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/ListTagsForResourceCommand.ts @@ -0,0 +1,90 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; +import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListTagsForResourceCommand}. + */ +export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {} +/** + * @public + * + * The output of {@link ListTagsForResourceCommand}. + */ +export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {} + +/** + * @public + *

A list of tags applied to the resource.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, ListTagsForResourceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, ListTagsForResourceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // ListTagsForResourceRequest + * resourceArn: "STRING_VALUE", // required + * }; + * const command = new ListTagsForResourceCommand(input); + * const response = await client.send(command); + * // { // ListTagsForResourceResponse + * // tags: { // ResponseTagMap + * // "": "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput} + * @returns {@link ListTagsForResourceCommandOutput} + * @see {@link ListTagsForResourceCommandInput} for command's `input` shape. + * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class ListTagsForResourceCommand extends $Command + .classBuilder< + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "ListTagsForResource", {}) + .n("TimestreamInfluxDBClient", "ListTagsForResourceCommand") + .f(void 0, void 0) + .ser(se_ListTagsForResourceCommand) + .de(de_ListTagsForResourceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/TagResourceCommand.ts b/clients/client-timestream-influxdb/src/commands/TagResourceCommand.ts new file mode 100644 index 000000000000..a305180e4f37 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/TagResourceCommand.ts @@ -0,0 +1,89 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { TagResourceRequest } from "../models/models_0"; +import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link TagResourceCommand}. + */ +export interface TagResourceCommandInput extends TagResourceRequest {} +/** + * @public + * + * The output of {@link TagResourceCommand}. + */ +export interface TagResourceCommandOutput extends __MetadataBearer {} + +/** + * @public + *

Tags are composed of a Key/Value pairs. You can use tags to categorize and track your Timestream for InfluxDB resources.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, TagResourceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, TagResourceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // TagResourceRequest + * resourceArn: "STRING_VALUE", // required + * tags: { // RequestTagMap // required + * "": "STRING_VALUE", + * }, + * }; + * const command = new TagResourceCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param TagResourceCommandInput - {@link TagResourceCommandInput} + * @returns {@link TagResourceCommandOutput} + * @see {@link TagResourceCommandInput} for command's `input` shape. + * @see {@link TagResourceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class TagResourceCommand extends $Command + .classBuilder< + TagResourceCommandInput, + TagResourceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "TagResource", {}) + .n("TimestreamInfluxDBClient", "TagResourceCommand") + .f(void 0, void 0) + .ser(se_TagResourceCommand) + .de(de_TagResourceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/UntagResourceCommand.ts b/clients/client-timestream-influxdb/src/commands/UntagResourceCommand.ts new file mode 100644 index 000000000000..02f2b4f134f9 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/UntagResourceCommand.ts @@ -0,0 +1,89 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { UntagResourceRequest } from "../models/models_0"; +import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UntagResourceCommand}. + */ +export interface UntagResourceCommandInput extends UntagResourceRequest {} +/** + * @public + * + * The output of {@link UntagResourceCommand}. + */ +export interface UntagResourceCommandOutput extends __MetadataBearer {} + +/** + * @public + *

Removes the tag from the specified resource.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, UntagResourceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, UntagResourceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // UntagResourceRequest + * resourceArn: "STRING_VALUE", // required + * tagKeys: [ // TagKeys // required + * "STRING_VALUE", + * ], + * }; + * const command = new UntagResourceCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UntagResourceCommandInput - {@link UntagResourceCommandInput} + * @returns {@link UntagResourceCommandOutput} + * @see {@link UntagResourceCommandInput} for command's `input` shape. + * @see {@link UntagResourceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class UntagResourceCommand extends $Command + .classBuilder< + UntagResourceCommandInput, + UntagResourceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "UntagResource", {}) + .n("TimestreamInfluxDBClient", "UntagResourceCommand") + .f(void 0, void 0) + .ser(se_UntagResourceCommand) + .de(de_UntagResourceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/UpdateDbInstanceCommand.ts b/clients/client-timestream-influxdb/src/commands/UpdateDbInstanceCommand.ts new file mode 100644 index 000000000000..8380dbd6723a --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/UpdateDbInstanceCommand.ts @@ -0,0 +1,135 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateDbInstanceInput, UpdateDbInstanceOutput } from "../models/models_0"; +import { de_UpdateDbInstanceCommand, se_UpdateDbInstanceCommand } from "../protocols/Aws_json1_0"; +import { + ServiceInputTypes, + ServiceOutputTypes, + TimestreamInfluxDBClientResolvedConfig, +} from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateDbInstanceCommand}. + */ +export interface UpdateDbInstanceCommandInput extends UpdateDbInstanceInput {} +/** + * @public + * + * The output of {@link UpdateDbInstanceCommand}. + */ +export interface UpdateDbInstanceCommandOutput extends UpdateDbInstanceOutput, __MetadataBearer {} + +/** + * @public + *

Updates a Timestream for InfluxDB DB instance.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { TimestreamInfluxDBClient, UpdateDbInstanceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import + * // const { TimestreamInfluxDBClient, UpdateDbInstanceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import + * const client = new TimestreamInfluxDBClient(config); + * const input = { // UpdateDbInstanceInput + * identifier: "STRING_VALUE", // required + * logDeliveryConfiguration: { // LogDeliveryConfiguration + * s3Configuration: { // S3Configuration + * bucketName: "STRING_VALUE", // required + * enabled: true || false, // required + * }, + * }, + * dbParameterGroupIdentifier: "STRING_VALUE", + * }; + * const command = new UpdateDbInstanceCommand(input); + * const response = await client.send(command); + * // { // UpdateDbInstanceOutput + * // id: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED", + * // endpoint: "STRING_VALUE", + * // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge", + * // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3", + * // allocatedStorage: Number("int"), + * // deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY", + * // vpcSubnetIds: [ // VpcSubnetIdList // required + * // "STRING_VALUE", + * // ], + * // publiclyAccessible: true || false, + * // vpcSecurityGroupIds: [ // VpcSecurityGroupIdList + * // "STRING_VALUE", + * // ], + * // dbParameterGroupIdentifier: "STRING_VALUE", + * // availabilityZone: "STRING_VALUE", + * // secondaryAvailabilityZone: "STRING_VALUE", + * // logDeliveryConfiguration: { // LogDeliveryConfiguration + * // s3Configuration: { // S3Configuration + * // bucketName: "STRING_VALUE", // required + * // enabled: true || false, // required + * // }, + * // }, + * // influxAuthParametersSecretArn: "STRING_VALUE", + * // }; + * + * ``` + * + * @param UpdateDbInstanceCommandInput - {@link UpdateDbInstanceCommandInput} + * @returns {@link UpdateDbInstanceCommandOutput} + * @see {@link UpdateDbInstanceCommandInput} for command's `input` shape. + * @see {@link UpdateDbInstanceCommandOutput} for command's `response` shape. + * @see {@link TimestreamInfluxDBClientResolvedConfig | config} for TimestreamInfluxDBClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request conflicts with an existing resource in Timestream for InfluxDB.

+ * + * @throws {@link InternalServerException} (server fault) + *

The request processing has failed because of an unknown error, exception or failure.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The requested resource was not found or does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ * + * @throws {@link TimestreamInfluxDBServiceException} + *

Base exception class for all service exceptions from TimestreamInfluxDB service.

+ * + */ +export class UpdateDbInstanceCommand extends $Command + .classBuilder< + UpdateDbInstanceCommandInput, + UpdateDbInstanceCommandOutput, + TimestreamInfluxDBClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: TimestreamInfluxDBClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonTimestreamInfluxDB", "UpdateDbInstance", {}) + .n("TimestreamInfluxDBClient", "UpdateDbInstanceCommand") + .f(void 0, void 0) + .ser(se_UpdateDbInstanceCommand) + .de(de_UpdateDbInstanceCommand) + .build() {} diff --git a/clients/client-timestream-influxdb/src/commands/index.ts b/clients/client-timestream-influxdb/src/commands/index.ts new file mode 100644 index 000000000000..4a5adf00fd19 --- /dev/null +++ b/clients/client-timestream-influxdb/src/commands/index.ts @@ -0,0 +1,12 @@ +// smithy-typescript generated code +export * from "./CreateDbInstanceCommand"; +export * from "./CreateDbParameterGroupCommand"; +export * from "./DeleteDbInstanceCommand"; +export * from "./GetDbInstanceCommand"; +export * from "./GetDbParameterGroupCommand"; +export * from "./ListDbInstancesCommand"; +export * from "./ListDbParameterGroupsCommand"; +export * from "./ListTagsForResourceCommand"; +export * from "./TagResourceCommand"; +export * from "./UntagResourceCommand"; +export * from "./UpdateDbInstanceCommand"; diff --git a/clients/client-timestream-influxdb/src/endpoint/EndpointParameters.ts b/clients/client-timestream-influxdb/src/endpoint/EndpointParameters.ts new file mode 100644 index 000000000000..1095eca6e048 --- /dev/null +++ b/clients/client-timestream-influxdb/src/endpoint/EndpointParameters.ts @@ -0,0 +1,41 @@ +// smithy-typescript generated code +import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types"; + +/** + * @public + */ +export interface ClientInputEndpointParameters { + region?: string | Provider; + useDualstackEndpoint?: boolean | Provider; + useFipsEndpoint?: boolean | Provider; + endpoint?: string | Provider | Endpoint | Provider | EndpointV2 | Provider; +} + +export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { + defaultSigningName: string; +}; + +export const resolveClientEndpointParameters = ( + options: T & ClientInputEndpointParameters +): T & ClientResolvedEndpointParameters => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "timestream-influxdb", + }; +}; + +export const commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, +} as const; + +export interface EndpointParameters extends __EndpointParameters { + Region?: string; + UseDualStack?: boolean; + UseFIPS?: boolean; + Endpoint?: string; +} diff --git a/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts b/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts new file mode 100644 index 000000000000..5a2f95973187 --- /dev/null +++ b/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts @@ -0,0 +1,16 @@ +// smithy-typescript generated code +import { EndpointV2, Logger } from "@smithy/types"; +import { EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; + +import { EndpointParameters } from "./EndpointParameters"; +import { ruleSet } from "./ruleset"; + +export const defaultEndpointResolver = ( + endpointParams: EndpointParameters, + context: { logger?: Logger } = {} +): EndpointV2 => { + return resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }); +}; diff --git a/clients/client-timestream-influxdb/src/endpoint/ruleset.ts b/clients/client-timestream-influxdb/src/endpoint/ruleset.ts new file mode 100644 index 000000000000..df3056630f22 --- /dev/null +++ b/clients/client-timestream-influxdb/src/endpoint/ruleset.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +// generated code, do not edit +import { RuleSetObject } from "@smithy/types"; + +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/timestream-influxdb.json */ + +const s="required", +t="fn", +u="argv", +v="ref"; +const a=true, +b="isSet", +c="booleanEquals", +d="error", +e="endpoint", +f="tree", +g="PartitionResult", +h={[s]:false,"type":"String"}, +i={[s]:true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:c,[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:c,[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"getAttr",[u]:[{[v]:g},"supportsFIPS"]}, +o={[t]:c,[u]:[true,{[t]:"getAttr",[u]:[{[v]:g},"supportsDualStack"]}]}, +p=[k], +q=[l], +r=[{[v]:"Region"}]; +const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[t]:b,[u]:[j]}],rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:j,properties:m,headers:m},type:e}],type:f}],type:f},{rules:[{conditions:[{[t]:b,[u]:r}],rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:g}],rules:[{conditions:[k,l],rules:[{conditions:[{[t]:c,[u]:[a,n]},o],rules:[{rules:[{endpoint:{url:"https://timestream-influxdb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:p,rules:[{conditions:[{[t]:c,[u]:[n,a]}],rules:[{rules:[{endpoint:{url:"https://timestream-influxdb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:q,rules:[{conditions:[o],rules:[{rules:[{endpoint:{url:"https://timestream-influxdb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{rules:[{endpoint:{url:"https://timestream-influxdb.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}],type:f}]}; +export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-timestream-influxdb/src/extensionConfiguration.ts b/clients/client-timestream-influxdb/src/extensionConfiguration.ts new file mode 100644 index 000000000000..1c219fdf8139 --- /dev/null +++ b/clients/client-timestream-influxdb/src/extensionConfiguration.ts @@ -0,0 +1,15 @@ +// smithy-typescript generated code +import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; +import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; +import { DefaultExtensionConfiguration } from "@smithy/types"; + +import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration"; + +/** + * @internal + */ +export interface TimestreamInfluxDBExtensionConfiguration + extends HttpHandlerExtensionConfiguration, + DefaultExtensionConfiguration, + AwsRegionExtensionConfiguration, + HttpAuthExtensionConfiguration {} diff --git a/clients/client-timestream-influxdb/src/index.ts b/clients/client-timestream-influxdb/src/index.ts new file mode 100644 index 000000000000..f3a7697955a7 --- /dev/null +++ b/clients/client-timestream-influxdb/src/index.ts @@ -0,0 +1,19 @@ +// smithy-typescript generated code +/* eslint-disable */ +/** + *

Amazon Timestream for InfluxDB is a managed time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open-source APIs. With Amazon Timestream for InfluxDB, it is easy to set up, operate, and scale time-series workloads that can answer queries with single-digit millisecond query response time.

+ * + * @packageDocumentation + */ +export * from "./TimestreamInfluxDBClient"; +export * from "./TimestreamInfluxDB"; +export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; +export { RuntimeExtension } from "./runtimeExtensions"; +export { TimestreamInfluxDBExtensionConfiguration } from "./extensionConfiguration"; +export * from "./commands"; +export * from "./pagination"; +export * from "./models"; + +import "@aws-sdk/util-endpoints"; + +export { TimestreamInfluxDBServiceException } from "./models/TimestreamInfluxDBServiceException"; diff --git a/clients/client-timestream-influxdb/src/models/TimestreamInfluxDBServiceException.ts b/clients/client-timestream-influxdb/src/models/TimestreamInfluxDBServiceException.ts new file mode 100644 index 000000000000..f4c87db09d16 --- /dev/null +++ b/clients/client-timestream-influxdb/src/models/TimestreamInfluxDBServiceException.ts @@ -0,0 +1,22 @@ +// smithy-typescript generated code +import { + ServiceException as __ServiceException, + ServiceExceptionOptions as __ServiceExceptionOptions, +} from "@smithy/smithy-client"; + +export { __ServiceException, __ServiceExceptionOptions }; + +/** + * @public + * + * Base exception class for all service exceptions from TimestreamInfluxDB service. + */ +export class TimestreamInfluxDBServiceException extends __ServiceException { + /** + * @internal + */ + constructor(options: __ServiceExceptionOptions) { + super(options); + Object.setPrototypeOf(this, TimestreamInfluxDBServiceException.prototype); + } +} diff --git a/clients/client-timestream-influxdb/src/models/index.ts b/clients/client-timestream-influxdb/src/models/index.ts new file mode 100644 index 000000000000..9eaceb12865f --- /dev/null +++ b/clients/client-timestream-influxdb/src/models/index.ts @@ -0,0 +1,2 @@ +// smithy-typescript generated code +export * from "./models_0"; diff --git a/clients/client-timestream-influxdb/src/models/models_0.ts b/clients/client-timestream-influxdb/src/models/models_0.ts new file mode 100644 index 000000000000..5d509fce936f --- /dev/null +++ b/clients/client-timestream-influxdb/src/models/models_0.ts @@ -0,0 +1,1336 @@ +// smithy-typescript generated code +import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + +import { TimestreamInfluxDBServiceException as __BaseException } from "./TimestreamInfluxDBServiceException"; + +/** + * @public + *

You do not have sufficient access to perform this action.

+ */ +export class AccessDeniedException extends __BaseException { + readonly name: "AccessDeniedException" = "AccessDeniedException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "AccessDeniedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, AccessDeniedException.prototype); + } +} + +/** + * @public + *

The request conflicts with an existing resource in Timestream for InfluxDB.

+ */ +export class ConflictException extends __BaseException { + readonly name: "ConflictException" = "ConflictException"; + readonly $fault: "client" = "client"; + /** + * @public + *

The identifier for the Timestream for InfluxDB resource associated with the request.

+ */ + resourceId: string | undefined; + + /** + * @public + *

The type of Timestream for InfluxDB resource associated with the request.

+ */ + resourceType: string | undefined; + + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConflictException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ConflictException.prototype); + this.resourceId = opts.resourceId; + this.resourceType = opts.resourceType; + } +} + +/** + * @public + * @enum + */ +export const DbInstanceType = { + DB_INFLUX_12XLARGE: "db.influx.12xlarge", + DB_INFLUX_16XLARGE: "db.influx.16xlarge", + DB_INFLUX_2XLARGE: "db.influx.2xlarge", + DB_INFLUX_4XLARGE: "db.influx.4xlarge", + DB_INFLUX_8XLARGE: "db.influx.8xlarge", + DB_INFLUX_LARGE: "db.influx.large", + DB_INFLUX_MEDIUM: "db.influx.medium", + DB_INFLUX_XLARGE: "db.influx.xlarge", +} as const; + +/** + * @public + */ +export type DbInstanceType = (typeof DbInstanceType)[keyof typeof DbInstanceType]; + +/** + * @public + * @enum + */ +export const DbStorageType = { + INFLUX_IO_INCLUDED_T1: "InfluxIOIncludedT1", + INFLUX_IO_INCLUDED_T2: "InfluxIOIncludedT2", + INFLUX_IO_INCLUDED_T3: "InfluxIOIncludedT3", +} as const; + +/** + * @public + */ +export type DbStorageType = (typeof DbStorageType)[keyof typeof DbStorageType]; + +/** + * @public + * @enum + */ +export const DeploymentType = { + SINGLE_AZ: "SINGLE_AZ", + WITH_MULTIAZ_STANDBY: "WITH_MULTIAZ_STANDBY", +} as const; + +/** + * @public + */ +export type DeploymentType = (typeof DeploymentType)[keyof typeof DeploymentType]; + +/** + * @public + *

Configuration for S3 bucket log delivery.

+ */ +export interface S3Configuration { + /** + * @public + *

The name of the S3 bucket to deliver logs to.

+ */ + bucketName: string | undefined; + + /** + * @public + *

Indicates whether log delivery to the S3 bucket is enabled.

+ */ + enabled: boolean | undefined; +} + +/** + * @public + *

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

+ */ +export interface LogDeliveryConfiguration { + /** + * @public + *

Configuration for S3 bucket log delivery.

+ */ + s3Configuration: S3Configuration | undefined; +} + +/** + * @public + */ +export interface CreateDbInstanceInput { + /** + * @public + *

The name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB instance names must be unique per customer and per region.

+ */ + name: string | undefined; + + /** + * @public + *

The username of the initial admin user created in InfluxDB. Must start with a letter and can't end with a hyphen or contain two consecutive hyphens. For example, my-user1. This username will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Amazon Secrets Manager in your account.

+ */ + username?: string; + + /** + * @public + *

The password of the initial admin user created in InfluxDB. This password will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in AWS SecretManager in your account.

+ */ + password: string | undefined; + + /** + * @public + *

The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.

+ */ + organization?: string; + + /** + * @public + *

The name of the initial InfluxDB bucket. All InfluxDB data is stored in a bucket. A bucket combines the concept of a database and a retention period (the duration of time that each data point persists). A bucket belongs to an organization.

+ */ + bucket?: string; + + /** + * @public + *

The Timestream for InfluxDB DB instance type to run InfluxDB on.

+ */ + dbInstanceType: DbInstanceType | undefined; + + /** + * @public + *

A list of VPC subnet IDs to associate with the DB instance. Provide at least two VPC subnet IDs in different availability zones when deploying with a Multi-AZ standby.

+ */ + vpcSubnetIds: string[] | undefined; + + /** + * @public + *

A list of VPC security group IDs to associate with the DB instance.

+ */ + vpcSecurityGroupIds: string[] | undefined; + + /** + * @public + *

Configures the DB instance with a public IP to facilitate access.

+ */ + publiclyAccessible?: boolean; + + /** + * @public + *

The Timestream for InfluxDB DB storage type to read and write InfluxDB data.

+ *

You can choose between 3 different types of provisioned Influx IOPS included storage according to your workloads requirements:

+ *
    + *
  • + *

    Influx IO Included 3000 IOPS

    + *
  • + *
  • + *

    Influx IO Included 12000 IOPS

    + *
  • + *
  • + *

    Influx IO Included 16000 IOPS

    + *
  • + *
+ */ + dbStorageType?: DbStorageType; + + /** + * @public + *

The amount of storage to allocate for your DB storage type in GiB (gibibytes).

+ */ + allocatedStorage: number | undefined; + + /** + * @public + *

The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.

+ */ + dbParameterGroupIdentifier?: string; + + /** + * @public + *

Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.

+ */ + deploymentType?: DeploymentType; + + /** + * @public + *

Configuration for sending InfluxDB engine logs to a specified S3 bucket.

+ */ + logDeliveryConfiguration?: LogDeliveryConfiguration; + + /** + * @public + *

A list of key-value pairs to associate with the DB instance.

+ */ + tags?: Record; +} + +/** + * @public + * @enum + */ +export const Status = { + AVAILABLE: "AVAILABLE", + CREATING: "CREATING", + DELETED: "DELETED", + DELETING: "DELETING", + FAILED: "FAILED", + MODIFYING: "MODIFYING", + UPDATING: "UPDATING", +} as const; + +/** + * @public + */ +export type Status = (typeof Status)[keyof typeof Status]; + +/** + * @public + */ +export interface CreateDbInstanceOutput { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB instance.

+ */ + arn: string | undefined; + + /** + * @public + *

The status of the DB instance.

+ */ + status?: Status; + + /** + * @public + *

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

+ */ + endpoint?: string; + + /** + * @public + *

The Timestream for InfluxDB instance type that InfluxDB runs on.

+ */ + dbInstanceType?: DbInstanceType; + + /** + * @public + *

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

+ */ + dbStorageType?: DbStorageType; + + /** + * @public + *

The amount of storage allocated for your DB storage type (in gibibytes).

+ */ + allocatedStorage?: number; + + /** + * @public + *

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

+ */ + deploymentType?: DeploymentType; + + /** + * @public + *

A list of VPC subnet IDs associated with the DB instance.

+ */ + vpcSubnetIds: string[] | undefined; + + /** + * @public + *

Indicates if the DB instance has a public IP to facilitate access.

+ */ + publiclyAccessible?: boolean; + + /** + * @public + *

A list of VPC security group IDs associated with the DB instance.

+ */ + vpcSecurityGroupIds?: string[]; + + /** + * @public + *

The id of the DB parameter group assigned to your DB instance.

+ */ + dbParameterGroupIdentifier?: string; + + /** + * @public + *

The Availability Zone in which the DB instance resides.

+ */ + availabilityZone?: string; + + /** + * @public + *

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

+ */ + secondaryAvailabilityZone?: string; + + /** + * @public + *

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

+ */ + logDeliveryConfiguration?: LogDeliveryConfiguration; + + /** + * @public + *

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

+ */ + influxAuthParametersSecretArn?: string; +} + +/** + * @public + *

The request processing has failed because of an unknown error, exception or failure.

+ */ +export class InternalServerException extends __BaseException { + readonly name: "InternalServerException" = "InternalServerException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InternalServerException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalServerException.prototype); + } +} + +/** + * @public + *

The requested resource was not found or does not exist.

+ */ +export class ResourceNotFoundException extends __BaseException { + readonly name: "ResourceNotFoundException" = "ResourceNotFoundException"; + readonly $fault: "client" = "client"; + /** + * @public + *

The identifier for the Timestream for InfluxDB resource associated with the request.

+ */ + resourceId: string | undefined; + + /** + * @public + *

The type of Timestream for InfluxDB resource associated with the request.

+ */ + resourceType: string | undefined; + + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + this.resourceId = opts.resourceId; + this.resourceType = opts.resourceType; + } +} + +/** + * @public + *

The request exceeds the service quota.

+ */ +export class ServiceQuotaExceededException extends __BaseException { + readonly name: "ServiceQuotaExceededException" = "ServiceQuotaExceededException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ServiceQuotaExceededException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype); + } +} + +/** + * @public + *

The request was denied due to request throttling.

+ */ +export class ThrottlingException extends __BaseException { + readonly name: "ThrottlingException" = "ThrottlingException"; + readonly $fault: "client" = "client"; + $retryable = {}; + /** + * @public + *

The number of seconds the caller should wait before retrying.

+ */ + retryAfterSeconds?: number; + + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ThrottlingException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ThrottlingException.prototype); + this.retryAfterSeconds = opts.retryAfterSeconds; + } +} + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + OTHER: "OTHER", +} as const; + +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + *

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

+ */ +export class ValidationException extends __BaseException { + readonly name: "ValidationException" = "ValidationException"; + readonly $fault: "client" = "client"; + /** + * @public + *

The reason that validation failed.

+ */ + reason: ValidationExceptionReason | undefined; + + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ValidationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ValidationException.prototype); + this.reason = opts.reason; + } +} + +/** + * @public + */ +export interface DeleteDbInstanceInput { + /** + * @public + *

The id of the DB instance.

+ */ + identifier: string | undefined; +} + +/** + * @public + */ +export interface DeleteDbInstanceOutput { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB instance.

+ */ + arn: string | undefined; + + /** + * @public + *

The status of the DB instance.

+ */ + status?: Status; + + /** + * @public + *

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

+ */ + endpoint?: string; + + /** + * @public + *

The Timestream for InfluxDB instance type that InfluxDB runs on.

+ */ + dbInstanceType?: DbInstanceType; + + /** + * @public + *

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

+ */ + dbStorageType?: DbStorageType; + + /** + * @public + *

The amount of storage allocated for your DB storage type (in gibibytes).

+ */ + allocatedStorage?: number; + + /** + * @public + *

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

+ */ + deploymentType?: DeploymentType; + + /** + * @public + *

A list of VPC subnet IDs associated with the DB instance.

+ */ + vpcSubnetIds: string[] | undefined; + + /** + * @public + *

Indicates if the DB instance has a public IP to facilitate access.

+ */ + publiclyAccessible?: boolean; + + /** + * @public + *

A list of VPC security group IDs associated with the DB instance.

+ */ + vpcSecurityGroupIds?: string[]; + + /** + * @public + *

The id of the DB parameter group assigned to your DB instance.

+ */ + dbParameterGroupIdentifier?: string; + + /** + * @public + *

The Availability Zone in which the DB instance resides.

+ */ + availabilityZone?: string; + + /** + * @public + *

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

+ */ + secondaryAvailabilityZone?: string; + + /** + * @public + *

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

+ */ + logDeliveryConfiguration?: LogDeliveryConfiguration; + + /** + * @public + *

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

+ */ + influxAuthParametersSecretArn?: string; +} + +/** + * @public + */ +export interface GetDbInstanceInput { + /** + * @public + *

The id of the DB instance.

+ */ + identifier: string | undefined; +} + +/** + * @public + */ +export interface GetDbInstanceOutput { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB instance.

+ */ + arn: string | undefined; + + /** + * @public + *

The status of the DB instance.

+ */ + status?: Status; + + /** + * @public + *

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

+ */ + endpoint?: string; + + /** + * @public + *

The Timestream for InfluxDB instance type that InfluxDB runs on.

+ */ + dbInstanceType?: DbInstanceType; + + /** + * @public + *

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

+ */ + dbStorageType?: DbStorageType; + + /** + * @public + *

The amount of storage allocated for your DB storage type (in gibibytes).

+ */ + allocatedStorage?: number; + + /** + * @public + *

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

+ */ + deploymentType?: DeploymentType; + + /** + * @public + *

A list of VPC subnet IDs associated with the DB instance.

+ */ + vpcSubnetIds: string[] | undefined; + + /** + * @public + *

Indicates if the DB instance has a public IP to facilitate access.

+ */ + publiclyAccessible?: boolean; + + /** + * @public + *

A list of VPC security group IDs associated with the DB instance.

+ */ + vpcSecurityGroupIds?: string[]; + + /** + * @public + *

The id of the DB parameter group assigned to your DB instance.

+ */ + dbParameterGroupIdentifier?: string; + + /** + * @public + *

The Availability Zone in which the DB instance resides.

+ */ + availabilityZone?: string; + + /** + * @public + *

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

+ */ + secondaryAvailabilityZone?: string; + + /** + * @public + *

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

+ */ + logDeliveryConfiguration?: LogDeliveryConfiguration; + + /** + * @public + *

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

+ */ + influxAuthParametersSecretArn?: string; +} + +/** + * @public + */ +export interface ListDbInstancesInput { + /** + * @public + *

The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

+ */ + nextToken?: string; + + /** + * @public + *

The maximum number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

+ */ + maxResults?: number; +} + +/** + * @public + *

Contains a summary of a DB instance.

+ */ +export interface DbInstanceSummary { + /** + * @public + *

The service-generated unique identifier of the DB instance.

+ */ + id: string | undefined; + + /** + * @public + *

This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and AWS CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB instance.

+ */ + arn: string | undefined; + + /** + * @public + *

The status of the DB instance.

+ */ + status?: Status; + + /** + * @public + *

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

+ */ + endpoint?: string; + + /** + * @public + *

The Timestream for InfluxDB instance type to run InfluxDB on.

+ */ + dbInstanceType?: DbInstanceType; + + /** + * @public + *

The storage type for your DB instance.

+ */ + dbStorageType?: DbStorageType; + + /** + * @public + *

The amount of storage to allocate for your DbStorageType in GiB (gibibytes).

+ */ + allocatedStorage?: number; + + /** + * @public + *

Single-Instance or with a MultiAZ Standby for High availability.

+ */ + deploymentType?: DeploymentType; +} + +/** + * @public + */ +export interface ListDbInstancesOutput { + /** + * @public + *

A list of Timestream for InfluxDB DB instance summaries.

+ */ + items: DbInstanceSummary[] | undefined; + + /** + * @public + *

Token from a previous call of the operation. When this value is provided, the + * service returns results from where the previous response left off.

+ */ + nextToken?: string; +} + +/** + * @public + */ +export interface UpdateDbInstanceInput { + /** + * @public + *

The id of the DB instance.

+ */ + identifier: string | undefined; + + /** + * @public + *

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

+ */ + logDeliveryConfiguration?: LogDeliveryConfiguration; + + /** + * @public + *

The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.

+ */ + dbParameterGroupIdentifier?: string; +} + +/** + * @public + */ +export interface UpdateDbInstanceOutput { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and AWS CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB instance.

+ */ + arn: string | undefined; + + /** + * @public + *

The status of the DB instance.

+ */ + status?: Status; + + /** + * @public + *

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

+ */ + endpoint?: string; + + /** + * @public + *

The Timestream for InfluxDB instance type that InfluxDB runs on.

+ */ + dbInstanceType?: DbInstanceType; + + /** + * @public + *

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

+ */ + dbStorageType?: DbStorageType; + + /** + * @public + *

The amount of storage allocated for your DB storage type (in gibibytes).

+ */ + allocatedStorage?: number; + + /** + * @public + *

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

+ */ + deploymentType?: DeploymentType; + + /** + * @public + *

A list of VPC subnet IDs associated with the DB instance.

+ */ + vpcSubnetIds: string[] | undefined; + + /** + * @public + *

Indicates if the DB instance has a public IP to facilitate access.

+ */ + publiclyAccessible?: boolean; + + /** + * @public + *

A list of VPC security group IDs associated with the DB instance.

+ */ + vpcSecurityGroupIds?: string[]; + + /** + * @public + *

The id of the DB parameter group assigned to your DB instance.

+ */ + dbParameterGroupIdentifier?: string; + + /** + * @public + *

The Availability Zone in which the DB instance resides.

+ */ + availabilityZone?: string; + + /** + * @public + *

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

+ */ + secondaryAvailabilityZone?: string; + + /** + * @public + *

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

+ */ + logDeliveryConfiguration?: LogDeliveryConfiguration; + + /** + * @public + *

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

+ */ + influxAuthParametersSecretArn?: string; +} + +/** + * @public + * @enum + */ +export const LogLevel = { + DEBUG: "debug", + ERROR: "error", + INFO: "info", +} as const; + +/** + * @public + */ +export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel]; + +/** + * @public + * @enum + */ +export const TracingType = { + JAEGER: "jaeger", + LOG: "log", +} as const; + +/** + * @public + */ +export type TracingType = (typeof TracingType)[keyof typeof TracingType]; + +/** + * @public + *

All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB.

+ */ +export interface InfluxDBv2Parameters { + /** + * @public + *

Include option to show detailed logs for Flux queries.

+ *

Default: false

+ */ + fluxLogEnabled?: boolean; + + /** + * @public + *

Log output level. InfluxDB outputs log entries with severity levels greater than or equal to the level specified.

+ *

Default: info

+ */ + logLevel?: LogLevel; + + /** + * @public + *

Disable the task scheduler. If problematic tasks prevent InfluxDB from starting, use this option to start InfluxDB without scheduling or executing tasks.

+ *

Default: false

+ */ + noTasks?: boolean; + + /** + * @public + *

Number of queries allowed to execute concurrently. Setting to 0 allows an unlimited number of concurrent queries.

+ *

Default: 0

+ */ + queryConcurrency?: number; + + /** + * @public + *

Maximum number of queries allowed in execution queue. When queue limit is reached, new queries are rejected. Setting to 0 allows an unlimited number of queries in the queue.

+ *

Default: 0

+ */ + queryQueueSize?: number; + + /** + * @public + *

Enable tracing in InfluxDB and specifies the tracing type. Tracing is disabled by default.

+ */ + tracingType?: TracingType; + + /** + * @public + *

Disable the HTTP /metrics endpoint which exposes internal InfluxDB metrics.

+ *

Default: false

+ */ + metricsDisabled?: boolean; +} + +/** + * @public + *

The parameters that comprise the parameter group.

+ */ +export type _Parameters = _Parameters.InfluxDBv2Member | _Parameters.$UnknownMember; + +/** + * @public + */ +export namespace _Parameters { + /** + * @public + *

All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB.

+ */ + export interface InfluxDBv2Member { + InfluxDBv2: InfluxDBv2Parameters; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + InfluxDBv2?: never; + $unknown: [string, any]; + } + + export interface Visitor { + InfluxDBv2: (value: InfluxDBv2Parameters) => T; + _: (name: string, value: any) => T; + } + + export const visit = (value: _Parameters, visitor: Visitor): T => { + if (value.InfluxDBv2 !== undefined) return visitor.InfluxDBv2(value.InfluxDBv2); + return visitor._(value.$unknown[0], value.$unknown[1]); + }; +} + +/** + * @public + */ +export interface CreateDbParameterGroupInput { + /** + * @public + *

The name of the DB parameter group. The name must be unique per customer and per region.

+ */ + name: string | undefined; + + /** + * @public + *

A description of the DB parameter group.

+ */ + description?: string; + + /** + * @public + *

A list of the parameters that comprise the DB parameter group.

+ */ + parameters?: _Parameters; + + /** + * @public + *

A list of key-value pairs to associate with the DB parameter group.

+ */ + tags?: Record; +} + +/** + * @public + */ +export interface CreateDbParameterGroupOutput { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARM) of the DB parameter group.

+ */ + arn: string | undefined; + + /** + * @public + *

The description of the DB parameter group.

+ */ + description?: string; + + /** + * @public + *

A list of the parameters that comprise the DB parameter group.

+ */ + parameters?: _Parameters; +} + +/** + * @public + */ +export interface GetDbParameterGroupInput { + /** + * @public + *

The id of the DB parameter group.

+ */ + identifier: string | undefined; +} + +/** + * @public + */ +export interface GetDbParameterGroupOutput { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB parameter group.

+ */ + arn: string | undefined; + + /** + * @public + *

A description of the DB parameter group.

+ */ + description?: string; + + /** + * @public + *

The parameters that comprise the DB parameter group.

+ */ + parameters?: _Parameters; +} + +/** + * @public + */ +export interface ListDbParameterGroupsInput { + /** + * @public + *

The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

+ */ + nextToken?: string; + + /** + * @public + *

The maximum number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

+ */ + maxResults?: number; +} + +/** + * @public + *

Contains a summary of a DB parameter group.

+ */ +export interface DbParameterGroupSummary { + /** + * @public + *

A service-generated unique identifier.

+ */ + id: string | undefined; + + /** + * @public + *

This customer-supplied name uniquely identifies the parameter group.

+ */ + name: string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) of the DB parameter group.

+ */ + arn: string | undefined; + + /** + * @public + *

A description of the DB parameter group.

+ */ + description?: string; +} + +/** + * @public + */ +export interface ListDbParameterGroupsOutput { + /** + * @public + *

A list of Timestream for InfluxDB DB parameter group summaries.

+ */ + items: DbParameterGroupSummary[] | undefined; + + /** + * @public + *

Token from a previous call of the operation. When this value is provided, the + * service returns results from where the previous response left off.

+ */ + nextToken?: string; +} + +/** + * @public + */ +export interface ListTagsForResourceRequest { + /** + * @public + *

The Amazon Resource Name (ARN) of the tagged resource.

+ */ + resourceArn: string | undefined; +} + +/** + * @public + */ +export interface ListTagsForResourceResponse { + /** + * @public + *

A list of tags used to categorize and track resources.

+ */ + tags?: Record; +} + +/** + * @public + */ +export interface TagResourceRequest { + /** + * @public + *

The Amazon Resource Name (ARN) of the tagged resource.

+ */ + resourceArn: string | undefined; + + /** + * @public + *

A list of tags used to categorize and track resources.

+ */ + tags: Record | undefined; +} + +/** + * @public + */ +export interface UntagResourceRequest { + /** + * @public + *

The Amazon Resource Name (ARN) of the tagged resource.

+ */ + resourceArn: string | undefined; + + /** + * @public + *

The keys used to identify the tags.

+ */ + tagKeys: string[] | undefined; +} + +/** + * @internal + */ +export const CreateDbInstanceInputFilterSensitiveLog = (obj: CreateDbInstanceInput): any => ({ + ...obj, + ...(obj.username && { username: SENSITIVE_STRING }), + ...(obj.password && { password: SENSITIVE_STRING }), +}); diff --git a/clients/client-timestream-influxdb/src/pagination/Interfaces.ts b/clients/client-timestream-influxdb/src/pagination/Interfaces.ts new file mode 100644 index 000000000000..8d94aa09d4a3 --- /dev/null +++ b/clients/client-timestream-influxdb/src/pagination/Interfaces.ts @@ -0,0 +1,11 @@ +// smithy-typescript generated code +import { PaginationConfiguration } from "@smithy/types"; + +import { TimestreamInfluxDBClient } from "../TimestreamInfluxDBClient"; + +/** + * @public + */ +export interface TimestreamInfluxDBPaginationConfiguration extends PaginationConfiguration { + client: TimestreamInfluxDBClient; +} diff --git a/clients/client-timestream-influxdb/src/pagination/ListDbInstancesPaginator.ts b/clients/client-timestream-influxdb/src/pagination/ListDbInstancesPaginator.ts new file mode 100644 index 000000000000..6f9235a27fdc --- /dev/null +++ b/clients/client-timestream-influxdb/src/pagination/ListDbInstancesPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListDbInstancesCommand, + ListDbInstancesCommandInput, + ListDbInstancesCommandOutput, +} from "../commands/ListDbInstancesCommand"; +import { TimestreamInfluxDBClient } from "../TimestreamInfluxDBClient"; +import { TimestreamInfluxDBPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListDbInstances: ( + config: TimestreamInfluxDBPaginationConfiguration, + input: ListDbInstancesCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + TimestreamInfluxDBPaginationConfiguration, + ListDbInstancesCommandInput, + ListDbInstancesCommandOutput +>(TimestreamInfluxDBClient, ListDbInstancesCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-timestream-influxdb/src/pagination/ListDbParameterGroupsPaginator.ts b/clients/client-timestream-influxdb/src/pagination/ListDbParameterGroupsPaginator.ts new file mode 100644 index 000000000000..092de1be124a --- /dev/null +++ b/clients/client-timestream-influxdb/src/pagination/ListDbParameterGroupsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListDbParameterGroupsCommand, + ListDbParameterGroupsCommandInput, + ListDbParameterGroupsCommandOutput, +} from "../commands/ListDbParameterGroupsCommand"; +import { TimestreamInfluxDBClient } from "../TimestreamInfluxDBClient"; +import { TimestreamInfluxDBPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListDbParameterGroups: ( + config: TimestreamInfluxDBPaginationConfiguration, + input: ListDbParameterGroupsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + TimestreamInfluxDBPaginationConfiguration, + ListDbParameterGroupsCommandInput, + ListDbParameterGroupsCommandOutput +>(TimestreamInfluxDBClient, ListDbParameterGroupsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-timestream-influxdb/src/pagination/index.ts b/clients/client-timestream-influxdb/src/pagination/index.ts new file mode 100644 index 000000000000..3f8188ae4745 --- /dev/null +++ b/clients/client-timestream-influxdb/src/pagination/index.ts @@ -0,0 +1,4 @@ +// smithy-typescript generated code +export * from "./Interfaces"; +export * from "./ListDbInstancesPaginator"; +export * from "./ListDbParameterGroupsPaginator"; diff --git a/clients/client-timestream-influxdb/src/protocols/Aws_json1_0.ts b/clients/client-timestream-influxdb/src/protocols/Aws_json1_0.ts new file mode 100644 index 000000000000..b2d24e53b91f --- /dev/null +++ b/clients/client-timestream-influxdb/src/protocols/Aws_json1_0.ts @@ -0,0 +1,701 @@ +// smithy-typescript generated code +import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { + _json, + collectBody, + decorateServiceException as __decorateServiceException, + withBaseException, +} from "@smithy/smithy-client"; +import { + Endpoint as __Endpoint, + HeaderBag as __HeaderBag, + ResponseMetadata as __ResponseMetadata, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CreateDbInstanceCommandInput, CreateDbInstanceCommandOutput } from "../commands/CreateDbInstanceCommand"; +import { + CreateDbParameterGroupCommandInput, + CreateDbParameterGroupCommandOutput, +} from "../commands/CreateDbParameterGroupCommand"; +import { DeleteDbInstanceCommandInput, DeleteDbInstanceCommandOutput } from "../commands/DeleteDbInstanceCommand"; +import { GetDbInstanceCommandInput, GetDbInstanceCommandOutput } from "../commands/GetDbInstanceCommand"; +import { + GetDbParameterGroupCommandInput, + GetDbParameterGroupCommandOutput, +} from "../commands/GetDbParameterGroupCommand"; +import { ListDbInstancesCommandInput, ListDbInstancesCommandOutput } from "../commands/ListDbInstancesCommand"; +import { + ListDbParameterGroupsCommandInput, + ListDbParameterGroupsCommandOutput, +} from "../commands/ListDbParameterGroupsCommand"; +import { + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "../commands/ListTagsForResourceCommand"; +import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand"; +import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand"; +import { UpdateDbInstanceCommandInput, UpdateDbInstanceCommandOutput } from "../commands/UpdateDbInstanceCommand"; +import { + _Parameters, + AccessDeniedException, + ConflictException, + CreateDbInstanceInput, + CreateDbParameterGroupInput, + DeleteDbInstanceInput, + GetDbInstanceInput, + GetDbParameterGroupInput, + InfluxDBv2Parameters, + InternalServerException, + ListDbInstancesInput, + ListDbParameterGroupsInput, + ListTagsForResourceRequest, + LogDeliveryConfiguration, + ResourceNotFoundException, + S3Configuration, + ServiceQuotaExceededException, + TagResourceRequest, + ThrottlingException, + UntagResourceRequest, + UpdateDbInstanceInput, + ValidationException, +} from "../models/models_0"; +import { TimestreamInfluxDBServiceException as __BaseException } from "../models/TimestreamInfluxDBServiceException"; + +/** + * serializeAws_json1_0CreateDbInstanceCommand + */ +export const se_CreateDbInstanceCommand = async ( + input: CreateDbInstanceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateDbInstance"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0CreateDbParameterGroupCommand + */ +export const se_CreateDbParameterGroupCommand = async ( + input: CreateDbParameterGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateDbParameterGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DeleteDbInstanceCommand + */ +export const se_DeleteDbInstanceCommand = async ( + input: DeleteDbInstanceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDbInstance"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0GetDbInstanceCommand + */ +export const se_GetDbInstanceCommand = async ( + input: GetDbInstanceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDbInstance"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0GetDbParameterGroupCommand + */ +export const se_GetDbParameterGroupCommand = async ( + input: GetDbParameterGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDbParameterGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0ListDbInstancesCommand + */ +export const se_ListDbInstancesCommand = async ( + input: ListDbInstancesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListDbInstances"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0ListDbParameterGroupsCommand + */ +export const se_ListDbParameterGroupsCommand = async ( + input: ListDbParameterGroupsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListDbParameterGroups"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0ListTagsForResourceCommand + */ +export const se_ListTagsForResourceCommand = async ( + input: ListTagsForResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListTagsForResource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0TagResourceCommand + */ +export const se_TagResourceCommand = async ( + input: TagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("TagResource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0UntagResourceCommand + */ +export const se_UntagResourceCommand = async ( + input: UntagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UntagResource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0UpdateDbInstanceCommand + */ +export const se_UpdateDbInstanceCommand = async ( + input: UpdateDbInstanceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateDbInstance"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * deserializeAws_json1_0CreateDbInstanceCommand + */ +export const de_CreateDbInstanceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: CreateDbInstanceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0CreateDbParameterGroupCommand + */ +export const de_CreateDbParameterGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: CreateDbParameterGroupCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DeleteDbInstanceCommand + */ +export const de_DeleteDbInstanceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteDbInstanceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0GetDbInstanceCommand + */ +export const de_GetDbInstanceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDbInstanceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0GetDbParameterGroupCommand + */ +export const de_GetDbParameterGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDbParameterGroupCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListDbInstancesCommand + */ +export const de_ListDbInstancesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListDbInstancesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListDbParameterGroupsCommand + */ +export const de_ListDbParameterGroupsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListDbParameterGroupsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListTagsForResourceCommand + */ +export const de_ListTagsForResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListTagsForResourceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0TagResourceCommand + */ +export const de_TagResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: TagResourceCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_0UntagResourceCommand + */ +export const de_UntagResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: UntagResourceCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_0UpdateDbInstanceCommand + */ +export const de_UpdateDbInstanceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateDbInstanceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserialize_Aws_json1_0CommandError + */ +const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.timestreaminfluxdb#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.timestreaminfluxdb#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.timestreaminfluxdb#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.timestreaminfluxdb#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.timestreaminfluxdb#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }) as never; + } +}; + +/** + * deserializeAws_json1_0AccessDeniedExceptionRes + */ +const de_AccessDeniedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new AccessDeniedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_0ConflictExceptionRes + */ +const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_0InternalServerExceptionRes + */ +const de_InternalServerExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new InternalServerException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_0ResourceNotFoundExceptionRes + */ +const de_ResourceNotFoundExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_0ServiceQuotaExceededExceptionRes + */ +const de_ServiceQuotaExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ServiceQuotaExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_0ThrottlingExceptionRes + */ +const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ThrottlingException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_0ValidationExceptionRes + */ +const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ValidationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +// se_CreateDbInstanceInput omitted. + +// se_CreateDbParameterGroupInput omitted. + +// se_DeleteDbInstanceInput omitted. + +// se_GetDbInstanceInput omitted. + +// se_GetDbParameterGroupInput omitted. + +// se_InfluxDBv2Parameters omitted. + +// se_ListDbInstancesInput omitted. + +// se_ListDbParameterGroupsInput omitted. + +// se_ListTagsForResourceRequest omitted. + +// se_LogDeliveryConfiguration omitted. + +// se__Parameters omitted. + +// se_RequestTagMap omitted. + +// se_S3Configuration omitted. + +// se_TagKeys omitted. + +// se_TagResourceRequest omitted. + +// se_UntagResourceRequest omitted. + +// se_UpdateDbInstanceInput omitted. + +// se_VpcSecurityGroupIdList omitted. + +// se_VpcSubnetIdList omitted. + +// de_AccessDeniedException omitted. + +// de_ConflictException omitted. + +// de_CreateDbInstanceOutput omitted. + +// de_CreateDbParameterGroupOutput omitted. + +// de_DbInstanceSummary omitted. + +// de_DbInstanceSummaryList omitted. + +// de_DbParameterGroupSummary omitted. + +// de_DbParameterGroupSummaryList omitted. + +// de_DeleteDbInstanceOutput omitted. + +// de_GetDbInstanceOutput omitted. + +// de_GetDbParameterGroupOutput omitted. + +// de_InfluxDBv2Parameters omitted. + +// de_InternalServerException omitted. + +// de_ListDbInstancesOutput omitted. + +// de_ListDbParameterGroupsOutput omitted. + +// de_ListTagsForResourceResponse omitted. + +// de_LogDeliveryConfiguration omitted. + +// de__Parameters omitted. + +// de_ResourceNotFoundException omitted. + +// de_ResponseTagMap omitted. + +// de_S3Configuration omitted. + +// de_ServiceQuotaExceededException omitted. + +// de_ThrottlingException omitted. + +// de_UpdateDbInstanceOutput omitted. + +// de_ValidationException omitted. + +// de_VpcSecurityGroupIdList omitted. + +// de_VpcSubnetIdList omitted. + +const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ + httpStatusCode: output.statusCode, + requestId: + output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], +}); + +// Encode Uint8Array data into string with utf-8. +const collectBodyString = (streamBody: any, context: __SerdeContext): Promise => + collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + +const throwDefaultError = withBaseException(__BaseException); +const buildHttpRpcRequest = async ( + context: __SerdeContext, + headers: __HeaderBag, + path: string, + resolvedHostname: string | undefined, + body: any +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents: any = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers, + }; + if (resolvedHostname !== undefined) { + contents.hostname = resolvedHostname; + } + if (body !== undefined) { + contents.body = body; + } + return new __HttpRequest(contents); +}; +function sharedHeaders(operation: string): __HeaderBag { + return { + "content-type": "application/x-amz-json-1.0", + "x-amz-target": `AmazonTimestreamInfluxDB.${operation}`, + }; +} diff --git a/clients/client-timestream-influxdb/src/runtimeConfig.browser.ts b/clients/client-timestream-influxdb/src/runtimeConfig.browser.ts new file mode 100644 index 000000000000..453940f9af4e --- /dev/null +++ b/clients/client-timestream-influxdb/src/runtimeConfig.browser.ts @@ -0,0 +1,44 @@ +// smithy-typescript generated code +// @ts-ignore: package.json will be imported from dist folders +import packageInfo from "../package.json"; // eslint-disable-line + +import { Sha256 } from "@aws-crypto/sha256-browser"; +import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; +import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; +import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; +import { invalidProvider } from "@smithy/invalid-dependency"; +import { calculateBodyLength } from "@smithy/util-body-length-browser"; +import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; +import { TimestreamInfluxDBClientConfig } from "./TimestreamInfluxDBClient"; +import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; +import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; +import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: TimestreamInfluxDBClientConfig) => { + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getSharedRuntimeConfig(config); + return { + ...clientSharedValues, + ...config, + runtime: "browser", + defaultsMode, + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + credentialDefaultProvider: + config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), + defaultUserAgentProvider: + config?.defaultUserAgentProvider ?? + defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, + region: config?.region ?? invalidProvider("Region is missing"), + requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), + sha256: config?.sha256 ?? Sha256, + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), + useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), + }; +}; diff --git a/clients/client-timestream-influxdb/src/runtimeConfig.native.ts b/clients/client-timestream-influxdb/src/runtimeConfig.native.ts new file mode 100644 index 000000000000..62bc0c6ce623 --- /dev/null +++ b/clients/client-timestream-influxdb/src/runtimeConfig.native.ts @@ -0,0 +1,18 @@ +// smithy-typescript generated code +import { Sha256 } from "@aws-crypto/sha256-js"; + +import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; +import { TimestreamInfluxDBClientConfig } from "./TimestreamInfluxDBClient"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: TimestreamInfluxDBClientConfig) => { + const browserDefaults = getBrowserRuntimeConfig(config); + return { + ...browserDefaults, + ...config, + runtime: "react-native", + sha256: config?.sha256 ?? Sha256, + }; +}; diff --git a/clients/client-timestream-influxdb/src/runtimeConfig.shared.ts b/clients/client-timestream-influxdb/src/runtimeConfig.shared.ts new file mode 100644 index 000000000000..f33f226fda3c --- /dev/null +++ b/clients/client-timestream-influxdb/src/runtimeConfig.shared.ts @@ -0,0 +1,38 @@ +// smithy-typescript generated code +import { AwsSdkSigV4Signer } from "@aws-sdk/core"; +import { NoOpLogger } from "@smithy/smithy-client"; +import { IdentityProviderConfig } from "@smithy/types"; +import { parseUrl } from "@smithy/url-parser"; +import { fromBase64, toBase64 } from "@smithy/util-base64"; +import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; + +import { defaultTimestreamInfluxDBHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider"; +import { defaultEndpointResolver } from "./endpoint/endpointResolver"; +import { TimestreamInfluxDBClientConfig } from "./TimestreamInfluxDBClient"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: TimestreamInfluxDBClientConfig) => { + return { + apiVersion: "2023-01-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultTimestreamInfluxDBHttpAuthSchemeProvider, + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("aws.auth#sigv4"), + signer: new AwsSdkSigV4Signer(), + }, + ], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Timestream InfluxDB", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-timestream-influxdb/src/runtimeConfig.ts b/clients/client-timestream-influxdb/src/runtimeConfig.ts new file mode 100644 index 000000000000..3d430584458b --- /dev/null +++ b/clients/client-timestream-influxdb/src/runtimeConfig.ts @@ -0,0 +1,59 @@ +// smithy-typescript generated code +// @ts-ignore: package.json will be imported from dist folders +import packageInfo from "../package.json"; // eslint-disable-line + +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; +import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; +import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; +import { + NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS, + NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, + NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, +} from "@smithy/config-resolver"; +import { Hash } from "@smithy/hash-node"; +import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; +import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; +import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; +import { calculateBodyLength } from "@smithy/util-body-length-node"; +import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; +import { TimestreamInfluxDBClientConfig } from "./TimestreamInfluxDBClient"; +import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; +import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; +import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; +import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: TimestreamInfluxDBClientConfig) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, + defaultUserAgentProvider: + config?.defaultUserAgentProvider ?? + defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: + config?.retryMode ?? + loadNodeConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }), + sha256: config?.sha256 ?? Hash.bind(null, "sha256"), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + }; +}; diff --git a/clients/client-timestream-influxdb/src/runtimeExtensions.ts b/clients/client-timestream-influxdb/src/runtimeExtensions.ts new file mode 100644 index 000000000000..4c54fff401e8 --- /dev/null +++ b/clients/client-timestream-influxdb/src/runtimeExtensions.ts @@ -0,0 +1,48 @@ +// smithy-typescript generated code +import { + getAwsRegionExtensionConfiguration, + resolveAwsRegionExtensionConfiguration, +} from "@aws-sdk/region-config-resolver"; +import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; +import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; + +import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration"; +import { TimestreamInfluxDBExtensionConfiguration } from "./extensionConfiguration"; + +/** + * @public + */ +export interface RuntimeExtension { + configure(extensionConfiguration: TimestreamInfluxDBExtensionConfiguration): void; +} + +/** + * @public + */ +export interface RuntimeExtensionsConfig { + extensions: RuntimeExtension[]; +} + +const asPartial = >(t: T) => t; + +/** + * @internal + */ +export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { + const extensionConfiguration: TimestreamInfluxDBExtensionConfiguration = { + ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), + ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), + ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), + ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)), + }; + + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + + return { + ...runtimeConfig, + ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), + ...resolveDefaultRuntimeConfig(extensionConfiguration), + ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), + ...resolveHttpAuthRuntimeConfig(extensionConfiguration), + }; +}; diff --git a/clients/client-timestream-influxdb/tsconfig.cjs.json b/clients/client-timestream-influxdb/tsconfig.cjs.json new file mode 100644 index 000000000000..3567d85ba846 --- /dev/null +++ b/clients/client-timestream-influxdb/tsconfig.cjs.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "outDir": "dist-cjs" + } +} diff --git a/clients/client-timestream-influxdb/tsconfig.es.json b/clients/client-timestream-influxdb/tsconfig.es.json new file mode 100644 index 000000000000..809f57bde65e --- /dev/null +++ b/clients/client-timestream-influxdb/tsconfig.es.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "lib": ["dom"], + "module": "esnext", + "outDir": "dist-es" + } +} diff --git a/clients/client-timestream-influxdb/tsconfig.json b/clients/client-timestream-influxdb/tsconfig.json new file mode 100644 index 000000000000..344909de2128 --- /dev/null +++ b/clients/client-timestream-influxdb/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "@tsconfig/node14/tsconfig.json", + "compilerOptions": { + "downlevelIteration": true, + "importHelpers": true, + "incremental": true, + "removeComments": true, + "resolveJsonModule": true, + "rootDir": "src", + "useUnknownInCatchVariables": false + }, + "exclude": ["test/"] +} diff --git a/clients/client-timestream-influxdb/tsconfig.types.json b/clients/client-timestream-influxdb/tsconfig.types.json new file mode 100644 index 000000000000..4c3dfa7b3d25 --- /dev/null +++ b/clients/client-timestream-influxdb/tsconfig.types.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "removeComments": false, + "declaration": true, + "declarationDir": "dist-types", + "emitDeclarationOnly": true + }, + "exclude": ["test/**/*", "dist-types/**/*"] +} diff --git a/codegen/sdk-codegen/aws-models/timestream-influxdb.json b/codegen/sdk-codegen/aws-models/timestream-influxdb.json new file mode 100644 index 000000000000..4021986cd4ab --- /dev/null +++ b/codegen/sdk-codegen/aws-models/timestream-influxdb.json @@ -0,0 +1,2849 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.timestreaminfluxdb#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

You do not have sufficient access to perform this action.

", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.timestreaminfluxdb#AllocatedStorage": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 20, + "max": 16384 + } + } + }, + "com.amazonaws.timestreaminfluxdb#AmazonTimestreamInfluxDB": { + "type": "service", + "version": "2023-01-27", + "operations": [ + { + "target": "com.amazonaws.timestreaminfluxdb#ListTagsForResource" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#TagResource" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#UntagResource" + } + ], + "resources": [ + { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceResource" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupResource" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Timestream InfluxDB", + "arnNamespace": "timestream-influxdb" + }, + "aws.auth#sigv4": { + "name": "timestream-influxdb" + }, + "aws.iam#defineConditionKeys": { + "aws:ResourceTag/${TagKey}": { + "type": "String", + "documentation": "Filters access by a tag key and value pair of a resource", + "externalDocumentation": "${DocHomeURL}IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag" + }, + "aws:RequestTag/${TagKey}": { + "type": "String", + "documentation": "Filters access by a tag key and value pair that is allowed in the request", + "externalDocumentation": "${DocHomeURL}IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag" + }, + "aws:TagKeys": { + "type": "ArrayOfString", + "documentation": "Filters access by a list of tag keys that are allowed in the request", + "externalDocumentation": "${DocHomeURL}IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys" + } + }, + "aws.iam#disableConditionKeyInference": {}, + "aws.protocols#awsJson1_0": {}, + "smithy.api#cors": { + "additionalAllowedHeaders": [ + "*,authorization,date,x-amz-date,x-amz-security-token,x-amz-target,content-type,x-amz-content-sha256,x-amz-user-agent,x-amzn-platform-id,x-amzn-trace-id,amz-sdk-invocation-id,amz-sdk-request" + ] + }, + "smithy.api#documentation": "

Amazon Timestream for InfluxDB is a managed time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open-source APIs. With Amazon Timestream for InfluxDB, it is easy to set up, operate, and scale time-series workloads that can answer queries with single-digit millisecond query response time.

", + "smithy.api#title": "Timestream InfluxDB", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://timestream-influxdb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://timestream-influxdb-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://timestream-influxdb.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://timestream-influxdb.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://timestream-influxdb.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" + } + } + }, + "com.amazonaws.timestreaminfluxdb#Arn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1011 + }, + "smithy.api#pattern": "^arn:aws[a-z\\-]*:timestream\\-influxdb:[a-z0-9\\-]+:[0-9]{12}:(db\\-instance|db\\-parameter\\-group)/[a-zA-Z0-9]{3,64}$" + } + }, + "com.amazonaws.timestreaminfluxdb#Bucket": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 64 + }, + "smithy.api#pattern": "^[^_][^\"]*$" + } + }, + "com.amazonaws.timestreaminfluxdb#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The identifier for the Timestream for InfluxDB resource associated with the request.

", + "smithy.api#required": {} + } + }, + "resourceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of Timestream for InfluxDB resource associated with the request.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request conflicts with an existing resource in Timestream for InfluxDB.

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.timestreaminfluxdb#CreateDbInstance": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#CreateDbInstanceInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#CreateDbInstanceOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ConflictException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "aws.iam#conditionKeys": ["aws:RequestTag/${TagKey}", "aws:TagKeys"], + "smithy.api#documentation": "

Creates a new Timestream for InfluxDB DB instance.

", + "smithy.api#idempotent": {}, + "smithy.api#tags": ["DbInstance"] + } + }, + "com.amazonaws.timestreaminfluxdb#CreateDbInstanceInput": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceName", + "traits": { + "smithy.api#documentation": "

The name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB instance names must be unique per customer and per region.

", + "smithy.api#required": {} + } + }, + "username": { + "target": "com.amazonaws.timestreaminfluxdb#Username", + "traits": { + "smithy.api#documentation": "

The username of the initial admin user created in InfluxDB. Must start with a letter and can't end with a hyphen or contain two consecutive hyphens. For example, my-user1. This username will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Amazon Secrets Manager in your account.

" + } + }, + "password": { + "target": "com.amazonaws.timestreaminfluxdb#Password", + "traits": { + "smithy.api#documentation": "

The password of the initial admin user created in InfluxDB. This password will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in AWS SecretManager in your account.

", + "smithy.api#required": {} + } + }, + "organization": { + "target": "com.amazonaws.timestreaminfluxdb#Organization", + "traits": { + "smithy.api#documentation": "

The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.

" + } + }, + "bucket": { + "target": "com.amazonaws.timestreaminfluxdb#Bucket", + "traits": { + "smithy.api#documentation": "

The name of the initial InfluxDB bucket. All InfluxDB data is stored in a bucket. A bucket combines the concept of a database and a retention period (the duration of time that each data point persists). A bucket belongs to an organization.

" + } + }, + "dbInstanceType": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB DB instance type to run InfluxDB on.

", + "smithy.api#required": {} + } + }, + "vpcSubnetIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSubnetIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC subnet IDs to associate with the DB instance. Provide at least two VPC subnet IDs in different availability zones when deploying with a Multi-AZ standby.

", + "smithy.api#required": {} + } + }, + "vpcSecurityGroupIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC security group IDs to associate with the DB instance.

", + "smithy.api#required": {} + } + }, + "publiclyAccessible": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Configures the DB instance with a public IP to facilitate access.

" + } + }, + "dbStorageType": { + "target": "com.amazonaws.timestreaminfluxdb#DbStorageType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB DB storage type to read and write InfluxDB data.

\n

You can choose between 3 different types of provisioned Influx IOPS included storage according to your workloads requirements:

\n
    \n
  • \n

    Influx IO Included 3000 IOPS

    \n
  • \n
  • \n

    Influx IO Included 12000 IOPS

    \n
  • \n
  • \n

    Influx IO Included 16000 IOPS

    \n
  • \n
" + } + }, + "allocatedStorage": { + "target": "com.amazonaws.timestreaminfluxdb#AllocatedStorage", + "traits": { + "smithy.api#documentation": "

The amount of storage to allocate for your DB storage type in GiB (gibibytes).

", + "smithy.api#required": {} + } + }, + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.

" + } + }, + "deploymentType": { + "target": "com.amazonaws.timestreaminfluxdb#DeploymentType", + "traits": { + "smithy.api#documentation": "

Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.

" + } + }, + "logDeliveryConfiguration": { + "target": "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to a specified S3 bucket.

" + } + }, + "tags": { + "target": "com.amazonaws.timestreaminfluxdb#RequestTagMap", + "traits": { + "smithy.api#documentation": "

A list of key-value pairs to associate with the DB instance.

" + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.timestreaminfluxdb#DbParameterGroupResource" + } + ] + } + }, + "com.amazonaws.timestreaminfluxdb#CreateDbInstanceOutput": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceName", + "traits": { + "smithy.api#documentation": "

The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB instance.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.timestreaminfluxdb#Status", + "traits": { + "smithy.api#documentation": "

The status of the DB instance.

" + } + }, + "endpoint": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

" + } + }, + "dbInstanceType": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB instance type that InfluxDB runs on.

" + } + }, + "dbStorageType": { + "target": "com.amazonaws.timestreaminfluxdb#DbStorageType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

" + } + }, + "allocatedStorage": { + "target": "com.amazonaws.timestreaminfluxdb#AllocatedStorage", + "traits": { + "smithy.api#documentation": "

The amount of storage allocated for your DB storage type (in gibibytes).

" + } + }, + "deploymentType": { + "target": "com.amazonaws.timestreaminfluxdb#DeploymentType", + "traits": { + "smithy.api#documentation": "

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

" + } + }, + "vpcSubnetIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSubnetIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC subnet IDs associated with the DB instance.

", + "smithy.api#required": {} + } + }, + "publiclyAccessible": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates if the DB instance has a public IP to facilitate access.

" + } + }, + "vpcSecurityGroupIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC security group IDs associated with the DB instance.

" + } + }, + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group assigned to your DB instance.

" + } + }, + "availabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the DB instance resides.

" + } + }, + "secondaryAvailabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

" + } + }, + "logDeliveryConfiguration": { + "target": "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

" + } + }, + "influxAuthParametersSecretArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#CreateDbParameterGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#CreateDbParameterGroupInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#CreateDbParameterGroupOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ConflictException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "aws.iam#conditionKeys": ["aws:RequestTag/${TagKey}", "aws:TagKeys"], + "smithy.api#documentation": "

Creates a new Timestream for InfluxDB DB parameter group to associate with DB instances.

", + "smithy.api#idempotent": {}, + "smithy.api#tags": ["DbParameterGroup"] + } + }, + "com.amazonaws.timestreaminfluxdb#CreateDbParameterGroupInput": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupName", + "traits": { + "smithy.api#documentation": "

The name of the DB parameter group. The name must be unique per customer and per region.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A description of the DB parameter group.

", + "smithy.api#length": { + "min": 0, + "max": 500 + } + } + }, + "parameters": { + "target": "com.amazonaws.timestreaminfluxdb#Parameters", + "traits": { + "smithy.api#documentation": "

A list of the parameters that comprise the DB parameter group.

" + } + }, + "tags": { + "target": "com.amazonaws.timestreaminfluxdb#RequestTagMap", + "traits": { + "smithy.api#documentation": "

A list of key-value pairs to associate with the DB parameter group.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#CreateDbParameterGroupOutput": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupName", + "traits": { + "smithy.api#documentation": "

The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARM) of the DB parameter group.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The description of the DB parameter group.

" + } + }, + "parameters": { + "target": "com.amazonaws.timestreaminfluxdb#Parameters", + "traits": { + "smithy.api#documentation": "

A list of the parameters that comprise the DB parameter group.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 40 + }, + "smithy.api#pattern": "^[a-zA-z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$" + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceResource": { + "type": "resource", + "identifiers": { + "dbInstanceIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceIdentifier" + } + }, + "create": { + "target": "com.amazonaws.timestreaminfluxdb#CreateDbInstance" + }, + "read": { + "target": "com.amazonaws.timestreaminfluxdb#GetDbInstance" + }, + "update": { + "target": "com.amazonaws.timestreaminfluxdb#UpdateDbInstance" + }, + "delete": { + "target": "com.amazonaws.timestreaminfluxdb#DeleteDbInstance" + }, + "list": { + "target": "com.amazonaws.timestreaminfluxdb#ListDbInstances" + }, + "traits": { + "aws.iam#conditionKeys": ["aws:ResourceTag/${TagKey}"], + "aws.iam#iamResource": { + "name": "db-instance" + } + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceSummary": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceId", + "traits": { + "smithy.api#documentation": "

The service-generated unique identifier of the DB instance.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceName", + "traits": { + "smithy.api#documentation": "

This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and AWS CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB instance.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.timestreaminfluxdb#Status", + "traits": { + "smithy.api#documentation": "

The status of the DB instance.

" + } + }, + "endpoint": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

" + } + }, + "dbInstanceType": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB instance type to run InfluxDB on.

" + } + }, + "dbStorageType": { + "target": "com.amazonaws.timestreaminfluxdb#DbStorageType", + "traits": { + "smithy.api#documentation": "

The storage type for your DB instance.

" + } + }, + "allocatedStorage": { + "target": "com.amazonaws.timestreaminfluxdb#AllocatedStorage", + "traits": { + "smithy.api#documentation": "

The amount of storage to allocate for your DbStorageType in GiB (gibibytes).

" + } + }, + "deploymentType": { + "target": "com.amazonaws.timestreaminfluxdb#DeploymentType", + "traits": { + "smithy.api#documentation": "

Single-Instance or with a MultiAZ Standby for High availability.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains a summary of a DB instance.

" + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceSummary" + } + }, + "com.amazonaws.timestreaminfluxdb#DbInstanceType": { + "type": "enum", + "members": { + "DB_INFLUX_MEDIUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.medium" + } + }, + "DB_INFLUX_LARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.large" + } + }, + "DB_INFLUX_XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.xlarge" + } + }, + "DB_INFLUX_2XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.2xlarge" + } + }, + "DB_INFLUX_4XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.4xlarge" + } + }, + "DB_INFLUX_8XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.8xlarge" + } + }, + "DB_INFLUX_12XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.12xlarge" + } + }, + "DB_INFLUX_16XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "db.influx.16xlarge" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#DbParameterGroupId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.timestreaminfluxdb#DbParameterGroupName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$" + } + }, + "com.amazonaws.timestreaminfluxdb#DbParameterGroupResource": { + "type": "resource", + "identifiers": { + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier" + } + }, + "create": { + "target": "com.amazonaws.timestreaminfluxdb#CreateDbParameterGroup" + }, + "read": { + "target": "com.amazonaws.timestreaminfluxdb#GetDbParameterGroup" + }, + "list": { + "target": "com.amazonaws.timestreaminfluxdb#ListDbParameterGroups" + }, + "traits": { + "aws.iam#conditionKeys": ["aws:ResourceTag/${TagKey}"], + "aws.iam#iamResource": { + "name": "db-parameter-group" + } + } + }, + "com.amazonaws.timestreaminfluxdb#DbParameterGroupSummary": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupName", + "traits": { + "smithy.api#documentation": "

This customer-supplied name uniquely identifies the parameter group.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB parameter group.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A description of the DB parameter group.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains a summary of a DB parameter group.

" + } + }, + "com.amazonaws.timestreaminfluxdb#DbParameterGroupSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupSummary" + } + }, + "com.amazonaws.timestreaminfluxdb#DbStorageType": { + "type": "enum", + "members": { + "INFLUX_IO_INCLUDED_T1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InfluxIOIncludedT1" + } + }, + "INFLUX_IO_INCLUDED_T2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InfluxIOIncludedT2" + } + }, + "INFLUX_IO_INCLUDED_T3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InfluxIOIncludedT3" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#DeleteDbInstance": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#DeleteDbInstanceInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#DeleteDbInstanceOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ConflictException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a Timestream for InfluxDB DB instance.

", + "smithy.api#idempotent": {}, + "smithy.api#tags": ["DbInstance"] + } + }, + "com.amazonaws.timestreaminfluxdb#DeleteDbInstanceInput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB instance.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "dbInstanceIdentifier" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#DeleteDbInstanceOutput": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceName", + "traits": { + "smithy.api#documentation": "

The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB instance.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.timestreaminfluxdb#Status", + "traits": { + "smithy.api#documentation": "

The status of the DB instance.

" + } + }, + "endpoint": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

" + } + }, + "dbInstanceType": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB instance type that InfluxDB runs on.

" + } + }, + "dbStorageType": { + "target": "com.amazonaws.timestreaminfluxdb#DbStorageType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

" + } + }, + "allocatedStorage": { + "target": "com.amazonaws.timestreaminfluxdb#AllocatedStorage", + "traits": { + "smithy.api#documentation": "

The amount of storage allocated for your DB storage type (in gibibytes).

" + } + }, + "deploymentType": { + "target": "com.amazonaws.timestreaminfluxdb#DeploymentType", + "traits": { + "smithy.api#documentation": "

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

" + } + }, + "vpcSubnetIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSubnetIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC subnet IDs associated with the DB instance.

", + "smithy.api#required": {} + } + }, + "publiclyAccessible": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates if the DB instance has a public IP to facilitate access.

" + } + }, + "vpcSecurityGroupIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC security group IDs associated with the DB instance.

" + } + }, + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group assigned to your DB instance.

" + } + }, + "availabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the DB instance resides.

" + } + }, + "secondaryAvailabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

" + } + }, + "logDeliveryConfiguration": { + "target": "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

" + } + }, + "influxAuthParametersSecretArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#DeploymentType": { + "type": "enum", + "members": { + "SINGLE_AZ": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SINGLE_AZ" + } + }, + "WITH_MULTIAZ_STANDBY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WITH_MULTIAZ_STANDBY" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#GetDbInstance": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#GetDbInstanceInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#GetDbInstanceOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a Timestream for InfluxDB DB instance.

", + "smithy.api#readonly": {}, + "smithy.api#tags": ["DbInstance"] + } + }, + "com.amazonaws.timestreaminfluxdb#GetDbInstanceInput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB instance.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "dbInstanceIdentifier" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#GetDbInstanceOutput": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceName", + "traits": { + "smithy.api#documentation": "

The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB instance.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.timestreaminfluxdb#Status", + "traits": { + "smithy.api#documentation": "

The status of the DB instance.

" + } + }, + "endpoint": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

" + } + }, + "dbInstanceType": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB instance type that InfluxDB runs on.

" + } + }, + "dbStorageType": { + "target": "com.amazonaws.timestreaminfluxdb#DbStorageType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

" + } + }, + "allocatedStorage": { + "target": "com.amazonaws.timestreaminfluxdb#AllocatedStorage", + "traits": { + "smithy.api#documentation": "

The amount of storage allocated for your DB storage type (in gibibytes).

" + } + }, + "deploymentType": { + "target": "com.amazonaws.timestreaminfluxdb#DeploymentType", + "traits": { + "smithy.api#documentation": "

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

" + } + }, + "vpcSubnetIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSubnetIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC subnet IDs associated with the DB instance.

", + "smithy.api#required": {} + } + }, + "publiclyAccessible": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates if the DB instance has a public IP to facilitate access.

" + } + }, + "vpcSecurityGroupIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC security group IDs associated with the DB instance.

" + } + }, + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group assigned to your DB instance.

" + } + }, + "availabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the DB instance resides.

" + } + }, + "secondaryAvailabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

" + } + }, + "logDeliveryConfiguration": { + "target": "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

" + } + }, + "influxAuthParametersSecretArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#GetDbParameterGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#GetDbParameterGroupInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#GetDbParameterGroupOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a Timestream for InfluxDB DB parameter group.

", + "smithy.api#readonly": {}, + "smithy.api#tags": ["DbParameterGroup"] + } + }, + "com.amazonaws.timestreaminfluxdb#GetDbParameterGroupInput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "dbParameterGroupIdentifier" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#GetDbParameterGroupOutput": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupName", + "traits": { + "smithy.api#documentation": "

The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB parameter group.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A description of the DB parameter group.

" + } + }, + "parameters": { + "target": "com.amazonaws.timestreaminfluxdb#Parameters", + "traits": { + "smithy.api#documentation": "

The parameters that comprise the DB parameter group.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#InfluxDBv2Parameters": { + "type": "structure", + "members": { + "fluxLogEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Include option to show detailed logs for Flux queries.

\n

Default: false

" + } + }, + "logLevel": { + "target": "com.amazonaws.timestreaminfluxdb#LogLevel", + "traits": { + "smithy.api#documentation": "

Log output level. InfluxDB outputs log entries with severity levels greater than or equal to the level specified.

\n

Default: info

" + } + }, + "noTasks": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Disable the task scheduler. If problematic tasks prevent InfluxDB from starting, use this option to start InfluxDB without scheduling or executing tasks.

\n

Default: false

" + } + }, + "queryConcurrency": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Number of queries allowed to execute concurrently. Setting to 0 allows an unlimited number of concurrent queries.

\n

Default: 0

", + "smithy.api#range": { + "min": 0, + "max": 256 + } + } + }, + "queryQueueSize": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Maximum number of queries allowed in execution queue. When queue limit is reached, new queries are rejected. Setting to 0 allows an unlimited number of queries in the queue.

\n

Default: 0

", + "smithy.api#range": { + "min": 0, + "max": 256 + } + } + }, + "tracingType": { + "target": "com.amazonaws.timestreaminfluxdb#TracingType", + "traits": { + "smithy.api#documentation": "

Enable tracing in InfluxDB and specifies the tracing type. Tracing is disabled by default.

" + } + }, + "metricsDisabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Disable the HTTP /metrics endpoint which exposes internal InfluxDB metrics.

\n

Default: false

" + } + } + }, + "traits": { + "smithy.api#documentation": "

All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB.

" + } + }, + "com.amazonaws.timestreaminfluxdb#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request processing has failed because of an unknown error, exception or failure.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListDbInstances": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#ListDbInstancesInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#ListDbInstancesOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of Timestream for InfluxDB DB instances.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "items" + }, + "smithy.api#readonly": {}, + "smithy.api#tags": ["DbInstance"] + } + }, + "com.amazonaws.timestreaminfluxdb#ListDbInstancesInput": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.timestreaminfluxdb#NextToken", + "traits": { + "smithy.api#documentation": "

The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" + } + }, + "maxResults": { + "target": "com.amazonaws.timestreaminfluxdb#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListDbInstancesOutput": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceSummaryList", + "traits": { + "smithy.api#documentation": "

A list of Timestream for InfluxDB DB instance summaries.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.timestreaminfluxdb#NextToken", + "traits": { + "smithy.api#documentation": "

Token from a previous call of the operation. When this value is provided, the\n service returns results from where the previous response left off.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListDbParameterGroups": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#ListDbParameterGroupsInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#ListDbParameterGroupsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of Timestream for InfluxDB DB parameter groups.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "items" + }, + "smithy.api#readonly": {}, + "smithy.api#tags": ["DbParameterGroup"] + } + }, + "com.amazonaws.timestreaminfluxdb#ListDbParameterGroupsInput": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.timestreaminfluxdb#NextToken", + "traits": { + "smithy.api#documentation": "

The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" + } + }, + "maxResults": { + "target": "com.amazonaws.timestreaminfluxdb#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListDbParameterGroupsOutput": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupSummaryList", + "traits": { + "smithy.api#documentation": "

A list of Timestream for InfluxDB DB parameter group summaries.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.timestreaminfluxdb#NextToken", + "traits": { + "smithy.api#documentation": "

Token from a previous call of the operation. When this value is provided, the\n service returns results from where the previous response left off.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + } + ], + "traits": { + "aws.iam#conditionKeys": ["aws:ResourceTag/${TagKey}"], + "smithy.api#documentation": "

A list of tags applied to the resource.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the tagged resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.timestreaminfluxdb#ResponseTagMap", + "traits": { + "smithy.api#documentation": "

A list of tags used to categorize and track resources.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration": { + "type": "structure", + "members": { + "s3Configuration": { + "target": "com.amazonaws.timestreaminfluxdb#S3Configuration", + "traits": { + "smithy.api#documentation": "

Configuration for S3 bucket log delivery.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

" + } + }, + "com.amazonaws.timestreaminfluxdb#LogLevel": { + "type": "enum", + "members": { + "DEBUG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "debug" + } + }, + "INFO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "info" + } + }, + "ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "error" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.timestreaminfluxdb#NextToken": { + "type": "string" + }, + "com.amazonaws.timestreaminfluxdb#Organization": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + } + } + }, + "com.amazonaws.timestreaminfluxdb#Parameters": { + "type": "union", + "members": { + "InfluxDBv2": { + "target": "com.amazonaws.timestreaminfluxdb#InfluxDBv2Parameters", + "traits": { + "smithy.api#documentation": "

All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The parameters that comprise the parameter group.

" + } + }, + "com.amazonaws.timestreaminfluxdb#Password": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 8, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.timestreaminfluxdb#RequestTagMap": { + "type": "map", + "key": { + "target": "com.amazonaws.timestreaminfluxdb#TagKey" + }, + "value": { + "target": "com.amazonaws.timestreaminfluxdb#TagValue" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + } + } + }, + "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The identifier for the Timestream for InfluxDB resource associated with the request.

", + "smithy.api#required": {} + } + }, + "resourceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of Timestream for InfluxDB resource associated with the request.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The requested resource was not found or does not exist.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.timestreaminfluxdb#ResponseTagMap": { + "type": "map", + "key": { + "target": "com.amazonaws.timestreaminfluxdb#TagKey" + }, + "value": { + "target": "com.amazonaws.timestreaminfluxdb#TagValue" + }, + "traits": { + "smithy.api#length": { + "max": 200 + } + } + }, + "com.amazonaws.timestreaminfluxdb#S3Configuration": { + "type": "structure", + "members": { + "bucketName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of the S3 bucket to deliver logs to.

", + "smithy.api#length": { + "min": 3, + "max": 63 + }, + "smithy.api#pattern": "^[0-9a-z]+[0-9a-z\\.\\-]*[0-9a-z]+$", + "smithy.api#required": {} + } + }, + "enabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates whether log delivery to the S3 bucket is enabled.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration for S3 bucket log delivery.

" + } + }, + "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request exceeds the service quota.

", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.timestreaminfluxdb#Status": { + "type": "enum", + "members": { + "CREATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATING" + } + }, + "AVAILABLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AVAILABLE" + } + }, + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } + }, + "MODIFYING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MODIFYING" + } + }, + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATING" + } + }, + "DELETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETED" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.timestreaminfluxdb#TagKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.timestreaminfluxdb#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + } + } + }, + "com.amazonaws.timestreaminfluxdb#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#TagResourceRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + } + ], + "traits": { + "aws.iam#conditionKeys": ["aws:ResourceTag/${TagKey}", "aws:RequestTag/${TagKey}", "aws:TagKeys"], + "smithy.api#documentation": "

Tags are composed of a Key/Value pairs. You can use tags to categorize and track your Timestream for InfluxDB resources.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.timestreaminfluxdb#TagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the tagged resource.

", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.timestreaminfluxdb#RequestTagMap", + "traits": { + "smithy.api#documentation": "

A list of tags used to categorize and track resources.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + } + } + }, + "com.amazonaws.timestreaminfluxdb#ThrottlingException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "retryAfterSeconds": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The number of seconds the caller should wait before retrying.

", + "smithy.api#httpHeader": "Retry-After" + } + } + }, + "traits": { + "smithy.api#documentation": "

The request was denied due to request throttling.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.timestreaminfluxdb#TracingType": { + "type": "enum", + "members": { + "LOG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "log" + } + }, + "JAEGER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "jaeger" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#UntagResourceRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + } + ], + "traits": { + "aws.iam#conditionKeys": ["aws:ResourceTag/${TagKey}", "aws:TagKeys"], + "smithy.api#documentation": "

Removes the tag from the specified resource.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.timestreaminfluxdb#UntagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the tagged resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tagKeys": { + "target": "com.amazonaws.timestreaminfluxdb#TagKeys", + "traits": { + "aws.iam#conditionKeyValue": "aws:TagKeys", + "smithy.api#documentation": "

The keys used to identify the tags.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.timestreaminfluxdb#UpdateDbInstance": { + "type": "operation", + "input": { + "target": "com.amazonaws.timestreaminfluxdb#UpdateDbInstanceInput" + }, + "output": { + "target": "com.amazonaws.timestreaminfluxdb#UpdateDbInstanceOutput" + }, + "errors": [ + { + "target": "com.amazonaws.timestreaminfluxdb#AccessDeniedException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ConflictException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#InternalServerException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ThrottlingException" + }, + { + "target": "com.amazonaws.timestreaminfluxdb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a Timestream for InfluxDB DB instance.

", + "smithy.api#idempotent": {}, + "smithy.api#tags": ["DbInstance"] + } + }, + "com.amazonaws.timestreaminfluxdb#UpdateDbInstanceInput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB instance.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "dbInstanceIdentifier" + } + }, + "logDeliveryConfiguration": { + "target": "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

" + } + }, + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.

" + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.timestreaminfluxdb#DbParameterGroupResource" + } + ] + } + }, + "com.amazonaws.timestreaminfluxdb#UpdateDbInstanceOutput": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceId", + "traits": { + "smithy.api#documentation": "

A service-generated unique identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceName", + "traits": { + "smithy.api#documentation": "

This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and AWS CLI commands.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.timestreaminfluxdb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the DB instance.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.timestreaminfluxdb#Status", + "traits": { + "smithy.api#documentation": "

The status of the DB instance.

" + } + }, + "endpoint": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

" + } + }, + "dbInstanceType": { + "target": "com.amazonaws.timestreaminfluxdb#DbInstanceType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB instance type that InfluxDB runs on.

" + } + }, + "dbStorageType": { + "target": "com.amazonaws.timestreaminfluxdb#DbStorageType", + "traits": { + "smithy.api#documentation": "

The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

" + } + }, + "allocatedStorage": { + "target": "com.amazonaws.timestreaminfluxdb#AllocatedStorage", + "traits": { + "smithy.api#documentation": "

The amount of storage allocated for your DB storage type (in gibibytes).

" + } + }, + "deploymentType": { + "target": "com.amazonaws.timestreaminfluxdb#DeploymentType", + "traits": { + "smithy.api#documentation": "

Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

" + } + }, + "vpcSubnetIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSubnetIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC subnet IDs associated with the DB instance.

", + "smithy.api#required": {} + } + }, + "publiclyAccessible": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates if the DB instance has a public IP to facilitate access.

" + } + }, + "vpcSecurityGroupIds": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupIdList", + "traits": { + "smithy.api#documentation": "

A list of VPC security group IDs associated with the DB instance.

" + } + }, + "dbParameterGroupIdentifier": { + "target": "com.amazonaws.timestreaminfluxdb#DbParameterGroupIdentifier", + "traits": { + "smithy.api#documentation": "

The id of the DB parameter group assigned to your DB instance.

" + } + }, + "availabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the DB instance resides.

" + } + }, + "secondaryAvailabilityZone": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

" + } + }, + "logDeliveryConfiguration": { + "target": "com.amazonaws.timestreaminfluxdb#LogDeliveryConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

" + } + }, + "influxAuthParametersSecretArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.timestreaminfluxdb#Username": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.timestreaminfluxdb#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "reason": { + "target": "com.amazonaws.timestreaminfluxdb#ValidationExceptionReason", + "traits": { + "smithy.api#documentation": "

The reason that validation failed.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The input fails to satisfy the constraints specified by Timestream for InfluxDB.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.timestreaminfluxdb#ValidationExceptionReason": { + "type": "enum", + "members": { + "FIELD_VALIDATION_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FIELD_VALIDATION_FAILED" + } + }, + "OTHER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OTHER" + } + } + } + }, + "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupId": { + "type": "string", + "traits": { + "smithy.api#length": { + "max": 64 + }, + "smithy.api#pattern": "^sg-[a-z0-9]+$" + } + }, + "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSecurityGroupId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, + "com.amazonaws.timestreaminfluxdb#VpcSubnetId": { + "type": "string", + "traits": { + "smithy.api#length": { + "max": 64 + }, + "smithy.api#pattern": "^subnet-[a-z0-9]+$" + } + }, + "com.amazonaws.timestreaminfluxdb#VpcSubnetIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.timestreaminfluxdb#VpcSubnetId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 3 + } + } + } + } +}