Skip to content
v2.273.0

AwsServiceEventsConfigurationProperty Struct ​

Forward a single AWS service's events from the account's default event bus.

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 awsServiceEventsConfigurationProperty: eventsv2.CfnEventSource.AwsServiceEventsConfigurationProperty = {
  awsService: 'awsService',

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

Properties ​

awsServicestringaws_servicestrawsServiceStringAwsServicestringAwsService*stringrequired#
A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed.
onFailureConfigurationIResolvable | CfnEventSource.OnFailureConfigurationPropertyon_failure_configurationtyping.Union[IResolvable, OnFailureConfigurationProperty]onFailureConfigurationIResolvableOnFailureConfigurationIResolvableOnFailureConfigurationinterface{}#
The destination for events that could not be forwarded by the managed forwarding target or, for partner event sources, the managed partner event bus.

Arn is optional. An empty object removes a configured destination on update.

patternstringpatternstrpatternStringPatternstringPattern*string#
A filter pattern, as a JSON string, that defines which events from the specified AWS service are forwarded to the event bus.

Do not include source, account, or region as top-level fields. If you do not specify a pattern, all events from the service are forwarded.