interface OriginFailoverConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.OriginFailoverConfig |
![]() | software.amazon.awscdk.services.cloudfront.OriginFailoverConfig |
![]() | aws_cdk.aws_cloudfront.OriginFailoverConfig |
![]() | @aws-cdk/aws-cloudfront » OriginFailoverConfig |
The failover configuration used for Origin Groups, returned in {@link OriginBindConfig.failoverConfig}.
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';
declare const origin: cloudfront.IOrigin;
const originFailoverConfig: cloudfront.OriginFailoverConfig = {
failoverOrigin: origin,
// the properties below are optional
statusCodes: [123],
};
Properties
Name | Type | Description |
---|---|---|
failover | IOrigin | The origin to use as the fallback origin. |
status | number[] | The HTTP status codes of the response that trigger querying the failover Origin. |
failoverOrigin
Type:
IOrigin
The origin to use as the fallback origin.
statusCodes?
Type:
number[]
(optional, default: 500, 502, 503 and 504)
The HTTP status codes of the response that trigger querying the failover Origin.