# StatusCodesProperty

A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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';
const statusCodesProperty: cloudfront.CfnDistribution.StatusCodesProperty = {
  items: [123],
  quantity: 123,
};
```

## Properties

- `items`: number[] | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — The items (status codes) for an origin group.

- `quantity`: number (required) — The number of status codes.
