├── .github └── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE ├── README.md ├── clients ├── aws-sdk-bedrock-runtime │ ├── CHANGES.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── docs │ │ ├── Makefile │ │ ├── README.md │ │ ├── client │ │ │ ├── __init__.py │ │ │ ├── apply_guardrail.rst │ │ │ ├── converse.rst │ │ │ ├── get_async_invoke.rst │ │ │ ├── index.rst │ │ │ ├── invoke_model.rst │ │ │ ├── list_async_invokes.rst │ │ │ └── start_async_invoke.rst │ │ ├── conf.py │ │ ├── index.rst │ │ ├── make.bat │ │ └── models │ │ │ ├── AccessDeniedException.rst │ │ │ ├── AnyToolChoice.rst │ │ │ ├── AsyncInvokeOutputDataConfig.rst │ │ │ ├── AsyncInvokeOutputDataConfigS3OutputDataConfig.rst │ │ │ ├── AsyncInvokeOutputDataConfigUnknown.rst │ │ │ ├── AsyncInvokeS3OutputDataConfig.rst │ │ │ ├── AsyncInvokeSummary.rst │ │ │ ├── AutoToolChoice.rst │ │ │ ├── BidirectionalInputPayloadPart.rst │ │ │ ├── BidirectionalOutputPayloadPart.rst │ │ │ ├── CachePointBlock.rst │ │ │ ├── ConflictException.rst │ │ │ ├── ContentBlock.rst │ │ │ ├── ContentBlockCachePoint.rst │ │ │ ├── ContentBlockDelta.rst │ │ │ ├── ContentBlockDeltaEvent.rst │ │ │ ├── ContentBlockDeltaReasoningContent.rst │ │ │ ├── ContentBlockDeltaText.rst │ │ │ ├── ContentBlockDeltaToolUse.rst │ │ │ ├── ContentBlockDeltaUnknown.rst │ │ │ ├── ContentBlockDocument.rst │ │ │ ├── ContentBlockGuardContent.rst │ │ │ ├── ContentBlockImage.rst │ │ │ ├── ContentBlockReasoningContent.rst │ │ │ ├── ContentBlockStart.rst │ │ │ ├── ContentBlockStartEvent.rst │ │ │ ├── ContentBlockStartToolUse.rst │ │ │ ├── ContentBlockStartUnknown.rst │ │ │ ├── ContentBlockStopEvent.rst │ │ │ ├── ContentBlockText.rst │ │ │ ├── ContentBlockToolResult.rst │ │ │ ├── ContentBlockToolUse.rst │ │ │ ├── ContentBlockUnknown.rst │ │ │ ├── ContentBlockVideo.rst │ │ │ ├── ConverseMetrics.rst │ │ │ ├── ConverseOutput.rst │ │ │ ├── ConverseOutputMessage.rst │ │ │ ├── ConverseOutputUnknown.rst │ │ │ ├── ConverseStreamMetadataEvent.rst │ │ │ ├── ConverseStreamMetrics.rst │ │ │ ├── ConverseStreamOutput.rst │ │ │ ├── ConverseStreamOutputContentBlockDelta.rst │ │ │ ├── ConverseStreamOutputContentBlockStart.rst │ │ │ ├── ConverseStreamOutputContentBlockStop.rst │ │ │ ├── ConverseStreamOutputInternalServerException.rst │ │ │ ├── ConverseStreamOutputMessageStart.rst │ │ │ ├── ConverseStreamOutputMessageStop.rst │ │ │ ├── ConverseStreamOutputMetadata.rst │ │ │ ├── ConverseStreamOutputModelStreamErrorException.rst │ │ │ ├── ConverseStreamOutputServiceUnavailableException.rst │ │ │ ├── ConverseStreamOutputThrottlingException.rst │ │ │ ├── ConverseStreamOutputUnknown.rst │ │ │ ├── ConverseStreamOutputValidationException.rst │ │ │ ├── ConverseStreamTrace.rst │ │ │ ├── ConverseTrace.rst │ │ │ ├── DocumentBlock.rst │ │ │ ├── DocumentSource.rst │ │ │ ├── DocumentSourceBytes.rst │ │ │ ├── DocumentSourceUnknown.rst │ │ │ ├── GuardrailAssessment.rst │ │ │ ├── GuardrailConfiguration.rst │ │ │ ├── GuardrailContentBlock.rst │ │ │ ├── GuardrailContentBlockImage.rst │ │ │ ├── GuardrailContentBlockText.rst │ │ │ ├── GuardrailContentBlockUnknown.rst │ │ │ ├── GuardrailContentFilter.rst │ │ │ ├── GuardrailContentPolicyAssessment.rst │ │ │ ├── GuardrailContextualGroundingFilter.rst │ │ │ ├── GuardrailContextualGroundingPolicyAssessment.rst │ │ │ ├── GuardrailConverseContentBlock.rst │ │ │ ├── GuardrailConverseContentBlockImage.rst │ │ │ ├── GuardrailConverseContentBlockText.rst │ │ │ ├── GuardrailConverseContentBlockUnknown.rst │ │ │ ├── GuardrailConverseImageBlock.rst │ │ │ ├── GuardrailConverseImageSource.rst │ │ │ ├── GuardrailConverseImageSourceBytes.rst │ │ │ ├── GuardrailConverseImageSourceUnknown.rst │ │ │ ├── GuardrailConverseTextBlock.rst │ │ │ ├── GuardrailCoverage.rst │ │ │ ├── GuardrailCustomWord.rst │ │ │ ├── GuardrailImageBlock.rst │ │ │ ├── GuardrailImageCoverage.rst │ │ │ ├── GuardrailImageSource.rst │ │ │ ├── GuardrailImageSourceBytes.rst │ │ │ ├── GuardrailImageSourceUnknown.rst │ │ │ ├── GuardrailInvocationMetrics.rst │ │ │ ├── GuardrailManagedWord.rst │ │ │ ├── GuardrailOutputContent.rst │ │ │ ├── GuardrailPiiEntityFilter.rst │ │ │ ├── GuardrailRegexFilter.rst │ │ │ ├── GuardrailSensitiveInformationPolicyAssessment.rst │ │ │ ├── GuardrailStreamConfiguration.rst │ │ │ ├── GuardrailTextBlock.rst │ │ │ ├── GuardrailTextCharactersCoverage.rst │ │ │ ├── GuardrailTopic.rst │ │ │ ├── GuardrailTopicPolicyAssessment.rst │ │ │ ├── GuardrailTraceAssessment.rst │ │ │ ├── GuardrailUsage.rst │ │ │ ├── GuardrailWordPolicyAssessment.rst │ │ │ ├── ImageBlock.rst │ │ │ ├── ImageSource.rst │ │ │ ├── ImageSourceBytes.rst │ │ │ ├── ImageSourceUnknown.rst │ │ │ ├── InferenceConfiguration.rst │ │ │ ├── InternalServerException.rst │ │ │ ├── InvokeModelWithBidirectionalStreamInput.rst │ │ │ ├── InvokeModelWithBidirectionalStreamInputChunk.rst │ │ │ ├── InvokeModelWithBidirectionalStreamInputUnknown.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutput.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputChunk.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputInternalServerException.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputModelStreamErrorException.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputModelTimeoutException.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputServiceUnavailableException.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputThrottlingException.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputUnknown.rst │ │ │ ├── InvokeModelWithBidirectionalStreamOutputValidationException.rst │ │ │ ├── Message.rst │ │ │ ├── MessageStartEvent.rst │ │ │ ├── MessageStopEvent.rst │ │ │ ├── ModelErrorException.rst │ │ │ ├── ModelNotReadyException.rst │ │ │ ├── ModelStreamErrorException.rst │ │ │ ├── ModelTimeoutException.rst │ │ │ ├── PayloadPart.rst │ │ │ ├── PerformanceConfiguration.rst │ │ │ ├── PromptRouterTrace.rst │ │ │ ├── PromptVariableValues.rst │ │ │ ├── PromptVariableValuesText.rst │ │ │ ├── PromptVariableValuesUnknown.rst │ │ │ ├── ReasoningContentBlock.rst │ │ │ ├── ReasoningContentBlockDelta.rst │ │ │ ├── ReasoningContentBlockDeltaRedactedContent.rst │ │ │ ├── ReasoningContentBlockDeltaSignature.rst │ │ │ ├── ReasoningContentBlockDeltaText.rst │ │ │ ├── ReasoningContentBlockDeltaUnknown.rst │ │ │ ├── ReasoningContentBlockReasoningText.rst │ │ │ ├── ReasoningContentBlockRedactedContent.rst │ │ │ ├── ReasoningContentBlockUnknown.rst │ │ │ ├── ReasoningTextBlock.rst │ │ │ ├── ResourceNotFoundException.rst │ │ │ ├── ResponseStream.rst │ │ │ ├── ResponseStreamChunk.rst │ │ │ ├── ResponseStreamInternalServerException.rst │ │ │ ├── ResponseStreamModelStreamErrorException.rst │ │ │ ├── ResponseStreamModelTimeoutException.rst │ │ │ ├── ResponseStreamServiceUnavailableException.rst │ │ │ ├── ResponseStreamThrottlingException.rst │ │ │ ├── ResponseStreamUnknown.rst │ │ │ ├── ResponseStreamValidationException.rst │ │ │ ├── S3Location.rst │ │ │ ├── ServiceQuotaExceededException.rst │ │ │ ├── ServiceUnavailableException.rst │ │ │ ├── SpecificToolChoice.rst │ │ │ ├── SystemContentBlock.rst │ │ │ ├── SystemContentBlockCachePoint.rst │ │ │ ├── SystemContentBlockGuardContent.rst │ │ │ ├── SystemContentBlockText.rst │ │ │ ├── SystemContentBlockUnknown.rst │ │ │ ├── Tag.rst │ │ │ ├── ThrottlingException.rst │ │ │ ├── TokenUsage.rst │ │ │ ├── Tool.rst │ │ │ ├── ToolCachePoint.rst │ │ │ ├── ToolChoice.rst │ │ │ ├── ToolChoiceAny.rst │ │ │ ├── ToolChoiceAuto.rst │ │ │ ├── ToolChoiceTool.rst │ │ │ ├── ToolChoiceUnknown.rst │ │ │ ├── ToolConfiguration.rst │ │ │ ├── ToolInputSchema.rst │ │ │ ├── ToolInputSchemaJson.rst │ │ │ ├── ToolInputSchemaUnknown.rst │ │ │ ├── ToolResultBlock.rst │ │ │ ├── ToolResultContentBlock.rst │ │ │ ├── ToolResultContentBlockDocument.rst │ │ │ ├── ToolResultContentBlockImage.rst │ │ │ ├── ToolResultContentBlockJson.rst │ │ │ ├── ToolResultContentBlockText.rst │ │ │ ├── ToolResultContentBlockUnknown.rst │ │ │ ├── ToolResultContentBlockVideo.rst │ │ │ ├── ToolSpecification.rst │ │ │ ├── ToolToolSpec.rst │ │ │ ├── ToolUnknown.rst │ │ │ ├── ToolUseBlock.rst │ │ │ ├── ToolUseBlockDelta.rst │ │ │ ├── ToolUseBlockStart.rst │ │ │ ├── ValidationException.rst │ │ │ ├── VideoBlock.rst │ │ │ ├── VideoSource.rst │ │ │ ├── VideoSourceBytes.rst │ │ │ ├── VideoSourceS3Location.rst │ │ │ ├── VideoSourceUnknown.rst │ │ │ ├── __init__.py │ │ │ └── index.rst │ ├── pyproject.toml │ ├── src │ │ └── aws_sdk_bedrock_runtime │ │ │ ├── __init__.py │ │ │ ├── _private │ │ │ ├── __init__.py │ │ │ └── schemas.py │ │ │ ├── auth.py │ │ │ ├── client.py │ │ │ ├── config.py │ │ │ ├── deserialize.py │ │ │ ├── models.py │ │ │ ├── serialize.py │ │ │ └── user_agent.py │ └── tests │ │ ├── __init__.py │ │ └── test_protocol.py └── aws-sdk-python │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── pyproject.toml │ └── src │ └── aws_sdk_python │ └── __init__.py └── dev-guide ├── README.md ├── best-practices.md ├── compliance-validation.md ├── configuring.md ├── credential-providers.md ├── data-protection.md ├── disaster-recovery-resiliency.md ├── doc-history.md ├── getting-started.md ├── index.md ├── installing.md ├── region.md ├── security.md ├── service-clients.md ├── simple-app.md ├── using.md └── what-is-the-python-sdk.md /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Add core contributors to all prs by default 2 | * @awslabs/aws-sdk-python 3 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing Guidelines 2 | 3 | Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional 4 | documentation, we greatly value feedback and contributions from our community. 5 | 6 | Please read through this document before submitting any issues or pull requests to ensure we have all the necessary 7 | information to effectively respond to your bug report or contribution. 8 | 9 | 10 | ## Reporting Bugs/Feature Requests 11 | 12 | We welcome you to use the GitHub issue tracker to report bugs or suggest features. 13 | 14 | When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already 15 | reported the issue. Please try to include as much information as you can. Details like these are incredibly useful: 16 | 17 | * A reproducible test case or series of steps 18 | * The version of our code being used 19 | * Any modifications you've made relevant to the bug 20 | * Anything unusual about your environment or deployment 21 | 22 | 23 | ## Contributing via Pull Requests 24 | Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that: 25 | 26 | 1. You are working against the latest source on the *main* branch. 27 | 2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already. 28 | 3. You open an issue to discuss any significant work - we would hate for your time to be wasted. 29 | 30 | To send us a pull request, please: 31 | 32 | 1. Fork the repository. 33 | 2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change. 34 | 3. Ensure local tests pass. 35 | 4. Commit to your fork using clear commit messages. 36 | 5. Send us a pull request, answering any default questions in the pull request interface. 37 | 6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation. 38 | 39 | GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and 40 | [creating a pull request](https://help.github.com/articles/creating-a-pull-request/). 41 | 42 | 43 | ## Finding contributions to work on 44 | Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start. 45 | 46 | 47 | ## Code of Conduct 48 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 49 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 50 | opensource-codeofconduct@amazon.com with any additional questions or comments. 51 | 52 | 53 | ## Security issue notifications 54 | If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue. 55 | 56 | 57 | ## Licensing 58 | 59 | See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. 60 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## AWS SDK for Python 2 | [![Apache 2 licensed][apache-badge]][apache-url] 3 | 4 | [apache-badge]: https://img.shields.io/badge/license-APACHE2-blue.svg 5 | [apache-url]: https://github.com/awslabs/aws-sdk-python/blob/main/LICENSE 6 | 7 | This repository contains experimental async clients for the AWS SDK for Python. 8 | These new clients will allow you to interact with select AWS services that can 9 | best utilize Python's async functionality. Unlike Boto3, these clients are 10 | distributed per-service, leaving you the option to pick what fits your needs. 11 | 12 | Please note that this new project is in early development and will be seeing 13 | rapid iteration over the coming months. This may mean instability in both 14 | public interfaces and general behaviors. Until the project releases version 15 | 1.0.0, breaking changes may occur between minor versions of the SDK. We'd 16 | strongly advise strict pinning to a version of the SDK for any non-experimental 17 | use cases. 18 | 19 | While we're developing, we welcome all feedback. Please feel free to note things 20 | you like, dislike, or would like to see in a future release. We'll be using that 21 | to help drive the direction of the product going forward. 22 | 23 | ## Feedback 24 | 25 | The SDK uses **GitHub Issues** to track feature requests and issues with the SDK. In addition, 26 | we intend to use **GitHub Projects** to provide a high level overview of our roadmap and the 27 | features we are actively working on. 28 | 29 | You can provide feedback or report a bug by submitting an [issue](https://github.com/awslabs/aws-sdk-python/issues/new/choose). 30 | This is the preferred mechanism to give feedback so that other users can engage in the conversation, +1 issues, etc. 31 | 32 | ## Security 33 | 34 | See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. 35 | 36 | ## License 37 | 38 | This project is licensed under the Apache-2.0 License. 39 | 40 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/CHANGES.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## v0.0.2 4 | 5 | ### Dependencies 6 | 7 | * Updated support for all smithy dependencies in the 0.0.x minor version. 8 | 9 | ## v0.0.1 10 | 11 | ### Features 12 | * Initial Client Release with support for current Amazon Bedrock Runtime operations. 13 | * Added support for new InvokeModelWithBidirectionalStream API 14 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/README.md: -------------------------------------------------------------------------------- 1 | ## Amazon Bedrock Runtime Client 2 | 3 | The `aws_sdk_bedrock_runtime` client is still under active developement. 4 | Changes may result in breaking changes prior to the release of version 5 | 1.0.0. 6 | 7 | ### Documentation 8 | 9 | Documentation is available in the `/docs` directory of this package. 10 | Pages can be built into portable HTML files for the time being. You can 11 | follow the instructions in the docs [README.md](https://github.com/awslabs/aws-sdk-python/blob/main/clients/aws-sdk-bedrock-runtime/docs/README.md). 12 | 13 | For high-level documentation, you can view the [`dev-guide`](https://github.com/awslabs/aws-sdk-python/tree/main/dev-guide) at the top level of this repo. 14 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/Makefile: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | SPHINXBUILD = sphinx-build 4 | BUILDDIR = build 5 | SERVICESDIR = source/reference/services 6 | SPHINXOPTS = -j auto 7 | ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) . 8 | 9 | clean: 10 | -rm -rf $(BUILDDIR)/* 11 | 12 | html: 13 | $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html 14 | @echo 15 | @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." 16 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/README.md: -------------------------------------------------------------------------------- 1 | ## Generating Documentation 2 | 3 | Sphinx is used for documentation. You can generate HTML locally with the 4 | following: 5 | 6 | ``` 7 | $ uv pip install ".[docs]" 8 | $ cd docs 9 | $ make html 10 | ``` 11 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/__init__.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/apply_guardrail.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | apply_guardrail 5 | =============== 6 | 7 | .. automethod:: aws_sdk_bedrock_runtime.client.BedrockRuntimeClient.apply_guardrail 8 | 9 | .. toctree:: 10 | :hidden: 11 | :maxdepth: 2 12 | 13 | ================= 14 | Input: 15 | ================= 16 | 17 | .. autoclass:: aws_sdk_bedrock_runtime.models.ApplyGuardrailInput 18 | :members: 19 | 20 | ================= 21 | Output: 22 | ================= 23 | 24 | .. autoclass:: aws_sdk_bedrock_runtime.models.ApplyGuardrailOutput 25 | :members: 26 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/converse.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | converse 5 | ======== 6 | 7 | .. automethod:: aws_sdk_bedrock_runtime.client.BedrockRuntimeClient.converse 8 | 9 | .. toctree:: 10 | :hidden: 11 | :maxdepth: 2 12 | 13 | ================= 14 | Input: 15 | ================= 16 | 17 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseInput 18 | :members: 19 | 20 | ================= 21 | Output: 22 | ================= 23 | 24 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseOperationOutput 25 | :members: 26 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/get_async_invoke.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | get_async_invoke 5 | ================ 6 | 7 | .. automethod:: aws_sdk_bedrock_runtime.client.BedrockRuntimeClient.get_async_invoke 8 | 9 | .. toctree:: 10 | :hidden: 11 | :maxdepth: 2 12 | 13 | ================= 14 | Input: 15 | ================= 16 | 17 | .. autoclass:: aws_sdk_bedrock_runtime.models.GetAsyncInvokeInput 18 | :members: 19 | 20 | ================= 21 | Output: 22 | ================= 23 | 24 | .. autoclass:: aws_sdk_bedrock_runtime.models.GetAsyncInvokeOutput 25 | :members: 26 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/index.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | Client 5 | ======= 6 | .. toctree:: 7 | :maxdepth: 1 8 | :titlesonly: 9 | :glob: 10 | 11 | * 12 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/invoke_model.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | invoke_model 5 | ============ 6 | 7 | .. automethod:: aws_sdk_bedrock_runtime.client.BedrockRuntimeClient.invoke_model 8 | 9 | .. toctree:: 10 | :hidden: 11 | :maxdepth: 2 12 | 13 | ================= 14 | Input: 15 | ================= 16 | 17 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelInput 18 | :members: 19 | 20 | ================= 21 | Output: 22 | ================= 23 | 24 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelOutput 25 | :members: 26 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/list_async_invokes.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | list_async_invokes 5 | ================== 6 | 7 | .. automethod:: aws_sdk_bedrock_runtime.client.BedrockRuntimeClient.list_async_invokes 8 | 9 | .. toctree:: 10 | :hidden: 11 | :maxdepth: 2 12 | 13 | ================= 14 | Input: 15 | ================= 16 | 17 | .. autoclass:: aws_sdk_bedrock_runtime.models.ListAsyncInvokesInput 18 | :members: 19 | 20 | ================= 21 | Output: 22 | ================= 23 | 24 | .. autoclass:: aws_sdk_bedrock_runtime.models.ListAsyncInvokesOutput 25 | :members: 26 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/client/start_async_invoke.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | start_async_invoke 5 | ================== 6 | 7 | .. automethod:: aws_sdk_bedrock_runtime.client.BedrockRuntimeClient.start_async_invoke 8 | 9 | .. toctree:: 10 | :hidden: 11 | :maxdepth: 2 12 | 13 | ================= 14 | Input: 15 | ================= 16 | 17 | .. autoclass:: aws_sdk_bedrock_runtime.models.StartAsyncInvokeInput 18 | :members: 19 | 20 | ================= 21 | Output: 22 | ================= 23 | 24 | .. autoclass:: aws_sdk_bedrock_runtime.models.StartAsyncInvokeOutput 25 | :members: 26 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/conf.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | import os 4 | import sys 5 | 6 | sys.path.insert(0, os.path.abspath("..")) 7 | 8 | project = "Amazon Bedrock Runtime" 9 | author = "Amazon Web Services" 10 | release = "0.0.1" 11 | 12 | extensions = [ 13 | "sphinx.ext.autodoc", 14 | "sphinx.ext.viewcode", 15 | ] 16 | 17 | templates_path = ["_templates"] 18 | exclude_patterns = [] 19 | 20 | autodoc_default_options = { 21 | "exclude-members": "deserialize,deserialize_kwargs,serialize,serialize_members" 22 | } 23 | 24 | html_theme = "pydata_sphinx_theme" 25 | html_theme_options = { 26 | "logo": { 27 | "text": "Amazon Bedrock Runtime", 28 | } 29 | } 30 | 31 | autodoc_typehints = "description" 32 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/index.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | Amazon Bedrock Runtime 5 | ====================== 6 | 7 | .. toctree:: 8 | :maxdepth: 2 9 | :titlesonly: 10 | :glob: 11 | 12 | */index 13 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/make.bat: -------------------------------------------------------------------------------- 1 | REM Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | @ECHO OFF 4 | 5 | pushd %~dp0 6 | 7 | REM Command file for Sphinx documentation 8 | 9 | if "%SPHINXBUILD%" == "" ( 10 | set SPHINXBUILD=sphinx-build 11 | ) 12 | set BUILDDIR=build 13 | set SERVICESDIR=source/reference/services 14 | set SPHINXOPTS=-j auto 15 | set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . 16 | 17 | if "%1" == "" goto help 18 | 19 | if "%1" == "clean" ( 20 | rmdir /S /Q %BUILDDIR% 21 | goto end 22 | ) 23 | 24 | if "%1" == "html" ( 25 | %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html 26 | echo. 27 | echo "Build finished. The HTML pages are in %BUILDDIR%/html." 28 | goto end 29 | ) 30 | 31 | :help 32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 33 | 34 | :end 35 | popd 36 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AccessDeniedException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | AccessDeniedException 5 | ===================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.AccessDeniedException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AnyToolChoice.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | AnyToolChoice 5 | ============= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.AnyToolChoice 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AsyncInvokeOutputDataConfig.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _AsyncInvokeOutputDataConfig: 5 | 6 | AsyncInvokeOutputDataConfig 7 | =========================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.AsyncInvokeOutputDataConfig 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AsyncInvokeOutputDataConfigS3OutputDataConfig.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _AsyncInvokeOutputDataConfigS3OutputDataConfig: 5 | 6 | AsyncInvokeOutputDataConfigS3OutputDataConfig 7 | ============================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.AsyncInvokeOutputDataConfigS3OutputDataConfig 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AsyncInvokeOutputDataConfigUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _AsyncInvokeOutputDataConfigUnknown: 5 | 6 | AsyncInvokeOutputDataConfigUnknown 7 | ================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.AsyncInvokeOutputDataConfigUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AsyncInvokeS3OutputDataConfig.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | AsyncInvokeS3OutputDataConfig 5 | ============================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.AsyncInvokeS3OutputDataConfig 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AsyncInvokeSummary.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | AsyncInvokeSummary 5 | ================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.AsyncInvokeSummary 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/AutoToolChoice.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | AutoToolChoice 5 | ============== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.AutoToolChoice 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/BidirectionalInputPayloadPart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | BidirectionalInputPayloadPart 5 | ============================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.BidirectionalInputPayloadPart 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/BidirectionalOutputPayloadPart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | BidirectionalOutputPayloadPart 5 | ============================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.BidirectionalOutputPayloadPart 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/CachePointBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | CachePointBlock 5 | =============== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.CachePointBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConflictException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ConflictException 5 | ================= 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ConflictException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlock: 5 | 6 | ContentBlock 7 | ============ 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ContentBlock 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockCachePoint.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockCachePoint: 5 | 6 | ContentBlockCachePoint 7 | ====================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockCachePoint 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDelta.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockDelta: 5 | 6 | ContentBlockDelta 7 | ================= 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ContentBlockDelta 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDeltaEvent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ContentBlockDeltaEvent 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockDeltaEvent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDeltaReasoningContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockDeltaReasoningContent: 5 | 6 | ContentBlockDeltaReasoningContent 7 | ================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockDeltaReasoningContent 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDeltaText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockDeltaText: 5 | 6 | ContentBlockDeltaText 7 | ===================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockDeltaText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDeltaToolUse.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockDeltaToolUse: 5 | 6 | ContentBlockDeltaToolUse 7 | ======================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockDeltaToolUse 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDeltaUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockDeltaUnknown: 5 | 6 | ContentBlockDeltaUnknown 7 | ======================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockDeltaUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockDocument.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockDocument: 5 | 6 | ContentBlockDocument 7 | ==================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockDocument 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockGuardContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockGuardContent: 5 | 6 | ContentBlockGuardContent 7 | ======================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockGuardContent 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockImage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockImage: 5 | 6 | ContentBlockImage 7 | ================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockImage 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockReasoningContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockReasoningContent: 5 | 6 | ContentBlockReasoningContent 7 | ============================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockReasoningContent 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockStart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockStart: 5 | 6 | ContentBlockStart 7 | ================= 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ContentBlockStart 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockStartEvent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ContentBlockStartEvent 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockStartEvent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockStartToolUse.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockStartToolUse: 5 | 6 | ContentBlockStartToolUse 7 | ======================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockStartToolUse 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockStartUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockStartUnknown: 5 | 6 | ContentBlockStartUnknown 7 | ======================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockStartUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockStopEvent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ContentBlockStopEvent 5 | ===================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockStopEvent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockText: 5 | 6 | ContentBlockText 7 | ================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockToolResult.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockToolResult: 5 | 6 | ContentBlockToolResult 7 | ====================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockToolResult 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockToolUse.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockToolUse: 5 | 6 | ContentBlockToolUse 7 | =================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockToolUse 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockUnknown: 5 | 6 | ContentBlockUnknown 7 | =================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ContentBlockVideo.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ContentBlockVideo: 5 | 6 | ContentBlockVideo 7 | ================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ContentBlockVideo 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseMetrics.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ConverseMetrics 5 | =============== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseMetrics 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseOutput.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseOutput: 5 | 6 | ConverseOutput 7 | ============== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ConverseOutput 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseOutputMessage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseOutputMessage: 5 | 6 | ConverseOutputMessage 7 | ===================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseOutputMessage 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseOutputUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseOutputUnknown: 5 | 6 | ConverseOutputUnknown 7 | ===================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseOutputUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamMetadataEvent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ConverseStreamMetadataEvent 5 | =========================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamMetadataEvent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamMetrics.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ConverseStreamMetrics 5 | ===================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamMetrics 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutput.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutput: 5 | 6 | ConverseStreamOutput 7 | ==================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ConverseStreamOutput 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputContentBlockDelta.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputContentBlockDelta: 5 | 6 | ConverseStreamOutputContentBlockDelta 7 | ===================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputContentBlockDelta 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputContentBlockStart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputContentBlockStart: 5 | 6 | ConverseStreamOutputContentBlockStart 7 | ===================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputContentBlockStart 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputContentBlockStop.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputContentBlockStop: 5 | 6 | ConverseStreamOutputContentBlockStop 7 | ==================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputContentBlockStop 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputInternalServerException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputInternalServerException: 5 | 6 | ConverseStreamOutputInternalServerException 7 | =========================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputInternalServerException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputMessageStart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputMessageStart: 5 | 6 | ConverseStreamOutputMessageStart 7 | ================================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputMessageStart 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputMessageStop.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputMessageStop: 5 | 6 | ConverseStreamOutputMessageStop 7 | =============================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputMessageStop 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputMetadata.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputMetadata: 5 | 6 | ConverseStreamOutputMetadata 7 | ============================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputMetadata 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputModelStreamErrorException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputModelStreamErrorException: 5 | 6 | ConverseStreamOutputModelStreamErrorException 7 | ============================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputModelStreamErrorException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputServiceUnavailableException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputServiceUnavailableException: 5 | 6 | ConverseStreamOutputServiceUnavailableException 7 | =============================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputServiceUnavailableException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputThrottlingException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputThrottlingException: 5 | 6 | ConverseStreamOutputThrottlingException 7 | ======================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputThrottlingException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputUnknown: 5 | 6 | ConverseStreamOutputUnknown 7 | =========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamOutputValidationException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ConverseStreamOutputValidationException: 5 | 6 | ConverseStreamOutputValidationException 7 | ======================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamOutputValidationException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseStreamTrace.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ConverseStreamTrace 5 | =================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseStreamTrace 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ConverseTrace.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ConverseTrace 5 | ============= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ConverseTrace 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/DocumentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | DocumentBlock 5 | ============= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.DocumentBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/DocumentSource.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _DocumentSource: 5 | 6 | DocumentSource 7 | ============== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.DocumentSource 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/DocumentSourceBytes.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _DocumentSourceBytes: 5 | 6 | DocumentSourceBytes 7 | =================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.DocumentSourceBytes 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/DocumentSourceUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _DocumentSourceUnknown: 5 | 6 | DocumentSourceUnknown 7 | ===================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.DocumentSourceUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailAssessment 5 | =================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConfiguration.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailConfiguration 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConfiguration 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailContentBlock: 5 | 6 | GuardrailContentBlock 7 | ===================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.GuardrailContentBlock 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContentBlockImage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailContentBlockImage: 5 | 6 | GuardrailContentBlockImage 7 | ========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContentBlockImage 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContentBlockText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailContentBlockText: 5 | 6 | GuardrailContentBlockText 7 | ========================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContentBlockText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContentBlockUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailContentBlockUnknown: 5 | 6 | GuardrailContentBlockUnknown 7 | ============================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContentBlockUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContentFilter.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailContentFilter 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContentFilter 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContentPolicyAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailContentPolicyAssessment 5 | ================================ 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContentPolicyAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContextualGroundingFilter.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailContextualGroundingFilter 5 | ================================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContextualGroundingFilter 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailContextualGroundingPolicyAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailContextualGroundingPolicyAssessment 5 | ============================================ 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailContextualGroundingPolicyAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseContentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseContentBlock: 5 | 6 | GuardrailConverseContentBlock 7 | ============================= 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.GuardrailConverseContentBlock 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseContentBlockImage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseContentBlockImage: 5 | 6 | GuardrailConverseContentBlockImage 7 | ================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseContentBlockImage 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseContentBlockText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseContentBlockText: 5 | 6 | GuardrailConverseContentBlockText 7 | ================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseContentBlockText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseContentBlockUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseContentBlockUnknown: 5 | 6 | GuardrailConverseContentBlockUnknown 7 | ==================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseContentBlockUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseImageBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailConverseImageBlock 5 | =========================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseImageBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseImageSource.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseImageSource: 5 | 6 | GuardrailConverseImageSource 7 | ============================ 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.GuardrailConverseImageSource 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseImageSourceBytes.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseImageSourceBytes: 5 | 6 | GuardrailConverseImageSourceBytes 7 | ================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseImageSourceBytes 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseImageSourceUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailConverseImageSourceUnknown: 5 | 6 | GuardrailConverseImageSourceUnknown 7 | =================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseImageSourceUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailConverseTextBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailConverseTextBlock 5 | ========================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailConverseTextBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailCoverage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailCoverage 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailCoverage 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailCustomWord.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailCustomWord 5 | =================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailCustomWord 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailImageBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailImageBlock 5 | =================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailImageBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailImageCoverage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailImageCoverage 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailImageCoverage 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailImageSource.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailImageSource: 5 | 6 | GuardrailImageSource 7 | ==================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.GuardrailImageSource 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailImageSourceBytes.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailImageSourceBytes: 5 | 6 | GuardrailImageSourceBytes 7 | ========================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailImageSourceBytes 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailImageSourceUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _GuardrailImageSourceUnknown: 5 | 6 | GuardrailImageSourceUnknown 7 | =========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailImageSourceUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailInvocationMetrics.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailInvocationMetrics 5 | ========================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailInvocationMetrics 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailManagedWord.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailManagedWord 5 | ==================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailManagedWord 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailOutputContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailOutputContent 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailOutputContent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailPiiEntityFilter.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailPiiEntityFilter 5 | ======================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailPiiEntityFilter 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailRegexFilter.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailRegexFilter 5 | ==================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailRegexFilter 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailSensitiveInformationPolicyAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailSensitiveInformationPolicyAssessment 5 | ============================================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailSensitiveInformationPolicyAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailStreamConfiguration.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailStreamConfiguration 5 | ============================ 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailStreamConfiguration 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailTextBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailTextBlock 5 | ================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailTextBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailTextCharactersCoverage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailTextCharactersCoverage 5 | =============================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailTextCharactersCoverage 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailTopic.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailTopic 5 | ============== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailTopic 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailTopicPolicyAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailTopicPolicyAssessment 5 | ============================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailTopicPolicyAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailTraceAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailTraceAssessment 5 | ======================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailTraceAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailUsage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailUsage 5 | ============== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailUsage 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/GuardrailWordPolicyAssessment.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | GuardrailWordPolicyAssessment 5 | ============================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.GuardrailWordPolicyAssessment 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ImageBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ImageBlock 5 | ========== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ImageBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ImageSource.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ImageSource: 5 | 6 | ImageSource 7 | =========== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ImageSource 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ImageSourceBytes.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ImageSourceBytes: 5 | 6 | ImageSourceBytes 7 | ================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ImageSourceBytes 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ImageSourceUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ImageSourceUnknown: 5 | 6 | ImageSourceUnknown 7 | ================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ImageSourceUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InferenceConfiguration.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | InferenceConfiguration 5 | ====================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.InferenceConfiguration 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InternalServerException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | InternalServerException 5 | ======================= 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.InternalServerException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamInput.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamInput: 5 | 6 | InvokeModelWithBidirectionalStreamInput 7 | ======================================= 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamInput 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamInputChunk.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamInputChunk: 5 | 6 | InvokeModelWithBidirectionalStreamInputChunk 7 | ============================================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamInputChunk 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamInputUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamInputUnknown: 5 | 6 | InvokeModelWithBidirectionalStreamInputUnknown 7 | ============================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamInputUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutput.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutput: 5 | 6 | InvokeModelWithBidirectionalStreamOutput 7 | ======================================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutput 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputChunk.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputChunk: 5 | 6 | InvokeModelWithBidirectionalStreamOutputChunk 7 | ============================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputChunk 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputInternalServerException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputInternalServerException: 5 | 6 | InvokeModelWithBidirectionalStreamOutputInternalServerException 7 | =============================================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputInternalServerException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputModelStreamErrorException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputModelStreamErrorException: 5 | 6 | InvokeModelWithBidirectionalStreamOutputModelStreamErrorException 7 | ================================================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputModelStreamErrorException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputModelTimeoutException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputModelTimeoutException: 5 | 6 | InvokeModelWithBidirectionalStreamOutputModelTimeoutException 7 | ============================================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputModelTimeoutException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputServiceUnavailableException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputServiceUnavailableException: 5 | 6 | InvokeModelWithBidirectionalStreamOutputServiceUnavailableException 7 | =================================================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputServiceUnavailableException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputThrottlingException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputThrottlingException: 5 | 6 | InvokeModelWithBidirectionalStreamOutputThrottlingException 7 | =========================================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputThrottlingException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputUnknown: 5 | 6 | InvokeModelWithBidirectionalStreamOutputUnknown 7 | =============================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/InvokeModelWithBidirectionalStreamOutputValidationException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _InvokeModelWithBidirectionalStreamOutputValidationException: 5 | 6 | InvokeModelWithBidirectionalStreamOutputValidationException 7 | =========================================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.InvokeModelWithBidirectionalStreamOutputValidationException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/Message.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | Message 5 | ======= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.Message 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/MessageStartEvent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | MessageStartEvent 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.MessageStartEvent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/MessageStopEvent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | MessageStopEvent 5 | ================ 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.MessageStopEvent 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ModelErrorException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ModelErrorException 5 | =================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ModelErrorException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ModelNotReadyException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ModelNotReadyException 5 | ====================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ModelNotReadyException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ModelStreamErrorException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ModelStreamErrorException 5 | ========================= 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ModelStreamErrorException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ModelTimeoutException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ModelTimeoutException 5 | ===================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ModelTimeoutException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/PayloadPart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | PayloadPart 5 | =========== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.PayloadPart 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/PerformanceConfiguration.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | PerformanceConfiguration 5 | ======================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.PerformanceConfiguration 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/PromptRouterTrace.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | PromptRouterTrace 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.PromptRouterTrace 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/PromptVariableValues.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _PromptVariableValues: 5 | 6 | PromptVariableValues 7 | ==================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.PromptVariableValues 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/PromptVariableValuesText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _PromptVariableValuesText: 5 | 6 | PromptVariableValuesText 7 | ======================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.PromptVariableValuesText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/PromptVariableValuesUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _PromptVariableValuesUnknown: 5 | 6 | PromptVariableValuesUnknown 7 | =========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.PromptVariableValuesUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlock: 5 | 6 | ReasoningContentBlock 7 | ===================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ReasoningContentBlock 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockDelta.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockDelta: 5 | 6 | ReasoningContentBlockDelta 7 | ========================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockDelta 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockDeltaRedactedContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockDeltaRedactedContent: 5 | 6 | ReasoningContentBlockDeltaRedactedContent 7 | ========================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockDeltaRedactedContent 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockDeltaSignature.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockDeltaSignature: 5 | 6 | ReasoningContentBlockDeltaSignature 7 | =================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockDeltaSignature 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockDeltaText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockDeltaText: 5 | 6 | ReasoningContentBlockDeltaText 7 | ============================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockDeltaText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockDeltaUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockDeltaUnknown: 5 | 6 | ReasoningContentBlockDeltaUnknown 7 | ================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockDeltaUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockReasoningText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockReasoningText: 5 | 6 | ReasoningContentBlockReasoningText 7 | ================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockReasoningText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockRedactedContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockRedactedContent: 5 | 6 | ReasoningContentBlockRedactedContent 7 | ==================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockRedactedContent 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningContentBlockUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ReasoningContentBlockUnknown: 5 | 6 | ReasoningContentBlockUnknown 7 | ============================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningContentBlockUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ReasoningTextBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ReasoningTextBlock 5 | ================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ReasoningTextBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResourceNotFoundException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ResourceNotFoundException 5 | ========================= 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ResourceNotFoundException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStream.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStream: 5 | 6 | ResponseStream 7 | ============== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ResponseStream 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamChunk.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamChunk: 5 | 6 | ResponseStreamChunk 7 | =================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamChunk 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamInternalServerException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamInternalServerException: 5 | 6 | ResponseStreamInternalServerException 7 | ===================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamInternalServerException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamModelStreamErrorException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamModelStreamErrorException: 5 | 6 | ResponseStreamModelStreamErrorException 7 | ======================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamModelStreamErrorException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamModelTimeoutException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamModelTimeoutException: 5 | 6 | ResponseStreamModelTimeoutException 7 | =================================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamModelTimeoutException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamServiceUnavailableException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamServiceUnavailableException: 5 | 6 | ResponseStreamServiceUnavailableException 7 | ========================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamServiceUnavailableException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamThrottlingException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamThrottlingException: 5 | 6 | ResponseStreamThrottlingException 7 | ================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamThrottlingException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamUnknown: 5 | 6 | ResponseStreamUnknown 7 | ===================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ResponseStreamValidationException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ResponseStreamValidationException: 5 | 6 | ResponseStreamValidationException 7 | ================================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ResponseStreamValidationException 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/S3Location.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | S3Location 5 | ========== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.S3Location 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ServiceQuotaExceededException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ServiceQuotaExceededException 5 | ============================= 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ServiceQuotaExceededException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ServiceUnavailableException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ServiceUnavailableException 5 | =========================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ServiceUnavailableException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/SpecificToolChoice.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | SpecificToolChoice 5 | ================== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.SpecificToolChoice 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/SystemContentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _SystemContentBlock: 5 | 6 | SystemContentBlock 7 | ================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.SystemContentBlock 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/SystemContentBlockCachePoint.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _SystemContentBlockCachePoint: 5 | 6 | SystemContentBlockCachePoint 7 | ============================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.SystemContentBlockCachePoint 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/SystemContentBlockGuardContent.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _SystemContentBlockGuardContent: 5 | 6 | SystemContentBlockGuardContent 7 | ============================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.SystemContentBlockGuardContent 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/SystemContentBlockText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _SystemContentBlockText: 5 | 6 | SystemContentBlockText 7 | ====================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.SystemContentBlockText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/SystemContentBlockUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _SystemContentBlockUnknown: 5 | 6 | SystemContentBlockUnknown 7 | ========================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.SystemContentBlockUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/Tag.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | Tag 5 | === 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.Tag 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ThrottlingException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ThrottlingException 5 | =================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ThrottlingException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/TokenUsage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | TokenUsage 5 | ========== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.TokenUsage 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/Tool.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _Tool: 5 | 6 | Tool 7 | ==== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.Tool 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolCachePoint.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolCachePoint: 5 | 6 | ToolCachePoint 7 | ============== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolCachePoint 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolChoice.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolChoice: 5 | 6 | ToolChoice 7 | ========== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ToolChoice 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolChoiceAny.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolChoiceAny: 5 | 6 | ToolChoiceAny 7 | ============= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolChoiceAny 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolChoiceAuto.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolChoiceAuto: 5 | 6 | ToolChoiceAuto 7 | ============== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolChoiceAuto 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolChoiceTool.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolChoiceTool: 5 | 6 | ToolChoiceTool 7 | ============== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolChoiceTool 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolChoiceUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolChoiceUnknown: 5 | 6 | ToolChoiceUnknown 7 | ================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolChoiceUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolConfiguration.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ToolConfiguration 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolConfiguration 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolInputSchema.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolInputSchema: 5 | 6 | ToolInputSchema 7 | =============== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ToolInputSchema 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolInputSchemaJson.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolInputSchemaJson: 5 | 6 | ToolInputSchemaJson 7 | =================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolInputSchemaJson 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolInputSchemaUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolInputSchemaUnknown: 5 | 6 | ToolInputSchemaUnknown 7 | ====================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolInputSchemaUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ToolResultBlock 5 | =============== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlock: 5 | 6 | ToolResultContentBlock 7 | ====================== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.ToolResultContentBlock 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlockDocument.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlockDocument: 5 | 6 | ToolResultContentBlockDocument 7 | ============================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultContentBlockDocument 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlockImage.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlockImage: 5 | 6 | ToolResultContentBlockImage 7 | =========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultContentBlockImage 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlockJson.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlockJson: 5 | 6 | ToolResultContentBlockJson 7 | ========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultContentBlockJson 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlockText.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlockText: 5 | 6 | ToolResultContentBlockText 7 | ========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultContentBlockText 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlockUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlockUnknown: 5 | 6 | ToolResultContentBlockUnknown 7 | ============================= 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultContentBlockUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolResultContentBlockVideo.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolResultContentBlockVideo: 5 | 6 | ToolResultContentBlockVideo 7 | =========================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolResultContentBlockVideo 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolSpecification.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ToolSpecification 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolSpecification 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolToolSpec.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolToolSpec: 5 | 6 | ToolToolSpec 7 | ============ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolToolSpec 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _ToolUnknown: 5 | 6 | ToolUnknown 7 | =========== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolUseBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ToolUseBlock 5 | ============ 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolUseBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolUseBlockDelta.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ToolUseBlockDelta 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolUseBlockDelta 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ToolUseBlockStart.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ToolUseBlockStart 5 | ================= 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.ToolUseBlockStart 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/ValidationException.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | ValidationException 5 | =================== 6 | 7 | .. autoexception:: aws_sdk_bedrock_runtime.models.ValidationException 8 | :members: 9 | :show-inheritance: 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/VideoBlock.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | VideoBlock 5 | ========== 6 | 7 | .. autoclass:: aws_sdk_bedrock_runtime.models.VideoBlock 8 | :members: 9 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/VideoSource.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _VideoSource: 5 | 6 | VideoSource 7 | =========== 8 | 9 | .. autodata:: aws_sdk_bedrock_runtime.models.VideoSource 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/VideoSourceBytes.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _VideoSourceBytes: 5 | 6 | VideoSourceBytes 7 | ================ 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.VideoSourceBytes 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/VideoSourceS3Location.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _VideoSourceS3Location: 5 | 6 | VideoSourceS3Location 7 | ===================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.VideoSourceS3Location 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/VideoSourceUnknown.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | .. _VideoSourceUnknown: 5 | 6 | VideoSourceUnknown 7 | ================== 8 | 9 | .. autoclass:: aws_sdk_bedrock_runtime.models.VideoSourceUnknown 10 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/__init__.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/docs/models/index.rst: -------------------------------------------------------------------------------- 1 | .. 2 | Code generated by smithy-python-codegen DO NOT EDIT. 3 | 4 | Models 5 | ======= 6 | .. toctree:: 7 | :maxdepth: 1 8 | :titlesonly: 9 | :glob: 10 | 11 | * 12 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/pyproject.toml: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | 4 | [project] 5 | name = "aws_sdk_bedrock_runtime" 6 | version = "0.0.2" 7 | description = "aws_sdk_bedrock_runtime client" 8 | readme = "README.md" 9 | requires-python = ">=3.12" 10 | keywords = ["smithy", "aws_sdk_bedrock_runtime"] 11 | license = {text = "Apache-2.0"} 12 | classifiers = [ 13 | "Development Status :: 2 - Pre-Alpha", 14 | "Intended Audience :: Developers", 15 | "Intended Audience :: System Administrators", 16 | "Natural Language :: English", 17 | "License :: OSI Approved :: Apache Software License", 18 | "Programming Language :: Python", 19 | "Programming Language :: Python :: 3", 20 | "Programming Language :: Python :: 3 :: Only", 21 | "Programming Language :: Python :: 3.12", 22 | "Programming Language :: Python :: 3.13" 23 | ] 24 | 25 | dependencies = [ 26 | "smithy_aws_core<0.1.0", 27 | "smithy_aws_event_stream<0.1.0", 28 | "smithy_core<0.1.0", 29 | "smithy_http[awscrt]<0.1.0", 30 | "smithy_json<0.1.0" 31 | ] 32 | 33 | [project.optional-dependencies] 34 | tests = [ 35 | "pytest>=7.2.0,<8.0.0", 36 | "pytest-asyncio>=0.20.3,<0.21.0" 37 | ] 38 | 39 | docs = [ 40 | "pydata-sphinx-theme>=0.16.1", 41 | "sphinx>=8.2.3" 42 | ] 43 | 44 | [build-system] 45 | requires = ["hatchling"] 46 | build-backend = "hatchling.build" 47 | 48 | [tool.hatch.build.targets.bdist] 49 | exclude = [ 50 | "tests", 51 | "docs", 52 | ] 53 | 54 | [tool.pyright] 55 | typeCheckingMode = "strict" 56 | reportPrivateUsage = false 57 | reportUnusedFunction = false 58 | reportUnusedVariable = false 59 | reportUnnecessaryComparison = false 60 | reportUnusedClass = false 61 | 62 | [tool.ruff] 63 | target-version = "py312" 64 | 65 | [tool.ruff.lint] 66 | ignore = ["F841"] 67 | 68 | [tool.pytest.ini_options] 69 | python_classes = ["!Test"] 70 | asyncio_mode = "auto" 71 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/__init__.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | __version__: str = "0.0.1" 4 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/__init__.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/auth.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | from dataclasses import dataclass 4 | 5 | from smithy_http.aio.interfaces.auth import HTTPAuthOption 6 | 7 | 8 | @dataclass 9 | class HTTPAuthParams: 10 | operation: str 11 | region: str | None 12 | 13 | 14 | class HTTPAuthSchemeResolver: 15 | def resolve_auth_scheme( 16 | self, auth_parameters: HTTPAuthParams 17 | ) -> list[HTTPAuthOption]: 18 | auth_options: list[HTTPAuthOption] = [] 19 | 20 | if (option := _generate_sigv4_option(auth_parameters)) is not None: 21 | auth_options.append(option) 22 | 23 | return auth_options 24 | 25 | 26 | def _generate_sigv4_option(auth_params: HTTPAuthParams) -> HTTPAuthOption | None: 27 | return HTTPAuthOption( 28 | scheme_id="aws.auth#sigv4", 29 | identity_properties={}, 30 | signer_properties={"service": "bedrock", "region": auth_params.region}, 31 | ) 32 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/config.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | from dataclasses import dataclass 4 | from typing import Any, Callable, TypeAlias, Union 5 | 6 | from smithy_aws_core.auth import SigV4AuthScheme 7 | from smithy_aws_core.endpoints.standard_regional import ( 8 | StandardRegionalEndpointsResolver as _RegionalResolver, 9 | ) 10 | from smithy_aws_core.identity import AWSCredentialsIdentity 11 | from smithy_core.aio.interfaces import EndpointResolver as _EndpointResolver 12 | from smithy_core.aio.interfaces.identity import IdentityResolver 13 | from smithy_core.interceptors import Interceptor 14 | from smithy_core.interfaces import URI 15 | from smithy_core.interfaces.identity import IdentityProperties 16 | from smithy_core.interfaces.retries import RetryStrategy 17 | from smithy_core.retries import SimpleRetryStrategy 18 | from smithy_http.aio.crt import AWSCRTHTTPClient 19 | from smithy_http.aio.interfaces import HTTPClient 20 | from smithy_http.aio.interfaces.auth import HTTPAuthScheme 21 | from smithy_http.interfaces import HTTPRequestConfiguration 22 | 23 | from .auth import HTTPAuthSchemeResolver 24 | from .models import ( 25 | ApplyGuardrailInput, 26 | ApplyGuardrailOutput, 27 | ConverseInput, 28 | ConverseOperationOutput, 29 | ConverseStreamInput, 30 | ConverseStreamOperationOutput, 31 | GetAsyncInvokeInput, 32 | GetAsyncInvokeOutput, 33 | InvokeModelInput, 34 | InvokeModelOutput, 35 | InvokeModelWithBidirectionalStreamOperationInput, 36 | InvokeModelWithBidirectionalStreamOperationOutput, 37 | InvokeModelWithResponseStreamInput, 38 | InvokeModelWithResponseStreamOutput, 39 | ListAsyncInvokesInput, 40 | ListAsyncInvokesOutput, 41 | StartAsyncInvokeInput, 42 | StartAsyncInvokeOutput, 43 | ) 44 | 45 | 46 | _ServiceInterceptor = Union[ 47 | Interceptor[ApplyGuardrailInput, ApplyGuardrailOutput, Any, Any], 48 | Interceptor[ConverseInput, ConverseOperationOutput, Any, Any], 49 | Interceptor[ConverseStreamInput, ConverseStreamOperationOutput, Any, Any], 50 | Interceptor[GetAsyncInvokeInput, GetAsyncInvokeOutput, Any, Any], 51 | Interceptor[InvokeModelInput, InvokeModelOutput, Any, Any], 52 | Interceptor[ 53 | InvokeModelWithBidirectionalStreamOperationInput, 54 | InvokeModelWithBidirectionalStreamOperationOutput, 55 | Any, 56 | Any, 57 | ], 58 | Interceptor[ 59 | InvokeModelWithResponseStreamInput, 60 | InvokeModelWithResponseStreamOutput, 61 | Any, 62 | Any, 63 | ], 64 | Interceptor[ListAsyncInvokesInput, ListAsyncInvokesOutput, Any, Any], 65 | Interceptor[StartAsyncInvokeInput, StartAsyncInvokeOutput, Any, Any], 66 | ] 67 | 68 | 69 | @dataclass(init=False) 70 | class Config: 71 | """Configuration for AmazonBedrockFrontendService.""" 72 | 73 | aws_credentials_identity_resolver: ( 74 | IdentityResolver[AWSCredentialsIdentity, IdentityProperties] | None 75 | ) 76 | endpoint_resolver: _EndpointResolver 77 | endpoint_uri: str | URI | None 78 | http_auth_scheme_resolver: HTTPAuthSchemeResolver 79 | http_auth_schemes: dict[str, HTTPAuthScheme[Any, Any, Any, Any]] 80 | http_client: HTTPClient 81 | http_request_config: HTTPRequestConfiguration | None 82 | interceptors: list[_ServiceInterceptor] 83 | region: str | None 84 | retry_strategy: RetryStrategy 85 | sdk_ua_app_id: str | None 86 | user_agent_extra: str | None 87 | 88 | def __init__( 89 | self, 90 | *, 91 | aws_credentials_identity_resolver: IdentityResolver[ 92 | AWSCredentialsIdentity, IdentityProperties 93 | ] 94 | | None = None, 95 | endpoint_resolver: _EndpointResolver | None = None, 96 | endpoint_uri: str | URI | None = None, 97 | http_auth_scheme_resolver: HTTPAuthSchemeResolver | None = None, 98 | http_auth_schemes: dict[str, HTTPAuthScheme[Any, Any, Any, Any]] | None = None, 99 | http_client: HTTPClient | None = None, 100 | http_request_config: HTTPRequestConfiguration | None = None, 101 | interceptors: list[_ServiceInterceptor] | None = None, 102 | region: str | None = None, 103 | retry_strategy: RetryStrategy | None = None, 104 | sdk_ua_app_id: str | None = None, 105 | user_agent_extra: str | None = None, 106 | ): 107 | """Constructor. 108 | 109 | :param aws_credentials_identity_resolver: 110 | Resolves AWS Credentials. Required for operations that use Sigv4 Auth. 111 | 112 | :param endpoint_resolver: 113 | The endpoint resolver used to resolve the final endpoint per-operation based on 114 | the configuration. 115 | 116 | :param endpoint_uri: 117 | A static URI to route requests to. 118 | 119 | :param http_auth_scheme_resolver: 120 | An http auth scheme resolver that determines the auth scheme for each operation. 121 | 122 | :param http_auth_schemes: 123 | A map of http auth scheme ids to http auth schemes. 124 | 125 | :param http_client: 126 | The HTTP client used to make requests. 127 | 128 | :param http_request_config: 129 | Configuration for individual HTTP requests. 130 | 131 | :param interceptors: 132 | The list of interceptors, which are hooks that are called during the execution 133 | of a request. 134 | 135 | :param region: 136 | The AWS region to connect to. The configured region is used to determine the 137 | service endpoint. 138 | 139 | :param retry_strategy: 140 | The retry strategy for issuing retry tokens and computing retry delays. 141 | 142 | :param sdk_ua_app_id: 143 | A unique and opaque application ID that is appended to the User-Agent header. 144 | 145 | :param user_agent_extra: 146 | Additional suffix to be added to the User-Agent header. 147 | 148 | """ 149 | self.aws_credentials_identity_resolver = aws_credentials_identity_resolver 150 | self.endpoint_resolver = endpoint_resolver or _RegionalResolver( 151 | endpoint_prefix="bedrock-runtime" 152 | ) 153 | self.endpoint_uri = endpoint_uri 154 | self.http_auth_scheme_resolver = ( 155 | http_auth_scheme_resolver or HTTPAuthSchemeResolver() 156 | ) 157 | self.http_auth_schemes = http_auth_schemes or { 158 | "aws.auth#sigv4": SigV4AuthScheme(), 159 | } 160 | 161 | self.http_client = http_client or AWSCRTHTTPClient() 162 | self.http_request_config = http_request_config 163 | self.interceptors = interceptors or [] 164 | self.region = region 165 | self.retry_strategy = retry_strategy or SimpleRetryStrategy() 166 | self.sdk_ua_app_id = sdk_ua_app_id 167 | self.user_agent_extra = user_agent_extra 168 | 169 | def set_http_auth_scheme(self, scheme: HTTPAuthScheme[Any, Any, Any, Any]) -> None: 170 | """Sets the implementation of an auth scheme. 171 | 172 | Using this method ensures the correct key is used. 173 | 174 | :param scheme: The auth scheme to add. 175 | """ 176 | self.http_auth_schemes[scheme.scheme_id] = scheme 177 | 178 | 179 | # 180 | # A callable that allows customizing the config object on each request. 181 | # 182 | Plugin: TypeAlias = Callable[[Config], None] 183 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/serialize.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | from typing import AsyncIterable 4 | from urllib.parse import quote as urlquote 5 | 6 | from smithy_core import URI as _URI 7 | from smithy_core.aio.types import ( 8 | AsyncBytesProvider, 9 | AsyncBytesReader, 10 | SeekableAsyncBytesReader, 11 | ) 12 | from smithy_core.types import TimestampFormat 13 | from smithy_core.utils import ensure_utc, serialize_rfc3339 14 | from smithy_http import Field, Fields 15 | from smithy_http.aio import HTTPRequest as _HTTPRequest 16 | from smithy_http.aio.interfaces import HTTPRequest 17 | from smithy_http.utils import join_query_params 18 | from smithy_json import JSONCodec 19 | 20 | from .config import Config 21 | from .models import ( 22 | ApplyGuardrailInput, 23 | ConverseInput, 24 | ConverseStreamInput, 25 | GetAsyncInvokeInput, 26 | InvokeModelInput, 27 | InvokeModelWithBidirectionalStreamOperationInput, 28 | InvokeModelWithResponseStreamInput, 29 | ListAsyncInvokesInput, 30 | ServiceError, 31 | StartAsyncInvokeInput, 32 | ) 33 | 34 | 35 | async def _serialize_apply_guardrail( 36 | input: ApplyGuardrailInput, config: Config 37 | ) -> HTTPRequest: 38 | if not input.guardrail_identifier: 39 | raise ServiceError("guardrail_identifier must not be empty.") 40 | 41 | if not input.guardrail_version: 42 | raise ServiceError("guardrail_version must not be empty.") 43 | 44 | path = "/guardrail/{guardrail_identifier}/version/{guardrail_version}/apply".format( 45 | guardrail_identifier=urlquote(input.guardrail_identifier, safe=""), 46 | guardrail_version=urlquote(input.guardrail_version, safe=""), 47 | ) 48 | query: str = "" 49 | 50 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 51 | codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS) 52 | content = codec.serialize(input) 53 | if not content: 54 | content = b"{}" 55 | content_length = len(content) 56 | body = SeekableAsyncBytesReader(content) 57 | 58 | headers = Fields( 59 | [ 60 | Field(name="Content-Type", values=["application/json"]), 61 | Field(name="Content-Length", values=[str(content_length)]), 62 | ] 63 | ) 64 | 65 | return _HTTPRequest( 66 | destination=_URI( 67 | host="", 68 | path=path, 69 | scheme="https", 70 | query=query, 71 | ), 72 | method="POST", 73 | fields=headers, 74 | body=body, 75 | ) 76 | 77 | 78 | async def _serialize_converse(input: ConverseInput, config: Config) -> HTTPRequest: 79 | if not input.model_id: 80 | raise ServiceError("model_id must not be empty.") 81 | 82 | path = "/model/{model_id}/converse".format( 83 | model_id=urlquote(input.model_id, safe=""), 84 | ) 85 | query: str = "" 86 | 87 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 88 | codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS) 89 | content = codec.serialize(input) 90 | if not content: 91 | content = b"{}" 92 | content_length = len(content) 93 | body = SeekableAsyncBytesReader(content) 94 | 95 | headers = Fields( 96 | [ 97 | Field(name="Content-Type", values=["application/json"]), 98 | Field(name="Content-Length", values=[str(content_length)]), 99 | ] 100 | ) 101 | 102 | return _HTTPRequest( 103 | destination=_URI( 104 | host="", 105 | path=path, 106 | scheme="https", 107 | query=query, 108 | ), 109 | method="POST", 110 | fields=headers, 111 | body=body, 112 | ) 113 | 114 | 115 | async def _serialize_converse_stream( 116 | input: ConverseStreamInput, config: Config 117 | ) -> HTTPRequest: 118 | if not input.model_id: 119 | raise ServiceError("model_id must not be empty.") 120 | 121 | path = "/model/{model_id}/converse-stream".format( 122 | model_id=urlquote(input.model_id, safe=""), 123 | ) 124 | query: str = "" 125 | 126 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 127 | codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS) 128 | content = codec.serialize(input) 129 | if not content: 130 | content = b"{}" 131 | content_length = len(content) 132 | body = SeekableAsyncBytesReader(content) 133 | 134 | headers = Fields( 135 | [ 136 | Field(name="Content-Type", values=["application/json"]), 137 | Field(name="Content-Length", values=[str(content_length)]), 138 | ] 139 | ) 140 | 141 | return _HTTPRequest( 142 | destination=_URI( 143 | host="", 144 | path=path, 145 | scheme="https", 146 | query=query, 147 | ), 148 | method="POST", 149 | fields=headers, 150 | body=body, 151 | ) 152 | 153 | 154 | async def _serialize_get_async_invoke( 155 | input: GetAsyncInvokeInput, config: Config 156 | ) -> HTTPRequest: 157 | if not input.invocation_arn: 158 | raise ServiceError("invocation_arn must not be empty.") 159 | 160 | path = "/async-invoke/{invocation_arn}".format( 161 | invocation_arn=urlquote(input.invocation_arn, safe=""), 162 | ) 163 | query: str = "" 164 | 165 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 166 | headers = Fields([]) 167 | 168 | return _HTTPRequest( 169 | destination=_URI( 170 | host="", 171 | path=path, 172 | scheme="https", 173 | query=query, 174 | ), 175 | method="GET", 176 | fields=headers, 177 | body=body, 178 | ) 179 | 180 | 181 | async def _serialize_invoke_model( 182 | input: InvokeModelInput, config: Config 183 | ) -> HTTPRequest: 184 | if not input.model_id: 185 | raise ServiceError("model_id must not be empty.") 186 | 187 | path = "/model/{model_id}/invoke".format( 188 | model_id=urlquote(input.model_id, safe=""), 189 | ) 190 | query: str = "" 191 | 192 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 193 | content_length: int = 0 194 | if input.body is not None: 195 | content_length = len(input.body) 196 | body = SeekableAsyncBytesReader(input.body) 197 | headers = Fields( 198 | [ 199 | Field(name="Content-Type", values=["application/octet-stream"]), 200 | Field(name="Content-Length", values=[str(content_length)]), 201 | ] 202 | ) 203 | 204 | if input.content_type: 205 | headers.extend( 206 | Fields([Field(name="Content-Type", values=[input.content_type])]) 207 | ) 208 | if input.accept: 209 | headers.extend(Fields([Field(name="Accept", values=[input.accept])])) 210 | if input.trace: 211 | headers.extend( 212 | Fields([Field(name="X-Amzn-Bedrock-Trace", values=[input.trace])]) 213 | ) 214 | if input.guardrail_identifier: 215 | headers.extend( 216 | Fields( 217 | [ 218 | Field( 219 | name="X-Amzn-Bedrock-GuardrailIdentifier", 220 | values=[input.guardrail_identifier], 221 | ) 222 | ] 223 | ) 224 | ) 225 | if input.guardrail_version: 226 | headers.extend( 227 | Fields( 228 | [ 229 | Field( 230 | name="X-Amzn-Bedrock-GuardrailVersion", 231 | values=[input.guardrail_version], 232 | ) 233 | ] 234 | ) 235 | ) 236 | if input.performance_config_latency: 237 | headers.extend( 238 | Fields( 239 | [ 240 | Field( 241 | name="X-Amzn-Bedrock-PerformanceConfig-Latency", 242 | values=[input.performance_config_latency], 243 | ) 244 | ] 245 | ) 246 | ) 247 | return _HTTPRequest( 248 | destination=_URI( 249 | host="", 250 | path=path, 251 | scheme="https", 252 | query=query, 253 | ), 254 | method="POST", 255 | fields=headers, 256 | body=body, 257 | ) 258 | 259 | 260 | async def _serialize_invoke_model_with_bidirectional_stream( 261 | input: InvokeModelWithBidirectionalStreamOperationInput, config: Config 262 | ) -> HTTPRequest: 263 | if not input.model_id: 264 | raise ServiceError("model_id must not be empty.") 265 | 266 | path = "/model/{model_id}/invoke-with-bidirectional-stream".format( 267 | model_id=urlquote(input.model_id, safe=""), 268 | ) 269 | query: str = "" 270 | 271 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 272 | body = AsyncBytesProvider() 273 | headers = Fields( 274 | [ 275 | Field(name="Content-Type", values=["application/vnd.amazon.eventstream"]), 276 | Field( 277 | name="X-Amz-Content-SHA256", 278 | values=["STREAMING-AWS4-HMAC-SHA256-EVENTS"], 279 | ), 280 | ] 281 | ) 282 | 283 | return _HTTPRequest( 284 | destination=_URI( 285 | host="", 286 | path=path, 287 | scheme="https", 288 | query=query, 289 | ), 290 | method="POST", 291 | fields=headers, 292 | body=body, 293 | ) 294 | 295 | 296 | async def _serialize_invoke_model_with_response_stream( 297 | input: InvokeModelWithResponseStreamInput, config: Config 298 | ) -> HTTPRequest: 299 | if not input.model_id: 300 | raise ServiceError("model_id must not be empty.") 301 | 302 | path = "/model/{model_id}/invoke-with-response-stream".format( 303 | model_id=urlquote(input.model_id, safe=""), 304 | ) 305 | query: str = "" 306 | 307 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 308 | content_length: int = 0 309 | if input.body is not None: 310 | content_length = len(input.body) 311 | body = SeekableAsyncBytesReader(input.body) 312 | headers = Fields( 313 | [ 314 | Field(name="Content-Type", values=["application/octet-stream"]), 315 | Field(name="Content-Length", values=[str(content_length)]), 316 | ] 317 | ) 318 | 319 | if input.content_type: 320 | headers.extend( 321 | Fields([Field(name="Content-Type", values=[input.content_type])]) 322 | ) 323 | if input.accept: 324 | headers.extend( 325 | Fields([Field(name="X-Amzn-Bedrock-Accept", values=[input.accept])]) 326 | ) 327 | if input.trace: 328 | headers.extend( 329 | Fields([Field(name="X-Amzn-Bedrock-Trace", values=[input.trace])]) 330 | ) 331 | if input.guardrail_identifier: 332 | headers.extend( 333 | Fields( 334 | [ 335 | Field( 336 | name="X-Amzn-Bedrock-GuardrailIdentifier", 337 | values=[input.guardrail_identifier], 338 | ) 339 | ] 340 | ) 341 | ) 342 | if input.guardrail_version: 343 | headers.extend( 344 | Fields( 345 | [ 346 | Field( 347 | name="X-Amzn-Bedrock-GuardrailVersion", 348 | values=[input.guardrail_version], 349 | ) 350 | ] 351 | ) 352 | ) 353 | if input.performance_config_latency: 354 | headers.extend( 355 | Fields( 356 | [ 357 | Field( 358 | name="X-Amzn-Bedrock-PerformanceConfig-Latency", 359 | values=[input.performance_config_latency], 360 | ) 361 | ] 362 | ) 363 | ) 364 | return _HTTPRequest( 365 | destination=_URI( 366 | host="", 367 | path=path, 368 | scheme="https", 369 | query=query, 370 | ), 371 | method="POST", 372 | fields=headers, 373 | body=body, 374 | ) 375 | 376 | 377 | async def _serialize_list_async_invokes( 378 | input: ListAsyncInvokesInput, config: Config 379 | ) -> HTTPRequest: 380 | path = "/async-invoke" 381 | query: str = "" 382 | 383 | query_params: list[tuple[str, str | None]] = [] 384 | if input.submit_time_after is not None: 385 | query_params.append( 386 | ("submitTimeAfter", serialize_rfc3339(ensure_utc(input.submit_time_after))) 387 | ) 388 | if input.submit_time_before is not None: 389 | query_params.append( 390 | ( 391 | "submitTimeBefore", 392 | serialize_rfc3339(ensure_utc(input.submit_time_before)), 393 | ) 394 | ) 395 | if input.status_equals is not None: 396 | query_params.append(("statusEquals", input.status_equals)) 397 | if input.max_results is not None: 398 | query_params.append(("maxResults", str(input.max_results))) 399 | if input.next_token is not None: 400 | query_params.append(("nextToken", input.next_token)) 401 | if input.sort_by is not None: 402 | query_params.append(("sortBy", input.sort_by)) 403 | if input.sort_order is not None: 404 | query_params.append(("sortOrder", input.sort_order)) 405 | 406 | query = join_query_params(params=query_params, prefix=query) 407 | 408 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 409 | headers = Fields([]) 410 | 411 | return _HTTPRequest( 412 | destination=_URI( 413 | host="", 414 | path=path, 415 | scheme="https", 416 | query=query, 417 | ), 418 | method="GET", 419 | fields=headers, 420 | body=body, 421 | ) 422 | 423 | 424 | async def _serialize_start_async_invoke( 425 | input: StartAsyncInvokeInput, config: Config 426 | ) -> HTTPRequest: 427 | path = "/async-invoke" 428 | query: str = "" 429 | 430 | body: AsyncIterable[bytes] = AsyncBytesReader(b"") 431 | codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS) 432 | content = codec.serialize(input) 433 | if not content: 434 | content = b"{}" 435 | content_length = len(content) 436 | body = SeekableAsyncBytesReader(content) 437 | 438 | headers = Fields( 439 | [ 440 | Field(name="Content-Type", values=["application/json"]), 441 | Field(name="Content-Length", values=[str(content_length)]), 442 | ] 443 | ) 444 | 445 | return _HTTPRequest( 446 | destination=_URI( 447 | host="", 448 | path=path, 449 | scheme="https", 450 | query=query, 451 | ), 452 | method="POST", 453 | fields=headers, 454 | body=body, 455 | ) 456 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/user_agent.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor 4 | 5 | from . import __version__ 6 | from .config import Config 7 | 8 | 9 | def aws_user_agent_plugin(config: Config): 10 | config.interceptors.append( 11 | UserAgentInterceptor( 12 | ua_suffix=config.user_agent_extra, 13 | ua_app_id=config.sdk_ua_app_id, 14 | sdk_version=__version__, 15 | service_id="Bedrock_Runtime", 16 | ) 17 | ) 18 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | -------------------------------------------------------------------------------- /clients/aws-sdk-bedrock-runtime/tests/test_protocol.py: -------------------------------------------------------------------------------- 1 | # Code generated by smithy-python-codegen DO NOT EDIT. 2 | 3 | from smithy_core.aio.utils import async_list 4 | from smithy_http import tuples_to_fields 5 | from smithy_http.aio import HTTPResponse as _HTTPResponse 6 | from smithy_http.aio.interfaces import HTTPRequest, HTTPResponse 7 | from smithy_http.interfaces import HTTPClientConfiguration, HTTPRequestConfiguration 8 | 9 | from aws_sdk_bedrock_runtime.models import ServiceError 10 | 11 | 12 | class TestHttpServiceError(ServiceError): 13 | """A test error that subclasses the service-error for protocol tests.""" 14 | 15 | def __init__(self, request: HTTPRequest): 16 | self.request = request 17 | 18 | 19 | class RequestTestHTTPClient: 20 | """An asynchronous HTTP client solely for testing purposes.""" 21 | 22 | def __init__(self, *, client_config: HTTPClientConfiguration | None = None): 23 | self._client_config = client_config 24 | 25 | async def send( 26 | self, 27 | request: HTTPRequest, 28 | *, 29 | request_config: HTTPRequestConfiguration | None = None, 30 | ) -> HTTPResponse: 31 | # Raise the exception with the request object to bypass actual request handling 32 | raise TestHttpServiceError(request) 33 | 34 | 35 | class ResponseTestHTTPClient: 36 | """An asynchronous HTTP client solely for testing purposes.""" 37 | 38 | def __init__( 39 | self, 40 | *, 41 | client_config: HTTPClientConfiguration | None = None, 42 | status: int = 200, 43 | headers: list[tuple[str, str]] | None = None, 44 | body: bytes = b"", 45 | ): 46 | self._client_config = client_config 47 | self.status = status 48 | self.fields = tuples_to_fields(headers or []) 49 | self.body = body 50 | 51 | async def send( 52 | self, 53 | request: HTTPRequest, 54 | *, 55 | request_config: HTTPRequestConfiguration | None = None, 56 | ) -> _HTTPResponse: 57 | # Pre-construct the response from the request and return it 58 | return _HTTPResponse( 59 | status=self.status, 60 | fields=self.fields, 61 | body=async_list([self.body]), 62 | ) 63 | -------------------------------------------------------------------------------- /clients/aws-sdk-python/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | -------------------------------------------------------------------------------- /clients/aws-sdk-python/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | -------------------------------------------------------------------------------- /clients/aws-sdk-python/README.md: -------------------------------------------------------------------------------- 1 | # AWS SDK for Python 2 | 3 | This meta-package allows for installation of either all supported AWS 4 | services similar to boto3 with `aws_sdk_python[all]` or a select subset 5 | of services with `aws_sdk_python[bedrock_runtime,...]`. 6 | -------------------------------------------------------------------------------- /clients/aws-sdk-python/pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "aws-sdk-python" 3 | version = "0.0.1" 4 | description = "Meta-package containing all AWS service clients." 5 | readme = "README.md" 6 | requires-python = ">=3.12" 7 | keywords = ["smithy", "aws_sdk_python", "aws"] 8 | license = {text = "Apache-2.0"} 9 | classifiers = [ 10 | "Development Status :: 2 - Pre-Alpha", 11 | "Intended Audience :: Developers", 12 | "Intended Audience :: System Administrators", 13 | "Natural Language :: English", 14 | "License :: OSI Approved :: Apache Software License", 15 | "Programming Language :: Python", 16 | "Programming Language :: Python :: 3", 17 | "Programming Language :: Python :: 3 :: Only", 18 | "Programming Language :: Python :: 3.12", 19 | "Programming Language :: Python :: 3.13" 20 | ] 21 | dependencies = [] 22 | 23 | [project.optional-dependencies] 24 | all = [ 25 | "aws_sdk_bedrock_runtime", 26 | ] 27 | bedrock_runtime = [ 28 | "aws_sdk_bedrock_runtime", 29 | ] 30 | 31 | [build-system] 32 | requires = ["hatchling"] 33 | build-backend = "hatchling.build" 34 | 35 | [tool.ruff] 36 | src = ["src"] 37 | -------------------------------------------------------------------------------- /clients/aws-sdk-python/src/aws_sdk_python/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | # SPDX-License-Identifier: Apache-2.0 3 | 4 | # TODO: Consider adding relative imports for services from the top level namespace? 5 | -------------------------------------------------------------------------------- /dev-guide/README.md: -------------------------------------------------------------------------------- 1 | ## Experimental Amazon Bedrock Runtime client for Python 2 | [![Apache 2 licensed][apache-badge]][apache-url] 3 | 4 | [apache-badge]: https://img.shields.io/badge/license-APACHE2-blue.svg 5 | [apache-url]: https://github.com/awslabs/aws-sdk-python/blob/main/LICENSE 6 | 7 | This directory contains the Developer Guide for the experimental Amazon 8 | Bedrock Runtime client for Python. 9 | 10 | [Developer Guide](index.md) 11 | 12 | ## Security 13 | 14 | See [CONTRIBUTING](../CONTRIBUTING.md#security-issue-notifications) for more information. 15 | 16 | ## License 17 | 18 | This project is licensed under the Apache-2.0 License. 19 | 20 | -------------------------------------------------------------------------------- /dev-guide/best-practices.md: -------------------------------------------------------------------------------- 1 | # Best practices for using the experimental Amazon Bedrock Runtime client for Python 2 | 3 | The following are best practices for using the experimental Amazon Bedrock Runtime client for Python. 4 | 5 | ## Reuse SDK clients when possible 6 | 7 | Depending on how an SDK client is constructed, creating a new client may result in each client maintaining its own HTTP connection pools, identity caches, and so on. We recommend sharing a client when possible to avoid the overhead of expensive resource creation. 8 | 9 | ## Use virtual environments 10 | 11 | This is a general Python development recommendation, but it's a good one that bears repeating. It's good to use a separate [virtual environment](https://docs.python.org/3/library/venv.html) for every project you work on. This helps to maintain version compatibility with your dependencies without risking breaking other applications using the same libraries and packages. -------------------------------------------------------------------------------- /dev-guide/compliance-validation.md: -------------------------------------------------------------------------------- 1 | # Compliance validation for experimental Amazon Bedrock Runtime client for Python 2 | 3 | To learn whether an AWS service is within the scope of specific compliance programs, see [AWS services in Scope by Compliance Program](https://aws.amazon.com/compliance/services-in-scope/) and choose the compliance program that you are interested in. For general information, see [AWS Compliance Programs](https://aws.amazon.com/compliance/programs/). 4 | 5 | You can download third-party audit reports using AWS Artifact. For more information, see [Downloading Reports in AWS Artifact](https://docs.aws.amazon.com/artifact/latest/ug/downloading-documents.html). 6 | 7 | Your compliance responsibility when using AWS services is determined by the sensitivity of your data, your company's compliance objectives, and applicable laws and regulations. AWS provides the following resources to help with compliance: 8 | + [Security Compliance & Governance](https://aws.amazon.com/solutions/security/security-compliance-governance/) – These solution implementation guides discuss architectural considerations and provide steps for deploying security and compliance features. 9 | + [HIPAA Eligible Services Reference](https://aws.amazon.com/compliance/hipaa-eligible-services-reference/) – Lists HIPAA eligible services. Not all AWS services are HIPAA eligible. 10 | + [AWS Compliance Resources](https://aws.amazon.com/compliance/resources/) – This collection of workbooks and guides might apply to your industry and location. 11 | + [AWS Customer Compliance Guides](https://d1.awsstatic.com/whitepapers/compliance/AWS_Customer_Compliance_Guides.pdf) – Understand the shared responsibility model through the lens of compliance. The guides summarize the best practices for securing AWS services and map the guidance to security controls across multiple frameworks including National Institute of Standards and Technology NIST), Payment Card Industry Security Standards Council PCI), and International Organization for Standardization ISO)). 12 | + [Evaluating Resources with Rules](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) in the *AWS Config Developer Guide* – The AWS Config service assesses how well your resource configurations comply with internal practices, industry guidelines, and regulations. 13 | + [AWS Security Hub](https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html) – This AWS service provides a comprehensive view of your security state within AWS. Security Hub uses security controls to evaluate your AWS resources and to check your compliance against security industry standards and best practices. For a list of supported services and controls, see [Security Hub controls reference](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-controls-reference.html). 14 | + [Amazon GuardDuty](https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html) – This AWS service detects potential threats to your AWS accounts, workloads, containers, and data by monitoring your environment for suspicious and malicious activities. GuardDuty can help you address various compliance requirements, like PCI DSS, by meeting intrusion detection requirements mandated by certain compliance frameworks. 15 | + [AWS Audit Manager](https://docs.aws.amazon.com/audit-manager/latest/userguide/what-is.html) – This AWS service helps you continuously audit your AWS usage to simplify how you manage risk and compliance with regulations and industry standards. -------------------------------------------------------------------------------- /dev-guide/configuring.md: -------------------------------------------------------------------------------- 1 | # Configuring the experimental Amazon Bedrock Runtime client for Python 2 | 3 | Learn how to configure the experimental Amazon Bedrock Runtime client for Python. You must establish how your code authenticates with AWS when you develop with AWS services. You must also set the AWS Region you want to use. 4 | 5 | The [AWS SDKs and Tools Reference Guide](https://docs.aws.amazon.com/sdkref/latest/guide/) also contains other foundational concepts common among many of the AWS SDKs. 6 | 7 | **Topics** 8 | + [AWS Region](region.md) 9 | + [Credential providers](credential-providers.md) 10 | + [Service clients](service-clients.md) -------------------------------------------------------------------------------- /dev-guide/credential-providers.md: -------------------------------------------------------------------------------- 1 | # Using experimental Amazon Bedrock Runtime client for Python credential providers 2 | 3 | To make requests to AWS using the experimental Amazon Bedrock Runtime client for Python, the SDK uses cryptographically-signed credentials issued by AWS. At runtime, the SDK retrieves configuration values for credentials by checking several locations. 4 | 5 | For guided options for getting started on AWS authentication for your project, see [Authentication and access](https://docs.aws.amazon.com/sdkref/latest/guide/access.html) in the *AWS SDKs and Tools Reference Guide*. 6 | 7 | ## Credentials identity resolvers provided by the experimental Amazon Bedrock Runtime client for Python 8 | 9 | `EnvironmentCredentialsResolver` 10 | Resolves credentials found in the environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`. 11 | 12 | `IMDSCredentialsResolver` 13 | Obtains credentials from an Amazon EC2 instance's metadata using the Instance Metadata Service (IMDS). 14 | 15 | `StaticCredentialsResolver` 16 | Uses static credentials specified in the form of an IAM access key ID, secret access key, and possibly a session token. 17 | 18 | For details on AWS credential provider configuration settings, see [Standardized credential providers](https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html) in the *Settings reference* of the *AWS SDKs and Tools Reference Guide*. 19 | 20 | **Note** 21 | Not all credential providers are supported yet by the experimental Amazon Bedrock Runtime client for Python. Only those listed above can be used at this time. 22 | 23 | ## Using a specific credentials identity resolver 24 | 25 | To use a specific credentials identity resolver, set the `aws_credentials_identity_resolver` property on the service client's `Config` object to an instance of the credentials identity resolver class you want to use. The following example specifically uses the `EnvironmentCredentialsResolver()`, which fetches credentials from the standard environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`. 26 | 27 | ``` 28 | service_client = BedrockRuntimeClient( 29 | config=Config( 30 | aws_credentials_identity_resolver=EnvironmentCredentialsResolver(), 31 | region = "us-east-1", 32 | ) 33 | ) 34 | ``` 35 | -------------------------------------------------------------------------------- /dev-guide/data-protection.md: -------------------------------------------------------------------------------- 1 | # Data protection in the experimental Amazon Bedrock Runtime client for Python 2 | 3 | The AWS [shared responsibility model](https://aws.amazon.com/compliance/shared-responsibility-model/) applies to data protection in experimental Amazon Bedrock Runtime client for Python. As described in this model, AWS is responsible for protecting the global infrastructure that runs all of the AWS Cloud. You are responsible for maintaining control over your content that is hosted on this infrastructure. You are also responsible for the security configuration and management tasks for the AWS services that you use. For more information about data privacy, see the [Data Privacy FAQ](https://aws.amazon.com/compliance/data-privacy-faq/). For information about data protection in Europe, see the [AWS Shared Responsibility Model and GDPR](https://aws.amazon.com/blogs/security/the-aws-shared-responsibility-model-and-gdpr/) blog post on the *AWS Security Blog*. 4 | 5 | For data protection purposes, we recommend that you protect AWS account credentials and set up individual users with AWS IAM Identity Center or AWS Identity and Access Management (IAM). That way, each user is given only the permissions necessary to fulfill their job duties. We also recommend that you secure your data in the following ways: 6 | + Use multi-factor authentication (MFA) with each account. 7 | + Use SSL/TLS to communicate with AWS resources. We require TLS 1.2 and recommend TLS 1.3. 8 | + Set up API and user activity logging with AWS CloudTrail. For information about using CloudTrail trails to capture AWS activities, see [Working with CloudTrail trails](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-trails.html) in the *AWS CloudTrail User Guide*. 9 | + Use AWS encryption solutions, along with all default security controls within AWS services. 10 | + Use advanced managed security services such as Amazon Macie, which assists in discovering and securing sensitive data that is stored in Amazon S3. 11 | + If you require FIPS 140-3 validated cryptographic modules when accessing AWS through a command line interface or an API, use a FIPS endpoint. For more information about the available FIPS endpoints, see [Federal Information Processing Standard (FIPS) 140-3](https://aws.amazon.com/compliance/fips/). 12 | 13 | We strongly recommend that you never put confidential or sensitive information, such as your customers' email addresses, into tags or free-form text fields such as a **Name** field. This includes when you work with Amazon Bedrock Runtime client or other AWS services using the console, API, AWS CLI, or AWS SDKs. Any data that you enter into tags or free-form text fields used for names may be used for billing or diagnostic logs. If you provide a URL to an external server, we strongly recommend that you do not include credentials information in the URL to validate your request to that server. 14 | 15 | -------------------------------------------------------------------------------- /dev-guide/disaster-recovery-resiliency.md: -------------------------------------------------------------------------------- 1 | # Resilience in the experimental Amazon Bedrock Runtime client for Python 2 | 3 | The AWS global infrastructure is built around AWS Regions and Availability Zones. AWS Regions provide multiple physically separated and isolated Availability Zones, which are connected with low-latency, high-throughput, and highly redundant networking. With Availability Zones, you can design and operate applications and databases that automatically fail over between zones without interruption. Availability Zones are more highly available, fault tolerant, and scalable than traditional single or multiple data center infrastructures. 4 | 5 | For more information about AWS Regions and Availability Zones, see [AWS Global Infrastructure](https://aws.amazon.com/about-aws/global-infrastructure/). 6 | 7 | In addition to the AWS global infrastructure, Amazon Bedrock Runtime client offers several features to help support your data resiliency and backup needs. -------------------------------------------------------------------------------- /dev-guide/doc-history.md: -------------------------------------------------------------------------------- 1 | # Document history for the experimental Amazon Bedrock Runtime client for Python Developer Guide 2 | 3 | The following table describes the documentation releases for Amazon Bedrock Runtime client. 4 | 5 | | Change | Description | Date | 6 | | --- |--- |--- | 7 | | [Initial release](#doc-history) | Initial release of the experimental Amazon Bedrock Runtime client for Python Developer Guide | April 8, 2025 | -------------------------------------------------------------------------------- /dev-guide/getting-started.md: -------------------------------------------------------------------------------- 1 | # Getting started with the experimental Amazon Bedrock Runtime client for Python 2 | 3 | Learn how to install, set up, and use the SDK to create an application to that uses Amazon Bedrock Runtime to programmatically access an AWS resource. 4 | 5 | **Important** 6 | To use the experimental Amazon Bedrock Runtime client for Python, the user needs to have both Amazon Bedrock Runtime access and permission to use the desired model or models. See [Getting Started with Amazon Bedrock](https://docs.aws.amazon.com/https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started.html) for details. 7 | 8 | **Topics** 9 | + [Installing](installing.md) 10 | + [Creating a simple application](simple-app.md) -------------------------------------------------------------------------------- /dev-guide/index.md: -------------------------------------------------------------------------------- 1 | # Experimental Amazon Bedrock Runtime client for Python Developer Guide 2 | 3 | ----- 4 | *****Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.***** 5 | 6 | ----- 7 | Amazon's trademarks and trade dress may not be used in 8 | connection with any product or service that is not Amazon's, 9 | in any manner that is likely to cause confusion among customers, 10 | or in any manner that disparages or discredits Amazon. All other 11 | trademarks not owned by Amazon are the property of their respective 12 | owners, who may or may not be affiliated with, connected to, or 13 | sponsored by Amazon. 14 | 15 | ----- 16 | ## Contents 17 | + [What is the experimental Amazon Bedrock Runtime client for Python?](what-is-the-python-sdk.md) 18 | + [Getting started with the experimental Amazon Bedrock Runtime client for Python](getting-started.md) 19 | + [Installing the experimental Amazon Bedrock Runtime client for Python](installing.md) 20 | + [Creating a simple application using the experimental Amazon Bedrock Runtime client for Python](simple-app.md) 21 | + [Configuring the experimental Amazon Bedrock Runtime client for Python](configuring.md) 22 | + [Setting the AWS Region for the experimental Amazon Bedrock Runtime client for Python](region.md) 23 | + [Using experimental Amazon Bedrock Runtime client for Python credential providers](credential-providers.md) 24 | + [Creating service clients in the experimental Amazon Bedrock Runtime client for Python](service-clients.md) 25 | + [Using the experimental Amazon Bedrock Runtime client for Python](using.md) 26 | + [Best practices for using the experimental Amazon Bedrock Runtime client for Python](best-practices.md) 27 | + [Security in experimental Amazon Bedrock Runtime client for Python](security.md) 28 | + [Data protection in the experimental Amazon Bedrock Runtime client for Python](data-protection.md) 29 | + [Compliance validation for experimental Amazon Bedrock Runtime client for Python](compliance-validation.md) 30 | + [Resilience in the experimental Amazon Bedrock Runtime client for Python](disaster-recovery-resiliency.md) 31 | + [Document history for the experimental Amazon Bedrock Runtime client for Python Developer Guide](doc-history.md) -------------------------------------------------------------------------------- /dev-guide/installing.md: -------------------------------------------------------------------------------- 1 | # Installing the experimental Amazon Bedrock Runtime client for Python 2 | 3 | ## Prerequisites 4 | 5 | To use the experimental Amazon Bedrock Runtime client for Python, you first 6 | need a supported version of [Python](https://www.python.org/downloads/). The client requires Python 3.12 or later. 7 | 8 | ## Set up a virtual environment 9 | 10 | Once you have a supported version of Python installed, you should set up your workspace by creating a virtual environment and activating it: 11 | 12 | ``` 13 | $ python -m venv .venv 14 | ... 15 | $ source .venv/bin/activate 16 | ``` 17 | 18 | This provides an isolated space for your installation that will avoid unexpected interactions with packages installed at the system level. Skipping this step may result in unexpected dependency conflicts or failures with other tools installed on your system. 19 | 20 | ## Installing the experimental Amazon Bedrock Runtime client for Python 21 | 22 | To add the SDK to your Python project, use the pip tool to install each service package into your environment. For example, to install support for the Amazon Bedrock Runtime, use the following command: 23 | 24 | ``` 25 | $ python -m pip install aws-sdk-bedrock-runtime 26 | ``` 27 | 28 | This will install into your environment the experimental Amazon Bedrock Runtime client for Python package(s) you specify, as well as their dependencies, including `[smithy-python](https://github.com/smithy-lang/smithy-python)`. 29 | 30 | If your project requires a specific version of the Amazon Bedrock Runtime client, you may wish to provide constraints when installing the package: 31 | 32 | ``` 33 | $ # Install experimental Amazon Bedrock Runtime client for Python version 0.0.1 specifically 34 | $ python -m pip install aws-sdk-bedrock-runtime==0.0.1 35 | 36 | $ # Make sure the experimental Amazon Bedrock Runtime client for Python is no older than version 0.0.2 37 | $ pip install aws-sdk-bedrock-runtime>=0.0.2 38 | 39 | $ # Avoid versions of the experimental Amazon Bedrock Runtime client for Python newer than version 0.0.3 40 | $ pip install aws-sdk-bedrock-runtime<=0.0.3 41 | ``` 42 | 43 | As long as the Amazon Bedrock Runtime client for Python is experimental, you may wish to pin to a specific version of the client, or to versions up to and including a specific version, in order to prevent updating to a version that isn't compatible with your application. -------------------------------------------------------------------------------- /dev-guide/region.md: -------------------------------------------------------------------------------- 1 | # Setting the AWS Region for the experimental Amazon Bedrock Runtime client for Python 2 | 3 | You can access AWS services that operate in a specific geographic area by using AWS Regions. This can be useful both for redundancy and to keep your data and applications running close to where you and your users access them. For more information on how Regions are used, see [AWS Region](https://docs.aws.amazon.com/sdkref/latest/guide/feature-region.html) in the *AWS SDKs and Tools Reference Guide*. 4 | 5 | **Important** 6 | Most resources reside in a specific AWS Region and you must supply the correct Region for the resource when using the SDK. 7 | 8 | ## Specifying the region inline 9 | 10 | The Region is specified by setting the `region` property of the `Config` object to a string giving the name of the Region. For example, to specify the region `us-east-1` when creating an Amazon Bedrock Runtime client: 11 | 12 | ``` 13 | service_client = BedrockRuntimeClient( 14 | config=Config( 15 | aws_credentials_identity_resolver=EnvironmentCredentialsResolver(), 16 | region = "us-east-1", 17 | ) 18 | ) 19 | ``` 20 | 21 | **Note** 22 | Not all Amazon Bedrock foundation models are available in all Regions. See [Model support by AWS Region in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/models-regions.html) for model compatibility information. 23 | 24 | ## Getting the region from the environment 25 | 26 | The experimental Amazon Bedrock Runtime client for Python does not currently support automatically retrieving the value of the `AWS_REGION` environment variable. To make your application use this variable to specify the Region in which to operate, you can add code similar to the following to your project: 27 | 28 | ``` 29 | import os 30 | 31 | ... 32 | region = os.getenv('AWS_REGION', default="us-east-1") 33 | 34 | service_client = BedrockRuntimeClient( 35 | config=Config( 36 | aws_credentials_identity_resolver=EnvironmentCredentialsResolver(), 37 | region = region, 38 | ) 39 | ) 40 | ``` 41 | 42 | This uses the value of `AWS_REGION`, falling back to `us-east-1` if the variable isn't found in the environment. 43 | -------------------------------------------------------------------------------- /dev-guide/security.md: -------------------------------------------------------------------------------- 1 | # Security in experimental Amazon Bedrock Runtime client for Python 2 | 3 | Cloud security at AWS is the highest priority. As an AWS customer, you benefit from data centers and network architectures that are built to meet the requirements of the most security-sensitive organizations. 4 | 5 | Security is a shared responsibility between AWS and you. The [shared responsibility model](https://aws.amazon.com/compliance/shared-responsibility-model/) describes this as security *of* the cloud and security *in* the cloud: 6 | + **Security of the cloud** – AWS is responsible for protecting the infrastructure that runs AWS services in the AWS Cloud. AWS also provides you with services that you can use securely. Third-party auditors regularly test and verify the effectiveness of our security as part of the [AWS Compliance Programs](https://aws.amazon.com/compliance/programs/). To learn about the compliance programs that apply to the experimental Amazon Bedrock Runtime client for Python, see [AWS Services in Scope by Compliance Program](https://aws.amazon.com/compliance/services-in-scope/). 7 | + **Security in the cloud** – Your responsibility is determined by the AWS service that you use. You are also responsible for other factors including the sensitivity of your data, your company’s requirements, and applicable laws and regulations. 8 | 9 | This documentation helps you understand how to apply the shared responsibility model when using the experimental Amazon Bedrock Runtime client for Python. The following topics show you how to configure the Amazon Bedrock Runtime client to meet your security and compliance objectives. You also learn how to use other AWS services that help you to monitor and secure your Amazon Bedrock Runtime client resources. 10 | 11 | **Topics** 12 | + [Data protection in the experimental Amazon Bedrock Runtime client for Python](data-protection.md) 13 | + [Compliance validation for experimental Amazon Bedrock Runtime client for Python](compliance-validation.md) 14 | + [Resilience in the experimental Amazon Bedrock Runtime client for Python](disaster-recovery-resiliency.md) -------------------------------------------------------------------------------- /dev-guide/service-clients.md: -------------------------------------------------------------------------------- 1 | # Creating service clients in the experimental Amazon Bedrock Runtime client for Python 2 | 3 | To make a request to an AWS service, you first instantiate a client for that service. You can configure common settings for service clients such as timeouts, the HTTP client, and retry configuration. To create a client for Amazon Bedrock Runtime: 4 | 5 | ``` 6 | service_client = BedrockRuntimeClient( 7 | config=Config( 8 | aws_credentials_identity_resolver=EnvironmentCredentialsResolver(), 9 | region = "us-east-1", 10 | ) 11 | ) 12 | ``` 13 | 14 | Each service client requires an AWS Region and a credential provider. The SDK uses these values to send requests to the correct Region for your resources and to sign requests with the correct credentials. You can specify these values programmatically in code or have them automatically loaded from the environment. 15 | 16 | The SDK has a series of places (or sources) that it checks in order to find a value for configuration settings. 17 | 18 | 1. Any explicit setting set in the code or on a service client itself takes precedence over anything else. 19 | 20 | 1. Environment variables 21 | + **Note: **At this time, environment variables are only used to obtain credentials using the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN` variables. 22 | + For details on setting environment variables, see [environment variables](https://docs.aws.amazon.com/sdkref/latest/guide/environment-variables.html) in the *AWS SDKs and Tools Reference Guide*. 23 | 24 | 1. Any default value provided by the SDK source code itself is used last. 25 | + Some properties, such as Region, don't have a default. You must specify them either explicitly in code or in an environment setting. If the SDK can't resolve required configuration, API requests can fail at runtime. 26 | -------------------------------------------------------------------------------- /dev-guide/simple-app.md: -------------------------------------------------------------------------------- 1 | # Creating a simple application using the experimental Amazon Bedrock Runtime client for Python 2 | 3 | This chapter features a short example that asks the Amazon Titan Text Express generative AI model a simple question, then outputs the response. For more details about using Amazon Bedrock Runtime in this way, see [Carry out a conversation with the Converse API operations](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html) in the [Amazon Bedrock user guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html). 4 | 5 | ## Importing the SDK 6 | 7 | The first thing our program does is import the service and the types we need from it: 8 | 9 | ``` 10 | from aws_sdk_bedrock_runtime.client import BedrockRuntimeClient, ConverseInput 11 | from aws_sdk_bedrock_runtime.models import Message, ContentBlockText, StopReason 12 | from aws_sdk_bedrock_runtime.config import Config 13 | 14 | from smithy_aws_core.credentials_resolvers.environment import EnvironmentCredentialsResolver 15 | 16 | import asyncio 17 | ``` 18 | 19 | This imports the following from the Bedrock client: 20 | 21 | 1. `BedrockRuntimeClient`, which is the class representing the Amazon Bedrock Runtime client. 22 | 23 | 1. The `ConverseInput` class, which is used to specify the input values when calling the client's `converse()` function. 24 | 25 | The following are imported from the service's models: 26 | 27 | 1. The `Message` class, which describes the contents of a single message sent between the application and Amazon Bedrock Runtime. 28 | 29 | 1. The `ContentBlockText` class, which describes a block of a message's textual content. 30 | 31 | 1. The `StopReason` type, which is an enum of values defining the reason why the Amazon Bedrock Runtime service stopped sending data back to the application. 32 | 33 | The `Config` type is imported. This is used to specify settings when creating a Amazon Bedrock Runtime client. 34 | 35 | From Smithy, the `EnvironmentCredentialsResolver` class is imported. This is a credential resolver that uses the standard AWS environment variables to specify [access keys in environment variables](https://docs.aws.amazon.com/sdkref/latest/guide/access-users.html). 36 | 37 | Also imported is the `asyncio` package, which is used to manage the asynchronous I/O used by the application. 38 | 39 | ## Creating the Amazon Bedrock Runtime client 40 | 41 | To create the Amazon Bedrock Runtime client, create a `BedrockRuntimeClient` instance using a `Config` object providing the AWS Region to use. In this example, a credentials identity resolver is provided that uses the standard AWS [access keys in environment variables](https://docs.aws.amazon.com/sdkref/latest/guide/access-users.html) are used to specify credentials. 42 | 43 | ``` 44 | def get_service_client(): 45 | service_client = BedrockRuntimeClient( 46 | config=Config( 47 | aws_credentials_identity_resolver=EnvironmentCredentialsResolver(), 48 | region = "us-east-1", 49 | ) 50 | ) 51 | return service_client 52 | ``` 53 | 54 | ## Creating the request messages 55 | 56 | Then construct an array of `Message` objects which describe the query you wish Amazon Bedrock Runtime to process. 57 | 58 | ``` 59 | def create_messages(): 60 | message_1 = Message( 61 | role="user", 62 | content=[ 63 | ContentBlockText( 64 | value="Create a list of 3 of the best songs from the 1980s." 65 | ) 66 | ] 67 | ) 68 | return [message_1] 69 | ``` 70 | 71 | ## Sending the messages to Amazon Bedrock Runtime 72 | 73 | Then send the messages to the Amazon Bedrock Runtime service by calling the client's `converse()` function, specifying in its `ConverseInput` which model to use when processing the request. 74 | 75 | ``` 76 | async def send_messages(service_client, messages): 77 | try: 78 | response = await service_client.converse( 79 | ConverseInput( 80 | model_id='amazon.titan-text-express-v1', messages=messages 81 | ) 82 | ) 83 | except: 84 | print("An error occurred while conversing!") 85 | return 86 | 87 | # Get the `ConverseOutput` object from the `ConverseOperationOutput`. This 88 | # is a `ConverseOutputMessage` unless an unexpected response arrives. 89 | output = response.output 90 | 91 | # Check the reason why the operation ended. 92 | stop_reason = response.stop_reason 93 | 94 | match stop_reason: 95 | case StopReason.GUARDRAIL_INTERVENED: 96 | print("A guardrail intervened in the response.") 97 | case StopReason.CONTENT_FILTERED: 98 | print("The content was filtered.") 99 | case StopReason.MAX_TOKENS: 100 | print("You ran out of tokens.") 101 | case _: 102 | pass 103 | 104 | return output 105 | ``` 106 | 107 | Once the response is received, this code also checks the reason why the response stops where it does, and outputs an appropriate message for some specific cases of interest, such as running out of tokens. The response's `output` is returned; this is of type `ConverseOutput`, which resolves to `ConverseOutputMessage` if nothing went wrong. 108 | 109 | ## Outputting the results 110 | 111 | Once the response has been received, the reply can be output to the user. 112 | 113 | ``` 114 | def output_reply(output): 115 | # Get the `Message` from the `ConverseOutputMessage` object. 116 | output_msg = output.value 117 | 118 | # Get the content of the message from its `content` property. This is 119 | # an array of `ContentBlock` objects, each representing a piece of the 120 | # response. 121 | msg_contents = output_msg.content 122 | 123 | # Output the returned text by printing the value of each 124 | # `ContentBlockText` object found in the `msg_contents` array. 125 | for msg_block in msg_contents: 126 | if isinstance(msg_block, ContentBlockText): 127 | print(msg_block.value) 128 | else: 129 | print("Unexpected type of response.") 130 | ``` 131 | 132 | In this example, all of the returned blocks of type `ContentBlockText` are output, in order to display the text portion of the response. Any other type of block results in the message "Unexpected type of response." 133 | 134 | ## Wrapping up the application 135 | 136 | The application body is a short function that just calls each of the above in order. 137 | 138 | ``` 139 | async def app_run(): 140 | service_client = get_service_client() 141 | messages = create_messages() 142 | output = await send_messages(service_client, messages) 143 | 144 | if output: 145 | output_reply(output) 146 | 147 | if __name__ == "__main__": 148 | asyncio.run(app_run()) 149 | ``` 150 | -------------------------------------------------------------------------------- /dev-guide/using.md: -------------------------------------------------------------------------------- 1 | # Using the experimental Amazon Bedrock Runtime client for Python 2 | 3 | Learn common and recommended ways of programming with the experimental Amazon Bedrock Runtime client for Python in your applications. 4 | 5 | **Topics** 6 | + [Best practices](best-practices.md) -------------------------------------------------------------------------------- /dev-guide/what-is-the-python-sdk.md: -------------------------------------------------------------------------------- 1 | # What is the experimental Amazon Bedrock Runtime client for Python? 2 | 3 | Welcome to the experimental Amazon Bedrock Runtime client for Python, a new [Smithy](https://smithy.io/)-based SDK that lets Python developers create applications that use Amazon Bedrock Runtime. 4 | 5 | **Important** 6 | The experimental Amazon Bedrock Runtime client for Python is an experimental async Python SDK that allows developers to take advantage of Amazon Bedrock Runtime. It is currently in early stages of development. **There are likely to be breaking changes** during this phase of the SDK's development. 7 | 8 | **Note** 9 | Currently, the only service supported by this package is Amazon Bedrock Runtime. To access other services, use the current AWS SDK for Python, [Boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/index.html). 10 | You can use Boto3 and the experimental Amazon Bedrock Runtime client for Python together to create comprehensive Python applications that access AWS services. 11 | 12 | **Topics** 13 | + [Get started with the SDK](#first-time-user) 14 | + [Additional resources](#additional-resources) 15 | 16 | ## Get started with the SDK 17 | 18 | If you are a first-time user of the experimental Amazon Bedrock Runtime client for Python, we recommend that you begin by reading the following sections: 19 | + To get started using the SDK, follow the tutorial in [Getting started with the experimental Amazon Bedrock Runtime client for Python](getting-started.md). 20 | + To set up your development environment, see [Installing the experimental Amazon Bedrock Runtime client for Python](installing.md). 21 | + To create and configure service clients for making requests to AWS services, see [Configuring the experimental Amazon Bedrock Runtime client for Python](configuring.md). For information on the features offered by the SDK and how to use them, see [Using the experimental Amazon Bedrock Runtime client for Python](using.md). 22 | 23 | ## Additional resources 24 | 25 | In addition to this guide, the following are valuable online resources for experimental Amazon Bedrock Runtime client for Python developers. 26 | + The experimental Amazon Bedrock Runtime client for Python API Reference (link forthcoming) 27 | + [Amazon Bedrock Runtime API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Amazon_Bedrock_Runtime.html) --------------------------------------------------------------------------------