# OriginFailoverConfig

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

- Source: [`aws-cloudfront/lib/origin.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudfront/lib/origin.ts#L49)

## 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

- `failoverOrigin`: [IOrigin](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.IOrigin.html) (required) — The origin to use as the fallback origin.

- `statusCodes`: number[] — The HTTP status codes of the response that trigger querying the failover Origin.

  **Default:** 500, 502, 503 and 504
