Interface OriginGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OriginGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-26T23:01:01.347Z")
@Stability(Stable)
public interface OriginGroupProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for
OriginGroup
.
Example:
Bucket myBucket = new Bucket(this, "myBucket"); Distribution.Builder.create(this, "myDist") .defaultBehavior(BehaviorOptions.builder() .origin(OriginGroup.Builder.create() .primaryOrigin(S3BucketOrigin.withOriginAccessControl(myBucket)) .fallbackOrigin(new HttpOrigin("www.example.com")) // optional, defaults to: 500, 502, 503 and 504 .fallbackStatusCodes(List.of(404)) .build()) .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forOriginGroupProps
static final class
An implementation forOriginGroupProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic OriginGroupProps.Builder
builder()
The fallback origin that should serve requests when the primary fails.The list of HTTP status codes that, when returned from the primary origin, would cause querying the fallback origin.The primary origin that should serve requests for this group.default OriginSelectionCriteria
The selection criteria for the origin group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFallbackOrigin
The fallback origin that should serve requests when the primary fails. -
getPrimaryOrigin
The primary origin that should serve requests for this group. -
getFallbackStatusCodes
The list of HTTP status codes that, when returned from the primary origin, would cause querying the fallback origin.Default: - 500, 502, 503 and 504
-
getSelectionCriteria
The selection criteria for the origin group.Default: - OriginSelectionCriteria.DEFAULT
- See Also:
-
builder
- Returns:
- a
OriginGroupProps.Builder
ofOriginGroupProps
-