interface StatusCodesProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CfnDistribution.StatusCodesProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnDistribution_StatusCodesProperty |
![]() | software.amazon.awscdk.services.cloudfront.CfnDistribution.StatusCodesProperty |
![]() | aws_cdk.aws_cloudfront.CfnDistribution.StatusCodesProperty |
![]() | 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
Name | Type | Description |
---|---|---|
items | number[] | IResolvable | The items (status codes) for an origin group. |
quantity | number | The number of status codes. |
items
Type:
number[] |
IResolvable
The items (status codes) for an origin group.
quantity
Type:
number
The number of status codes.