Skip to content
v2.278.0

Experimental

@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

BedrockFoundationModelProps Struct ​

Properties for configuring a Bedrock Foundation Model.

These properties define the model's capabilities and supported features.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
const bedrockFoundationModelProps: bedrock_alpha.BedrockFoundationModelProps = {
  legacy: false,
  optimizedForAgents: false,
  supportedVectorType: [bedrock_alpha.VectorType.FLOATING_POINT],
  supportsAgents: false,
  supportsConfigurableDimensions: false,
  supportsCrossRegion: false,
  supportsKnowledgeBase: false,
  vectorDimensions: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_alpha as bedrock_alpha

bedrock_foundation_model_props = bedrock_alpha.BedrockFoundationModelProps(
    legacy=False,
    optimized_for_agents=False,
    supported_vector_type=[bedrock_alpha.VectorType.FLOATING_POINT],
    supports_agents=False,
    supports_configurable_dimensions=False,
    supports_cross_region=False,
    supports_knowledge_base=False,
    vector_dimensions=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.alpha.*;

BedrockFoundationModelProps bedrockFoundationModelProps = BedrockFoundationModelProps.builder()
        .legacy(false)
        .optimizedForAgents(false)
        .supportedVectorType(List.of(VectorType.FLOATING_POINT))
        .supportsAgents(false)
        .supportsConfigurableDimensions(false)
        .supportsCrossRegion(false)
        .supportsKnowledgeBase(false)
        .vectorDimensions(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Alpha;

var bedrockFoundationModelProps = new BedrockFoundationModelProps {
    Legacy = false,
    OptimizedForAgents = false,
    SupportedVectorType = new [] { VectorType.FLOATING_POINT },
    SupportsAgents = false,
    SupportsConfigurableDimensions = false,
    SupportsCrossRegion = false,
    SupportsKnowledgeBase = false,
    VectorDimensions = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_alpha "github.com/aws/aws-cdk-go/awsbedrockalpha"

bedrockFoundationModelProps := &BedrockFoundationModelProps{
	Legacy: jsii.Boolean(false),
	OptimizedForAgents: jsii.Boolean(false),
	SupportedVectorType: []VectorType{
		bedrock_alpha.VectorType_FLOATING_POINT,
	},
	SupportsAgents: jsii.Boolean(false),
	SupportsConfigurableDimensions: jsii.Boolean(false),
	SupportsCrossRegion: jsii.Boolean(false),
	SupportsKnowledgeBase: jsii.Boolean(false),
	VectorDimensions: jsii.Number(123),
}

Properties ​

legacyoptionalbooleanlegacyoptionalboollegacyoptionalBooleanLegacyoptionalboolLegacyoptional*bool = false #
https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html A version is marked Legacy when there is a more recent version which provides superior performance. Amazon Bedrock sets an EOL date for Legacy versions.
optimizedForAgentsoptionalbooleanoptimized_for_agentsoptionalbooloptimizedForAgentsoptionalBooleanOptimizedForAgentsoptionalboolOptimizedForAgentsoptional*bool = false #
Currently, some of the offered models are optimized with prompts/parsers fine-tuned for integrating with the agents architecture.

When true, the model has been specifically optimized for agent interactions.

supportedVectorTypeoptionalVectorType[]supported_vector_typeoptionaltyping.List[VectorType]supportedVectorTypeoptionalList<VectorType>SupportedVectorTypeoptionalVectorType[]SupportedVectorTypeoptional*[]VectorType = undefined #
Embeddings models have different supported vector types.

Defines whether the model supports floating-point or binary vectors.

supportsAgentsoptionalbooleansupports_agentsoptionalboolsupportsAgentsoptionalBooleanSupportsAgentsoptionalboolSupportsAgentsoptional*bool = false #
Bedrock Agents can use this model.

When true, the model can be used with Bedrock Agents for automated task execution.

supportsConfigurableDimensionsoptionalbooleansupports_configurable_dimensionsoptionalboolsupportsConfigurableDimensionsoptionalBooleanSupportsConfigurableDimensionsoptionalboolSupportsConfigurableDimensionsoptional*bool = false #
Whether the number of vector dimensions can be chosen when the model is used by a knowledge base.

Only applicable for embedding models. When true, vectorDimensions is passed to the knowledge base; when false, the model's dimension is fixed and vectorDimensions is informational only.

supportsCrossRegionoptionalbooleansupports_cross_regionoptionalboolsupportsCrossRegionoptionalBooleanSupportsCrossRegionoptionalboolSupportsCrossRegionoptional*bool = false #
Can be used with a Cross-Region Inference Profile.

When true, the model supports inference across different AWS regions.

supportsKnowledgeBaseoptionalbooleansupports_knowledge_baseoptionalboolsupportsKnowledgeBaseoptionalBooleanSupportsKnowledgeBaseoptionalboolSupportsKnowledgeBaseoptional*bool = false #
Bedrock Knowledge Base can use this model.

When true, the model can be used for knowledge base operations.

vectorDimensionsoptionalnumbervector_dimensionsoptionalint | floatvectorDimensionsoptionalNumberVectorDimensionsoptionaldoubleVectorDimensionsoptional*float64 = undefined #
Embedding models have different vector dimensions.

Only applicable for embedding models. Defines the dimensionality of the vector embeddings.