interface CrossRegionInferenceProfileProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Alpha.CrossRegionInferenceProfileProps |
Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#CrossRegionInferenceProfileProps |
Java | software.amazon.awscdk.services.bedrock.alpha.CrossRegionInferenceProfileProps |
Python | aws_cdk.aws_bedrock_alpha.CrossRegionInferenceProfileProps |
TypeScript (source) | @aws-cdk/aws-bedrock-alpha » CrossRegionInferenceProfileProps |
Properties for creating a Cross-Region Inference Profile.
Example
// Create a cross-region inference profile
const crossRegionProfile = bedrock.CrossRegionInferenceProfile.fromConfig({
geoRegion: bedrock.CrossRegionInferenceProfileRegion.US,
model: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0,
});
// Use the cross-region profile with an agent
const agent = new bedrock.Agent(this, 'Agent', {
foundationModel: crossRegionProfile,
instruction: 'You are a helpful and friendly agent that answers questions about agriculture.',
});
Properties
| Name | Type | Description |
|---|---|---|
| geo | Cross | The geographic region where the traffic is going to be distributed. |
| model | Bedrock | A foundation model supporting cross-region inference. |
geoRegion
Type:
Cross
The geographic region where the traffic is going to be distributed.
Routing factors in user traffic, demand and utilization of resources.
model
Type:
Bedrock
A foundation model supporting cross-region inference.
The model must have cross-region support enabled.

.NET
Go
Java
Python
TypeScript (