Interface OriginFailoverConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OriginFailoverConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-19T18:01:31.715Z")
@Stability(Stable)
public interface OriginFailoverConfig
extends software.amazon.jsii.JsiiSerializable
The failover configuration used for Origin Groups, returned in
OriginBindConfig.failoverConfig
.
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.*; IOrigin origin; OriginFailoverConfig originFailoverConfig = OriginFailoverConfig.builder() .failoverOrigin(origin) // the properties below are optional .statusCodes(List.of(123)) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forOriginFailoverConfig
static final class
An implementation forOriginFailoverConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic OriginFailoverConfig.Builder
builder()
The origin to use as the fallback origin.The HTTP status codes of the response that trigger querying the failover Origin.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFailoverOrigin
The origin to use as the fallback origin. -
getStatusCodes
The HTTP status codes of the response that trigger querying the failover Origin.Default: - 500, 502, 503 and 504
-
builder
- Returns:
- a
OriginFailoverConfig.Builder
ofOriginFailoverConfig
-