Skip to content
v2.275.0

StatusCodesProperty Struct ​

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.

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 ​

itemsnumber[] | IResolvableitemstyping.Union[typing.List[int | float], IResolvable]itemsList<Number>Itemsdouble[]Itemsinterface{}required#
The items (status codes) for an origin group.
quantitynumberquantityint | floatquantityNumberQuantitydoubleQuantity*float64required#
The number of status codes.