@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.331Z") @Stability(value=Stable) 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()
The fallback origin that should serve requests when the primary fails.
|
default List<Number> |
getFallbackStatusCodes()
The list of HTTP status codes that, when returned from the primary origin, would cause querying the fallback origin.
|
IOrigin |
getPrimaryOrigin()
The primary origin that should serve requests for this group.
|
@Stability(value=Stable) @NotNull IOrigin getFallbackOrigin()
@Stability(value=Stable) @Nullable default List<Number> getFallbackStatusCodes()
Default: - 500, 502, 503 and 504
@Stability(value=Stable) @NotNull IOrigin getPrimaryOrigin()
@Stability(value=Stable) static OriginGroupProps.Builder builder()
OriginGroupProps.Builder of OriginGroupPropsCopyright © 2021. All rights reserved.