Class OriginGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.origins.OriginGroup
- All Implemented Interfaces:
IOrigin
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.243Z")
@Stability(Stable)
public class OriginGroup
extends software.amazon.jsii.JsiiObject
implements IOrigin
An Origin that represents a group.
Consists of a primary Origin, and a fallback Origin called when the primary returns one of the provided HTTP status codes.
Example:
Bucket myBucket = new Bucket(this, "myBucket"); Distribution.Builder.create(this, "myDist") .defaultBehavior(BehaviorOptions.builder() .origin(OriginGroup.Builder.create() .primaryOrigin(new S3Origin(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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IOrigin
IOrigin.Jsii$Default, IOrigin.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionOriginGroup
(OriginGroupProps props) protected
OriginGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
OriginGroup
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind
(Construct scope, OriginBindOptions options) The method called when a given Origin is added (for the first time) to a Distribution.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
OriginGroup
protected OriginGroup(software.amazon.jsii.JsiiObjectRef objRef) -
OriginGroup
protected OriginGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OriginGroup
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public OriginBindConfig bind(@NotNull Construct scope, @NotNull OriginBindOptions options) The method called when a given Origin is added (for the first time) to a Distribution.
-