interface StatusCodesProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudFront.CfnDistributionPropsMixin.StatusCodesProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudfront#CfnDistributionPropsMixin_StatusCodesProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.StatusCodesProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudfront.CfnDistributionPropsMixin.StatusCodesProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudfront » CfnDistributionPropsMixin » 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/cfn-property-mixins';
const statusCodesProperty: cloudfront.CfnDistributionPropsMixin.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
(optional)
The items (status codes) for an origin group.
quantity?
Type:
number
(optional)
The number of status codes.

.NET
Go
Java
Python
TypeScript