@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.330Z") @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:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
import software.amazon.awscdk.services.cloudfront.origins.*;
IOrigin origin;
OriginGroup originGroup = OriginGroup.Builder.create()
.fallbackOrigin(origin)
.primaryOrigin(origin)
// the properties below are optional
.fallbackStatusCodes(List.of(123))
.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 © 2021. All rights reserved.