Bedrock module#
Index > Bedrock
Auto-generated documentation for Bedrock type annotations stubs module types-boto3-bedrock.
How to install#
Generate locally (recommended)#
You can generate type annotations for boto3
package locally with mypy_boto3_builder
.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'boto3==1.35.86' mypy_boto3_builder
- Select
boto3
AWS SDK. - Add
Bedrock
service. - Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and Bedrock
.
From PyPI with pip#
Install types-boto3
for Bedrock
service.
# install with boto3 type annotations
python -m pip install 'types-boto3[bedrock]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-boto3-lite[bedrock]'
# standalone installation
python -m pip install types-boto3-bedrock
How to uninstall#
python -m pip uninstall -y types-boto3-bedrock
Usage#
Code samples can be found in Examples.
BedrockClient#
Type annotations and code completion for boto3.client("bedrock")
as BedrockClient
boto3 documentation
# BedrockClient usage example
from boto3.session import Session
from types_boto3_bedrock.client import BedrockClient
def get_client() -> BedrockClient:
return Session().client("bedrock")
Paginators#
Type annotations and code completion for paginators
from boto3.client("bedrock").get_paginator("...")
.
# ListCustomModelsPaginator usage example
from boto3.session import Session
from types_boto3_bedrock.paginator import ListCustomModelsPaginator
def get_list_custom_models_paginator() -> ListCustomModelsPaginator:
return Session().client("bedrock").get_paginator("list_custom_models"))
- ListCustomModelsPaginator
- ListEvaluationJobsPaginator
- ListGuardrailsPaginator
- ListImportedModelsPaginator
- ListInferenceProfilesPaginator
- ListMarketplaceModelEndpointsPaginator
- ListModelCopyJobsPaginator
- ListModelCustomizationJobsPaginator
- ListModelImportJobsPaginator
- ListModelInvocationJobsPaginator
- ListPromptRoutersPaginator
- ListProvisionedModelThroughputsPaginator
Literals#
Type annotations for literals used in methods and schema.
# ApplicationTypeType usage example
from types_boto3_bedrock.literals import ApplicationTypeType
def get_value() -> ApplicationTypeType:
return "ModelEvaluation"
- ApplicationTypeType
- CommitmentDurationType
- CustomizationTypeType
- EvaluationJobStatusType
- EvaluationJobTypeType
- EvaluationTaskTypeType
- ExternalSourceTypeType
- FineTuningJobStatusType
- FoundationModelLifecycleStatusType
- GuardrailContentFilterTypeType
- GuardrailContextualGroundingFilterTypeType
- GuardrailFilterStrengthType
- GuardrailManagedWordsTypeType
- GuardrailModalityType
- GuardrailPiiEntityTypeType
- GuardrailSensitiveInformationActionType
- GuardrailStatusType
- GuardrailTopicTypeType
- InferenceProfileStatusType
- InferenceProfileTypeType
- InferenceTypeType
- ListCustomModelsPaginatorName
- ListEvaluationJobsPaginatorName
- ListGuardrailsPaginatorName
- ListImportedModelsPaginatorName
- ListInferenceProfilesPaginatorName
- ListMarketplaceModelEndpointsPaginatorName
- ListModelCopyJobsPaginatorName
- ListModelCustomizationJobsPaginatorName
- ListModelImportJobsPaginatorName
- ListModelInvocationJobsPaginatorName
- ListPromptRoutersPaginatorName
- ListProvisionedModelThroughputsPaginatorName
- ModelCopyJobStatusType
- ModelCustomizationJobStatusType
- ModelCustomizationType
- ModelImportJobStatusType
- ModelInvocationJobStatusType
- ModelModalityType
- PromptRouterStatusType
- PromptRouterTypeType
- ProvisionedModelStatusType
- QueryTransformationTypeType
- RetrieveAndGenerateTypeType
- S3InputFormatType
- SearchTypeType
- SortByProvisionedModelsType
- SortJobsByType
- SortModelsByType
- SortOrderType
- StatusType
- BedrockServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- BatchDeleteEvaluationJobErrorTypeDef
- BatchDeleteEvaluationJobItemTypeDef
- BatchDeleteEvaluationJobRequestRequestTypeDef
- ResponseMetadataTypeDef
- BedrockEvaluatorModelTypeDef
- BlobTypeDef
- ByteContentDocOutputTypeDef
- S3ConfigTypeDef
- EvaluationOutputDataConfigTypeDef
- TagTypeDef
- CreateGuardrailVersionRequestRequestTypeDef
- InferenceProfileModelSourceTypeDef
- OutputDataConfigTypeDef
- VpcConfigTypeDef
- CustomModelSummaryTypeDef
- DeleteCustomModelRequestRequestTypeDef
- DeleteGuardrailRequestRequestTypeDef
- DeleteImportedModelRequestRequestTypeDef
- DeleteInferenceProfileRequestRequestTypeDef
- DeleteMarketplaceModelEndpointRequestRequestTypeDef
- DeleteProvisionedModelThroughputRequestRequestTypeDef
- DeregisterMarketplaceModelEndpointRequestRequestTypeDef
- TeacherModelConfigTypeDef
- EvaluationBedrockModelTypeDef
- EvaluationDatasetLocationTypeDef
- EvaluationSummaryTypeDef
- S3ObjectDocTypeDef
- GuardrailConfigurationTypeDef
- PromptTemplateTypeDef
- FilterAttributeOutputTypeDef
- FilterAttributeTypeDef
- FoundationModelLifecycleTypeDef
- GetCustomModelRequestRequestTypeDef
- TrainingMetricsTypeDef
- ValidatorMetricTypeDef
- GetEvaluationJobRequestRequestTypeDef
- GetFoundationModelRequestRequestTypeDef
- GetGuardrailRequestRequestTypeDef
- GetImportedModelRequestRequestTypeDef
- GetInferenceProfileRequestRequestTypeDef
- InferenceProfileModelTypeDef
- GetMarketplaceModelEndpointRequestRequestTypeDef
- GetModelCopyJobRequestRequestTypeDef
- GetModelCustomizationJobRequestRequestTypeDef
- VpcConfigOutputTypeDef
- GetModelImportJobRequestRequestTypeDef
- GetModelInvocationJobRequestRequestTypeDef
- GetPromptRouterRequestRequestTypeDef
- PromptRouterTargetModelTypeDef
- RoutingCriteriaTypeDef
- GetProvisionedModelThroughputRequestRequestTypeDef
- GuardrailContentFilterConfigTypeDef
- GuardrailContentFilterTypeDef
- GuardrailContextualGroundingFilterConfigTypeDef
- GuardrailContextualGroundingFilterTypeDef
- GuardrailManagedWordsConfigTypeDef
- GuardrailManagedWordsTypeDef
- GuardrailPiiEntityConfigTypeDef
- GuardrailPiiEntityTypeDef
- GuardrailRegexConfigTypeDef
- GuardrailRegexTypeDef
- GuardrailSummaryTypeDef
- GuardrailTopicConfigTypeDef
- GuardrailTopicTypeDef
- GuardrailWordConfigTypeDef
- GuardrailWordTypeDef
- HumanEvaluationCustomMetricTypeDef
- HumanWorkflowConfigTypeDef
- ImportedModelSummaryTypeDef
- InvocationLogSourceTypeDef
- TextInferenceConfigOutputTypeDef
- PaginatorConfigTypeDef
- TimestampTypeDef
- ListFoundationModelsRequestRequestTypeDef
- ListGuardrailsRequestRequestTypeDef
- ListInferenceProfilesRequestRequestTypeDef
- ListMarketplaceModelEndpointsRequestRequestTypeDef
- MarketplaceModelEndpointSummaryTypeDef
- ModelCustomizationJobSummaryTypeDef
- ModelImportJobSummaryTypeDef
- ListPromptRoutersRequestRequestTypeDef
- ProvisionedModelSummaryTypeDef
- ListTagsForResourceRequestRequestTypeDef
- S3DataSourceTypeDef
- ModelInvocationJobS3InputDataConfigTypeDef
- ModelInvocationJobS3OutputDataConfigTypeDef
- QueryTransformationConfigurationTypeDef
- RegisterMarketplaceModelEndpointRequestRequestTypeDef
- RequestMetadataBaseFiltersOutputTypeDef
- RequestMetadataBaseFiltersTypeDef
- StopEvaluationJobRequestRequestTypeDef
- StopModelCustomizationJobRequestRequestTypeDef
- StopModelInvocationJobRequestRequestTypeDef
- TextInferenceConfigTypeDef
- UntagResourceRequestRequestTypeDef
- UpdateProvisionedModelThroughputRequestRequestTypeDef
- ValidatorTypeDef
- BatchDeleteEvaluationJobResponseTypeDef
- CreateEvaluationJobResponseTypeDef
- CreateGuardrailResponseTypeDef
- CreateGuardrailVersionResponseTypeDef
- CreateInferenceProfileResponseTypeDef
- CreateModelCopyJobResponseTypeDef
- CreateModelCustomizationJobResponseTypeDef
- CreateModelImportJobResponseTypeDef
- CreateModelInvocationJobResponseTypeDef
- CreateProvisionedModelThroughputResponseTypeDef
- GetProvisionedModelThroughputResponseTypeDef
- UpdateGuardrailResponseTypeDef
- EvaluatorModelConfigOutputTypeDef
- EvaluatorModelConfigTypeDef
- ByteContentDocTypeDef
- CloudWatchConfigTypeDef
- CreateModelCopyJobRequestRequestTypeDef
- CreateProvisionedModelThroughputRequestRequestTypeDef
- GetModelCopyJobResponseTypeDef
- ListTagsForResourceResponseTypeDef
- ModelCopyJobSummaryTypeDef
- TagResourceRequestRequestTypeDef
- CreateInferenceProfileRequestRequestTypeDef
- ListCustomModelsResponseTypeDef
- DistillationConfigTypeDef
- EvaluationModelConfigTypeDef
- EvaluationDatasetTypeDef
- ListEvaluationJobsResponseTypeDef
- ExternalSourceOutputTypeDef
- RetrievalFilterOutputTypeDef
- FilterAttributeUnionTypeDef
- FoundationModelDetailsTypeDef
- FoundationModelSummaryTypeDef
- GetInferenceProfileResponseTypeDef
- InferenceProfileSummaryTypeDef
- SageMakerEndpointOutputTypeDef
- VpcConfigUnionTypeDef
- GetPromptRouterResponseTypeDef
- PromptRouterSummaryTypeDef
- GuardrailContentPolicyConfigTypeDef
- GuardrailContentPolicyTypeDef
- GuardrailContextualGroundingPolicyConfigTypeDef
- GuardrailContextualGroundingPolicyTypeDef
- GuardrailSensitiveInformationPolicyConfigTypeDef
- GuardrailSensitiveInformationPolicyTypeDef
- ListGuardrailsResponseTypeDef
- GuardrailTopicPolicyConfigTypeDef
- GuardrailTopicPolicyTypeDef
- GuardrailWordPolicyConfigTypeDef
- GuardrailWordPolicyTypeDef
- ListImportedModelsResponseTypeDef
- KbInferenceConfigOutputTypeDef
- ListGuardrailsRequestPaginateTypeDef
- ListInferenceProfilesRequestPaginateTypeDef
- ListMarketplaceModelEndpointsRequestPaginateTypeDef
- ListPromptRoutersRequestPaginateTypeDef
- ListCustomModelsRequestPaginateTypeDef
- ListCustomModelsRequestRequestTypeDef
- ListEvaluationJobsRequestPaginateTypeDef
- ListEvaluationJobsRequestRequestTypeDef
- ListImportedModelsRequestPaginateTypeDef
- ListImportedModelsRequestRequestTypeDef
- ListModelCopyJobsRequestPaginateTypeDef
- ListModelCopyJobsRequestRequestTypeDef
- ListModelCustomizationJobsRequestPaginateTypeDef
- ListModelCustomizationJobsRequestRequestTypeDef
- ListModelImportJobsRequestPaginateTypeDef
- ListModelImportJobsRequestRequestTypeDef
- ListModelInvocationJobsRequestPaginateTypeDef
- ListModelInvocationJobsRequestRequestTypeDef
- ListProvisionedModelThroughputsRequestPaginateTypeDef
- ListProvisionedModelThroughputsRequestRequestTypeDef
- ListMarketplaceModelEndpointsResponseTypeDef
- ListModelCustomizationJobsResponseTypeDef
- ListModelImportJobsResponseTypeDef
- ListProvisionedModelThroughputsResponseTypeDef
- ModelDataSourceTypeDef
- ModelInvocationJobInputDataConfigTypeDef
- ModelInvocationJobOutputDataConfigTypeDef
- OrchestrationConfigurationTypeDef
- RequestMetadataFiltersOutputTypeDef
- RequestMetadataBaseFiltersUnionTypeDef
- TextInferenceConfigUnionTypeDef
- ValidationDataConfigOutputTypeDef
- ValidationDataConfigTypeDef
- EvaluatorModelConfigUnionTypeDef
- ByteContentDocUnionTypeDef
- LoggingConfigTypeDef
- ListModelCopyJobsResponseTypeDef
- CustomizationConfigTypeDef
- EvaluationDatasetMetricConfigOutputTypeDef
- EvaluationDatasetMetricConfigTypeDef
- KnowledgeBaseVectorSearchConfigurationOutputTypeDef
- RetrievalFilterTypeDef
- GetFoundationModelResponseTypeDef
- ListFoundationModelsResponseTypeDef
- ListInferenceProfilesResponseTypeDef
- EndpointConfigOutputTypeDef
- SageMakerEndpointTypeDef
- ListPromptRoutersResponseTypeDef
- CreateGuardrailRequestRequestTypeDef
- UpdateGuardrailRequestRequestTypeDef
- GetGuardrailResponseTypeDef
- ExternalSourcesGenerationConfigurationOutputTypeDef
- GenerationConfigurationOutputTypeDef
- CreateModelImportJobRequestRequestTypeDef
- GetImportedModelResponseTypeDef
- GetModelImportJobResponseTypeDef
- CreateModelInvocationJobRequestRequestTypeDef
- GetModelInvocationJobResponseTypeDef
- ModelInvocationJobSummaryTypeDef
- InvocationLogsConfigOutputTypeDef
- RequestMetadataFiltersTypeDef
- KbInferenceConfigTypeDef
- ExternalSourceTypeDef
- GetModelInvocationLoggingConfigurationResponseTypeDef
- PutModelInvocationLoggingConfigurationRequestRequestTypeDef
- AutomatedEvaluationConfigOutputTypeDef
- HumanEvaluationConfigOutputTypeDef
- AutomatedEvaluationConfigTypeDef
- EvaluationDatasetMetricConfigUnionTypeDef
- KnowledgeBaseRetrievalConfigurationOutputTypeDef
- RetrievalFilterUnionTypeDef
- MarketplaceModelEndpointTypeDef
- SageMakerEndpointUnionTypeDef
- ExternalSourcesRetrieveAndGenerateConfigurationOutputTypeDef
- ListModelInvocationJobsResponseTypeDef
- TrainingDataConfigOutputTypeDef
- RequestMetadataFiltersUnionTypeDef
- KbInferenceConfigUnionTypeDef
- ExternalSourceUnionTypeDef
- EvaluationConfigOutputTypeDef
- AutomatedEvaluationConfigUnionTypeDef
- HumanEvaluationConfigTypeDef
- KnowledgeBaseRetrieveAndGenerateConfigurationOutputTypeDef
- RetrieveConfigOutputTypeDef
- KnowledgeBaseVectorSearchConfigurationTypeDef
- CreateMarketplaceModelEndpointResponseTypeDef
- GetMarketplaceModelEndpointResponseTypeDef
- RegisterMarketplaceModelEndpointResponseTypeDef
- UpdateMarketplaceModelEndpointResponseTypeDef
- EndpointConfigTypeDef
- GetCustomModelResponseTypeDef
- GetModelCustomizationJobResponseTypeDef
- InvocationLogsConfigTypeDef
- ExternalSourcesGenerationConfigurationTypeDef
- GenerationConfigurationTypeDef
- HumanEvaluationConfigUnionTypeDef
- RetrieveAndGenerateConfigurationOutputTypeDef
- KnowledgeBaseVectorSearchConfigurationUnionTypeDef
- CreateMarketplaceModelEndpointRequestRequestTypeDef
- UpdateMarketplaceModelEndpointRequestRequestTypeDef
- InvocationLogsConfigUnionTypeDef
- ExternalSourcesGenerationConfigurationUnionTypeDef
- GenerationConfigurationUnionTypeDef
- EvaluationConfigTypeDef
- KnowledgeBaseConfigOutputTypeDef
- KnowledgeBaseRetrievalConfigurationTypeDef
- TrainingDataConfigTypeDef
- ExternalSourcesRetrieveAndGenerateConfigurationTypeDef
- RAGConfigOutputTypeDef
- KnowledgeBaseRetrievalConfigurationUnionTypeDef
- CreateModelCustomizationJobRequestRequestTypeDef
- ExternalSourcesRetrieveAndGenerateConfigurationUnionTypeDef
- EvaluationInferenceConfigOutputTypeDef
- KnowledgeBaseRetrieveAndGenerateConfigurationTypeDef
- RetrieveConfigTypeDef
- GetEvaluationJobResponseTypeDef
- KnowledgeBaseRetrieveAndGenerateConfigurationUnionTypeDef
- RetrieveConfigUnionTypeDef
- RetrieveAndGenerateConfigurationTypeDef
- RetrieveAndGenerateConfigurationUnionTypeDef
- KnowledgeBaseConfigTypeDef
- KnowledgeBaseConfigUnionTypeDef
- RAGConfigTypeDef
- RAGConfigUnionTypeDef
- EvaluationInferenceConfigTypeDef
- CreateEvaluationJobRequestRequestTypeDef