@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.176Z") @Stability(value=Stable) public class OriginGroup extends software.amazon.jsii.JsiiObject implements IOrigin
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
OriginGroup.Builder
A fluent builder for
OriginGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIOrigin.Jsii$Default, IOrigin.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
OriginGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
OriginGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
OriginGroup(OriginGroupProps props) |
| Modifier and Type | Method and Description |
|---|---|
OriginBindConfig |
bind(software.constructs.Construct scope,
OriginBindOptions options)
The method called when a given Origin is added (for the first time) to a Distribution.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected OriginGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected OriginGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public OriginGroup(@NotNull
OriginGroupProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public OriginBindConfig bind(@NotNull software.constructs.Construct scope, @NotNull OriginBindOptions options)
Copyright © 2022. All rights reserved.