aws-cdk-lib.aws_events.CfnEndpointProps

interface CfnEndpointProps

LanguageType name
.NETAmazon.CDK.AWS.Events.CfnEndpointProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnEndpointProps
Javasoftware.amazon.awscdk.services.events.CfnEndpointProps
Pythonaws_cdk.aws_events.CfnEndpointProps
TypeScript aws-cdk-lib » aws_events » CfnEndpointProps

Properties for defining a CfnEndpoint.

Example

// 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

NameTypeDescription
eventBusesIResolvable | IResolvable | EndpointEventBusProperty[]The event buses being used by the endpoint.
routingConfigIResolvable | RoutingConfigPropertyThe routing configuration of the endpoint.
description?stringA description for the endpoint.
name?stringThe name of the endpoint.
replicationConfig?IResolvable | ReplicationConfigPropertyWhether event replication was enabled or disabled for this endpoint.
roleArn?stringThe ARN of the role used by event replication for the endpoint.

eventBuses

Type: IResolvable | IResolvable | EndpointEventBusProperty[]

The event buses being used by the endpoint.

Exactly : 2


routingConfig

Type: IResolvable | RoutingConfigProperty

The routing configuration of the endpoint.


description?

Type: string (optional)

A description for the endpoint.


name?

Type: string (optional)

The name of the endpoint.


replicationConfig?

Type: IResolvable | ReplicationConfigProperty (optional)

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?

Type: string (optional)

The ARN of the role used by event replication for the endpoint.