OriginFailoverConfig

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

Bases: object

__init__(*, failover_origin, status_codes=None)

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

stability :stability: experimental

Return type

None

Attributes

failover_origin

The origin to use as the fallback origin.

stability :stability: experimental

Return type

IOrigin

status_codes

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

default :default: - 500, 502, 503 and 504

stability :stability: experimental

Return type

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