Interface IOriginFailoverConfig
The failover configuration used for Origin Groups, returned in OriginBindConfig.failoverConfig
.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IOriginFailoverConfig
Syntax (vb)
Public Interface IOriginFailoverConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
IOrigin origin;
var originFailoverConfig = new OriginFailoverConfig {
FailoverOrigin = origin,
// the properties below are optional
StatusCodes = new [] { 123 }
};
Synopsis
Properties
FailoverOrigin | The origin to use as the fallback origin. |
StatusCodes | The HTTP status codes of the response that trigger querying the failover Origin. |
Properties
FailoverOrigin
StatusCodes
The HTTP status codes of the response that trigger querying the failover Origin.
virtual double[] StatusCodes { get; }
Property Value
System.Double[]
Remarks
Default: - 500, 502, 503 and 504