Enum CrossRegionInferenceProfileRegion
java.lang.Object
java.lang.Enum<CrossRegionInferenceProfileRegion>
software.amazon.awscdk.services.bedrock.alpha.CrossRegionInferenceProfileRegion
- All Implemented Interfaces:
Serializable,Comparable<CrossRegionInferenceProfileRegion>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:17.902Z")
@Stability(Experimental)
public enum CrossRegionInferenceProfileRegion
extends Enum<CrossRegionInferenceProfileRegion>
(experimental) Geographic regions supported for cross-region inference profiles.
These regions help distribute traffic across multiple AWS regions for better throughput and resilience during peak demands.
Example:
// Create a cross-region inference profile
CrossRegionInferenceProfile crossRegionProfile = CrossRegionInferenceProfile.fromConfig(CrossRegionInferenceProfileProps.builder()
.geoRegion(CrossRegionInferenceProfileRegion.US)
.model(BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0)
.build());
// Use the cross-region profile with an agent
Agent agent = Agent.Builder.create(this, "Agent")
.foundationModel(crossRegionProfile)
.instruction("You are a helpful and friendly agent that answers questions about agriculture.")
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static CrossRegionInferenceProfileRegion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EU
(experimental) Cross-region Inference Identifier for the European area.According to the model chosen, this might include:
- Frankfurt (
eu-central-1) - Ireland (
eu-west-1) - Paris (
eu-west-3)
- Frankfurt (
-
US
(experimental) Cross-region Inference Identifier for the United States area.According to the model chosen, this might include:
- N. Virginia (
us-east-1) - Oregon (
us-west-2) - Ohio (
us-east-2)
- N. Virginia (
-
APAC
(experimental) Cross-region Inference Identifier for the Asia-Pacific area.According to the model chosen, this might include:
- Tokyo (
ap-northeast-1) - Seoul (
ap-northeast-2) - Mumbai (
ap-south-1) - Singapore (
ap-southeast-1) - Sydney (
ap-southeast-2)
- Tokyo (
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-