@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.119Z") @Stability(value=Experimental) public interface OriginGroupProps extends software.amazon.jsii.JsiiSerializable
OriginGroup.
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;
OriginGroupProps originGroupProps = OriginGroupProps.builder()
.fallbackOrigin(origin)
.primaryOrigin(origin)
// the properties below are optional
.fallbackStatusCodes(List.of(123))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
OriginGroupProps.Builder
A builder for
OriginGroupProps |
static class |
OriginGroupProps.Jsii$Proxy
An implementation for
OriginGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static OriginGroupProps.Builder |
builder() |
IOrigin |
getFallbackOrigin()
(experimental) The fallback origin that should serve requests when the primary fails.
|
default List<Number> |
getFallbackStatusCodes()
(experimental) The list of HTTP status codes that, when returned from the primary origin, would cause querying the fallback origin.
|
IOrigin |
getPrimaryOrigin()
(experimental) The primary origin that should serve requests for this group.
|
@Stability(value=Experimental) @NotNull IOrigin getFallbackOrigin()
@Stability(value=Experimental) @NotNull IOrigin getPrimaryOrigin()
@Stability(value=Experimental) @Nullable default List<Number> getFallbackStatusCodes()
Default: - 500, 502, 503 and 504
@Stability(value=Experimental) static OriginGroupProps.Builder builder()
OriginGroupProps.Builder of OriginGroupPropsCopyright © 2022. All rights reserved.