Class EventBusProps
Configuration properties of an Event Bus event.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.AWS.Events.Targets.dll
Syntax (csharp)
public class EventBusProps : Object, IEventBusProps
Syntax (vb)
Public Class EventBusProps
Inherits Object
Implements IEventBusProps
Remarks
Cannot extend TargetBaseProps. Retry policy is not supported for Event bus targets.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events.Targets;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.SQS;
Queue queue;
Role role;
var eventBusProps = new EventBusProps {
DeadLetterQueue = queue,
Role = role
};
Synopsis
Constructors
EventBusProps() |
Properties
DeadLetterQueue | The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue. |
Role | Role to be used to publish the event. |
Constructors
EventBusProps()
public EventBusProps()
Properties
DeadLetterQueue
The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue.
public IQueue DeadLetterQueue { get; set; }
Property Value
Remarks
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.
Default: - no dead-letter queue
Role
Role to be used to publish the event.
public IRole Role { get; set; }
Property Value
Remarks
Default: a new role is created.