From 2366a2bcc7f755cfe552edd4436db76f2e4cae74 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 4 Dec 2024 19:16:19 +0000 Subject: [PATCH] feat(client-bedrock-data-automation): Release Bedrock Data Automation SDK --- .../client-bedrock-data-automation/.gitignore | 9 + .../client-bedrock-data-automation/LICENSE | 201 ++ .../client-bedrock-data-automation/README.md | 293 ++ .../api-extractor.json | 4 + .../package.json | 103 + .../src/BedrockDataAutomation.ts | 254 ++ .../src/BedrockDataAutomationClient.ts | 352 ++ .../auth/httpAuthExtensionConfiguration.ts | 72 + .../src/auth/httpAuthSchemeProvider.ts | 145 + .../src/commands/CreateBlueprintCommand.ts | 142 + .../commands/CreateBlueprintVersionCommand.ts | 132 + .../CreateDataAutomationProjectCommand.ts | 231 ++ .../src/commands/DeleteBlueprintCommand.ts | 110 + .../DeleteDataAutomationProjectCommand.ts | 117 + .../src/commands/GetBlueprintCommand.ts | 126 + .../GetDataAutomationProjectCommand.ts | 225 ++ .../src/commands/ListBlueprintsCommand.ts | 133 + .../ListDataAutomationProjectsCommand.ts | 131 + .../src/commands/UpdateBlueprintCommand.ts | 134 + .../UpdateDataAutomationProjectCommand.ts | 224 ++ .../src/commands/index.ts | 12 + .../src/endpoint/EndpointParameters.ts | 41 + .../src/endpoint/endpointResolver.ts | 26 + .../src/endpoint/ruleset.ts | 32 + .../src/extensionConfiguration.ts | 15 + .../src/index.ts | 17 + .../BedrockDataAutomationServiceException.ts | 24 + .../src/models/index.ts | 2 + .../src/models/models_0.ts | 1769 ++++++++++ .../src/pagination/Interfaces.ts | 11 + .../src/pagination/ListBlueprintsPaginator.ts | 24 + .../ListDataAutomationProjectsPaginator.ts | 24 + .../src/pagination/index.ts | 4 + .../src/protocols/Aws_restJson1.ts | 1044 ++++++ .../src/runtimeConfig.browser.ts | 44 + .../src/runtimeConfig.native.ts | 18 + .../src/runtimeConfig.shared.ts | 38 + .../src/runtimeConfig.ts | 60 + .../src/runtimeExtensions.ts | 48 + .../tsconfig.cjs.json | 6 + .../tsconfig.es.json | 8 + .../tsconfig.json | 13 + .../tsconfig.types.json | 10 + .../aws-models/bedrock-data-automation.json | 3043 +++++++++++++++++ 44 files changed, 9471 insertions(+) create mode 100644 clients/client-bedrock-data-automation/.gitignore create mode 100644 clients/client-bedrock-data-automation/LICENSE create mode 100644 clients/client-bedrock-data-automation/README.md create mode 100644 clients/client-bedrock-data-automation/api-extractor.json create mode 100644 clients/client-bedrock-data-automation/package.json create mode 100644 clients/client-bedrock-data-automation/src/BedrockDataAutomation.ts create mode 100644 clients/client-bedrock-data-automation/src/BedrockDataAutomationClient.ts create mode 100644 clients/client-bedrock-data-automation/src/auth/httpAuthExtensionConfiguration.ts create mode 100644 clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/CreateBlueprintCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/CreateBlueprintVersionCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/CreateDataAutomationProjectCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/DeleteBlueprintCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/DeleteDataAutomationProjectCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/GetBlueprintCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/GetDataAutomationProjectCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/ListBlueprintsCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/ListDataAutomationProjectsCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/UpdateBlueprintCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/UpdateDataAutomationProjectCommand.ts create mode 100644 clients/client-bedrock-data-automation/src/commands/index.ts create mode 100644 clients/client-bedrock-data-automation/src/endpoint/EndpointParameters.ts create mode 100644 clients/client-bedrock-data-automation/src/endpoint/endpointResolver.ts create mode 100644 clients/client-bedrock-data-automation/src/endpoint/ruleset.ts create mode 100644 clients/client-bedrock-data-automation/src/extensionConfiguration.ts create mode 100644 clients/client-bedrock-data-automation/src/index.ts create mode 100644 clients/client-bedrock-data-automation/src/models/BedrockDataAutomationServiceException.ts create mode 100644 clients/client-bedrock-data-automation/src/models/index.ts create mode 100644 clients/client-bedrock-data-automation/src/models/models_0.ts create mode 100644 clients/client-bedrock-data-automation/src/pagination/Interfaces.ts create mode 100644 clients/client-bedrock-data-automation/src/pagination/ListBlueprintsPaginator.ts create mode 100644 clients/client-bedrock-data-automation/src/pagination/ListDataAutomationProjectsPaginator.ts create mode 100644 clients/client-bedrock-data-automation/src/pagination/index.ts create mode 100644 clients/client-bedrock-data-automation/src/protocols/Aws_restJson1.ts create mode 100644 clients/client-bedrock-data-automation/src/runtimeConfig.browser.ts create mode 100644 clients/client-bedrock-data-automation/src/runtimeConfig.native.ts create mode 100644 clients/client-bedrock-data-automation/src/runtimeConfig.shared.ts create mode 100644 clients/client-bedrock-data-automation/src/runtimeConfig.ts create mode 100644 clients/client-bedrock-data-automation/src/runtimeExtensions.ts create mode 100644 clients/client-bedrock-data-automation/tsconfig.cjs.json create mode 100644 clients/client-bedrock-data-automation/tsconfig.es.json create mode 100644 clients/client-bedrock-data-automation/tsconfig.json create mode 100644 clients/client-bedrock-data-automation/tsconfig.types.json create mode 100644 codegen/sdk-codegen/aws-models/bedrock-data-automation.json diff --git a/clients/client-bedrock-data-automation/.gitignore b/clients/client-bedrock-data-automation/.gitignore new file mode 100644 index 000000000000..54f14c9aef25 --- /dev/null +++ b/clients/client-bedrock-data-automation/.gitignore @@ -0,0 +1,9 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +/dist-* +*.tsbuildinfo +*.tgz +*.log +package-lock.json diff --git a/clients/client-bedrock-data-automation/LICENSE b/clients/client-bedrock-data-automation/LICENSE new file mode 100644 index 000000000000..1349aa7c9923 --- /dev/null +++ b/clients/client-bedrock-data-automation/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-bedrock-data-automation/README.md b/clients/client-bedrock-data-automation/README.md new file mode 100644 index 000000000000..6750a48b14ea --- /dev/null +++ b/clients/client-bedrock-data-automation/README.md @@ -0,0 +1,293 @@ + + +# @aws-sdk/client-bedrock-data-automation + +## Description + +AWS SDK for JavaScript BedrockDataAutomation Client for Node.js, Browser and React Native. + +Amazon Bedrock Keystone Build + +## Installing + +To install this package, simply type add or install @aws-sdk/client-bedrock-data-automation +using your favorite package manager: + +- `npm install @aws-sdk/client-bedrock-data-automation` +- `yarn add @aws-sdk/client-bedrock-data-automation` +- `pnpm add @aws-sdk/client-bedrock-data-automation` + +## Getting Started + +### Import + +The AWS SDK is modulized by clients and commands. +To send a request, you only need to import the `BedrockDataAutomationClient` and +the commands you need, for example `ListBlueprintsCommand`: + +```js +// ES5 example +const { BedrockDataAutomationClient, ListBlueprintsCommand } = require("@aws-sdk/client-bedrock-data-automation"); +``` + +```ts +// ES6+ example +import { BedrockDataAutomationClient, ListBlueprintsCommand } from "@aws-sdk/client-bedrock-data-automation"; +``` + +### 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 BedrockDataAutomationClient({ region: "REGION" }); + +const params = { + /** input parameters */ +}; +const command = new ListBlueprintsCommand(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-bedrock-data-automation"; +const client = new AWS.BedrockDataAutomation({ region: "REGION" }); + +// async/await. +try { + const data = await client.listBlueprints(params); + // process data. +} catch (error) { + // error handling. +} + +// Promises. +client + .listBlueprints(params) + .then((data) => { + // process data. + }) + .catch((error) => { + // error handling. + }); + +// callbacks. +client.listBlueprints(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-bedrock-data-automation` 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) + +
+ +CreateBlueprint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/CreateBlueprintCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/CreateBlueprintCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/CreateBlueprintCommandOutput/) + +
+
+ +CreateBlueprintVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/CreateBlueprintVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/CreateBlueprintVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/CreateBlueprintVersionCommandOutput/) + +
+
+ +CreateDataAutomationProject + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/CreateDataAutomationProjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/CreateDataAutomationProjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/CreateDataAutomationProjectCommandOutput/) + +
+
+ +DeleteBlueprint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/DeleteBlueprintCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/DeleteBlueprintCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/DeleteBlueprintCommandOutput/) + +
+
+ +DeleteDataAutomationProject + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/DeleteDataAutomationProjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/DeleteDataAutomationProjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/DeleteDataAutomationProjectCommandOutput/) + +
+
+ +GetBlueprint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/GetBlueprintCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/GetBlueprintCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/GetBlueprintCommandOutput/) + +
+
+ +GetDataAutomationProject + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/GetDataAutomationProjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/GetDataAutomationProjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/GetDataAutomationProjectCommandOutput/) + +
+
+ +ListBlueprints + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/ListBlueprintsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListBlueprintsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListBlueprintsCommandOutput/) + +
+
+ +ListDataAutomationProjects + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/ListDataAutomationProjectsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListDataAutomationProjectsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListDataAutomationProjectsCommandOutput/) + +
+
+ +UpdateBlueprint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/UpdateBlueprintCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/UpdateBlueprintCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/UpdateBlueprintCommandOutput/) + +
+
+ +UpdateDataAutomationProject + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/UpdateDataAutomationProjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/UpdateDataAutomationProjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/UpdateDataAutomationProjectCommandOutput/) + +
diff --git a/clients/client-bedrock-data-automation/api-extractor.json b/clients/client-bedrock-data-automation/api-extractor.json new file mode 100644 index 000000000000..d5bf5ffeee85 --- /dev/null +++ b/clients/client-bedrock-data-automation/api-extractor.json @@ -0,0 +1,4 @@ +{ + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/dist-types/index.d.ts" +} diff --git a/clients/client-bedrock-data-automation/package.json b/clients/client-bedrock-data-automation/package.json new file mode 100644 index 000000000000..07d378c137e9 --- /dev/null +++ b/clients/client-bedrock-data-automation/package.json @@ -0,0 +1,103 @@ +{ + "name": "@aws-sdk/client-bedrock-data-automation", + "description": "AWS SDK for JavaScript Bedrock Data Automation 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 bedrock-data-automation" + }, + "main": "./dist-cjs/index.js", + "types": "./dist-types/index.d.ts", + "module": "./dist-es/index.js", + "sideEffects": false, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "*", + "@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": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "devDependencies": { + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", + "concurrently": "7.0.0", + "downlevel-dts": "0.10.1", + "rimraf": "3.0.2", + "typescript": "~4.9.5" + }, + "engines": { + "node": ">=16.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-bedrock-data-automation", + "repository": { + "type": "git", + "url": "https://github.com/aws/aws-sdk-js-v3.git", + "directory": "clients/client-bedrock-data-automation" + } +} diff --git a/clients/client-bedrock-data-automation/src/BedrockDataAutomation.ts b/clients/client-bedrock-data-automation/src/BedrockDataAutomation.ts new file mode 100644 index 000000000000..b417a097d73f --- /dev/null +++ b/clients/client-bedrock-data-automation/src/BedrockDataAutomation.ts @@ -0,0 +1,254 @@ +// smithy-typescript generated code +import { createAggregatedClient } from "@smithy/smithy-client"; +import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; + +import { BedrockDataAutomationClient, BedrockDataAutomationClientConfig } from "./BedrockDataAutomationClient"; +import { + CreateBlueprintCommand, + CreateBlueprintCommandInput, + CreateBlueprintCommandOutput, +} from "./commands/CreateBlueprintCommand"; +import { + CreateBlueprintVersionCommand, + CreateBlueprintVersionCommandInput, + CreateBlueprintVersionCommandOutput, +} from "./commands/CreateBlueprintVersionCommand"; +import { + CreateDataAutomationProjectCommand, + CreateDataAutomationProjectCommandInput, + CreateDataAutomationProjectCommandOutput, +} from "./commands/CreateDataAutomationProjectCommand"; +import { + DeleteBlueprintCommand, + DeleteBlueprintCommandInput, + DeleteBlueprintCommandOutput, +} from "./commands/DeleteBlueprintCommand"; +import { + DeleteDataAutomationProjectCommand, + DeleteDataAutomationProjectCommandInput, + DeleteDataAutomationProjectCommandOutput, +} from "./commands/DeleteDataAutomationProjectCommand"; +import { + GetBlueprintCommand, + GetBlueprintCommandInput, + GetBlueprintCommandOutput, +} from "./commands/GetBlueprintCommand"; +import { + GetDataAutomationProjectCommand, + GetDataAutomationProjectCommandInput, + GetDataAutomationProjectCommandOutput, +} from "./commands/GetDataAutomationProjectCommand"; +import { + ListBlueprintsCommand, + ListBlueprintsCommandInput, + ListBlueprintsCommandOutput, +} from "./commands/ListBlueprintsCommand"; +import { + ListDataAutomationProjectsCommand, + ListDataAutomationProjectsCommandInput, + ListDataAutomationProjectsCommandOutput, +} from "./commands/ListDataAutomationProjectsCommand"; +import { + UpdateBlueprintCommand, + UpdateBlueprintCommandInput, + UpdateBlueprintCommandOutput, +} from "./commands/UpdateBlueprintCommand"; +import { + UpdateDataAutomationProjectCommand, + UpdateDataAutomationProjectCommandInput, + UpdateDataAutomationProjectCommandOutput, +} from "./commands/UpdateDataAutomationProjectCommand"; + +const commands = { + CreateBlueprintCommand, + CreateBlueprintVersionCommand, + CreateDataAutomationProjectCommand, + DeleteBlueprintCommand, + DeleteDataAutomationProjectCommand, + GetBlueprintCommand, + GetDataAutomationProjectCommand, + ListBlueprintsCommand, + ListDataAutomationProjectsCommand, + UpdateBlueprintCommand, + UpdateDataAutomationProjectCommand, +}; + +export interface BedrockDataAutomation { + /** + * @see {@link CreateBlueprintCommand} + */ + createBlueprint( + args: CreateBlueprintCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createBlueprint(args: CreateBlueprintCommandInput, cb: (err: any, data?: CreateBlueprintCommandOutput) => void): void; + createBlueprint( + args: CreateBlueprintCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateBlueprintCommandOutput) => void + ): void; + + /** + * @see {@link CreateBlueprintVersionCommand} + */ + createBlueprintVersion( + args: CreateBlueprintVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createBlueprintVersion( + args: CreateBlueprintVersionCommandInput, + cb: (err: any, data?: CreateBlueprintVersionCommandOutput) => void + ): void; + createBlueprintVersion( + args: CreateBlueprintVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateBlueprintVersionCommandOutput) => void + ): void; + + /** + * @see {@link CreateDataAutomationProjectCommand} + */ + createDataAutomationProject( + args: CreateDataAutomationProjectCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createDataAutomationProject( + args: CreateDataAutomationProjectCommandInput, + cb: (err: any, data?: CreateDataAutomationProjectCommandOutput) => void + ): void; + createDataAutomationProject( + args: CreateDataAutomationProjectCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDataAutomationProjectCommandOutput) => void + ): void; + + /** + * @see {@link DeleteBlueprintCommand} + */ + deleteBlueprint( + args: DeleteBlueprintCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteBlueprint(args: DeleteBlueprintCommandInput, cb: (err: any, data?: DeleteBlueprintCommandOutput) => void): void; + deleteBlueprint( + args: DeleteBlueprintCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteBlueprintCommandOutput) => void + ): void; + + /** + * @see {@link DeleteDataAutomationProjectCommand} + */ + deleteDataAutomationProject( + args: DeleteDataAutomationProjectCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteDataAutomationProject( + args: DeleteDataAutomationProjectCommandInput, + cb: (err: any, data?: DeleteDataAutomationProjectCommandOutput) => void + ): void; + deleteDataAutomationProject( + args: DeleteDataAutomationProjectCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDataAutomationProjectCommandOutput) => void + ): void; + + /** + * @see {@link GetBlueprintCommand} + */ + getBlueprint(args: GetBlueprintCommandInput, options?: __HttpHandlerOptions): Promise; + getBlueprint(args: GetBlueprintCommandInput, cb: (err: any, data?: GetBlueprintCommandOutput) => void): void; + getBlueprint( + args: GetBlueprintCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetBlueprintCommandOutput) => void + ): void; + + /** + * @see {@link GetDataAutomationProjectCommand} + */ + getDataAutomationProject( + args: GetDataAutomationProjectCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getDataAutomationProject( + args: GetDataAutomationProjectCommandInput, + cb: (err: any, data?: GetDataAutomationProjectCommandOutput) => void + ): void; + getDataAutomationProject( + args: GetDataAutomationProjectCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetDataAutomationProjectCommandOutput) => void + ): void; + + /** + * @see {@link ListBlueprintsCommand} + */ + listBlueprints(): Promise; + listBlueprints( + args: ListBlueprintsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listBlueprints(args: ListBlueprintsCommandInput, cb: (err: any, data?: ListBlueprintsCommandOutput) => void): void; + listBlueprints( + args: ListBlueprintsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListBlueprintsCommandOutput) => void + ): void; + + /** + * @see {@link ListDataAutomationProjectsCommand} + */ + listDataAutomationProjects(): Promise; + listDataAutomationProjects( + args: ListDataAutomationProjectsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listDataAutomationProjects( + args: ListDataAutomationProjectsCommandInput, + cb: (err: any, data?: ListDataAutomationProjectsCommandOutput) => void + ): void; + listDataAutomationProjects( + args: ListDataAutomationProjectsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDataAutomationProjectsCommandOutput) => void + ): void; + + /** + * @see {@link UpdateBlueprintCommand} + */ + updateBlueprint( + args: UpdateBlueprintCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateBlueprint(args: UpdateBlueprintCommandInput, cb: (err: any, data?: UpdateBlueprintCommandOutput) => void): void; + updateBlueprint( + args: UpdateBlueprintCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateBlueprintCommandOutput) => void + ): void; + + /** + * @see {@link UpdateDataAutomationProjectCommand} + */ + updateDataAutomationProject( + args: UpdateDataAutomationProjectCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateDataAutomationProject( + args: UpdateDataAutomationProjectCommandInput, + cb: (err: any, data?: UpdateDataAutomationProjectCommandOutput) => void + ): void; + updateDataAutomationProject( + args: UpdateDataAutomationProjectCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataAutomationProjectCommandOutput) => void + ): void; +} + +/** + * Amazon Bedrock Keystone Build + * @public + */ +export class BedrockDataAutomation extends BedrockDataAutomationClient implements BedrockDataAutomation {} +createAggregatedClient(commands, BedrockDataAutomation); diff --git a/clients/client-bedrock-data-automation/src/BedrockDataAutomationClient.ts b/clients/client-bedrock-data-automation/src/BedrockDataAutomationClient.ts new file mode 100644 index 000000000000..8e60d60e7162 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/BedrockDataAutomationClient.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 { + defaultBedrockDataAutomationHttpAuthSchemeParametersProvider, + HttpAuthSchemeInputConfig, + HttpAuthSchemeResolvedConfig, + resolveHttpAuthSchemeConfig, +} from "./auth/httpAuthSchemeProvider"; +import { CreateBlueprintCommandInput, CreateBlueprintCommandOutput } from "./commands/CreateBlueprintCommand"; +import { + CreateBlueprintVersionCommandInput, + CreateBlueprintVersionCommandOutput, +} from "./commands/CreateBlueprintVersionCommand"; +import { + CreateDataAutomationProjectCommandInput, + CreateDataAutomationProjectCommandOutput, +} from "./commands/CreateDataAutomationProjectCommand"; +import { DeleteBlueprintCommandInput, DeleteBlueprintCommandOutput } from "./commands/DeleteBlueprintCommand"; +import { + DeleteDataAutomationProjectCommandInput, + DeleteDataAutomationProjectCommandOutput, +} from "./commands/DeleteDataAutomationProjectCommand"; +import { GetBlueprintCommandInput, GetBlueprintCommandOutput } from "./commands/GetBlueprintCommand"; +import { + GetDataAutomationProjectCommandInput, + GetDataAutomationProjectCommandOutput, +} from "./commands/GetDataAutomationProjectCommand"; +import { ListBlueprintsCommandInput, ListBlueprintsCommandOutput } from "./commands/ListBlueprintsCommand"; +import { + ListDataAutomationProjectsCommandInput, + ListDataAutomationProjectsCommandOutput, +} from "./commands/ListDataAutomationProjectsCommand"; +import { UpdateBlueprintCommandInput, UpdateBlueprintCommandOutput } from "./commands/UpdateBlueprintCommand"; +import { + UpdateDataAutomationProjectCommandInput, + UpdateDataAutomationProjectCommandOutput, +} from "./commands/UpdateDataAutomationProjectCommand"; +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 = + | CreateBlueprintCommandInput + | CreateBlueprintVersionCommandInput + | CreateDataAutomationProjectCommandInput + | DeleteBlueprintCommandInput + | DeleteDataAutomationProjectCommandInput + | GetBlueprintCommandInput + | GetDataAutomationProjectCommandInput + | ListBlueprintsCommandInput + | ListDataAutomationProjectsCommandInput + | UpdateBlueprintCommandInput + | UpdateDataAutomationProjectCommandInput; + +/** + * @public + */ +export type ServiceOutputTypes = + | CreateBlueprintCommandOutput + | CreateBlueprintVersionCommandOutput + | CreateDataAutomationProjectCommandOutput + | DeleteBlueprintCommandOutput + | DeleteDataAutomationProjectCommandOutput + | GetBlueprintCommandOutput + | GetDataAutomationProjectCommandOutput + | ListBlueprintsCommandOutput + | ListDataAutomationProjectsCommandOutput + | UpdateBlueprintCommandOutput + | UpdateDataAutomationProjectCommandOutput; + +/** + * @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 AWS region to which this client will send requests + */ + region?: string | __Provider; + + /** + * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header + * @internal + */ + defaultUserAgentProvider?: Provider<__UserAgent>; + + /** + * 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 BedrockDataAutomationClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & + ClientDefaults & + UserAgentInputConfig & + RetryInputConfig & + RegionInputConfig & + HostHeaderInputConfig & + EndpointInputConfig & + HttpAuthSchemeInputConfig & + ClientInputEndpointParameters; +/** + * @public + * + * The configuration interface of BedrockDataAutomationClient class constructor that set the region, credentials and other options. + */ +export interface BedrockDataAutomationClientConfig extends BedrockDataAutomationClientConfigType {} + +/** + * @public + */ +export type BedrockDataAutomationClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & + Required & + RuntimeExtensionsConfig & + UserAgentResolvedConfig & + RetryResolvedConfig & + RegionResolvedConfig & + HostHeaderResolvedConfig & + EndpointResolvedConfig & + HttpAuthSchemeResolvedConfig & + ClientResolvedEndpointParameters; +/** + * @public + * + * The resolved configuration interface of BedrockDataAutomationClient class. This is resolved and normalized from the {@link BedrockDataAutomationClientConfig | constructor configuration interface}. + */ +export interface BedrockDataAutomationClientResolvedConfig extends BedrockDataAutomationClientResolvedConfigType {} + +/** + * Amazon Bedrock Keystone Build + * @public + */ +export class BedrockDataAutomationClient extends __Client< + __HttpHandlerOptions, + ServiceInputTypes, + ServiceOutputTypes, + BedrockDataAutomationClientResolvedConfig +> { + /** + * The resolved configuration of BedrockDataAutomationClient class. This is resolved and normalized from the {@link BedrockDataAutomationClientConfig | constructor configuration interface}. + */ + readonly config: BedrockDataAutomationClientResolvedConfig; + + constructor(...[configuration]: __CheckOptionalClientConfig) { + const _config_0 = __getRuntimeConfig(configuration || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveUserAgentConfig(_config_1); + const _config_3 = resolveRetryConfig(_config_2); + const _config_4 = resolveRegionConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveEndpointConfig(_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(getUserAgentPlugin(this.config)); + 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( + getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: defaultBedrockDataAutomationHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config: BedrockDataAutomationClientResolvedConfig) => + new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + }), + }) + ); + 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(); + } +} diff --git a/clients/client-bedrock-data-automation/src/auth/httpAuthExtensionConfiguration.ts b/clients/client-bedrock-data-automation/src/auth/httpAuthExtensionConfiguration.ts new file mode 100644 index 000000000000..ed23d5b7d469 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/auth/httpAuthExtensionConfiguration.ts @@ -0,0 +1,72 @@ +// smithy-typescript generated code +import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types"; + +import { BedrockDataAutomationHttpAuthSchemeProvider } from "./httpAuthSchemeProvider"; + +/** + * @internal + */ +export interface HttpAuthExtensionConfiguration { + setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void; + httpAuthSchemes(): HttpAuthScheme[]; + setHttpAuthSchemeProvider(httpAuthSchemeProvider: BedrockDataAutomationHttpAuthSchemeProvider): void; + httpAuthSchemeProvider(): BedrockDataAutomationHttpAuthSchemeProvider; + setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void; + credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined; +} + +/** + * @internal + */ +export type HttpAuthRuntimeConfig = Partial<{ + httpAuthSchemes: HttpAuthScheme[]; + httpAuthSchemeProvider: BedrockDataAutomationHttpAuthSchemeProvider; + 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: BedrockDataAutomationHttpAuthSchemeProvider): void { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider(): BedrockDataAutomationHttpAuthSchemeProvider { + 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-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts new file mode 100644 index 000000000000..76138a5ccf8b --- /dev/null +++ b/clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts @@ -0,0 +1,145 @@ +// 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 { + BedrockDataAutomationClientConfig, + BedrockDataAutomationClientResolvedConfig, +} from "../BedrockDataAutomationClient"; + +/** + * @internal + */ +export interface BedrockDataAutomationHttpAuthSchemeParameters extends HttpAuthSchemeParameters { + region?: string; +} + +/** + * @internal + */ +export interface BedrockDataAutomationHttpAuthSchemeParametersProvider + extends HttpAuthSchemeParametersProvider< + BedrockDataAutomationClientResolvedConfig, + HandlerExecutionContext, + BedrockDataAutomationHttpAuthSchemeParameters, + object + > {} + +/** + * @internal + */ +export const defaultBedrockDataAutomationHttpAuthSchemeParametersProvider = async ( + config: BedrockDataAutomationClientResolvedConfig, + 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: BedrockDataAutomationHttpAuthSchemeParameters +): HttpAuthOption { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "bedrock", + region: authParameters.region, + }, + propertiesExtractor: (config: Partial, context) => ({ + /** + * @internal + */ + signingProperties: { + config, + context, + }, + }), + }; +} + +/** + * @internal + */ +export interface BedrockDataAutomationHttpAuthSchemeProvider + extends HttpAuthSchemeProvider {} + +/** + * @internal + */ +export const defaultBedrockDataAutomationHttpAuthSchemeProvider: BedrockDataAutomationHttpAuthSchemeProvider = ( + authParameters +) => { + const options: HttpAuthOption[] = []; + switch (authParameters.operation) { + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + } + } + return options; +}; + +/** + * @internal + */ +export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. + * @internal + */ + httpAuthSchemes?: HttpAuthScheme[]; + + /** + * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. + * @internal + */ + httpAuthSchemeProvider?: BedrockDataAutomationHttpAuthSchemeProvider; +} + +/** + * @internal + */ +export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. + * @internal + */ + readonly httpAuthSchemes: HttpAuthScheme[]; + + /** + * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. + * @internal + */ + readonly httpAuthSchemeProvider: BedrockDataAutomationHttpAuthSchemeProvider; +} + +/** + * @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-bedrock-data-automation/src/commands/CreateBlueprintCommand.ts b/clients/client-bedrock-data-automation/src/commands/CreateBlueprintCommand.ts new file mode 100644 index 000000000000..b23f02413164 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/CreateBlueprintCommand.ts @@ -0,0 +1,142 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + CreateBlueprintRequest, + CreateBlueprintRequestFilterSensitiveLog, + CreateBlueprintResponse, + CreateBlueprintResponseFilterSensitiveLog, +} from "../models/models_0"; +import { de_CreateBlueprintCommand, se_CreateBlueprintCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CreateBlueprintCommand}. + */ +export interface CreateBlueprintCommandInput extends CreateBlueprintRequest {} +/** + * @public + * + * The output of {@link CreateBlueprintCommand}. + */ +export interface CreateBlueprintCommandOutput extends CreateBlueprintResponse, __MetadataBearer {} + +/** + * Creates an Amazon Bedrock Keystone Blueprint + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, CreateBlueprintCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, CreateBlueprintCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // CreateBlueprintRequest + * blueprintName: "STRING_VALUE", // required + * type: "DOCUMENT" || "IMAGE", // required + * blueprintStage: "DEVELOPMENT" || "LIVE", + * schema: "STRING_VALUE", // required + * clientToken: "STRING_VALUE", + * encryptionConfiguration: { // EncryptionConfiguration + * kmsKeyId: "STRING_VALUE", // required + * kmsEncryptionContext: { // KmsEncryptionContext + * "": "STRING_VALUE", + * }, + * }, + * }; + * const command = new CreateBlueprintCommand(input); + * const response = await client.send(command); + * // { // CreateBlueprintResponse + * // blueprint: { // Blueprint + * // blueprintArn: "STRING_VALUE", // required + * // schema: "STRING_VALUE", // required + * // type: "DOCUMENT" || "IMAGE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // blueprintName: "STRING_VALUE", // required + * // blueprintVersion: "STRING_VALUE", + * // blueprintStage: "DEVELOPMENT" || "LIVE", + * // kmsKeyId: "STRING_VALUE", + * // kmsEncryptionContext: { // KmsEncryptionContext + * // "": "STRING_VALUE", + * // }, + * // }, + * // }; + * + * ``` + * + * @param CreateBlueprintCommandInput - {@link CreateBlueprintCommandInput} + * @returns {@link CreateBlueprintCommandOutput} + * @see {@link CreateBlueprintCommandInput} for command's `input` shape. + * @see {@link CreateBlueprintCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link ConflictException} (client fault) + * This exception is thrown when there is a conflict performing an operation + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ServiceQuotaExceededException} (client fault) + * This exception is thrown when a request is made beyond the service quota + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class CreateBlueprintCommand extends $Command + .classBuilder< + CreateBlueprintCommandInput, + CreateBlueprintCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "CreateBlueprint", {}) + .n("BedrockDataAutomationClient", "CreateBlueprintCommand") + .f(CreateBlueprintRequestFilterSensitiveLog, CreateBlueprintResponseFilterSensitiveLog) + .ser(se_CreateBlueprintCommand) + .de(de_CreateBlueprintCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CreateBlueprintRequest; + output: CreateBlueprintResponse; + }; + sdk: { + input: CreateBlueprintCommandInput; + output: CreateBlueprintCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/CreateBlueprintVersionCommand.ts b/clients/client-bedrock-data-automation/src/commands/CreateBlueprintVersionCommand.ts new file mode 100644 index 000000000000..35aa9a951b2d --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/CreateBlueprintVersionCommand.ts @@ -0,0 +1,132 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + CreateBlueprintVersionRequest, + CreateBlueprintVersionResponse, + CreateBlueprintVersionResponseFilterSensitiveLog, +} from "../models/models_0"; +import { de_CreateBlueprintVersionCommand, se_CreateBlueprintVersionCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CreateBlueprintVersionCommand}. + */ +export interface CreateBlueprintVersionCommandInput extends CreateBlueprintVersionRequest {} +/** + * @public + * + * The output of {@link CreateBlueprintVersionCommand}. + */ +export interface CreateBlueprintVersionCommandOutput extends CreateBlueprintVersionResponse, __MetadataBearer {} + +/** + * Creates a new version of an existing Amazon Bedrock Keystone Blueprint + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, CreateBlueprintVersionCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, CreateBlueprintVersionCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // CreateBlueprintVersionRequest + * blueprintArn: "STRING_VALUE", // required + * clientToken: "STRING_VALUE", + * }; + * const command = new CreateBlueprintVersionCommand(input); + * const response = await client.send(command); + * // { // CreateBlueprintVersionResponse + * // blueprint: { // Blueprint + * // blueprintArn: "STRING_VALUE", // required + * // schema: "STRING_VALUE", // required + * // type: "DOCUMENT" || "IMAGE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // blueprintName: "STRING_VALUE", // required + * // blueprintVersion: "STRING_VALUE", + * // blueprintStage: "DEVELOPMENT" || "LIVE", + * // kmsKeyId: "STRING_VALUE", + * // kmsEncryptionContext: { // KmsEncryptionContext + * // "": "STRING_VALUE", + * // }, + * // }, + * // }; + * + * ``` + * + * @param CreateBlueprintVersionCommandInput - {@link CreateBlueprintVersionCommandInput} + * @returns {@link CreateBlueprintVersionCommandOutput} + * @see {@link CreateBlueprintVersionCommandInput} for command's `input` shape. + * @see {@link CreateBlueprintVersionCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ServiceQuotaExceededException} (client fault) + * This exception is thrown when a request is made beyond the service quota + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class CreateBlueprintVersionCommand extends $Command + .classBuilder< + CreateBlueprintVersionCommandInput, + CreateBlueprintVersionCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "CreateBlueprintVersion", {}) + .n("BedrockDataAutomationClient", "CreateBlueprintVersionCommand") + .f(void 0, CreateBlueprintVersionResponseFilterSensitiveLog) + .ser(se_CreateBlueprintVersionCommand) + .de(de_CreateBlueprintVersionCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CreateBlueprintVersionRequest; + output: CreateBlueprintVersionResponse; + }; + sdk: { + input: CreateBlueprintVersionCommandInput; + output: CreateBlueprintVersionCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/CreateDataAutomationProjectCommand.ts b/clients/client-bedrock-data-automation/src/commands/CreateDataAutomationProjectCommand.ts new file mode 100644 index 000000000000..3d7078cc6676 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/CreateDataAutomationProjectCommand.ts @@ -0,0 +1,231 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + CreateDataAutomationProjectRequest, + CreateDataAutomationProjectRequestFilterSensitiveLog, + CreateDataAutomationProjectResponse, +} from "../models/models_0"; +import { + de_CreateDataAutomationProjectCommand, + se_CreateDataAutomationProjectCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CreateDataAutomationProjectCommand}. + */ +export interface CreateDataAutomationProjectCommandInput extends CreateDataAutomationProjectRequest {} +/** + * @public + * + * The output of {@link CreateDataAutomationProjectCommand}. + */ +export interface CreateDataAutomationProjectCommandOutput + extends CreateDataAutomationProjectResponse, + __MetadataBearer {} + +/** + * Creates an Amazon Bedrock Keystone DataAutomationProject + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, CreateDataAutomationProjectCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, CreateDataAutomationProjectCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // CreateDataAutomationProjectRequest + * projectName: "STRING_VALUE", // required + * projectDescription: "STRING_VALUE", + * projectStage: "DEVELOPMENT" || "LIVE", + * standardOutputConfiguration: { // StandardOutputConfiguration + * document: { // DocumentStandardOutputConfiguration + * extraction: { // DocumentStandardExtraction + * granularity: { // DocumentExtractionGranularity + * types: [ // DocumentExtractionGranularityTypes + * "DOCUMENT" || "PAGE" || "ELEMENT" || "WORD" || "LINE", + * ], + * }, + * boundingBox: { // DocumentBoundingBox + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * generativeField: { // DocumentStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * }, + * outputFormat: { // DocumentOutputFormat + * textFormat: { // DocumentOutputTextFormat + * types: [ // DocumentOutputTextFormatTypes + * "PLAIN_TEXT" || "MARKDOWN" || "HTML" || "CSV", + * ], + * }, + * additionalFileFormat: { // DocumentOutputAdditionalFileFormat + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * }, + * image: { // ImageStandardOutputConfiguration + * extraction: { // ImageStandardExtraction + * category: { // ImageExtractionCategory + * state: "ENABLED" || "DISABLED", // required + * types: [ // ImageExtractionCategoryTypes + * "CONTENT_MODERATION" || "TEXT_DETECTION", + * ], + * }, + * boundingBox: { // ImageBoundingBox + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * generativeField: { // ImageStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * types: [ // ImageStandardGenerativeFieldTypes + * "IMAGE_SUMMARY" || "IAB", + * ], + * }, + * }, + * video: { // VideoStandardOutputConfiguration + * extraction: { // VideoStandardExtraction + * category: { // VideoExtractionCategory + * state: "ENABLED" || "DISABLED", // required + * types: [ // VideoExtractionCategoryTypes + * "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT", + * ], + * }, + * boundingBox: { // VideoBoundingBox + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * generativeField: { // VideoStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * types: [ // VideoStandardGenerativeFieldTypes + * "VIDEO_SUMMARY" || "SCENE_SUMMARY" || "IAB", + * ], + * }, + * }, + * audio: { // AudioStandardOutputConfiguration + * extraction: { // AudioStandardExtraction + * category: { // AudioExtractionCategory + * state: "ENABLED" || "DISABLED", // required + * types: [ // AudioExtractionCategoryTypes + * "AUDIO_CONTENT_MODERATION" || "CHAPTER_CONTENT_MODERATION" || "TRANSCRIPT", + * ], + * }, + * }, + * generativeField: { // AudioStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * types: [ // AudioStandardGenerativeFieldTypes + * "AUDIO_SUMMARY" || "CHAPTER_SUMMARY" || "IAB", + * ], + * }, + * }, + * }, + * customOutputConfiguration: { // CustomOutputConfiguration + * blueprints: [ // BlueprintItems + * { // BlueprintItem + * blueprintArn: "STRING_VALUE", // required + * blueprintVersion: "STRING_VALUE", + * blueprintStage: "DEVELOPMENT" || "LIVE", + * }, + * ], + * }, + * overrideConfiguration: { // OverrideConfiguration + * document: { // DocumentOverrideConfiguration + * splitter: { // SplitterConfiguration + * state: "ENABLED" || "DISABLED", + * }, + * }, + * }, + * clientToken: "STRING_VALUE", + * encryptionConfiguration: { // EncryptionConfiguration + * kmsKeyId: "STRING_VALUE", // required + * kmsEncryptionContext: { // KmsEncryptionContext + * "": "STRING_VALUE", + * }, + * }, + * }; + * const command = new CreateDataAutomationProjectCommand(input); + * const response = await client.send(command); + * // { // CreateDataAutomationProjectResponse + * // projectArn: "STRING_VALUE", // required + * // projectStage: "DEVELOPMENT" || "LIVE", + * // status: "COMPLETED" || "IN_PROGRESS" || "FAILED", + * // }; + * + * ``` + * + * @param CreateDataAutomationProjectCommandInput - {@link CreateDataAutomationProjectCommandInput} + * @returns {@link CreateDataAutomationProjectCommandOutput} + * @see {@link CreateDataAutomationProjectCommandInput} for command's `input` shape. + * @see {@link CreateDataAutomationProjectCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link ConflictException} (client fault) + * This exception is thrown when there is a conflict performing an operation + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ServiceQuotaExceededException} (client fault) + * This exception is thrown when a request is made beyond the service quota + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class CreateDataAutomationProjectCommand extends $Command + .classBuilder< + CreateDataAutomationProjectCommandInput, + CreateDataAutomationProjectCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "CreateDataAutomationProject", {}) + .n("BedrockDataAutomationClient", "CreateDataAutomationProjectCommand") + .f(CreateDataAutomationProjectRequestFilterSensitiveLog, void 0) + .ser(se_CreateDataAutomationProjectCommand) + .de(de_CreateDataAutomationProjectCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CreateDataAutomationProjectRequest; + output: CreateDataAutomationProjectResponse; + }; + sdk: { + input: CreateDataAutomationProjectCommandInput; + output: CreateDataAutomationProjectCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/DeleteBlueprintCommand.ts b/clients/client-bedrock-data-automation/src/commands/DeleteBlueprintCommand.ts new file mode 100644 index 000000000000..4d82a8d5813d --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/DeleteBlueprintCommand.ts @@ -0,0 +1,110 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteBlueprintRequest, DeleteBlueprintResponse } from "../models/models_0"; +import { de_DeleteBlueprintCommand, se_DeleteBlueprintCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeleteBlueprintCommand}. + */ +export interface DeleteBlueprintCommandInput extends DeleteBlueprintRequest {} +/** + * @public + * + * The output of {@link DeleteBlueprintCommand}. + */ +export interface DeleteBlueprintCommandOutput extends DeleteBlueprintResponse, __MetadataBearer {} + +/** + * Deletes an existing Amazon Bedrock Keystone Blueprint + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, DeleteBlueprintCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, DeleteBlueprintCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // DeleteBlueprintRequest + * blueprintArn: "STRING_VALUE", // required + * blueprintVersion: "STRING_VALUE", + * }; + * const command = new DeleteBlueprintCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param DeleteBlueprintCommandInput - {@link DeleteBlueprintCommandInput} + * @returns {@link DeleteBlueprintCommandOutput} + * @see {@link DeleteBlueprintCommandInput} for command's `input` shape. + * @see {@link DeleteBlueprintCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class DeleteBlueprintCommand extends $Command + .classBuilder< + DeleteBlueprintCommandInput, + DeleteBlueprintCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "DeleteBlueprint", {}) + .n("BedrockDataAutomationClient", "DeleteBlueprintCommand") + .f(void 0, void 0) + .ser(se_DeleteBlueprintCommand) + .de(de_DeleteBlueprintCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeleteBlueprintRequest; + output: {}; + }; + sdk: { + input: DeleteBlueprintCommandInput; + output: DeleteBlueprintCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/DeleteDataAutomationProjectCommand.ts b/clients/client-bedrock-data-automation/src/commands/DeleteDataAutomationProjectCommand.ts new file mode 100644 index 000000000000..fd16ec43005b --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/DeleteDataAutomationProjectCommand.ts @@ -0,0 +1,117 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteDataAutomationProjectRequest, DeleteDataAutomationProjectResponse } from "../models/models_0"; +import { + de_DeleteDataAutomationProjectCommand, + se_DeleteDataAutomationProjectCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeleteDataAutomationProjectCommand}. + */ +export interface DeleteDataAutomationProjectCommandInput extends DeleteDataAutomationProjectRequest {} +/** + * @public + * + * The output of {@link DeleteDataAutomationProjectCommand}. + */ +export interface DeleteDataAutomationProjectCommandOutput + extends DeleteDataAutomationProjectResponse, + __MetadataBearer {} + +/** + * Deletes an existing Amazon Bedrock Keystone DataAutomationProject + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, DeleteDataAutomationProjectCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, DeleteDataAutomationProjectCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // DeleteDataAutomationProjectRequest + * projectArn: "STRING_VALUE", // required + * }; + * const command = new DeleteDataAutomationProjectCommand(input); + * const response = await client.send(command); + * // { // DeleteDataAutomationProjectResponse + * // projectArn: "STRING_VALUE", // required + * // status: "COMPLETED" || "IN_PROGRESS" || "FAILED", + * // }; + * + * ``` + * + * @param DeleteDataAutomationProjectCommandInput - {@link DeleteDataAutomationProjectCommandInput} + * @returns {@link DeleteDataAutomationProjectCommandOutput} + * @see {@link DeleteDataAutomationProjectCommandInput} for command's `input` shape. + * @see {@link DeleteDataAutomationProjectCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class DeleteDataAutomationProjectCommand extends $Command + .classBuilder< + DeleteDataAutomationProjectCommandInput, + DeleteDataAutomationProjectCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "DeleteDataAutomationProject", {}) + .n("BedrockDataAutomationClient", "DeleteDataAutomationProjectCommand") + .f(void 0, void 0) + .ser(se_DeleteDataAutomationProjectCommand) + .de(de_DeleteDataAutomationProjectCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeleteDataAutomationProjectRequest; + output: DeleteDataAutomationProjectResponse; + }; + sdk: { + input: DeleteDataAutomationProjectCommandInput; + output: DeleteDataAutomationProjectCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/GetBlueprintCommand.ts b/clients/client-bedrock-data-automation/src/commands/GetBlueprintCommand.ts new file mode 100644 index 000000000000..c31a9e70e612 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/GetBlueprintCommand.ts @@ -0,0 +1,126 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetBlueprintRequest, GetBlueprintResponse, GetBlueprintResponseFilterSensitiveLog } from "../models/models_0"; +import { de_GetBlueprintCommand, se_GetBlueprintCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetBlueprintCommand}. + */ +export interface GetBlueprintCommandInput extends GetBlueprintRequest {} +/** + * @public + * + * The output of {@link GetBlueprintCommand}. + */ +export interface GetBlueprintCommandOutput extends GetBlueprintResponse, __MetadataBearer {} + +/** + * Gets an existing Amazon Bedrock Keystone Blueprint + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, GetBlueprintCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, GetBlueprintCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // GetBlueprintRequest + * blueprintArn: "STRING_VALUE", // required + * blueprintVersion: "STRING_VALUE", + * blueprintStage: "DEVELOPMENT" || "LIVE", + * }; + * const command = new GetBlueprintCommand(input); + * const response = await client.send(command); + * // { // GetBlueprintResponse + * // blueprint: { // Blueprint + * // blueprintArn: "STRING_VALUE", // required + * // schema: "STRING_VALUE", // required + * // type: "DOCUMENT" || "IMAGE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // blueprintName: "STRING_VALUE", // required + * // blueprintVersion: "STRING_VALUE", + * // blueprintStage: "DEVELOPMENT" || "LIVE", + * // kmsKeyId: "STRING_VALUE", + * // kmsEncryptionContext: { // KmsEncryptionContext + * // "": "STRING_VALUE", + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetBlueprintCommandInput - {@link GetBlueprintCommandInput} + * @returns {@link GetBlueprintCommandOutput} + * @see {@link GetBlueprintCommandInput} for command's `input` shape. + * @see {@link GetBlueprintCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class GetBlueprintCommand extends $Command + .classBuilder< + GetBlueprintCommandInput, + GetBlueprintCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "GetBlueprint", {}) + .n("BedrockDataAutomationClient", "GetBlueprintCommand") + .f(void 0, GetBlueprintResponseFilterSensitiveLog) + .ser(se_GetBlueprintCommand) + .de(de_GetBlueprintCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: GetBlueprintRequest; + output: GetBlueprintResponse; + }; + sdk: { + input: GetBlueprintCommandInput; + output: GetBlueprintCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/GetDataAutomationProjectCommand.ts b/clients/client-bedrock-data-automation/src/commands/GetDataAutomationProjectCommand.ts new file mode 100644 index 000000000000..5958fb950f90 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/GetDataAutomationProjectCommand.ts @@ -0,0 +1,225 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + GetDataAutomationProjectRequest, + GetDataAutomationProjectResponse, + GetDataAutomationProjectResponseFilterSensitiveLog, +} from "../models/models_0"; +import { de_GetDataAutomationProjectCommand, se_GetDataAutomationProjectCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetDataAutomationProjectCommand}. + */ +export interface GetDataAutomationProjectCommandInput extends GetDataAutomationProjectRequest {} +/** + * @public + * + * The output of {@link GetDataAutomationProjectCommand}. + */ +export interface GetDataAutomationProjectCommandOutput extends GetDataAutomationProjectResponse, __MetadataBearer {} + +/** + * Gets an existing Amazon Bedrock Keystone DataAutomationProject + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, GetDataAutomationProjectCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, GetDataAutomationProjectCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // GetDataAutomationProjectRequest + * projectArn: "STRING_VALUE", // required + * projectStage: "DEVELOPMENT" || "LIVE", + * }; + * const command = new GetDataAutomationProjectCommand(input); + * const response = await client.send(command); + * // { // GetDataAutomationProjectResponse + * // project: { // DataAutomationProject + * // projectArn: "STRING_VALUE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // projectName: "STRING_VALUE", // required + * // projectStage: "DEVELOPMENT" || "LIVE", + * // projectDescription: "STRING_VALUE", + * // standardOutputConfiguration: { // StandardOutputConfiguration + * // document: { // DocumentStandardOutputConfiguration + * // extraction: { // DocumentStandardExtraction + * // granularity: { // DocumentExtractionGranularity + * // types: [ // DocumentExtractionGranularityTypes + * // "DOCUMENT" || "PAGE" || "ELEMENT" || "WORD" || "LINE", + * // ], + * // }, + * // boundingBox: { // DocumentBoundingBox + * // state: "ENABLED" || "DISABLED", // required + * // }, + * // }, + * // generativeField: { // DocumentStandardGenerativeField + * // state: "ENABLED" || "DISABLED", // required + * // }, + * // outputFormat: { // DocumentOutputFormat + * // textFormat: { // DocumentOutputTextFormat + * // types: [ // DocumentOutputTextFormatTypes + * // "PLAIN_TEXT" || "MARKDOWN" || "HTML" || "CSV", + * // ], + * // }, + * // additionalFileFormat: { // DocumentOutputAdditionalFileFormat + * // state: "ENABLED" || "DISABLED", // required + * // }, + * // }, + * // }, + * // image: { // ImageStandardOutputConfiguration + * // extraction: { // ImageStandardExtraction + * // category: { // ImageExtractionCategory + * // state: "ENABLED" || "DISABLED", // required + * // types: [ // ImageExtractionCategoryTypes + * // "CONTENT_MODERATION" || "TEXT_DETECTION", + * // ], + * // }, + * // boundingBox: { // ImageBoundingBox + * // state: "ENABLED" || "DISABLED", // required + * // }, + * // }, + * // generativeField: { // ImageStandardGenerativeField + * // state: "ENABLED" || "DISABLED", // required + * // types: [ // ImageStandardGenerativeFieldTypes + * // "IMAGE_SUMMARY" || "IAB", + * // ], + * // }, + * // }, + * // video: { // VideoStandardOutputConfiguration + * // extraction: { // VideoStandardExtraction + * // category: { // VideoExtractionCategory + * // state: "ENABLED" || "DISABLED", // required + * // types: [ // VideoExtractionCategoryTypes + * // "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT", + * // ], + * // }, + * // boundingBox: { // VideoBoundingBox + * // state: "ENABLED" || "DISABLED", // required + * // }, + * // }, + * // generativeField: { // VideoStandardGenerativeField + * // state: "ENABLED" || "DISABLED", // required + * // types: [ // VideoStandardGenerativeFieldTypes + * // "VIDEO_SUMMARY" || "SCENE_SUMMARY" || "IAB", + * // ], + * // }, + * // }, + * // audio: { // AudioStandardOutputConfiguration + * // extraction: { // AudioStandardExtraction + * // category: { // AudioExtractionCategory + * // state: "ENABLED" || "DISABLED", // required + * // types: [ // AudioExtractionCategoryTypes + * // "AUDIO_CONTENT_MODERATION" || "CHAPTER_CONTENT_MODERATION" || "TRANSCRIPT", + * // ], + * // }, + * // }, + * // generativeField: { // AudioStandardGenerativeField + * // state: "ENABLED" || "DISABLED", // required + * // types: [ // AudioStandardGenerativeFieldTypes + * // "AUDIO_SUMMARY" || "CHAPTER_SUMMARY" || "IAB", + * // ], + * // }, + * // }, + * // }, + * // customOutputConfiguration: { // CustomOutputConfiguration + * // blueprints: [ // BlueprintItems + * // { // BlueprintItem + * // blueprintArn: "STRING_VALUE", // required + * // blueprintVersion: "STRING_VALUE", + * // blueprintStage: "DEVELOPMENT" || "LIVE", + * // }, + * // ], + * // }, + * // overrideConfiguration: { // OverrideConfiguration + * // document: { // DocumentOverrideConfiguration + * // splitter: { // SplitterConfiguration + * // state: "ENABLED" || "DISABLED", + * // }, + * // }, + * // }, + * // status: "COMPLETED" || "IN_PROGRESS" || "FAILED", // required + * // kmsKeyId: "STRING_VALUE", + * // kmsEncryptionContext: { // KmsEncryptionContext + * // "": "STRING_VALUE", + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetDataAutomationProjectCommandInput - {@link GetDataAutomationProjectCommandInput} + * @returns {@link GetDataAutomationProjectCommandOutput} + * @see {@link GetDataAutomationProjectCommandInput} for command's `input` shape. + * @see {@link GetDataAutomationProjectCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class GetDataAutomationProjectCommand extends $Command + .classBuilder< + GetDataAutomationProjectCommandInput, + GetDataAutomationProjectCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "GetDataAutomationProject", {}) + .n("BedrockDataAutomationClient", "GetDataAutomationProjectCommand") + .f(void 0, GetDataAutomationProjectResponseFilterSensitiveLog) + .ser(se_GetDataAutomationProjectCommand) + .de(de_GetDataAutomationProjectCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: GetDataAutomationProjectRequest; + output: GetDataAutomationProjectResponse; + }; + sdk: { + input: GetDataAutomationProjectCommandInput; + output: GetDataAutomationProjectCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/ListBlueprintsCommand.ts b/clients/client-bedrock-data-automation/src/commands/ListBlueprintsCommand.ts new file mode 100644 index 000000000000..a58c02d3f9fc --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/ListBlueprintsCommand.ts @@ -0,0 +1,133 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + ListBlueprintsRequest, + ListBlueprintsResponse, + ListBlueprintsResponseFilterSensitiveLog, +} from "../models/models_0"; +import { de_ListBlueprintsCommand, se_ListBlueprintsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListBlueprintsCommand}. + */ +export interface ListBlueprintsCommandInput extends ListBlueprintsRequest {} +/** + * @public + * + * The output of {@link ListBlueprintsCommand}. + */ +export interface ListBlueprintsCommandOutput extends ListBlueprintsResponse, __MetadataBearer {} + +/** + * Lists all existing Amazon Bedrock Keystone Blueprints + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, ListBlueprintsCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, ListBlueprintsCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // ListBlueprintsRequest + * blueprintArn: "STRING_VALUE", + * resourceOwner: "SERVICE" || "ACCOUNT", + * blueprintStageFilter: "DEVELOPMENT" || "LIVE" || "ALL", + * maxResults: Number("int"), + * nextToken: "STRING_VALUE", + * projectFilter: { // DataAutomationProjectFilter + * projectArn: "STRING_VALUE", // required + * projectStage: "DEVELOPMENT" || "LIVE", + * }, + * }; + * const command = new ListBlueprintsCommand(input); + * const response = await client.send(command); + * // { // ListBlueprintsResponse + * // blueprints: [ // Blueprints // required + * // { // BlueprintSummary + * // blueprintArn: "STRING_VALUE", // required + * // blueprintVersion: "STRING_VALUE", + * // blueprintStage: "DEVELOPMENT" || "LIVE", + * // blueprintName: "STRING_VALUE", + * // creationTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListBlueprintsCommandInput - {@link ListBlueprintsCommandInput} + * @returns {@link ListBlueprintsCommandOutput} + * @see {@link ListBlueprintsCommandInput} for command's `input` shape. + * @see {@link ListBlueprintsCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class ListBlueprintsCommand extends $Command + .classBuilder< + ListBlueprintsCommandInput, + ListBlueprintsCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "ListBlueprints", {}) + .n("BedrockDataAutomationClient", "ListBlueprintsCommand") + .f(void 0, ListBlueprintsResponseFilterSensitiveLog) + .ser(se_ListBlueprintsCommand) + .de(de_ListBlueprintsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListBlueprintsRequest; + output: ListBlueprintsResponse; + }; + sdk: { + input: ListBlueprintsCommandInput; + output: ListBlueprintsCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/ListDataAutomationProjectsCommand.ts b/clients/client-bedrock-data-automation/src/commands/ListDataAutomationProjectsCommand.ts new file mode 100644 index 000000000000..41498e5e0aa6 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/ListDataAutomationProjectsCommand.ts @@ -0,0 +1,131 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + ListDataAutomationProjectsRequest, + ListDataAutomationProjectsResponse, + ListDataAutomationProjectsResponseFilterSensitiveLog, +} from "../models/models_0"; +import { de_ListDataAutomationProjectsCommand, se_ListDataAutomationProjectsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListDataAutomationProjectsCommand}. + */ +export interface ListDataAutomationProjectsCommandInput extends ListDataAutomationProjectsRequest {} +/** + * @public + * + * The output of {@link ListDataAutomationProjectsCommand}. + */ +export interface ListDataAutomationProjectsCommandOutput extends ListDataAutomationProjectsResponse, __MetadataBearer {} + +/** + * Lists all existing Amazon Bedrock Keystone DataAutomationProjects + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, ListDataAutomationProjectsCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, ListDataAutomationProjectsCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // ListDataAutomationProjectsRequest + * maxResults: Number("int"), + * nextToken: "STRING_VALUE", + * projectStageFilter: "DEVELOPMENT" || "LIVE" || "ALL", + * blueprintFilter: { // BlueprintFilter + * blueprintArn: "STRING_VALUE", // required + * blueprintVersion: "STRING_VALUE", + * blueprintStage: "DEVELOPMENT" || "LIVE", + * }, + * resourceOwner: "SERVICE" || "ACCOUNT", + * }; + * const command = new ListDataAutomationProjectsCommand(input); + * const response = await client.send(command); + * // { // ListDataAutomationProjectsResponse + * // projects: [ // DataAutomationProjectSummaries // required + * // { // DataAutomationProjectSummary + * // projectArn: "STRING_VALUE", // required + * // projectStage: "DEVELOPMENT" || "LIVE", + * // projectName: "STRING_VALUE", + * // creationTime: new Date("TIMESTAMP"), // required + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListDataAutomationProjectsCommandInput - {@link ListDataAutomationProjectsCommandInput} + * @returns {@link ListDataAutomationProjectsCommandOutput} + * @see {@link ListDataAutomationProjectsCommandInput} for command's `input` shape. + * @see {@link ListDataAutomationProjectsCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class ListDataAutomationProjectsCommand extends $Command + .classBuilder< + ListDataAutomationProjectsCommandInput, + ListDataAutomationProjectsCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "ListDataAutomationProjects", {}) + .n("BedrockDataAutomationClient", "ListDataAutomationProjectsCommand") + .f(void 0, ListDataAutomationProjectsResponseFilterSensitiveLog) + .ser(se_ListDataAutomationProjectsCommand) + .de(de_ListDataAutomationProjectsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListDataAutomationProjectsRequest; + output: ListDataAutomationProjectsResponse; + }; + sdk: { + input: ListDataAutomationProjectsCommandInput; + output: ListDataAutomationProjectsCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/UpdateBlueprintCommand.ts b/clients/client-bedrock-data-automation/src/commands/UpdateBlueprintCommand.ts new file mode 100644 index 000000000000..fbf922cab0eb --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/UpdateBlueprintCommand.ts @@ -0,0 +1,134 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateBlueprintRequest, + UpdateBlueprintRequestFilterSensitiveLog, + UpdateBlueprintResponse, + UpdateBlueprintResponseFilterSensitiveLog, +} from "../models/models_0"; +import { de_UpdateBlueprintCommand, se_UpdateBlueprintCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateBlueprintCommand}. + */ +export interface UpdateBlueprintCommandInput extends UpdateBlueprintRequest {} +/** + * @public + * + * The output of {@link UpdateBlueprintCommand}. + */ +export interface UpdateBlueprintCommandOutput extends UpdateBlueprintResponse, __MetadataBearer {} + +/** + * Updates an existing Amazon Bedrock Blueprint + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, UpdateBlueprintCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, UpdateBlueprintCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // UpdateBlueprintRequest + * blueprintArn: "STRING_VALUE", // required + * schema: "STRING_VALUE", // required + * blueprintStage: "DEVELOPMENT" || "LIVE", + * }; + * const command = new UpdateBlueprintCommand(input); + * const response = await client.send(command); + * // { // UpdateBlueprintResponse + * // blueprint: { // Blueprint + * // blueprintArn: "STRING_VALUE", // required + * // schema: "STRING_VALUE", // required + * // type: "DOCUMENT" || "IMAGE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // blueprintName: "STRING_VALUE", // required + * // blueprintVersion: "STRING_VALUE", + * // blueprintStage: "DEVELOPMENT" || "LIVE", + * // kmsKeyId: "STRING_VALUE", + * // kmsEncryptionContext: { // KmsEncryptionContext + * // "": "STRING_VALUE", + * // }, + * // }, + * // }; + * + * ``` + * + * @param UpdateBlueprintCommandInput - {@link UpdateBlueprintCommandInput} + * @returns {@link UpdateBlueprintCommandOutput} + * @see {@link UpdateBlueprintCommandInput} for command's `input` shape. + * @see {@link UpdateBlueprintCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link ConflictException} (client fault) + * This exception is thrown when there is a conflict performing an operation + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class UpdateBlueprintCommand extends $Command + .classBuilder< + UpdateBlueprintCommandInput, + UpdateBlueprintCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "UpdateBlueprint", {}) + .n("BedrockDataAutomationClient", "UpdateBlueprintCommand") + .f(UpdateBlueprintRequestFilterSensitiveLog, UpdateBlueprintResponseFilterSensitiveLog) + .ser(se_UpdateBlueprintCommand) + .de(de_UpdateBlueprintCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateBlueprintRequest; + output: UpdateBlueprintResponse; + }; + sdk: { + input: UpdateBlueprintCommandInput; + output: UpdateBlueprintCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/UpdateDataAutomationProjectCommand.ts b/clients/client-bedrock-data-automation/src/commands/UpdateDataAutomationProjectCommand.ts new file mode 100644 index 000000000000..9967b69c39db --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/UpdateDataAutomationProjectCommand.ts @@ -0,0 +1,224 @@ +// 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 { + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../BedrockDataAutomationClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateDataAutomationProjectRequest, + UpdateDataAutomationProjectRequestFilterSensitiveLog, + UpdateDataAutomationProjectResponse, +} from "../models/models_0"; +import { + de_UpdateDataAutomationProjectCommand, + se_UpdateDataAutomationProjectCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateDataAutomationProjectCommand}. + */ +export interface UpdateDataAutomationProjectCommandInput extends UpdateDataAutomationProjectRequest {} +/** + * @public + * + * The output of {@link UpdateDataAutomationProjectCommand}. + */ +export interface UpdateDataAutomationProjectCommandOutput + extends UpdateDataAutomationProjectResponse, + __MetadataBearer {} + +/** + * Updates an existing Amazon Bedrock DataAutomationProject + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { BedrockDataAutomationClient, UpdateDataAutomationProjectCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import + * // const { BedrockDataAutomationClient, UpdateDataAutomationProjectCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import + * const client = new BedrockDataAutomationClient(config); + * const input = { // UpdateDataAutomationProjectRequest + * projectArn: "STRING_VALUE", // required + * projectStage: "DEVELOPMENT" || "LIVE", + * projectDescription: "STRING_VALUE", + * standardOutputConfiguration: { // StandardOutputConfiguration + * document: { // DocumentStandardOutputConfiguration + * extraction: { // DocumentStandardExtraction + * granularity: { // DocumentExtractionGranularity + * types: [ // DocumentExtractionGranularityTypes + * "DOCUMENT" || "PAGE" || "ELEMENT" || "WORD" || "LINE", + * ], + * }, + * boundingBox: { // DocumentBoundingBox + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * generativeField: { // DocumentStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * }, + * outputFormat: { // DocumentOutputFormat + * textFormat: { // DocumentOutputTextFormat + * types: [ // DocumentOutputTextFormatTypes + * "PLAIN_TEXT" || "MARKDOWN" || "HTML" || "CSV", + * ], + * }, + * additionalFileFormat: { // DocumentOutputAdditionalFileFormat + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * }, + * image: { // ImageStandardOutputConfiguration + * extraction: { // ImageStandardExtraction + * category: { // ImageExtractionCategory + * state: "ENABLED" || "DISABLED", // required + * types: [ // ImageExtractionCategoryTypes + * "CONTENT_MODERATION" || "TEXT_DETECTION", + * ], + * }, + * boundingBox: { // ImageBoundingBox + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * generativeField: { // ImageStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * types: [ // ImageStandardGenerativeFieldTypes + * "IMAGE_SUMMARY" || "IAB", + * ], + * }, + * }, + * video: { // VideoStandardOutputConfiguration + * extraction: { // VideoStandardExtraction + * category: { // VideoExtractionCategory + * state: "ENABLED" || "DISABLED", // required + * types: [ // VideoExtractionCategoryTypes + * "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT", + * ], + * }, + * boundingBox: { // VideoBoundingBox + * state: "ENABLED" || "DISABLED", // required + * }, + * }, + * generativeField: { // VideoStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * types: [ // VideoStandardGenerativeFieldTypes + * "VIDEO_SUMMARY" || "SCENE_SUMMARY" || "IAB", + * ], + * }, + * }, + * audio: { // AudioStandardOutputConfiguration + * extraction: { // AudioStandardExtraction + * category: { // AudioExtractionCategory + * state: "ENABLED" || "DISABLED", // required + * types: [ // AudioExtractionCategoryTypes + * "AUDIO_CONTENT_MODERATION" || "CHAPTER_CONTENT_MODERATION" || "TRANSCRIPT", + * ], + * }, + * }, + * generativeField: { // AudioStandardGenerativeField + * state: "ENABLED" || "DISABLED", // required + * types: [ // AudioStandardGenerativeFieldTypes + * "AUDIO_SUMMARY" || "CHAPTER_SUMMARY" || "IAB", + * ], + * }, + * }, + * }, + * customOutputConfiguration: { // CustomOutputConfiguration + * blueprints: [ // BlueprintItems + * { // BlueprintItem + * blueprintArn: "STRING_VALUE", // required + * blueprintVersion: "STRING_VALUE", + * blueprintStage: "DEVELOPMENT" || "LIVE", + * }, + * ], + * }, + * overrideConfiguration: { // OverrideConfiguration + * document: { // DocumentOverrideConfiguration + * splitter: { // SplitterConfiguration + * state: "ENABLED" || "DISABLED", + * }, + * }, + * }, + * }; + * const command = new UpdateDataAutomationProjectCommand(input); + * const response = await client.send(command); + * // { // UpdateDataAutomationProjectResponse + * // projectArn: "STRING_VALUE", // required + * // projectStage: "DEVELOPMENT" || "LIVE", + * // status: "COMPLETED" || "IN_PROGRESS" || "FAILED", + * // }; + * + * ``` + * + * @param UpdateDataAutomationProjectCommandInput - {@link UpdateDataAutomationProjectCommandInput} + * @returns {@link UpdateDataAutomationProjectCommandOutput} + * @see {@link UpdateDataAutomationProjectCommandInput} for command's `input` shape. + * @see {@link UpdateDataAutomationProjectCommandOutput} for command's `response` shape. + * @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + * This exception is thrown when a request is denied per access permissions + * + * @throws {@link ConflictException} (client fault) + * This exception is thrown when there is a conflict performing an operation + * + * @throws {@link InternalServerException} (server fault) + * This exception is thrown if there was an unexpected error during processing of request + * + * @throws {@link ResourceNotFoundException} (client fault) + * This exception is thrown when a resource referenced by the operation does not exist + * + * @throws {@link ThrottlingException} (client fault) + * This exception is thrown when the number of requests exceeds the limit + * + * @throws {@link ValidationException} (client fault) + * This exception is thrown when the request's input validation fails + * + * @throws {@link BedrockDataAutomationServiceException} + *

Base exception class for all service exceptions from BedrockDataAutomation service.

+ * + * @public + */ +export class UpdateDataAutomationProjectCommand extends $Command + .classBuilder< + UpdateDataAutomationProjectCommandInput, + UpdateDataAutomationProjectCommandOutput, + BedrockDataAutomationClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonBedrockKeystoneBuildTimeService", "UpdateDataAutomationProject", {}) + .n("BedrockDataAutomationClient", "UpdateDataAutomationProjectCommand") + .f(UpdateDataAutomationProjectRequestFilterSensitiveLog, void 0) + .ser(se_UpdateDataAutomationProjectCommand) + .de(de_UpdateDataAutomationProjectCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateDataAutomationProjectRequest; + output: UpdateDataAutomationProjectResponse; + }; + sdk: { + input: UpdateDataAutomationProjectCommandInput; + output: UpdateDataAutomationProjectCommandOutput; + }; + }; +} diff --git a/clients/client-bedrock-data-automation/src/commands/index.ts b/clients/client-bedrock-data-automation/src/commands/index.ts new file mode 100644 index 000000000000..078a00133e00 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/commands/index.ts @@ -0,0 +1,12 @@ +// smithy-typescript generated code +export * from "./CreateBlueprintCommand"; +export * from "./CreateBlueprintVersionCommand"; +export * from "./CreateDataAutomationProjectCommand"; +export * from "./DeleteBlueprintCommand"; +export * from "./DeleteDataAutomationProjectCommand"; +export * from "./GetBlueprintCommand"; +export * from "./GetDataAutomationProjectCommand"; +export * from "./ListBlueprintsCommand"; +export * from "./ListDataAutomationProjectsCommand"; +export * from "./UpdateBlueprintCommand"; +export * from "./UpdateDataAutomationProjectCommand"; diff --git a/clients/client-bedrock-data-automation/src/endpoint/EndpointParameters.ts b/clients/client-bedrock-data-automation/src/endpoint/EndpointParameters.ts new file mode 100644 index 000000000000..a164c103c4b7 --- /dev/null +++ b/clients/client-bedrock-data-automation/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: "bedrock", + }; +}; + +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-bedrock-data-automation/src/endpoint/endpointResolver.ts b/clients/client-bedrock-data-automation/src/endpoint/endpointResolver.ts new file mode 100644 index 000000000000..ccee107f30d6 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/endpoint/endpointResolver.ts @@ -0,0 +1,26 @@ +// smithy-typescript generated code +import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; +import { EndpointV2, Logger } from "@smithy/types"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; + +import { EndpointParameters } from "./EndpointParameters"; +import { ruleSet } from "./ruleset"; + +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + +export const defaultEndpointResolver = ( + endpointParams: EndpointParameters, + context: { logger?: Logger } = {} +): EndpointV2 => { + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); +}; + +customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-bedrock-data-automation/src/endpoint/ruleset.ts b/clients/client-bedrock-data-automation/src/endpoint/ruleset.ts new file mode 100644 index 000000000000..35ef4e61aa15 --- /dev/null +++ b/clients/client-bedrock-data-automation/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/bedrock-data-automation.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://bedrock-data-automation-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://bedrock-data-automation-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://bedrock-data-automation.{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://bedrock-data-automation.{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-bedrock-data-automation/src/extensionConfiguration.ts b/clients/client-bedrock-data-automation/src/extensionConfiguration.ts new file mode 100644 index 000000000000..2b883450f9b9 --- /dev/null +++ b/clients/client-bedrock-data-automation/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 BedrockDataAutomationExtensionConfiguration + extends HttpHandlerExtensionConfiguration, + DefaultExtensionConfiguration, + AwsRegionExtensionConfiguration, + HttpAuthExtensionConfiguration {} diff --git a/clients/client-bedrock-data-automation/src/index.ts b/clients/client-bedrock-data-automation/src/index.ts new file mode 100644 index 000000000000..38bdd029e50c --- /dev/null +++ b/clients/client-bedrock-data-automation/src/index.ts @@ -0,0 +1,17 @@ +// smithy-typescript generated code +/* eslint-disable */ +/** + * Amazon Bedrock Keystone Build + * + * @packageDocumentation + */ +export * from "./BedrockDataAutomationClient"; +export * from "./BedrockDataAutomation"; +export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; +export type { RuntimeExtension } from "./runtimeExtensions"; +export type { BedrockDataAutomationExtensionConfiguration } from "./extensionConfiguration"; +export * from "./commands"; +export * from "./pagination"; +export * from "./models"; + +export { BedrockDataAutomationServiceException } from "./models/BedrockDataAutomationServiceException"; diff --git a/clients/client-bedrock-data-automation/src/models/BedrockDataAutomationServiceException.ts b/clients/client-bedrock-data-automation/src/models/BedrockDataAutomationServiceException.ts new file mode 100644 index 000000000000..5a153ec635ae --- /dev/null +++ b/clients/client-bedrock-data-automation/src/models/BedrockDataAutomationServiceException.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { + ServiceException as __ServiceException, + ServiceExceptionOptions as __ServiceExceptionOptions, +} from "@smithy/smithy-client"; + +export type { __ServiceExceptionOptions }; + +export { __ServiceException }; + +/** + * @public + * + * Base exception class for all service exceptions from BedrockDataAutomation service. + */ +export class BedrockDataAutomationServiceException extends __ServiceException { + /** + * @internal + */ + constructor(options: __ServiceExceptionOptions) { + super(options); + Object.setPrototypeOf(this, BedrockDataAutomationServiceException.prototype); + } +} diff --git a/clients/client-bedrock-data-automation/src/models/index.ts b/clients/client-bedrock-data-automation/src/models/index.ts new file mode 100644 index 000000000000..9eaceb12865f --- /dev/null +++ b/clients/client-bedrock-data-automation/src/models/index.ts @@ -0,0 +1,2 @@ +// smithy-typescript generated code +export * from "./models_0"; diff --git a/clients/client-bedrock-data-automation/src/models/models_0.ts b/clients/client-bedrock-data-automation/src/models/models_0.ts new file mode 100644 index 000000000000..1b4c124f82ed --- /dev/null +++ b/clients/client-bedrock-data-automation/src/models/models_0.ts @@ -0,0 +1,1769 @@ +// smithy-typescript generated code +import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + +import { BedrockDataAutomationServiceException as __BaseException } from "./BedrockDataAutomationServiceException"; + +/** + * This exception is thrown when a request is denied per access permissions + * @public + */ +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); + } +} + +/** + * This exception is thrown when there is a conflict performing an operation + * @public + */ +export class ConflictException extends __BaseException { + readonly name: "ConflictException" = "ConflictException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConflictException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ConflictException.prototype); + } +} + +/** + * @public + * @enum + */ +export const BlueprintStage = { + DEVELOPMENT: "DEVELOPMENT", + LIVE: "LIVE", +} as const; + +/** + * @public + */ +export type BlueprintStage = (typeof BlueprintStage)[keyof typeof BlueprintStage]; + +/** + * KMS Encryption Configuration + * @public + */ +export interface EncryptionConfiguration { + /** + * KMS Key Identifier + * @public + */ + kmsKeyId: string | undefined; + + /** + * KMS Encryption Context + * @public + */ + kmsEncryptionContext?: Record | undefined; +} + +/** + * @public + * @enum + */ +export const Type = { + DOCUMENT: "DOCUMENT", + IMAGE: "IMAGE", +} as const; + +/** + * @public + */ +export type Type = (typeof Type)[keyof typeof Type]; + +/** + * Create Blueprint Request + * @public + */ +export interface CreateBlueprintRequest { + /** + * Name of the Blueprint + * @public + */ + blueprintName: string | undefined; + + /** + * Type + * @public + */ + type: Type | undefined; + + /** + * Stage of the Blueprint + * @public + */ + blueprintStage?: BlueprintStage | undefined; + + /** + * Schema of the blueprint + * @public + */ + schema: string | undefined; + + /** + * Client specified token used for idempotency checks + * @public + */ + clientToken?: string | undefined; + + /** + * KMS Encryption Configuration + * @public + */ + encryptionConfiguration?: EncryptionConfiguration | undefined; +} + +/** + * Contains the information of a Blueprint. + * @public + */ +export interface Blueprint { + /** + * ARN of a Blueprint + * @public + */ + blueprintArn: string | undefined; + + /** + * Schema of the blueprint + * @public + */ + schema: string | undefined; + + /** + * Type + * @public + */ + type: Type | undefined; + + /** + * Time Stamp + * @public + */ + creationTime: Date | undefined; + + /** + * Time Stamp + * @public + */ + lastModifiedTime: Date | undefined; + + /** + * Name of the Blueprint + * @public + */ + blueprintName: string | undefined; + + /** + * Blueprint Version + * @public + */ + blueprintVersion?: string | undefined; + + /** + * Stage of the Blueprint + * @public + */ + blueprintStage?: BlueprintStage | undefined; + + /** + * KMS Key Identifier + * @public + */ + kmsKeyId?: string | undefined; + + /** + * KMS Encryption Context + * @public + */ + kmsEncryptionContext?: Record | undefined; +} + +/** + * Create Blueprint Response + * @public + */ +export interface CreateBlueprintResponse { + /** + * Contains the information of a Blueprint. + * @public + */ + blueprint: Blueprint | undefined; +} + +/** + * This exception is thrown if there was an unexpected error during processing of request + * @public + */ +export class InternalServerException extends __BaseException { + readonly name: "InternalServerException" = "InternalServerException"; + readonly $fault: "server" = "server"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InternalServerException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalServerException.prototype); + } +} + +/** + * This exception is thrown when a request is made beyond the service quota + * @public + */ +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); + } +} + +/** + * This exception is thrown when the number of requests exceeds the limit + * @public + */ +export class ThrottlingException extends __BaseException { + readonly name: "ThrottlingException" = "ThrottlingException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ThrottlingException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ThrottlingException.prototype); + } +} + +/** + * Stores information about a field passed inside a request that resulted in an exception + * @public + */ +export interface ValidationExceptionField { + /** + * Non Blank String + * @public + */ + name: string | undefined; + + /** + * Non Blank String + * @public + */ + message: string | undefined; +} + +/** + * This exception is thrown when the request's input validation fails + * @public + */ +export class ValidationException extends __BaseException { + readonly name: "ValidationException" = "ValidationException"; + readonly $fault: "client" = "client"; + /** + * list of ValidationExceptionField + * @public + */ + fieldList?: ValidationExceptionField[] | undefined; + + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ValidationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ValidationException.prototype); + this.fieldList = opts.fieldList; + } +} + +/** + * Delete Blueprint Request + * @public + */ +export interface DeleteBlueprintRequest { + /** + * ARN generated at the server side when a Blueprint is created + * @public + */ + blueprintArn: string | undefined; + + /** + * Optional field to delete a specific Blueprint version + * @public + */ + blueprintVersion?: string | undefined; +} + +/** + * Delete Blueprint Response + * @public + */ +export interface DeleteBlueprintResponse {} + +/** + * This exception is thrown when a resource referenced by the operation does not exist + * @public + */ +export class ResourceNotFoundException extends __BaseException { + readonly name: "ResourceNotFoundException" = "ResourceNotFoundException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } +} + +/** + * Get Blueprint Request + * @public + */ +export interface GetBlueprintRequest { + /** + * ARN generated at the server side when a Blueprint is created + * @public + */ + blueprintArn: string | undefined; + + /** + * Optional field to get a specific Blueprint version + * @public + */ + blueprintVersion?: string | undefined; + + /** + * Optional field to get a specific Blueprint stage + * @public + */ + blueprintStage?: BlueprintStage | undefined; +} + +/** + * Get Blueprint Response + * @public + */ +export interface GetBlueprintResponse { + /** + * Contains the information of a Blueprint. + * @public + */ + blueprint: Blueprint | undefined; +} + +/** + * @public + * @enum + */ +export const BlueprintStageFilter = { + ALL: "ALL", + DEVELOPMENT: "DEVELOPMENT", + LIVE: "LIVE", +} as const; + +/** + * @public + */ +export type BlueprintStageFilter = (typeof BlueprintStageFilter)[keyof typeof BlueprintStageFilter]; + +/** + * @public + * @enum + */ +export const DataAutomationProjectStage = { + DEVELOPMENT: "DEVELOPMENT", + LIVE: "LIVE", +} as const; + +/** + * @public + */ +export type DataAutomationProjectStage = (typeof DataAutomationProjectStage)[keyof typeof DataAutomationProjectStage]; + +/** + * Data Automation Project Filter + * @public + */ +export interface DataAutomationProjectFilter { + /** + * ARN of a DataAutomationProject + * @public + */ + projectArn: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; +} + +/** + * @public + * @enum + */ +export const ResourceOwner = { + ACCOUNT: "ACCOUNT", + SERVICE: "SERVICE", +} as const; + +/** + * @public + */ +export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner]; + +/** + * List Blueprint Request + * @public + */ +export interface ListBlueprintsRequest { + /** + * ARN of a Blueprint + * @public + */ + blueprintArn?: string | undefined; + + /** + * Resource Owner + * @public + */ + resourceOwner?: ResourceOwner | undefined; + + /** + * Blueprint Stage filter + * @public + */ + blueprintStageFilter?: BlueprintStageFilter | undefined; + + /** + * Max Results + * @public + */ + maxResults?: number | undefined; + + /** + * Pagination token + * @public + */ + nextToken?: string | undefined; + + /** + * Data Automation Project Filter + * @public + */ + projectFilter?: DataAutomationProjectFilter | undefined; +} + +/** + * Summary of a Blueprint + * @public + */ +export interface BlueprintSummary { + /** + * ARN of a Blueprint + * @public + */ + blueprintArn: string | undefined; + + /** + * Blueprint Version + * @public + */ + blueprintVersion?: string | undefined; + + /** + * Stage of the Blueprint + * @public + */ + blueprintStage?: BlueprintStage | undefined; + + /** + * Name of the Blueprint + * @public + */ + blueprintName?: string | undefined; + + /** + * Time Stamp + * @public + */ + creationTime: Date | undefined; + + /** + * Time Stamp + * @public + */ + lastModifiedTime?: Date | undefined; +} + +/** + * List Blueprint Response + * @public + */ +export interface ListBlueprintsResponse { + /** + * List of Blueprints + * @public + */ + blueprints: BlueprintSummary[] | undefined; + + /** + * Pagination token + * @public + */ + nextToken?: string | undefined; +} + +/** + * Update Blueprint Request + * @public + */ +export interface UpdateBlueprintRequest { + /** + * ARN generated at the server side when a Blueprint is created + * @public + */ + blueprintArn: string | undefined; + + /** + * Schema of the blueprint + * @public + */ + schema: string | undefined; + + /** + * Stage of the Blueprint + * @public + */ + blueprintStage?: BlueprintStage | undefined; +} + +/** + * Update Blueprint Response + * @public + */ +export interface UpdateBlueprintResponse { + /** + * Contains the information of a Blueprint. + * @public + */ + blueprint: Blueprint | undefined; +} + +/** + * Create Blueprint Version Request + * @public + */ +export interface CreateBlueprintVersionRequest { + /** + * ARN generated at the server side when a Blueprint is created + * @public + */ + blueprintArn: string | undefined; + + /** + * Client specified token used for idempotency checks + * @public + */ + clientToken?: string | undefined; +} + +/** + * Create Blueprint Version Response + * @public + */ +export interface CreateBlueprintVersionResponse { + /** + * Contains the information of a Blueprint. + * @public + */ + blueprint: Blueprint | undefined; +} + +/** + * Blueprint Item + * @public + */ +export interface BlueprintItem { + /** + * ARN of a Blueprint + * @public + */ + blueprintArn: string | undefined; + + /** + * Blueprint Version + * @public + */ + blueprintVersion?: string | undefined; + + /** + * Stage of the Blueprint + * @public + */ + blueprintStage?: BlueprintStage | undefined; +} + +/** + * Custom output configuration + * @public + */ +export interface CustomOutputConfiguration { + /** + * List of Blueprint Item + * @public + */ + blueprints?: BlueprintItem[] | undefined; +} + +/** + * @public + * @enum + */ +export const State = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; + +/** + * @public + */ +export type State = (typeof State)[keyof typeof State]; + +/** + * Configuration of Splitter + * @public + */ +export interface SplitterConfiguration { + /** + * State + * @public + */ + state?: State | undefined; +} + +/** + * Override Configuration of Document + * @public + */ +export interface DocumentOverrideConfiguration { + /** + * Configuration of Splitter + * @public + */ + splitter?: SplitterConfiguration | undefined; +} + +/** + * Override configuration + * @public + */ +export interface OverrideConfiguration { + /** + * Override Configuration of Document + * @public + */ + document?: DocumentOverrideConfiguration | undefined; +} + +/** + * @public + * @enum + */ +export const AudioExtractionCategoryType = { + AUDIO_CONTENT_MODERATION: "AUDIO_CONTENT_MODERATION", + CHAPTER_CONTENT_MODERATION: "CHAPTER_CONTENT_MODERATION", + TRANSCRIPT: "TRANSCRIPT", +} as const; + +/** + * @public + */ +export type AudioExtractionCategoryType = + (typeof AudioExtractionCategoryType)[keyof typeof AudioExtractionCategoryType]; + +/** + * Category of Audio Extraction + * @public + */ +export interface AudioExtractionCategory { + /** + * State + * @public + */ + state: State | undefined; + + /** + * List of Audio Extraction Category Type + * @public + */ + types?: AudioExtractionCategoryType[] | undefined; +} + +/** + * Standard Extraction Configuration of Audio + * @public + */ +export interface AudioStandardExtraction { + /** + * Category of Audio Extraction + * @public + */ + category: AudioExtractionCategory | undefined; +} + +/** + * @public + * @enum + */ +export const AudioStandardGenerativeFieldType = { + AUDIO_SUMMARY: "AUDIO_SUMMARY", + CHAPTER_SUMMARY: "CHAPTER_SUMMARY", + IAB: "IAB", +} as const; + +/** + * @public + */ +export type AudioStandardGenerativeFieldType = + (typeof AudioStandardGenerativeFieldType)[keyof typeof AudioStandardGenerativeFieldType]; + +/** + * Standard Generative Field Configuration of Audio + * @public + */ +export interface AudioStandardGenerativeField { + /** + * State + * @public + */ + state: State | undefined; + + /** + * List of Audio Standard Generative Field Type + * @public + */ + types?: AudioStandardGenerativeFieldType[] | undefined; +} + +/** + * Standard Output Configuration of Audio + * @public + */ +export interface AudioStandardOutputConfiguration { + /** + * Standard Extraction Configuration of Audio + * @public + */ + extraction?: AudioStandardExtraction | undefined; + + /** + * Standard Generative Field Configuration of Audio + * @public + */ + generativeField?: AudioStandardGenerativeField | undefined; +} + +/** + * Bounding Box Configuration of Document Extraction + * @public + */ +export interface DocumentBoundingBox { + /** + * State + * @public + */ + state: State | undefined; +} + +/** + * @public + * @enum + */ +export const DocumentExtractionGranularityType = { + DOCUMENT: "DOCUMENT", + ELEMENT: "ELEMENT", + LINE: "LINE", + PAGE: "PAGE", + WORD: "WORD", +} as const; + +/** + * @public + */ +export type DocumentExtractionGranularityType = + (typeof DocumentExtractionGranularityType)[keyof typeof DocumentExtractionGranularityType]; + +/** + * Granularity of Document Extraction + * @public + */ +export interface DocumentExtractionGranularity { + /** + * List of Document Extraction Granularity Type + * @public + */ + types?: DocumentExtractionGranularityType[] | undefined; +} + +/** + * Standard Extraction Configuration of Document + * @public + */ +export interface DocumentStandardExtraction { + /** + * Granularity of Document Extraction + * @public + */ + granularity: DocumentExtractionGranularity | undefined; + + /** + * Bounding Box Configuration of Document Extraction + * @public + */ + boundingBox: DocumentBoundingBox | undefined; +} + +/** + * Standard Generative Field Configuration of Document + * @public + */ +export interface DocumentStandardGenerativeField { + /** + * State + * @public + */ + state: State | undefined; +} + +/** + * Additional File Format of Document Output + * @public + */ +export interface DocumentOutputAdditionalFileFormat { + /** + * State + * @public + */ + state: State | undefined; +} + +/** + * @public + * @enum + */ +export const DocumentOutputTextFormatType = { + CSV: "CSV", + HTML: "HTML", + MARKDOWN: "MARKDOWN", + PLAIN_TEXT: "PLAIN_TEXT", +} as const; + +/** + * @public + */ +export type DocumentOutputTextFormatType = + (typeof DocumentOutputTextFormatType)[keyof typeof DocumentOutputTextFormatType]; + +/** + * Text Format of Document Output + * @public + */ +export interface DocumentOutputTextFormat { + /** + * List of Document Output Text Format Type + * @public + */ + types?: DocumentOutputTextFormatType[] | undefined; +} + +/** + * Output Format of Document + * @public + */ +export interface DocumentOutputFormat { + /** + * Text Format of Document Output + * @public + */ + textFormat: DocumentOutputTextFormat | undefined; + + /** + * Additional File Format of Document Output + * @public + */ + additionalFileFormat: DocumentOutputAdditionalFileFormat | undefined; +} + +/** + * Standard Output Configuration of Document + * @public + */ +export interface DocumentStandardOutputConfiguration { + /** + * Standard Extraction Configuration of Document + * @public + */ + extraction?: DocumentStandardExtraction | undefined; + + /** + * Standard Generative Field Configuration of Document + * @public + */ + generativeField?: DocumentStandardGenerativeField | undefined; + + /** + * Output Format of Document + * @public + */ + outputFormat?: DocumentOutputFormat | undefined; +} + +/** + * Bounding Box Configuration of Image Extraction + * @public + */ +export interface ImageBoundingBox { + /** + * State + * @public + */ + state: State | undefined; +} + +/** + * @public + * @enum + */ +export const ImageExtractionCategoryType = { + CONTENT_MODERATION: "CONTENT_MODERATION", + TEXT_DETECTION: "TEXT_DETECTION", +} as const; + +/** + * @public + */ +export type ImageExtractionCategoryType = + (typeof ImageExtractionCategoryType)[keyof typeof ImageExtractionCategoryType]; + +/** + * Category of Image Extraction + * @public + */ +export interface ImageExtractionCategory { + /** + * State + * @public + */ + state: State | undefined; + + /** + * List of Image Extraction Category + * @public + */ + types?: ImageExtractionCategoryType[] | undefined; +} + +/** + * Standard Extraction Configuration of Image + * @public + */ +export interface ImageStandardExtraction { + /** + * Category of Image Extraction + * @public + */ + category: ImageExtractionCategory | undefined; + + /** + * Bounding Box Configuration of Image Extraction + * @public + */ + boundingBox: ImageBoundingBox | undefined; +} + +/** + * @public + * @enum + */ +export const ImageStandardGenerativeFieldType = { + IAB: "IAB", + IMAGE_SUMMARY: "IMAGE_SUMMARY", +} as const; + +/** + * @public + */ +export type ImageStandardGenerativeFieldType = + (typeof ImageStandardGenerativeFieldType)[keyof typeof ImageStandardGenerativeFieldType]; + +/** + * Standard Generative Field Configuration of Image + * @public + */ +export interface ImageStandardGenerativeField { + /** + * State + * @public + */ + state: State | undefined; + + /** + * List of Image Standard Generative Field Type + * @public + */ + types?: ImageStandardGenerativeFieldType[] | undefined; +} + +/** + * Standard Output Configuration of Image + * @public + */ +export interface ImageStandardOutputConfiguration { + /** + * Standard Extraction Configuration of Image + * @public + */ + extraction?: ImageStandardExtraction | undefined; + + /** + * Standard Generative Field Configuration of Image + * @public + */ + generativeField?: ImageStandardGenerativeField | undefined; +} + +/** + * Bounding Box Configuration of Video Extraction + * @public + */ +export interface VideoBoundingBox { + /** + * State + * @public + */ + state: State | undefined; +} + +/** + * @public + * @enum + */ +export const VideoExtractionCategoryType = { + CONTENT_MODERATION: "CONTENT_MODERATION", + TEXT_DETECTION: "TEXT_DETECTION", + TRANSCRIPT: "TRANSCRIPT", +} as const; + +/** + * @public + */ +export type VideoExtractionCategoryType = + (typeof VideoExtractionCategoryType)[keyof typeof VideoExtractionCategoryType]; + +/** + * Category of Video Extraction + * @public + */ +export interface VideoExtractionCategory { + /** + * State + * @public + */ + state: State | undefined; + + /** + * List of Video Extraction Category Type + * @public + */ + types?: VideoExtractionCategoryType[] | undefined; +} + +/** + * Standard Extraction Configuration of Video + * @public + */ +export interface VideoStandardExtraction { + /** + * Category of Video Extraction + * @public + */ + category: VideoExtractionCategory | undefined; + + /** + * Bounding Box Configuration of Video Extraction + * @public + */ + boundingBox: VideoBoundingBox | undefined; +} + +/** + * @public + * @enum + */ +export const VideoStandardGenerativeFieldType = { + IAB: "IAB", + SCENE_SUMMARY: "SCENE_SUMMARY", + VIDEO_SUMMARY: "VIDEO_SUMMARY", +} as const; + +/** + * @public + */ +export type VideoStandardGenerativeFieldType = + (typeof VideoStandardGenerativeFieldType)[keyof typeof VideoStandardGenerativeFieldType]; + +/** + * Standard Generative Field Configuration of Video + * @public + */ +export interface VideoStandardGenerativeField { + /** + * State + * @public + */ + state: State | undefined; + + /** + * List of Video Standard Generative Field Type + * @public + */ + types?: VideoStandardGenerativeFieldType[] | undefined; +} + +/** + * Standard Output Configuration of Video + * @public + */ +export interface VideoStandardOutputConfiguration { + /** + * Standard Extraction Configuration of Video + * @public + */ + extraction?: VideoStandardExtraction | undefined; + + /** + * Standard Generative Field Configuration of Video + * @public + */ + generativeField?: VideoStandardGenerativeField | undefined; +} + +/** + * Standard output configuration + * @public + */ +export interface StandardOutputConfiguration { + /** + * Standard Output Configuration of Document + * @public + */ + document?: DocumentStandardOutputConfiguration | undefined; + + /** + * Standard Output Configuration of Image + * @public + */ + image?: ImageStandardOutputConfiguration | undefined; + + /** + * Standard Output Configuration of Video + * @public + */ + video?: VideoStandardOutputConfiguration | undefined; + + /** + * Standard Output Configuration of Audio + * @public + */ + audio?: AudioStandardOutputConfiguration | undefined; +} + +/** + * Create DataAutomationProject Request + * @public + */ +export interface CreateDataAutomationProjectRequest { + /** + * Name of the DataAutomationProject + * @public + */ + projectName: string | undefined; + + /** + * Description of the DataAutomationProject + * @public + */ + projectDescription?: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; + + /** + * Standard output configuration + * @public + */ + standardOutputConfiguration: StandardOutputConfiguration | undefined; + + /** + * Custom output configuration + * @public + */ + customOutputConfiguration?: CustomOutputConfiguration | undefined; + + /** + * Override configuration + * @public + */ + overrideConfiguration?: OverrideConfiguration | undefined; + + /** + * Client specified token used for idempotency checks + * @public + */ + clientToken?: string | undefined; + + /** + * KMS Encryption Configuration + * @public + */ + encryptionConfiguration?: EncryptionConfiguration | undefined; +} + +/** + * @public + * @enum + */ +export const DataAutomationProjectStatus = { + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", +} as const; + +/** + * @public + */ +export type DataAutomationProjectStatus = + (typeof DataAutomationProjectStatus)[keyof typeof DataAutomationProjectStatus]; + +/** + * Create DataAutomationProject Response + * @public + */ +export interface CreateDataAutomationProjectResponse { + /** + * ARN of a DataAutomationProject + * @public + */ + projectArn: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; + + /** + * Status of Data Automation Project + * @public + */ + status?: DataAutomationProjectStatus | undefined; +} + +/** + * Delete DataAutomationProject Request + * @public + */ +export interface DeleteDataAutomationProjectRequest { + /** + * ARN generated at the server side when a DataAutomationProject is created + * @public + */ + projectArn: string | undefined; +} + +/** + * Delete DataAutomationProject Response + * @public + */ +export interface DeleteDataAutomationProjectResponse { + /** + * ARN of a DataAutomationProject + * @public + */ + projectArn: string | undefined; + + /** + * Status of Data Automation Project + * @public + */ + status?: DataAutomationProjectStatus | undefined; +} + +/** + * Get DataAutomationProject Request + * @public + */ +export interface GetDataAutomationProjectRequest { + /** + * ARN generated at the server side when a DataAutomationProject is created + * @public + */ + projectArn: string | undefined; + + /** + * Optional field to delete a specific DataAutomationProject stage + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; +} + +/** + * Contains the information of a DataAutomationProject. + * @public + */ +export interface DataAutomationProject { + /** + * ARN of a DataAutomationProject + * @public + */ + projectArn: string | undefined; + + /** + * Time Stamp + * @public + */ + creationTime: Date | undefined; + + /** + * Time Stamp + * @public + */ + lastModifiedTime: Date | undefined; + + /** + * Name of the DataAutomationProject + * @public + */ + projectName: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; + + /** + * Description of the DataAutomationProject + * @public + */ + projectDescription?: string | undefined; + + /** + * Standard output configuration + * @public + */ + standardOutputConfiguration?: StandardOutputConfiguration | undefined; + + /** + * Custom output configuration + * @public + */ + customOutputConfiguration?: CustomOutputConfiguration | undefined; + + /** + * Override configuration + * @public + */ + overrideConfiguration?: OverrideConfiguration | undefined; + + /** + * Status of Data Automation Project + * @public + */ + status: DataAutomationProjectStatus | undefined; + + /** + * KMS Key Identifier + * @public + */ + kmsKeyId?: string | undefined; + + /** + * KMS Encryption Context + * @public + */ + kmsEncryptionContext?: Record | undefined; +} + +/** + * Get DataAutomationProject Response + * @public + */ +export interface GetDataAutomationProjectResponse { + /** + * Contains the information of a DataAutomationProject. + * @public + */ + project: DataAutomationProject | undefined; +} + +/** + * Blueprint Filter + * @public + */ +export interface BlueprintFilter { + /** + * ARN of a Blueprint + * @public + */ + blueprintArn: string | undefined; + + /** + * Blueprint Version + * @public + */ + blueprintVersion?: string | undefined; + + /** + * Stage of the Blueprint + * @public + */ + blueprintStage?: BlueprintStage | undefined; +} + +/** + * @public + * @enum + */ +export const DataAutomationProjectStageFilter = { + ALL: "ALL", + DEVELOPMENT: "DEVELOPMENT", + LIVE: "LIVE", +} as const; + +/** + * @public + */ +export type DataAutomationProjectStageFilter = + (typeof DataAutomationProjectStageFilter)[keyof typeof DataAutomationProjectStageFilter]; + +/** + * List DataAutomationProject Request + * @public + */ +export interface ListDataAutomationProjectsRequest { + /** + * Max Results + * @public + */ + maxResults?: number | undefined; + + /** + * Pagination token + * @public + */ + nextToken?: string | undefined; + + /** + * Project Stage filter + * @public + */ + projectStageFilter?: DataAutomationProjectStageFilter | undefined; + + /** + * Blueprint Filter + * @public + */ + blueprintFilter?: BlueprintFilter | undefined; + + /** + * Resource Owner + * @public + */ + resourceOwner?: ResourceOwner | undefined; +} + +/** + * Summary of a DataAutomationProject + * @public + */ +export interface DataAutomationProjectSummary { + /** + * ARN of a DataAutomationProject + * @public + */ + projectArn: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; + + /** + * Name of the DataAutomationProject + * @public + */ + projectName?: string | undefined; + + /** + * Time Stamp + * @public + */ + creationTime: Date | undefined; +} + +/** + * List DataAutomationProject Response + * @public + */ +export interface ListDataAutomationProjectsResponse { + /** + * List of DataAutomationProjectSummary + * @public + */ + projects: DataAutomationProjectSummary[] | undefined; + + /** + * Pagination token + * @public + */ + nextToken?: string | undefined; +} + +/** + * Update DataAutomationProject Request + * @public + */ +export interface UpdateDataAutomationProjectRequest { + /** + * ARN generated at the server side when a DataAutomationProject is created + * @public + */ + projectArn: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; + + /** + * Description of the DataAutomationProject + * @public + */ + projectDescription?: string | undefined; + + /** + * Standard output configuration + * @public + */ + standardOutputConfiguration: StandardOutputConfiguration | undefined; + + /** + * Custom output configuration + * @public + */ + customOutputConfiguration?: CustomOutputConfiguration | undefined; + + /** + * Override configuration + * @public + */ + overrideConfiguration?: OverrideConfiguration | undefined; +} + +/** + * Update DataAutomationProject Response + * @public + */ +export interface UpdateDataAutomationProjectResponse { + /** + * ARN of a DataAutomationProject + * @public + */ + projectArn: string | undefined; + + /** + * Stage of the Project + * @public + */ + projectStage?: DataAutomationProjectStage | undefined; + + /** + * Status of Data Automation Project + * @public + */ + status?: DataAutomationProjectStatus | undefined; +} + +/** + * @internal + */ +export const CreateBlueprintRequestFilterSensitiveLog = (obj: CreateBlueprintRequest): any => ({ + ...obj, + ...(obj.blueprintName && { blueprintName: SENSITIVE_STRING }), + ...(obj.schema && { schema: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const BlueprintFilterSensitiveLog = (obj: Blueprint): any => ({ + ...obj, + ...(obj.schema && { schema: SENSITIVE_STRING }), + ...(obj.blueprintName && { blueprintName: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CreateBlueprintResponseFilterSensitiveLog = (obj: CreateBlueprintResponse): any => ({ + ...obj, + ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }), +}); + +/** + * @internal + */ +export const GetBlueprintResponseFilterSensitiveLog = (obj: GetBlueprintResponse): any => ({ + ...obj, + ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }), +}); + +/** + * @internal + */ +export const BlueprintSummaryFilterSensitiveLog = (obj: BlueprintSummary): any => ({ + ...obj, + ...(obj.blueprintName && { blueprintName: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ListBlueprintsResponseFilterSensitiveLog = (obj: ListBlueprintsResponse): any => ({ + ...obj, + ...(obj.blueprints && { blueprints: obj.blueprints.map((item) => BlueprintSummaryFilterSensitiveLog(item)) }), +}); + +/** + * @internal + */ +export const UpdateBlueprintRequestFilterSensitiveLog = (obj: UpdateBlueprintRequest): any => ({ + ...obj, + ...(obj.schema && { schema: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const UpdateBlueprintResponseFilterSensitiveLog = (obj: UpdateBlueprintResponse): any => ({ + ...obj, + ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }), +}); + +/** + * @internal + */ +export const CreateBlueprintVersionResponseFilterSensitiveLog = (obj: CreateBlueprintVersionResponse): any => ({ + ...obj, + ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }), +}); + +/** + * @internal + */ +export const CreateDataAutomationProjectRequestFilterSensitiveLog = (obj: CreateDataAutomationProjectRequest): any => ({ + ...obj, + ...(obj.projectName && { projectName: SENSITIVE_STRING }), + ...(obj.projectDescription && { projectDescription: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const DataAutomationProjectFilterSensitiveLog = (obj: DataAutomationProject): any => ({ + ...obj, + ...(obj.projectName && { projectName: SENSITIVE_STRING }), + ...(obj.projectDescription && { projectDescription: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const GetDataAutomationProjectResponseFilterSensitiveLog = (obj: GetDataAutomationProjectResponse): any => ({ + ...obj, + ...(obj.project && { project: DataAutomationProjectFilterSensitiveLog(obj.project) }), +}); + +/** + * @internal + */ +export const DataAutomationProjectSummaryFilterSensitiveLog = (obj: DataAutomationProjectSummary): any => ({ + ...obj, + ...(obj.projectName && { projectName: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ListDataAutomationProjectsResponseFilterSensitiveLog = (obj: ListDataAutomationProjectsResponse): any => ({ + ...obj, + ...(obj.projects && { projects: obj.projects.map((item) => DataAutomationProjectSummaryFilterSensitiveLog(item)) }), +}); + +/** + * @internal + */ +export const UpdateDataAutomationProjectRequestFilterSensitiveLog = (obj: UpdateDataAutomationProjectRequest): any => ({ + ...obj, + ...(obj.projectDescription && { projectDescription: SENSITIVE_STRING }), +}); diff --git a/clients/client-bedrock-data-automation/src/pagination/Interfaces.ts b/clients/client-bedrock-data-automation/src/pagination/Interfaces.ts new file mode 100644 index 000000000000..ecdfc194293a --- /dev/null +++ b/clients/client-bedrock-data-automation/src/pagination/Interfaces.ts @@ -0,0 +1,11 @@ +// smithy-typescript generated code +import { PaginationConfiguration } from "@smithy/types"; + +import { BedrockDataAutomationClient } from "../BedrockDataAutomationClient"; + +/** + * @public + */ +export interface BedrockDataAutomationPaginationConfiguration extends PaginationConfiguration { + client: BedrockDataAutomationClient; +} diff --git a/clients/client-bedrock-data-automation/src/pagination/ListBlueprintsPaginator.ts b/clients/client-bedrock-data-automation/src/pagination/ListBlueprintsPaginator.ts new file mode 100644 index 000000000000..575f8d8e2e42 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/pagination/ListBlueprintsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { BedrockDataAutomationClient } from "../BedrockDataAutomationClient"; +import { + ListBlueprintsCommand, + ListBlueprintsCommandInput, + ListBlueprintsCommandOutput, +} from "../commands/ListBlueprintsCommand"; +import { BedrockDataAutomationPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListBlueprints: ( + config: BedrockDataAutomationPaginationConfiguration, + input: ListBlueprintsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + BedrockDataAutomationPaginationConfiguration, + ListBlueprintsCommandInput, + ListBlueprintsCommandOutput +>(BedrockDataAutomationClient, ListBlueprintsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-bedrock-data-automation/src/pagination/ListDataAutomationProjectsPaginator.ts b/clients/client-bedrock-data-automation/src/pagination/ListDataAutomationProjectsPaginator.ts new file mode 100644 index 000000000000..6da203bedab9 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/pagination/ListDataAutomationProjectsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { BedrockDataAutomationClient } from "../BedrockDataAutomationClient"; +import { + ListDataAutomationProjectsCommand, + ListDataAutomationProjectsCommandInput, + ListDataAutomationProjectsCommandOutput, +} from "../commands/ListDataAutomationProjectsCommand"; +import { BedrockDataAutomationPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListDataAutomationProjects: ( + config: BedrockDataAutomationPaginationConfiguration, + input: ListDataAutomationProjectsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + BedrockDataAutomationPaginationConfiguration, + ListDataAutomationProjectsCommandInput, + ListDataAutomationProjectsCommandOutput +>(BedrockDataAutomationClient, ListDataAutomationProjectsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-bedrock-data-automation/src/pagination/index.ts b/clients/client-bedrock-data-automation/src/pagination/index.ts new file mode 100644 index 000000000000..b99f4a57f651 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/pagination/index.ts @@ -0,0 +1,4 @@ +// smithy-typescript generated code +export * from "./Interfaces"; +export * from "./ListBlueprintsPaginator"; +export * from "./ListDataAutomationProjectsPaginator"; diff --git a/clients/client-bedrock-data-automation/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-data-automation/src/protocols/Aws_restJson1.ts new file mode 100644 index 000000000000..5d9870713c8c --- /dev/null +++ b/clients/client-bedrock-data-automation/src/protocols/Aws_restJson1.ts @@ -0,0 +1,1044 @@ +// smithy-typescript generated code +import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { + _json, + collectBody, + decorateServiceException as __decorateServiceException, + expectNonNull as __expectNonNull, + expectObject as __expectObject, + expectString as __expectString, + extendedEncodeURIComponent as __extendedEncodeURIComponent, + map, + parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, + resolvedPath as __resolvedPath, + take, + withBaseException, +} from "@smithy/smithy-client"; +import { + Endpoint as __Endpoint, + ResponseMetadata as __ResponseMetadata, + SerdeContext as __SerdeContext, +} from "@smithy/types"; +import { v4 as generateIdempotencyToken } from "uuid"; + +import { CreateBlueprintCommandInput, CreateBlueprintCommandOutput } from "../commands/CreateBlueprintCommand"; +import { + CreateBlueprintVersionCommandInput, + CreateBlueprintVersionCommandOutput, +} from "../commands/CreateBlueprintVersionCommand"; +import { + CreateDataAutomationProjectCommandInput, + CreateDataAutomationProjectCommandOutput, +} from "../commands/CreateDataAutomationProjectCommand"; +import { DeleteBlueprintCommandInput, DeleteBlueprintCommandOutput } from "../commands/DeleteBlueprintCommand"; +import { + DeleteDataAutomationProjectCommandInput, + DeleteDataAutomationProjectCommandOutput, +} from "../commands/DeleteDataAutomationProjectCommand"; +import { GetBlueprintCommandInput, GetBlueprintCommandOutput } from "../commands/GetBlueprintCommand"; +import { + GetDataAutomationProjectCommandInput, + GetDataAutomationProjectCommandOutput, +} from "../commands/GetDataAutomationProjectCommand"; +import { ListBlueprintsCommandInput, ListBlueprintsCommandOutput } from "../commands/ListBlueprintsCommand"; +import { + ListDataAutomationProjectsCommandInput, + ListDataAutomationProjectsCommandOutput, +} from "../commands/ListDataAutomationProjectsCommand"; +import { UpdateBlueprintCommandInput, UpdateBlueprintCommandOutput } from "../commands/UpdateBlueprintCommand"; +import { + UpdateDataAutomationProjectCommandInput, + UpdateDataAutomationProjectCommandOutput, +} from "../commands/UpdateDataAutomationProjectCommand"; +import { BedrockDataAutomationServiceException as __BaseException } from "../models/BedrockDataAutomationServiceException"; +import { + AccessDeniedException, + AudioExtractionCategory, + AudioExtractionCategoryType, + AudioStandardExtraction, + AudioStandardGenerativeField, + AudioStandardGenerativeFieldType, + AudioStandardOutputConfiguration, + Blueprint, + BlueprintFilter, + BlueprintItem, + BlueprintSummary, + ConflictException, + CustomOutputConfiguration, + DataAutomationProject, + DataAutomationProjectFilter, + DataAutomationProjectSummary, + DocumentBoundingBox, + DocumentExtractionGranularity, + DocumentExtractionGranularityType, + DocumentOutputAdditionalFileFormat, + DocumentOutputFormat, + DocumentOutputTextFormat, + DocumentOutputTextFormatType, + DocumentOverrideConfiguration, + DocumentStandardExtraction, + DocumentStandardGenerativeField, + DocumentStandardOutputConfiguration, + EncryptionConfiguration, + ImageBoundingBox, + ImageExtractionCategory, + ImageExtractionCategoryType, + ImageStandardExtraction, + ImageStandardGenerativeField, + ImageStandardGenerativeFieldType, + ImageStandardOutputConfiguration, + InternalServerException, + OverrideConfiguration, + ResourceNotFoundException, + ServiceQuotaExceededException, + SplitterConfiguration, + StandardOutputConfiguration, + ThrottlingException, + ValidationException, + VideoBoundingBox, + VideoExtractionCategory, + VideoExtractionCategoryType, + VideoStandardExtraction, + VideoStandardGenerativeField, + VideoStandardGenerativeFieldType, + VideoStandardOutputConfiguration, +} from "../models/models_0"; + +/** + * serializeAws_restJson1CreateBlueprintCommand + */ +export const se_CreateBlueprintCommand = async ( + input: CreateBlueprintCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/blueprints"); + let body: any; + body = JSON.stringify( + take(input, { + blueprintName: [], + blueprintStage: [], + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], + encryptionConfiguration: (_) => _json(_), + schema: [], + type: [], + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1CreateBlueprintVersionCommand + */ +export const se_CreateBlueprintVersionCommand = async ( + input: CreateBlueprintVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/blueprints/{blueprintArn}/versions"); + b.p("blueprintArn", () => input.blueprintArn!, "{blueprintArn}", false); + let body: any; + body = JSON.stringify( + take(input, { + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1CreateDataAutomationProjectCommand + */ +export const se_CreateDataAutomationProjectCommand = async ( + input: CreateDataAutomationProjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/data-automation-projects"); + let body: any; + body = JSON.stringify( + take(input, { + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], + customOutputConfiguration: (_) => _json(_), + encryptionConfiguration: (_) => _json(_), + overrideConfiguration: (_) => _json(_), + projectDescription: [], + projectName: [], + projectStage: [], + standardOutputConfiguration: (_) => _json(_), + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1DeleteBlueprintCommand + */ +export const se_DeleteBlueprintCommand = async ( + input: DeleteBlueprintCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/blueprints/{blueprintArn}"); + b.p("blueprintArn", () => input.blueprintArn!, "{blueprintArn}", false); + const query: any = map({ + [_bV]: [, input[_bV]!], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1DeleteDataAutomationProjectCommand + */ +export const se_DeleteDataAutomationProjectCommand = async ( + input: DeleteDataAutomationProjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/data-automation-projects/{projectArn}"); + b.p("projectArn", () => input.projectArn!, "{projectArn}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1GetBlueprintCommand + */ +export const se_GetBlueprintCommand = async ( + input: GetBlueprintCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/blueprints/{blueprintArn}"); + b.p("blueprintArn", () => input.blueprintArn!, "{blueprintArn}", false); + let body: any; + body = JSON.stringify( + take(input, { + blueprintStage: [], + blueprintVersion: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1GetDataAutomationProjectCommand + */ +export const se_GetDataAutomationProjectCommand = async ( + input: GetDataAutomationProjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/data-automation-projects/{projectArn}"); + b.p("projectArn", () => input.projectArn!, "{projectArn}", false); + let body: any; + body = JSON.stringify( + take(input, { + projectStage: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1ListBlueprintsCommand + */ +export const se_ListBlueprintsCommand = async ( + input: ListBlueprintsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/blueprints"); + let body: any; + body = JSON.stringify( + take(input, { + blueprintArn: [], + blueprintStageFilter: [], + maxResults: [], + nextToken: [], + projectFilter: (_) => _json(_), + resourceOwner: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1ListDataAutomationProjectsCommand + */ +export const se_ListDataAutomationProjectsCommand = async ( + input: ListDataAutomationProjectsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/data-automation-projects"); + let body: any; + body = JSON.stringify( + take(input, { + blueprintFilter: (_) => _json(_), + maxResults: [], + nextToken: [], + projectStageFilter: [], + resourceOwner: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1UpdateBlueprintCommand + */ +export const se_UpdateBlueprintCommand = async ( + input: UpdateBlueprintCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/blueprints/{blueprintArn}"); + b.p("blueprintArn", () => input.blueprintArn!, "{blueprintArn}", false); + let body: any; + body = JSON.stringify( + take(input, { + blueprintStage: [], + schema: [], + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1UpdateDataAutomationProjectCommand + */ +export const se_UpdateDataAutomationProjectCommand = async ( + input: UpdateDataAutomationProjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/data-automation-projects/{projectArn}"); + b.p("projectArn", () => input.projectArn!, "{projectArn}", false); + let body: any; + body = JSON.stringify( + take(input, { + customOutputConfiguration: (_) => _json(_), + overrideConfiguration: (_) => _json(_), + projectDescription: [], + projectStage: [], + standardOutputConfiguration: (_) => _json(_), + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * deserializeAws_restJson1CreateBlueprintCommand + */ +export const de_CreateBlueprintCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 201 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + blueprint: (_) => de_Blueprint(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CreateBlueprintVersionCommand + */ +export const de_CreateBlueprintVersionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 201 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + blueprint: (_) => de_Blueprint(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CreateDataAutomationProjectCommand + */ +export const de_CreateDataAutomationProjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 201 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + projectArn: __expectString, + projectStage: __expectString, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteBlueprintCommand + */ +export const de_DeleteBlueprintCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteDataAutomationProjectCommand + */ +export const de_DeleteDataAutomationProjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + projectArn: __expectString, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetBlueprintCommand + */ +export const de_GetBlueprintCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + blueprint: (_) => de_Blueprint(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetDataAutomationProjectCommand + */ +export const de_GetDataAutomationProjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + project: (_) => de_DataAutomationProject(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListBlueprintsCommand + */ +export const de_ListBlueprintsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + blueprints: (_) => de_Blueprints(_, context), + nextToken: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListDataAutomationProjectsCommand + */ +export const de_ListDataAutomationProjectsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + nextToken: __expectString, + projects: (_) => de_DataAutomationProjectSummaries(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1UpdateBlueprintCommand + */ +export const de_UpdateBlueprintCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + blueprint: (_) => de_Blueprint(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1UpdateDataAutomationProjectCommand + */ +export const de_UpdateDataAutomationProjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + projectArn: __expectString, + projectStage: __expectString, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserialize_Aws_restJson1CommandError + */ +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.bedrockdataautomation#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.bedrockdataautomation#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.bedrockdataautomation#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.bedrockdataautomation#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.bedrockdataautomation#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.bedrockdataautomation#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }) as never; + } +}; + +const throwDefaultError = withBaseException(__BaseException); +/** + * deserializeAws_restJson1AccessDeniedExceptionRes + */ +const de_AccessDeniedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new AccessDeniedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ConflictExceptionRes + */ +const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new ConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1InternalServerExceptionRes + */ +const de_InternalServerExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new InternalServerException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ResourceNotFoundExceptionRes + */ +const de_ResourceNotFoundExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ServiceQuotaExceededExceptionRes + */ +const de_ServiceQuotaExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new ServiceQuotaExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ThrottlingExceptionRes + */ +const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new ThrottlingException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ValidationExceptionRes + */ +const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + fieldList: _json, + message: __expectString, + }); + Object.assign(contents, doc); + const exception = new ValidationException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +// se_AudioExtractionCategory omitted. + +// se_AudioExtractionCategoryTypes omitted. + +// se_AudioStandardExtraction omitted. + +// se_AudioStandardGenerativeField omitted. + +// se_AudioStandardGenerativeFieldTypes omitted. + +// se_AudioStandardOutputConfiguration omitted. + +// se_BlueprintFilter omitted. + +// se_BlueprintItem omitted. + +// se_BlueprintItems omitted. + +// se_CustomOutputConfiguration omitted. + +// se_DataAutomationProjectFilter omitted. + +// se_DocumentBoundingBox omitted. + +// se_DocumentExtractionGranularity omitted. + +// se_DocumentExtractionGranularityTypes omitted. + +// se_DocumentOutputAdditionalFileFormat omitted. + +// se_DocumentOutputFormat omitted. + +// se_DocumentOutputTextFormat omitted. + +// se_DocumentOutputTextFormatTypes omitted. + +// se_DocumentOverrideConfiguration omitted. + +// se_DocumentStandardExtraction omitted. + +// se_DocumentStandardGenerativeField omitted. + +// se_DocumentStandardOutputConfiguration omitted. + +// se_EncryptionConfiguration omitted. + +// se_ImageBoundingBox omitted. + +// se_ImageExtractionCategory omitted. + +// se_ImageExtractionCategoryTypes omitted. + +// se_ImageStandardExtraction omitted. + +// se_ImageStandardGenerativeField omitted. + +// se_ImageStandardGenerativeFieldTypes omitted. + +// se_ImageStandardOutputConfiguration omitted. + +// se_KmsEncryptionContext omitted. + +// se_OverrideConfiguration omitted. + +// se_SplitterConfiguration omitted. + +// se_StandardOutputConfiguration omitted. + +// se_VideoBoundingBox omitted. + +// se_VideoExtractionCategory omitted. + +// se_VideoExtractionCategoryTypes omitted. + +// se_VideoStandardExtraction omitted. + +// se_VideoStandardGenerativeField omitted. + +// se_VideoStandardGenerativeFieldTypes omitted. + +// se_VideoStandardOutputConfiguration omitted. + +// de_AudioExtractionCategory omitted. + +// de_AudioExtractionCategoryTypes omitted. + +// de_AudioStandardExtraction omitted. + +// de_AudioStandardGenerativeField omitted. + +// de_AudioStandardGenerativeFieldTypes omitted. + +// de_AudioStandardOutputConfiguration omitted. + +/** + * deserializeAws_restJson1Blueprint + */ +const de_Blueprint = (output: any, context: __SerdeContext): Blueprint => { + return take(output, { + blueprintArn: __expectString, + blueprintName: __expectString, + blueprintStage: __expectString, + blueprintVersion: __expectString, + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + kmsEncryptionContext: _json, + kmsKeyId: __expectString, + lastModifiedTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + schema: __expectString, + type: __expectString, + }) as any; +}; + +// de_BlueprintItem omitted. + +// de_BlueprintItems omitted. + +/** + * deserializeAws_restJson1Blueprints + */ +const de_Blueprints = (output: any, context: __SerdeContext): BlueprintSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_BlueprintSummary(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_restJson1BlueprintSummary + */ +const de_BlueprintSummary = (output: any, context: __SerdeContext): BlueprintSummary => { + return take(output, { + blueprintArn: __expectString, + blueprintName: __expectString, + blueprintStage: __expectString, + blueprintVersion: __expectString, + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + lastModifiedTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + }) as any; +}; + +// de_CustomOutputConfiguration omitted. + +/** + * deserializeAws_restJson1DataAutomationProject + */ +const de_DataAutomationProject = (output: any, context: __SerdeContext): DataAutomationProject => { + return take(output, { + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + customOutputConfiguration: _json, + kmsEncryptionContext: _json, + kmsKeyId: __expectString, + lastModifiedTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + overrideConfiguration: _json, + projectArn: __expectString, + projectDescription: __expectString, + projectName: __expectString, + projectStage: __expectString, + standardOutputConfiguration: _json, + status: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1DataAutomationProjectSummaries + */ +const de_DataAutomationProjectSummaries = (output: any, context: __SerdeContext): DataAutomationProjectSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_DataAutomationProjectSummary(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_restJson1DataAutomationProjectSummary + */ +const de_DataAutomationProjectSummary = (output: any, context: __SerdeContext): DataAutomationProjectSummary => { + return take(output, { + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + projectArn: __expectString, + projectName: __expectString, + projectStage: __expectString, + }) as any; +}; + +// de_DocumentBoundingBox omitted. + +// de_DocumentExtractionGranularity omitted. + +// de_DocumentExtractionGranularityTypes omitted. + +// de_DocumentOutputAdditionalFileFormat omitted. + +// de_DocumentOutputFormat omitted. + +// de_DocumentOutputTextFormat omitted. + +// de_DocumentOutputTextFormatTypes omitted. + +// de_DocumentOverrideConfiguration omitted. + +// de_DocumentStandardExtraction omitted. + +// de_DocumentStandardGenerativeField omitted. + +// de_DocumentStandardOutputConfiguration omitted. + +// de_ImageBoundingBox omitted. + +// de_ImageExtractionCategory omitted. + +// de_ImageExtractionCategoryTypes omitted. + +// de_ImageStandardExtraction omitted. + +// de_ImageStandardGenerativeField omitted. + +// de_ImageStandardGenerativeFieldTypes omitted. + +// de_ImageStandardOutputConfiguration omitted. + +// de_KmsEncryptionContext omitted. + +// de_OverrideConfiguration omitted. + +// de_SplitterConfiguration omitted. + +// de_StandardOutputConfiguration omitted. + +// de_ValidationExceptionField omitted. + +// de_ValidationExceptionFieldList omitted. + +// de_VideoBoundingBox omitted. + +// de_VideoExtractionCategory omitted. + +// de_VideoExtractionCategoryTypes omitted. + +// de_VideoStandardExtraction omitted. + +// de_VideoStandardGenerativeField omitted. + +// de_VideoStandardGenerativeFieldTypes omitted. + +// de_VideoStandardOutputConfiguration 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 _bV = "blueprintVersion"; diff --git a/clients/client-bedrock-data-automation/src/runtimeConfig.browser.ts b/clients/client-bedrock-data-automation/src/runtimeConfig.browser.ts new file mode 100644 index 000000000000..b68932f9c0e1 --- /dev/null +++ b/clients/client-bedrock-data-automation/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 { createDefaultUserAgentProvider } 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 { BedrockDataAutomationClientConfig } from "./BedrockDataAutomationClient"; +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: BedrockDataAutomationClientConfig) => { + 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 ?? + createDefaultUserAgentProvider({ 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-bedrock-data-automation/src/runtimeConfig.native.ts b/clients/client-bedrock-data-automation/src/runtimeConfig.native.ts new file mode 100644 index 000000000000..b7c510a23769 --- /dev/null +++ b/clients/client-bedrock-data-automation/src/runtimeConfig.native.ts @@ -0,0 +1,18 @@ +// smithy-typescript generated code +import { Sha256 } from "@aws-crypto/sha256-js"; + +import { BedrockDataAutomationClientConfig } from "./BedrockDataAutomationClient"; +import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: BedrockDataAutomationClientConfig) => { + const browserDefaults = getBrowserRuntimeConfig(config); + return { + ...browserDefaults, + ...config, + runtime: "react-native", + sha256: config?.sha256 ?? Sha256, + }; +}; diff --git a/clients/client-bedrock-data-automation/src/runtimeConfig.shared.ts b/clients/client-bedrock-data-automation/src/runtimeConfig.shared.ts new file mode 100644 index 000000000000..23b0986fd70c --- /dev/null +++ b/clients/client-bedrock-data-automation/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 { defaultBedrockDataAutomationHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider"; +import { BedrockDataAutomationClientConfig } from "./BedrockDataAutomationClient"; +import { defaultEndpointResolver } from "./endpoint/endpointResolver"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: BedrockDataAutomationClientConfig) => { + return { + apiVersion: "2023-07-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultBedrockDataAutomationHttpAuthSchemeProvider, + 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 ?? "Bedrock Data Automation", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-bedrock-data-automation/src/runtimeConfig.ts b/clients/client-bedrock-data-automation/src/runtimeConfig.ts new file mode 100644 index 000000000000..60166d5990ea --- /dev/null +++ b/clients/client-bedrock-data-automation/src/runtimeConfig.ts @@ -0,0 +1,60 @@ +// 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 { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } 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 { BedrockDataAutomationClientConfig } from "./BedrockDataAutomationClient"; +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: BedrockDataAutomationClientConfig) => { + 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 ?? + createDefaultUserAgentProvider({ 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), + userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS), + }; +}; diff --git a/clients/client-bedrock-data-automation/src/runtimeExtensions.ts b/clients/client-bedrock-data-automation/src/runtimeExtensions.ts new file mode 100644 index 000000000000..bfc195f5ebd2 --- /dev/null +++ b/clients/client-bedrock-data-automation/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 { BedrockDataAutomationExtensionConfiguration } from "./extensionConfiguration"; + +/** + * @public + */ +export interface RuntimeExtension { + configure(extensionConfiguration: BedrockDataAutomationExtensionConfiguration): void; +} + +/** + * @public + */ +export interface RuntimeExtensionsConfig { + extensions: RuntimeExtension[]; +} + +const asPartial = >(t: T) => t; + +/** + * @internal + */ +export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { + const extensionConfiguration: BedrockDataAutomationExtensionConfiguration = { + ...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-bedrock-data-automation/tsconfig.cjs.json b/clients/client-bedrock-data-automation/tsconfig.cjs.json new file mode 100644 index 000000000000..3567d85ba846 --- /dev/null +++ b/clients/client-bedrock-data-automation/tsconfig.cjs.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "outDir": "dist-cjs" + } +} diff --git a/clients/client-bedrock-data-automation/tsconfig.es.json b/clients/client-bedrock-data-automation/tsconfig.es.json new file mode 100644 index 000000000000..809f57bde65e --- /dev/null +++ b/clients/client-bedrock-data-automation/tsconfig.es.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "lib": ["dom"], + "module": "esnext", + "outDir": "dist-es" + } +} diff --git a/clients/client-bedrock-data-automation/tsconfig.json b/clients/client-bedrock-data-automation/tsconfig.json new file mode 100644 index 000000000000..e7f5ec56b742 --- /dev/null +++ b/clients/client-bedrock-data-automation/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "@tsconfig/node16/tsconfig.json", + "compilerOptions": { + "downlevelIteration": true, + "importHelpers": true, + "incremental": true, + "removeComments": true, + "resolveJsonModule": true, + "rootDir": "src", + "useUnknownInCatchVariables": false + }, + "exclude": ["test/"] +} diff --git a/clients/client-bedrock-data-automation/tsconfig.types.json b/clients/client-bedrock-data-automation/tsconfig.types.json new file mode 100644 index 000000000000..4c3dfa7b3d25 --- /dev/null +++ b/clients/client-bedrock-data-automation/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/bedrock-data-automation.json b/codegen/sdk-codegen/aws-models/bedrock-data-automation.json new file mode 100644 index 000000000000..813c3c354691 --- /dev/null +++ b/codegen/sdk-codegen/aws-models/bedrock-data-automation.json @@ -0,0 +1,3043 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.bedrockdataautomation#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown when a request is denied per access permissions", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.bedrockdataautomation#AmazonBedrockKeystoneBuildTimeService": { + "type": "service", + "version": "2023-07-26", + "operations": [ + { + "target": "com.amazonaws.bedrockdataautomation#CreateBlueprintVersion" + } + ], + "resources": [ + { + "target": "com.amazonaws.bedrockdataautomation#BlueprintResource" + }, + { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectResource" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Bedrock Data Automation", + "arnNamespace": "bedrock", + "endpointPrefix": "bedrock-data-automation", + "cloudTrailEventSource": "bedrock.amazonaws.com" + }, + "aws.auth#sigv4": { + "name": "bedrock" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "Amazon Bedrock Keystone Build", + "smithy.api#title": "Data Automation for Amazon Bedrock", + "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://bedrock-data-automation-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://bedrock-data-automation-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://bedrock-data-automation.{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://bedrock-data-automation.{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://bedrock-data-automation-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://bedrock-data-automation-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://bedrock-data-automation.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://bedrock-data-automation.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://bedrock-data-automation-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://bedrock-data-automation-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://bedrock-data-automation.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://bedrock-data-automation.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://bedrock-data-automation-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://bedrock-data-automation-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://bedrock-data-automation.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://bedrock-data-automation.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://bedrock-data-automation-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://bedrock-data-automation.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://bedrock-data-automation-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://bedrock-data-automation.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.bedrockdataautomation#AudioExtractionCategory": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + }, + "types": { + "target": "com.amazonaws.bedrockdataautomation#AudioExtractionCategoryTypes" + } + }, + "traits": { + "smithy.api#documentation": "Category of Audio Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#AudioExtractionCategoryType": { + "type": "enum", + "members": { + "AUDIO_CONTENT_MODERATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AUDIO_CONTENT_MODERATION" + } + }, + "CHAPTER_CONTENT_MODERATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CHAPTER_CONTENT_MODERATION" + } + }, + "TRANSCRIPT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRANSCRIPT" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#AudioExtractionCategoryTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#AudioExtractionCategoryType" + }, + "traits": { + "smithy.api#documentation": "List of Audio Extraction Category Type" + } + }, + "com.amazonaws.bedrockdataautomation#AudioStandardExtraction": { + "type": "structure", + "members": { + "category": { + "target": "com.amazonaws.bedrockdataautomation#AudioExtractionCategory", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Standard Extraction Configuration of Audio" + } + }, + "com.amazonaws.bedrockdataautomation#AudioStandardGenerativeField": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + }, + "types": { + "target": "com.amazonaws.bedrockdataautomation#AudioStandardGenerativeFieldTypes" + } + }, + "traits": { + "smithy.api#documentation": "Standard Generative Field Configuration of Audio" + } + }, + "com.amazonaws.bedrockdataautomation#AudioStandardGenerativeFieldType": { + "type": "enum", + "members": { + "AUDIO_SUMMARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AUDIO_SUMMARY" + } + }, + "CHAPTER_SUMMARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CHAPTER_SUMMARY" + } + }, + "IAB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IAB" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#AudioStandardGenerativeFieldTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#AudioStandardGenerativeFieldType" + }, + "traits": { + "smithy.api#documentation": "List of Audio Standard Generative Field Type" + } + }, + "com.amazonaws.bedrockdataautomation#AudioStandardOutputConfiguration": { + "type": "structure", + "members": { + "extraction": { + "target": "com.amazonaws.bedrockdataautomation#AudioStandardExtraction" + }, + "generativeField": { + "target": "com.amazonaws.bedrockdataautomation#AudioStandardGenerativeField" + } + }, + "traits": { + "smithy.api#documentation": "Standard Output Configuration of Audio" + } + }, + "com.amazonaws.bedrockdataautomation#Blueprint": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#required": {} + } + }, + "schema": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintSchema", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.bedrockdataautomation#Type", + "traits": { + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp", + "traits": { + "smithy.api#required": {} + } + }, + "lastModifiedTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintName": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintName", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintVersion": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintVersion" + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage" + }, + "kmsKeyId": { + "target": "com.amazonaws.bedrockdataautomation#KmsKeyId" + }, + "kmsEncryptionContext": { + "target": "com.amazonaws.bedrockdataautomation#KmsEncryptionContext" + } + }, + "traits": { + "smithy.api#documentation": "Contains the information of a Blueprint." + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintArn": { + "type": "string", + "traits": { + "smithy.api#documentation": "ARN of a Blueprint", + "smithy.api#length": { + "max": 128 + }, + "smithy.api#pattern": "^arn:aws(|-cn|-us-gov):bedrock:[a-zA-Z0-9-]*:(aws|[0-9]{12}):blueprint/(bedrock-data-automation-public-[a-zA-Z0-9-_]{1,30}|[a-zA-Z0-9-]{12,36})$" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintFilter": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintVersion": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintVersion" + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage" + } + }, + "traits": { + "smithy.api#documentation": "Blueprint Filter" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintItem": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintVersion": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintVersion" + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage" + } + }, + "traits": { + "smithy.api#documentation": "Blueprint Item" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintItems": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintItem" + }, + "traits": { + "smithy.api#documentation": "List of Blueprint Item" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintName": { + "type": "string", + "traits": { + "smithy.api#documentation": "Name of the Blueprint", + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[a-zA-Z0-9-_]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintResource": { + "type": "resource", + "identifiers": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn" + } + }, + "create": { + "target": "com.amazonaws.bedrockdataautomation#CreateBlueprint" + }, + "read": { + "target": "com.amazonaws.bedrockdataautomation#GetBlueprint" + }, + "update": { + "target": "com.amazonaws.bedrockdataautomation#UpdateBlueprint" + }, + "delete": { + "target": "com.amazonaws.bedrockdataautomation#DeleteBlueprint" + }, + "list": { + "target": "com.amazonaws.bedrockdataautomation#ListBlueprints" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintSchema": { + "type": "string", + "traits": { + "smithy.api#documentation": "Schema of the blueprint", + "smithy.api#length": { + "min": 1, + "max": 100000 + }, + "smithy.api#pattern": "^[a-zA-Z0-9\\s!\"\\#\\$%'&\\(\\)\\*\\+\\,\\-\\./:;=\\?@\\[\\\\\\]\\^_`\\{\\|\\}~><]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintStage": { + "type": "enum", + "members": { + "DEVELOPMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVELOPMENT" + } + }, + "LIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LIVE" + } + } + }, + "traits": { + "smithy.api#documentation": "Stage of the Blueprint" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintStageFilter": { + "type": "enum", + "members": { + "DEVELOPMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVELOPMENT" + } + }, + "LIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LIVE" + } + }, + "ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL" + } + } + }, + "traits": { + "smithy.api#documentation": "Blueprint Stage filter" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintSummary": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintVersion": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintVersion" + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage" + }, + "blueprintName": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintName" + }, + "creationTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp", + "traits": { + "smithy.api#required": {} + } + }, + "lastModifiedTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp" + } + }, + "traits": { + "smithy.api#documentation": "Summary of a Blueprint" + } + }, + "com.amazonaws.bedrockdataautomation#BlueprintVersion": { + "type": "string", + "traits": { + "smithy.api#documentation": "Blueprint Version", + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[0-9]*$" + } + }, + "com.amazonaws.bedrockdataautomation#Blueprints": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintSummary" + }, + "traits": { + "smithy.api#documentation": "List of Blueprints" + } + }, + "com.amazonaws.bedrockdataautomation#ClientToken": { + "type": "string", + "traits": { + "smithy.api#documentation": "Client specified token used for idempotency checks", + "smithy.api#length": { + "min": 33, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,256}$" + } + }, + "com.amazonaws.bedrockdataautomation#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown when there is a conflict performing an operation", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.bedrockdataautomation#CreateBlueprint": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#CreateBlueprintRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#CreateBlueprintResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ConflictException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates an Amazon Bedrock Keystone Blueprint", + "smithy.api#http": { + "code": 201, + "method": "PUT", + "uri": "/blueprints/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateBlueprintRequest": { + "type": "structure", + "members": { + "blueprintName": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintName", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.bedrockdataautomation#Type", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage" + }, + "schema": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintSchema", + "traits": { + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.bedrockdataautomation#ClientToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + }, + "encryptionConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#EncryptionConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "Create Blueprint Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateBlueprintResponse": { + "type": "structure", + "members": { + "blueprint": { + "target": "com.amazonaws.bedrockdataautomation#Blueprint", + "traits": { + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Create Blueprint Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateBlueprintVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#CreateBlueprintVersionRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#CreateBlueprintVersionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a new version of an existing Amazon Bedrock Keystone Blueprint", + "smithy.api#http": { + "code": 201, + "method": "POST", + "uri": "/blueprints/{blueprintArn}/versions/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateBlueprintVersionRequest": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a Blueprint is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.bedrockdataautomation#ClientToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Create Blueprint Version Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateBlueprintVersionResponse": { + "type": "structure", + "members": { + "blueprint": { + "target": "com.amazonaws.bedrockdataautomation#Blueprint", + "traits": { + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Create Blueprint Version Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateDataAutomationProject": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#CreateDataAutomationProjectRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#CreateDataAutomationProjectResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ConflictException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates an Amazon Bedrock Keystone DataAutomationProject", + "smithy.api#http": { + "code": 201, + "method": "PUT", + "uri": "/data-automation-projects/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateDataAutomationProjectRequest": { + "type": "structure", + "members": { + "projectName": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectName", + "traits": { + "smithy.api#required": {} + } + }, + "projectDescription": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectDescription" + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + }, + "standardOutputConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#StandardOutputConfiguration", + "traits": { + "smithy.api#required": {} + } + }, + "customOutputConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#CustomOutputConfiguration" + }, + "overrideConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#OverrideConfiguration" + }, + "clientToken": { + "target": "com.amazonaws.bedrockdataautomation#ClientToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + }, + "encryptionConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#EncryptionConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "Create DataAutomationProject Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#CreateDataAutomationProjectResponse": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + }, + "status": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStatus" + } + }, + "traits": { + "smithy.api#documentation": "Create DataAutomationProject Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#CustomOutputConfiguration": { + "type": "structure", + "members": { + "blueprints": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintItems" + } + }, + "traits": { + "smithy.api#documentation": "Custom output configuration" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProject": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp", + "traits": { + "smithy.api#required": {} + } + }, + "lastModifiedTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp", + "traits": { + "smithy.api#required": {} + } + }, + "projectName": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectName", + "traits": { + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + }, + "projectDescription": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectDescription" + }, + "standardOutputConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#StandardOutputConfiguration" + }, + "customOutputConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#CustomOutputConfiguration" + }, + "overrideConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#OverrideConfiguration" + }, + "status": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStatus", + "traits": { + "smithy.api#required": {} + } + }, + "kmsKeyId": { + "target": "com.amazonaws.bedrockdataautomation#KmsKeyId" + }, + "kmsEncryptionContext": { + "target": "com.amazonaws.bedrockdataautomation#KmsEncryptionContext" + } + }, + "traits": { + "smithy.api#documentation": "Contains the information of a DataAutomationProject." + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn": { + "type": "string", + "traits": { + "smithy.api#documentation": "ARN of a DataAutomationProject", + "smithy.api#length": { + "max": 128 + }, + "smithy.api#pattern": "^arn:aws(|-cn|-us-gov):bedrock:[a-zA-Z0-9-]*:(aws|[0-9]{12}):data-automation-project/[a-zA-Z0-9-]{12,36}$" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectDescription": { + "type": "string", + "traits": { + "smithy.api#documentation": "Description of the DataAutomationProject", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectFilter": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + } + }, + "traits": { + "smithy.api#documentation": "Data Automation Project Filter" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectName": { + "type": "string", + "traits": { + "smithy.api#documentation": "Name of the DataAutomationProject", + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[a-zA-Z0-9-_]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectResource": { + "type": "resource", + "identifiers": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn" + } + }, + "create": { + "target": "com.amazonaws.bedrockdataautomation#CreateDataAutomationProject" + }, + "read": { + "target": "com.amazonaws.bedrockdataautomation#GetDataAutomationProject" + }, + "update": { + "target": "com.amazonaws.bedrockdataautomation#UpdateDataAutomationProject" + }, + "delete": { + "target": "com.amazonaws.bedrockdataautomation#DeleteDataAutomationProject" + }, + "list": { + "target": "com.amazonaws.bedrockdataautomation#ListDataAutomationProjects" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage": { + "type": "enum", + "members": { + "DEVELOPMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVELOPMENT" + } + }, + "LIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LIVE" + } + } + }, + "traits": { + "smithy.api#documentation": "Stage of the Project" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectStageFilter": { + "type": "enum", + "members": { + "DEVELOPMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVELOPMENT" + } + }, + "LIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LIVE" + } + }, + "ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL" + } + } + }, + "traits": { + "smithy.api#documentation": "Project Stage filter" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectStatus": { + "type": "enum", + "members": { + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + }, + "IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IN_PROGRESS" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } + }, + "traits": { + "smithy.api#documentation": "Status of Data Automation Project" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectSummary" + }, + "traits": { + "smithy.api#documentation": "List of DataAutomationProjectSummary" + } + }, + "com.amazonaws.bedrockdataautomation#DataAutomationProjectSummary": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + }, + "projectName": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectName" + }, + "creationTime": { + "target": "com.amazonaws.bedrockdataautomation#DateTimestamp", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Summary of a DataAutomationProject" + } + }, + "com.amazonaws.bedrockdataautomation#DateTimestamp": { + "type": "timestamp", + "traits": { + "smithy.api#documentation": "Time Stamp", + "smithy.api#timestampFormat": "date-time" + } + }, + "com.amazonaws.bedrockdataautomation#DeleteBlueprint": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#DeleteBlueprintRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#DeleteBlueprintResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an existing Amazon Bedrock Keystone Blueprint", + "smithy.api#http": { + "code": 204, + "method": "DELETE", + "uri": "/blueprints/{blueprintArn}/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#DeleteBlueprintRequest": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a Blueprint is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "blueprintVersion": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintVersion", + "traits": { + "smithy.api#documentation": "Optional field to delete a specific Blueprint version", + "smithy.api#httpQuery": "blueprintVersion" + } + } + }, + "traits": { + "smithy.api#documentation": "Delete Blueprint Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#DeleteBlueprintResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "Delete Blueprint Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#DeleteDataAutomationProject": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#DeleteDataAutomationProjectRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#DeleteDataAutomationProjectResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an existing Amazon Bedrock Keystone DataAutomationProject", + "smithy.api#http": { + "code": 204, + "method": "DELETE", + "uri": "/data-automation-projects/{projectArn}/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#DeleteDataAutomationProjectRequest": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a DataAutomationProject is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Delete DataAutomationProject Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#DeleteDataAutomationProjectResponse": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStatus" + } + }, + "traits": { + "smithy.api#documentation": "Delete DataAutomationProject Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#DocumentBoundingBox": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Bounding Box Configuration of Document Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentExtractionGranularity": { + "type": "structure", + "members": { + "types": { + "target": "com.amazonaws.bedrockdataautomation#DocumentExtractionGranularityTypes" + } + }, + "traits": { + "smithy.api#documentation": "Granularity of Document Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentExtractionGranularityType": { + "type": "enum", + "members": { + "DOCUMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DOCUMENT" + } + }, + "PAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PAGE" + } + }, + "ELEMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ELEMENT" + } + }, + "WORD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WORD" + } + }, + "LINE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LINE" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#DocumentExtractionGranularityTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#DocumentExtractionGranularityType" + }, + "traits": { + "smithy.api#documentation": "List of Document Extraction Granularity Type" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentOutputAdditionalFileFormat": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Additional File Format of Document Output" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentOutputFormat": { + "type": "structure", + "members": { + "textFormat": { + "target": "com.amazonaws.bedrockdataautomation#DocumentOutputTextFormat", + "traits": { + "smithy.api#required": {} + } + }, + "additionalFileFormat": { + "target": "com.amazonaws.bedrockdataautomation#DocumentOutputAdditionalFileFormat", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Output Format of Document" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentOutputTextFormat": { + "type": "structure", + "members": { + "types": { + "target": "com.amazonaws.bedrockdataautomation#DocumentOutputTextFormatTypes" + } + }, + "traits": { + "smithy.api#documentation": "Text Format of Document Output" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentOutputTextFormatType": { + "type": "enum", + "members": { + "PLAIN_TEXT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PLAIN_TEXT" + } + }, + "MARKDOWN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MARKDOWN" + } + }, + "HTML": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HTML" + } + }, + "CSV": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CSV" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#DocumentOutputTextFormatTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#DocumentOutputTextFormatType" + }, + "traits": { + "smithy.api#documentation": "List of Document Output Text Format Type" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentOverrideConfiguration": { + "type": "structure", + "members": { + "splitter": { + "target": "com.amazonaws.bedrockdataautomation#SplitterConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "Override Configuration of Document" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentStandardExtraction": { + "type": "structure", + "members": { + "granularity": { + "target": "com.amazonaws.bedrockdataautomation#DocumentExtractionGranularity", + "traits": { + "smithy.api#required": {} + } + }, + "boundingBox": { + "target": "com.amazonaws.bedrockdataautomation#DocumentBoundingBox", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Standard Extraction Configuration of Document" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentStandardGenerativeField": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Standard Generative Field Configuration of Document" + } + }, + "com.amazonaws.bedrockdataautomation#DocumentStandardOutputConfiguration": { + "type": "structure", + "members": { + "extraction": { + "target": "com.amazonaws.bedrockdataautomation#DocumentStandardExtraction" + }, + "generativeField": { + "target": "com.amazonaws.bedrockdataautomation#DocumentStandardGenerativeField" + }, + "outputFormat": { + "target": "com.amazonaws.bedrockdataautomation#DocumentOutputFormat" + } + }, + "traits": { + "smithy.api#documentation": "Standard Output Configuration of Document" + } + }, + "com.amazonaws.bedrockdataautomation#EncryptionConfiguration": { + "type": "structure", + "members": { + "kmsKeyId": { + "target": "com.amazonaws.bedrockdataautomation#KmsKeyId", + "traits": { + "smithy.api#required": {} + } + }, + "kmsEncryptionContext": { + "target": "com.amazonaws.bedrockdataautomation#KmsEncryptionContext" + } + }, + "traits": { + "smithy.api#documentation": "KMS Encryption Configuration" + } + }, + "com.amazonaws.bedrockdataautomation#GetBlueprint": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#GetBlueprintRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#GetBlueprintResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets an existing Amazon Bedrock Keystone Blueprint", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/blueprints/{blueprintArn}/" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.bedrockdataautomation#GetBlueprintRequest": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a Blueprint is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "blueprintVersion": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintVersion", + "traits": { + "smithy.api#documentation": "Optional field to get a specific Blueprint version" + } + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage", + "traits": { + "smithy.api#documentation": "Optional field to get a specific Blueprint stage" + } + } + }, + "traits": { + "smithy.api#documentation": "Get Blueprint Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#GetBlueprintResponse": { + "type": "structure", + "members": { + "blueprint": { + "target": "com.amazonaws.bedrockdataautomation#Blueprint", + "traits": { + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Get Blueprint Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#GetDataAutomationProject": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#GetDataAutomationProjectRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#GetDataAutomationProjectResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets an existing Amazon Bedrock Keystone DataAutomationProject", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/data-automation-projects/{projectArn}/" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.bedrockdataautomation#GetDataAutomationProjectRequest": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a DataAutomationProject is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage", + "traits": { + "smithy.api#documentation": "Optional field to delete a specific DataAutomationProject stage" + } + } + }, + "traits": { + "smithy.api#documentation": "Get DataAutomationProject Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#GetDataAutomationProjectResponse": { + "type": "structure", + "members": { + "project": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProject", + "traits": { + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Get DataAutomationProject Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#ImageBoundingBox": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Bounding Box Configuration of Image Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#ImageExtractionCategory": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + }, + "types": { + "target": "com.amazonaws.bedrockdataautomation#ImageExtractionCategoryTypes" + } + }, + "traits": { + "smithy.api#documentation": "Category of Image Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#ImageExtractionCategoryType": { + "type": "enum", + "members": { + "CONTENT_MODERATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONTENT_MODERATION" + } + }, + "TEXT_DETECTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TEXT_DETECTION" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#ImageExtractionCategoryTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#ImageExtractionCategoryType" + }, + "traits": { + "smithy.api#documentation": "List of Image Extraction Category" + } + }, + "com.amazonaws.bedrockdataautomation#ImageStandardExtraction": { + "type": "structure", + "members": { + "category": { + "target": "com.amazonaws.bedrockdataautomation#ImageExtractionCategory", + "traits": { + "smithy.api#required": {} + } + }, + "boundingBox": { + "target": "com.amazonaws.bedrockdataautomation#ImageBoundingBox", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Standard Extraction Configuration of Image" + } + }, + "com.amazonaws.bedrockdataautomation#ImageStandardGenerativeField": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + }, + "types": { + "target": "com.amazonaws.bedrockdataautomation#ImageStandardGenerativeFieldTypes" + } + }, + "traits": { + "smithy.api#documentation": "Standard Generative Field Configuration of Image" + } + }, + "com.amazonaws.bedrockdataautomation#ImageStandardGenerativeFieldType": { + "type": "enum", + "members": { + "IMAGE_SUMMARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IMAGE_SUMMARY" + } + }, + "IAB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IAB" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#ImageStandardGenerativeFieldTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#ImageStandardGenerativeFieldType" + }, + "traits": { + "smithy.api#documentation": "List of Image Standard Generative Field Type" + } + }, + "com.amazonaws.bedrockdataautomation#ImageStandardOutputConfiguration": { + "type": "structure", + "members": { + "extraction": { + "target": "com.amazonaws.bedrockdataautomation#ImageStandardExtraction" + }, + "generativeField": { + "target": "com.amazonaws.bedrockdataautomation#ImageStandardGenerativeField" + } + }, + "traits": { + "smithy.api#documentation": "Standard Output Configuration of Image" + } + }, + "com.amazonaws.bedrockdataautomation#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown if there was an unexpected error during processing of request", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.bedrockdataautomation#KmsEncryptionContext": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#String" + }, + "traits": { + "smithy.api#documentation": "KMS Encryption Context", + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.bedrockdataautomation#KmsKeyId": { + "type": "string", + "traits": { + "smithy.api#documentation": "KMS Key Identifier", + "smithy.api#length": { + "min": 1, + "max": 2048 + } + } + }, + "com.amazonaws.bedrockdataautomation#ListBlueprints": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#ListBlueprintsRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#ListBlueprintsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all existing Amazon Bedrock Keystone Blueprints", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/blueprints/" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "blueprints" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.bedrockdataautomation#ListBlueprintsRequest": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn" + }, + "resourceOwner": { + "target": "com.amazonaws.bedrockdataautomation#ResourceOwner" + }, + "blueprintStageFilter": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStageFilter" + }, + "maxResults": { + "target": "com.amazonaws.bedrockdataautomation#MaxResults" + }, + "nextToken": { + "target": "com.amazonaws.bedrockdataautomation#NextToken" + }, + "projectFilter": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectFilter" + } + }, + "traits": { + "smithy.api#documentation": "List Blueprint Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#ListBlueprintsResponse": { + "type": "structure", + "members": { + "blueprints": { + "target": "com.amazonaws.bedrockdataautomation#Blueprints", + "traits": { + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.bedrockdataautomation#NextToken" + } + }, + "traits": { + "smithy.api#documentation": "List Blueprint Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#ListDataAutomationProjects": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#ListDataAutomationProjectsRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#ListDataAutomationProjectsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all existing Amazon Bedrock Keystone DataAutomationProjects", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/data-automation-projects/" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "projects" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.bedrockdataautomation#ListDataAutomationProjectsRequest": { + "type": "structure", + "members": { + "maxResults": { + "target": "com.amazonaws.bedrockdataautomation#MaxResults" + }, + "nextToken": { + "target": "com.amazonaws.bedrockdataautomation#NextToken" + }, + "projectStageFilter": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStageFilter" + }, + "blueprintFilter": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintFilter" + }, + "resourceOwner": { + "target": "com.amazonaws.bedrockdataautomation#ResourceOwner" + } + }, + "traits": { + "smithy.api#documentation": "List DataAutomationProject Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#ListDataAutomationProjectsResponse": { + "type": "structure", + "members": { + "projects": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectSummaries", + "traits": { + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.bedrockdataautomation#NextToken" + } + }, + "traits": { + "smithy.api#documentation": "List DataAutomationProject Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#documentation": "Max Results", + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.bedrockdataautomation#NextToken": { + "type": "string", + "traits": { + "smithy.api#documentation": "Pagination token", + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^\\S*$" + } + }, + "com.amazonaws.bedrockdataautomation#NonBlankString": { + "type": "string", + "traits": { + "smithy.api#documentation": "Non Blank String", + "smithy.api#pattern": "^[\\s\\S]+$" + } + }, + "com.amazonaws.bedrockdataautomation#OverrideConfiguration": { + "type": "structure", + "members": { + "document": { + "target": "com.amazonaws.bedrockdataautomation#DocumentOverrideConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "Override configuration" + } + }, + "com.amazonaws.bedrockdataautomation#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown when a resource referenced by the operation does not exist", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.bedrockdataautomation#ResourceOwner": { + "type": "enum", + "members": { + "SERVICE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVICE" + } + }, + "ACCOUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACCOUNT" + } + } + }, + "traits": { + "smithy.api#documentation": "Resource Owner" + } + }, + "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown when a request is made beyond the service quota", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.bedrockdataautomation#SplitterConfiguration": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State" + } + }, + "traits": { + "smithy.api#documentation": "Configuration of Splitter" + } + }, + "com.amazonaws.bedrockdataautomation#StandardOutputConfiguration": { + "type": "structure", + "members": { + "document": { + "target": "com.amazonaws.bedrockdataautomation#DocumentStandardOutputConfiguration" + }, + "image": { + "target": "com.amazonaws.bedrockdataautomation#ImageStandardOutputConfiguration" + }, + "video": { + "target": "com.amazonaws.bedrockdataautomation#VideoStandardOutputConfiguration" + }, + "audio": { + "target": "com.amazonaws.bedrockdataautomation#AudioStandardOutputConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "Standard output configuration" + } + }, + "com.amazonaws.bedrockdataautomation#State": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + }, + "traits": { + "smithy.api#documentation": "State" + } + }, + "com.amazonaws.bedrockdataautomation#ThrottlingException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown when the number of requests exceeds the limit", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.bedrockdataautomation#Type": { + "type": "enum", + "members": { + "DOCUMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DOCUMENT" + } + }, + "IMAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IMAGE" + } + } + }, + "traits": { + "smithy.api#documentation": "Type" + } + }, + "com.amazonaws.bedrockdataautomation#UpdateBlueprint": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#UpdateBlueprintRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#UpdateBlueprintResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ConflictException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing Amazon Bedrock Blueprint", + "smithy.api#http": { + "code": 200, + "method": "PUT", + "uri": "/blueprints/{blueprintArn}/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#UpdateBlueprintRequest": { + "type": "structure", + "members": { + "blueprintArn": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a Blueprint is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "schema": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintSchema", + "traits": { + "smithy.api#required": {} + } + }, + "blueprintStage": { + "target": "com.amazonaws.bedrockdataautomation#BlueprintStage" + } + }, + "traits": { + "smithy.api#documentation": "Update Blueprint Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#UpdateBlueprintResponse": { + "type": "structure", + "members": { + "blueprint": { + "target": "com.amazonaws.bedrockdataautomation#Blueprint", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Update Blueprint Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#UpdateDataAutomationProject": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockdataautomation#UpdateDataAutomationProjectRequest" + }, + "output": { + "target": "com.amazonaws.bedrockdataautomation#UpdateDataAutomationProjectResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockdataautomation#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ConflictException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockdataautomation#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing Amazon Bedrock DataAutomationProject", + "smithy.api#http": { + "code": 200, + "method": "PUT", + "uri": "/data-automation-projects/{projectArn}/" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.bedrockdataautomation#UpdateDataAutomationProjectRequest": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#documentation": "ARN generated at the server side when a DataAutomationProject is created", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + }, + "projectDescription": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectDescription" + }, + "standardOutputConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#StandardOutputConfiguration", + "traits": { + "smithy.api#required": {} + } + }, + "customOutputConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#CustomOutputConfiguration" + }, + "overrideConfiguration": { + "target": "com.amazonaws.bedrockdataautomation#OverrideConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "Update DataAutomationProject Request", + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockdataautomation#UpdateDataAutomationProjectResponse": { + "type": "structure", + "members": { + "projectArn": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectArn", + "traits": { + "smithy.api#required": {} + } + }, + "projectStage": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStage" + }, + "status": { + "target": "com.amazonaws.bedrockdataautomation#DataAutomationProjectStatus" + } + }, + "traits": { + "smithy.api#documentation": "Update DataAutomationProject Response", + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockdataautomation#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString" + }, + "fieldList": { + "target": "com.amazonaws.bedrockdataautomation#ValidationExceptionFieldList" + } + }, + "traits": { + "smithy.api#documentation": "This exception is thrown when the request's input validation fails", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.bedrockdataautomation#ValidationExceptionField": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString", + "traits": { + "smithy.api#required": {} + } + }, + "message": { + "target": "com.amazonaws.bedrockdataautomation#NonBlankString", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Stores information about a field passed inside a request that resulted in an exception" + } + }, + "com.amazonaws.bedrockdataautomation#ValidationExceptionFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#ValidationExceptionField" + }, + "traits": { + "smithy.api#documentation": "list of ValidationExceptionField" + } + }, + "com.amazonaws.bedrockdataautomation#VideoBoundingBox": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Bounding Box Configuration of Video Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#VideoExtractionCategory": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + }, + "types": { + "target": "com.amazonaws.bedrockdataautomation#VideoExtractionCategoryTypes" + } + }, + "traits": { + "smithy.api#documentation": "Category of Video Extraction" + } + }, + "com.amazonaws.bedrockdataautomation#VideoExtractionCategoryType": { + "type": "enum", + "members": { + "CONTENT_MODERATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONTENT_MODERATION" + } + }, + "TEXT_DETECTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TEXT_DETECTION" + } + }, + "TRANSCRIPT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRANSCRIPT" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#VideoExtractionCategoryTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#VideoExtractionCategoryType" + }, + "traits": { + "smithy.api#documentation": "List of Video Extraction Category Type" + } + }, + "com.amazonaws.bedrockdataautomation#VideoStandardExtraction": { + "type": "structure", + "members": { + "category": { + "target": "com.amazonaws.bedrockdataautomation#VideoExtractionCategory", + "traits": { + "smithy.api#required": {} + } + }, + "boundingBox": { + "target": "com.amazonaws.bedrockdataautomation#VideoBoundingBox", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Standard Extraction Configuration of Video" + } + }, + "com.amazonaws.bedrockdataautomation#VideoStandardGenerativeField": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.bedrockdataautomation#State", + "traits": { + "smithy.api#required": {} + } + }, + "types": { + "target": "com.amazonaws.bedrockdataautomation#VideoStandardGenerativeFieldTypes" + } + }, + "traits": { + "smithy.api#documentation": "Standard Generative Field Configuration of Video" + } + }, + "com.amazonaws.bedrockdataautomation#VideoStandardGenerativeFieldType": { + "type": "enum", + "members": { + "VIDEO_SUMMARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VIDEO_SUMMARY" + } + }, + "SCENE_SUMMARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SCENE_SUMMARY" + } + }, + "IAB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IAB" + } + } + } + }, + "com.amazonaws.bedrockdataautomation#VideoStandardGenerativeFieldTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockdataautomation#VideoStandardGenerativeFieldType" + }, + "traits": { + "smithy.api#documentation": "List of Video Standard Generative Field Type" + } + }, + "com.amazonaws.bedrockdataautomation#VideoStandardOutputConfiguration": { + "type": "structure", + "members": { + "extraction": { + "target": "com.amazonaws.bedrockdataautomation#VideoStandardExtraction" + }, + "generativeField": { + "target": "com.amazonaws.bedrockdataautomation#VideoStandardGenerativeField" + } + }, + "traits": { + "smithy.api#documentation": "Standard Output Configuration of Video" + } + } + } +}