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.121.0 (build d7af9b9)",
date="2025-12-18T18:20:21.178Z")
@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 ConstantsEnum ConstantDescription(experimental) Cross-region Inference Identifier for the Asia-Pacific area.(experimental) Cross-region Inference Identifier for the Australia area.(experimental) Cross-region Inference Identifier for the European area.(experimental) Global cross-region Inference Identifier.(experimental) Cross-region Inference Identifier for the Japan area.(experimental) Cross-region Inference Identifier for the United States area.(experimental) Cross-region Inference Identifier for the US GovCloud area. -
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
-
GLOBAL
(experimental) Global cross-region Inference Identifier.Routes requests to any supported commercial AWS Region.
-
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) - London (
eu-west-2) - Stockholm (
eu-north-1) - Milan (
eu-south-1) - Spain (
eu-south-2) - Zurich (
eu-central-2)
- 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) - Ohio (
us-east-2) - Oregon (
us-west-2)
- N. Virginia (
-
US_GOV
(experimental) Cross-region Inference Identifier for the US GovCloud area.According to the model chosen, this might include:
- GovCloud US-East (
us-gov-east-1) - GovCloud US-West (
us-gov-west-1)
- GovCloud US-East (
-
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) - Osaka (
ap-northeast-3) - Mumbai (
ap-south-1) - Hyderabad (
ap-south-2) - Singapore (
ap-southeast-1) - Sydney (
ap-southeast-2) - Jakarta (
ap-southeast-3) - Melbourne (
ap-southeast-4) - Malaysia (
ap-southeast-5) - Thailand (
ap-southeast-7) - Taipei (
ap-east-2) - Middle East (UAE) (
me-central-1)
- Tokyo (
-
JP
(experimental) Cross-region Inference Identifier for the Japan area.According to the model chosen, this might include:
- Tokyo (
ap-northeast-1) - Osaka (
ap-northeast-3)
- Tokyo (
-
AU
(experimental) Cross-region Inference Identifier for the Australia area.According to the model chosen, this might include:
- Sydney (
ap-southeast-2) - Melbourne (
ap-southeast-4)
- Sydney (
-
-
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
-