aws-cdk-lib.aws_cloudfront.CfnDistribution.StatusCodesProperty

interface StatusCodesProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnDistribution.StatusCodesProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnDistribution_StatusCodesProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnDistribution.StatusCodesProperty
Pythonaws_cdk.aws_cloudfront.CfnDistribution.StatusCodesProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnDistribution » 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.

Example

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

NameTypeDescription
itemsnumber[] | IResolvableThe items (status codes) for an origin group.
quantitynumberThe number of status codes.

items

Type: number[] | IResolvable

The items (status codes) for an origin group.


quantity

Type: number

The number of status codes.