Enum OriginSelectionCriteria
java.lang.Object
java.lang.Enum<OriginSelectionCriteria>
software.amazon.awscdk.services.cloudfront.OriginSelectionCriteria
- All Implemented Interfaces:
Serializable
,Comparable<OriginSelectionCriteria>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-19T18:01:31.720Z")
@Stability(Stable)
public enum OriginSelectionCriteria
extends Enum<OriginSelectionCriteria>
The selection criteria for the origin group.
Example:
Distribution.Builder.create(this, "myDist") .defaultBehavior(BehaviorOptions.builder() .origin(OriginGroup.Builder.create() .primaryOrigin(new HttpOrigin("<AWS Elemental MediaPackageV2 origin 1>")) .fallbackOrigin(new HttpOrigin("<AWS Elemental MediaPackageV2 origin 2>")) .fallbackStatusCodes(List.of(404)) .selectionCriteria(OriginSelectionCriteria.MEDIA_QUALITY_BASED) .build()) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault selection behavior.Selection based on media quality. -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginSelectionCriteria
Returns the enum constant of this type with the specified name.static OriginSelectionCriteria[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default selection behavior. -
MEDIA_QUALITY_BASED
Selection based on media quality.This option is only valid for AWS Elemental MediaPackage v2 Origins.
-
-
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
-