interface AwsServiceEventsConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EventsV2.CfnEventSource.AwsServiceEventsConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseventsv2#CfnEventSource_AwsServiceEventsConfigurationProperty |
Java | software.amazon.awscdk.services.eventsv2.CfnEventSource.AwsServiceEventsConfigurationProperty |
Python | aws_cdk.aws_eventsv2.CfnEventSource.AwsServiceEventsConfigurationProperty |
TypeScript | aws-cdk-lib » aws_eventsv2 » CfnEventSource » AwsServiceEventsConfigurationProperty |
Forward a single AWS service's events from the account's default event bus.
Example
// 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
| Name | Type | Description |
|---|---|---|
| aws | string | A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed. |
| on | IResolvable | On | The destination for events that could not be forwarded by the managed forwarding target or, for partner event sources, the managed partner event bus. |
| pattern? | string | A filter pattern, as a JSON string, that defines which events from the specified AWS service are forwarded to the event bus. |
awsService
Type:
string
A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed.
onFailureConfiguration?
Type:
IResolvable | On
(optional)
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.
pattern?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript