Skip to content
v2.274.0

OriginFailoverConfig Struct ​

The failover configuration used for Origin Groups, returned in OriginBindConfig.failoverConfig.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';

declare const origin: cloudfront.IOrigin;
const originFailoverConfig: cloudfront.OriginFailoverConfig = {
  failoverOrigin: origin,

  // the properties below are optional
  statusCodes: [123],
};

Properties ​

failoverOriginIOriginfailover_originIOriginfailoverOriginIOriginFailoverOriginIOriginFailoverOriginIOriginrequired#
The origin to use as the fallback origin.
statusCodesoptionalnumber[]status_codesoptionaltyping.List[int | float]statusCodesoptionalList<Number>StatusCodesoptionaldouble[]StatusCodesoptional*[]*float64#
The HTTP status codes of the response that trigger querying the failover Origin.

Default: 500, 502, 503 and 504