interface StatusCodesProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.StatusCodesProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_StatusCodesProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.StatusCodesProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.StatusCodesProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const statusCodesProperty: cloudfront_mixins.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