AWSCDK::Bedrock

44 types

Amazon Bedrock Construct Library

Amazon Bedrock is a fully managed service that offers a choice of foundation models (FMs) along with a broad set of capabilities for building generative AI applications.

This construct library provides a collection of constructs that can look up existing Bedrock models for use with other services' CDK constructs, such as AWS Step Functions.

To look up a Bedrock base foundation model:

require 'aws-cdk-lib'


AWSCDK::Bedrock::FoundationModel.from_foundation_model_id(self, "Model", AWSCDK::Bedrock::FoundationModelIdentifier.ANTHROPIC_CLAUDE_V2)

To look up a Bedrock provisioned throughput model:

require 'aws-cdk-lib'


AWSCDK::Bedrock::ProvisionedModel.from_provisioned_model_arn(self, "Model", "arn:aws:bedrock:us-east-2:123456789012:provisioned-model/abc-123")

L2 constructs for this service are available in the @aws-cdk/aws-bedrock-alpha package.

You can also use the automatically generated L1 constructs, in the same way you would use the CloudFormation AWS::Bedrock resources directly.

API Reference

Classes 23

CfnAgentSpecifies an agent as a resource in a top-level template. Minimally, you must specify the CfnAgentAliasSpecifies an agent alias as a resource in a top-level template. Minimally, you must specif CfnApplicationInferenceProfileSpecifies an inference profile as a resource in a top-level template. CfnAutomatedReasoningPolicyCreates an Automated Reasoning policy for Amazon Bedrock Guardrails. CfnAutomatedReasoningPolicyVersionCreates a new version of an existing Automated Reasoning policy. CfnBlueprintDetails about a data automation blueprint. CfnDataAutomationLibraryResource Type definition for AWS::Bedrock::DataAutomationLibrary. CfnDataAutomationProjectA data automation project. CfnDataSource> Properties with `__Update requires: Replacement__` can result in the creation of a new d CfnEnforcedGuardrailConfigurationDefinition of AWS::Bedrock::EnforcedGuardrailConfiguration Resource Type. CfnFlowCreates a prompt flow that you can use to send an input through various steps to yield an CfnFlowAliasCreates an alias of a flow for deployment. CfnFlowVersionCreates a version of the flow that you can deploy. CfnGuardrailCreates a guardrail to detect and filter harmful content in your generative AI application CfnGuardrailVersionCreates a version of the guardrail. CfnIntelligentPromptRouterSpecifies an intelligent prompt router resource for Amazon Bedrock . CfnKnowledgeBaseSpecifies a knowledge base as a resource in a top-level template. Minimally, you must spec CfnPromptCreates a prompt in your prompt library that you can add to a flow. CfnPromptVersionCreates a static snapshot of your prompt that can be deployed to production. CfnResourcePolicyDefinition of AWS::Bedrock::ResourcePolicy Resource Type. FoundationModelA Bedrock base foundation model. FoundationModelIdentifierThe model identifiers for the Bedrock base foundation models. ProvisionedModelA Bedrock provisioned model.

Interfaces 21

CfnAgentAliasPropsProperties for defining a `CfnAgentAlias`. CfnAgentPropsProperties for defining a `CfnAgent`. CfnApplicationInferenceProfilePropsProperties for defining a `CfnApplicationInferenceProfile`. CfnAutomatedReasoningPolicyPropsProperties for defining a `CfnAutomatedReasoningPolicy`. CfnAutomatedReasoningPolicyVersionPropsProperties for defining a `CfnAutomatedReasoningPolicyVersion`. CfnBlueprintPropsProperties for defining a `CfnBlueprint`. CfnDataAutomationLibraryPropsProperties for defining a `CfnDataAutomationLibrary`. CfnDataAutomationProjectPropsProperties for defining a `CfnDataAutomationProject`. CfnDataSourcePropsProperties for defining a `CfnDataSource`. CfnEnforcedGuardrailConfigurationPropsProperties for defining a `CfnEnforcedGuardrailConfiguration`. CfnFlowAliasPropsProperties for defining a `CfnFlowAlias`. CfnFlowPropsProperties for defining a `CfnFlow`. CfnFlowVersionPropsProperties for defining a `CfnFlowVersion`. CfnGuardrailPropsProperties for defining a `CfnGuardrail`. CfnGuardrailVersionPropsProperties for defining a `CfnGuardrailVersion`. CfnIntelligentPromptRouterPropsProperties for defining a `CfnIntelligentPromptRouter`. CfnKnowledgeBasePropsProperties for defining a `CfnKnowledgeBase`. CfnPromptPropsProperties for defining a `CfnPrompt`. CfnPromptVersionPropsProperties for defining a `CfnPromptVersion`. CfnResourcePolicyPropsProperties for defining a `CfnResourcePolicy`. IModelRepresents a Bedrock model.