OriginFailoverConfig

class aws_cdk.aws_cloudfront.OriginFailoverConfig(*, failover_origin, status_codes=None)

Bases: object

The failover configuration used for Origin Groups, returned in {@link OriginBindConfig.failoverConfig}.

Parameters
  • failover_origin (IOrigin) – The origin to use as the fallback origin.

  • status_codes (Optional[List[Union[int, float]]]) – The HTTP status codes of the response that trigger querying the failover Origin. Default: - 500, 502, 503 and 504

Attributes

failover_origin

The origin to use as the fallback origin.

Return type

IOrigin

status_codes

The HTTP status codes of the response that trigger querying the failover Origin.

Default
  • 500, 502, 503 and 504

Return type

Optional[List[Union[int, float]]]