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();
 
  • Enum Constant Details

    • DEFAULT

      @Stability(Stable) public static final OriginSelectionCriteria DEFAULT
      Default selection behavior.
    • MEDIA_QUALITY_BASED

      @Stability(Stable) public static final OriginSelectionCriteria MEDIA_QUALITY_BASED
      Selection based on media quality.

      This option is only valid for AWS Elemental MediaPackage v2 Origins.

  • Method Details

    • values

      public static OriginSelectionCriteria[] 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

      public static OriginSelectionCriteria valueOf(String name)
      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 name
      NullPointerException - if the argument is null