# CfnEndpointProps

Properties for defining a `CfnEndpoint`.

Extends: CfnEndpointProps
Used as props by: CfnEndpoint

- Source: Generated code
- Type last changed: v2.70.0 · 22 Mar 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 cfnEndpointProps: events.CfnEndpointProps = {
  eventBuses: [{
    eventBusArn: 'eventBusArn',
  }],
  routingConfig: {
    failoverConfig: {
      primary: {
        healthCheck: 'healthCheck',
      },
      secondary: {
        route: 'route',
      },
    },
  },

  // the properties below are optional
  description: 'description',
  name: 'name',
  replicationConfig: {
    state: 'state',
  },
  roleArn: 'roleArn',
};
```

## Properties

- `description`: string — A description for the endpoint.

- `eventBuses`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpoint.EndpointEventBusProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_events.CfnEndpoint.EndpointEventBusProperty.html)[] (required) — The event buses being used by the endpoint.

  *Exactly* : `2`

- `name`: string — The name of the endpoint.

- `replicationConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpoint.ReplicationConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_events.CfnEndpoint.ReplicationConfigProperty.html) — Whether event replication was enabled or disabled for this endpoint.

  The default state is `ENABLED` which means you must supply a `RoleArn` . If you don't have a `RoleArn` or you don't want event replication enabled, set the state to `DISABLED` .

- `roleArn`: string — The ARN of the role used by event replication for the endpoint.

- `routingConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpoint.RoutingConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_events.CfnEndpoint.RoutingConfigProperty.html) (required) — The routing configuration of the endpoint.
