interface EventBusProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Events.Targets.EventBusProps |
![]() | software.amazon.awscdk.services.events.targets.EventBusProps |
![]() | aws_cdk.aws_events_targets.EventBusProps |
![]() | @aws-cdk/aws-events-targets » EventBusProps |
Configuration properties of an Event Bus event.
Cannot extend TargetBaseProps. Retry policy is not supported for Event bus targets.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as events_targets from '@aws-cdk/aws-events-targets';
import * as iam from '@aws-cdk/aws-iam';
import * as sqs from '@aws-cdk/aws-sqs';
declare const queue: sqs.Queue;
declare const role: iam.Role;
const eventBusProps: events_targets.EventBusProps = {
deadLetterQueue: queue,
role: role,
};
Properties
Name | Type | Description |
---|---|---|
dead | IQueue | The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue. |
role? | IRole | Role to be used to publish the event. |
deadLetterQueue?
Type:
IQueue
(optional, default: no dead-letter queue)
The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue.
The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.
role?
Type:
IRole
(optional, default: a new role is created.)
Role to be used to publish the event.