CrossRegionInferenceProfileProps

class aws_cdk.aws_bedrock_alpha.CrossRegionInferenceProfileProps(*, geo_region, model)

Bases: object

(experimental) Properties for creating a Cross-Region Inference Profile.

Parameters:
  • geo_region (CrossRegionInferenceProfileRegion) – (experimental) The geographic region where the traffic is going to be distributed. Routing factors in user traffic, demand and utilization of resources.

  • model (BedrockFoundationModel) – (experimental) A foundation model supporting cross-region inference. The model must have cross-region support enabled.

Stability:

experimental

ExampleMetadata:

fixture=default infused

Example:

# Create a cross-region inference profile
cross_region_profile = bedrock.CrossRegionInferenceProfile.from_config(
    geo_region=bedrock.CrossRegionInferenceProfileRegion.US,
    model=bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0
)

# Use the cross-region profile with an agent
agent = bedrock.Agent(self, "Agent",
    foundation_model=cross_region_profile,
    instruction="You are a helpful and friendly agent that answers questions about agriculture."
)

Attributes

geo_region

(experimental) The geographic region where the traffic is going to be distributed.

Routing factors in user traffic, demand and utilization of resources.

Stability:

experimental

model

(experimental) A foundation model supporting cross-region inference.

The model must have cross-region support enabled.

See:

https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html

Stability:

experimental