interface OriginGroupFailoverCriteriaProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.CfnDistribution.OriginGroupFailoverCriteriaProperty |
Java | software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty |
Python | aws_cdk.aws_cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty |
TypeScript | @aws-cdk/aws-cloudfront » CfnDistribution » OriginGroupFailoverCriteriaProperty |
A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudfront from '@aws-cdk/aws-cloudfront';
const originGroupFailoverCriteriaProperty: cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty = {
statusCodes: {
items: [123],
quantity: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
status | IResolvable | Status | The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin. |
statusCodes
Type:
IResolvable
|
Status
The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.