Class OriginSelectionCriteria
The selection criteria for the origin group.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class OriginSelectionCriteria : Enum
Syntax (vb)
Public NotInheritable Class OriginSelectionCriteria
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
new Distribution(this, "myDist", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = new OriginGroup(new OriginGroupProps {
PrimaryOrigin = new HttpOrigin("<AWS Elemental MediaPackageV2 origin 1>"),
FallbackOrigin = new HttpOrigin("<AWS Elemental MediaPackageV2 origin 2>"),
FallbackStatusCodes = new [] { 404 },
SelectionCriteria = OriginSelectionCriteria.MEDIA_QUALITY_BASED
})
}
});
Synopsis
Fields
DEFAULT | Default selection behavior. |
MEDIA_QUALITY_BASED | Selection based on media quality. |
value__ |
Fields
DEFAULT
Default selection behavior.
public const OriginSelectionCriteria DEFAULT
Field Value
Type | Description |
---|---|
Origin |
MEDIA_QUALITY_BASED
Selection based on media quality.
public const OriginSelectionCriteria MEDIA_QUALITY_BASED
Field Value
Type | Description |
---|---|
Origin |
Remarks
This option is only valid for AWS Elemental MediaPackage v2 Origins.
value__
public int value__
Field Value
Type | Description |
---|---|
System. |