@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.118Z") @Stability(value=Experimental) 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
(experimental) 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(Construct scope,
OriginBindOptions options)
(experimental) 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=Experimental)
public OriginGroup(@NotNull
OriginGroupProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public OriginBindConfig bind(@NotNull Construct scope, @NotNull OriginBindOptions options)
Copyright © 2022. All rights reserved.