Skip to content
v2.273.0

EventSourceConfigurationProperty Struct ​

Event source configuration.

Exactly one of the two variants must be set.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const eventSourceConfigurationProperty: eventsv2.CfnEventSource.EventSourceConfigurationProperty = {
  awsServiceEventsConfiguration: {
    awsService: 'awsService',

    // the properties below are optional
    onFailureConfiguration: {
      arn: 'arn',
    },
    pattern: 'pattern',
  },
  partnerEventsConfiguration: {
    partnerEventSourceArn: 'partnerEventSourceArn',

    // the properties below are optional
    onFailureConfiguration: {
      arn: 'arn',
    },
    partnerBusKmsKeyIdentifier: 'partnerBusKmsKeyIdentifier',
    pattern: 'pattern',
  },
};

Properties ​

awsServiceEventsConfigurationIResolvable | CfnEventSource.AwsServiceEventsConfigurationPropertyaws_service_events_configurationtyping.Union[IResolvable, AwsServiceEventsConfigurationProperty]awsServiceEventsConfigurationIResolvableAwsServiceEventsConfigurationIResolvableAwsServiceEventsConfigurationinterface{}#
Forward a single AWS service's events from the account's default event bus.
partnerEventsConfigurationIResolvable | CfnEventSource.PartnerEventsConfigurationPropertypartner_events_configurationtyping.Union[IResolvable, PartnerEventsConfigurationProperty]partnerEventsConfigurationIResolvablePartnerEventsConfigurationIResolvablePartnerEventsConfigurationinterface{}#
Forward a partner event source's events through a managed partner event bus.