Interface OriginFailoverConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OriginFailoverConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.197Z")
@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 classA builder forOriginFailoverConfigstatic final classAn implementation forOriginFailoverConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginFailoverConfig.Builderbuilder()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.BuilderofOriginFailoverConfig
-