# FailoverConfigProperty

The failover configuration for an endpoint.

This includes what triggers failover and what happens when it's triggered.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const failoverConfigProperty: events.CfnEndpoint.FailoverConfigProperty = {
  primary: {
    healthCheck: 'healthCheck',
  },
  secondary: {
    route: 'route',
  },
};
```

## Properties

- `primary`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpoint.PrimaryProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_events.CfnEndpoint.PrimaryProperty.html) (required) — The main Region of the endpoint.

- `secondary`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpoint.SecondaryProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_events.CfnEndpoint.SecondaryProperty.html) (required) — The Region that events are routed to when failover is triggered or event replication is enabled.
