@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.327Z") @Stability(value=Stable) public interface EventBusProps extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.events.targets.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.sqs.*;
Queue queue;
Role role;
EventBusProps eventBusProps = EventBusProps.builder()
.deadLetterQueue(queue)
.role(role)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EventBusProps.Builder
A builder for
EventBusProps |
static class |
EventBusProps.Jsii$Proxy
An implementation for
EventBusProps |
| Modifier and Type | Method and Description |
|---|---|
static EventBusProps.Builder |
builder() |
default IQueue |
getDeadLetterQueue()
The SQS queue to be used as deadLetterQueue.
|
default IRole |
getRole()
Role to be used to publish the event.
|
@Stability(value=Stable) @Nullable default IQueue getDeadLetterQueue()
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
@Stability(value=Stable) @Nullable default IRole getRole()
Default: a new role is created.
@Stability(value=Stable) static EventBusProps.Builder builder()
EventBusProps.Builder of EventBusPropsCopyright © 2022. All rights reserved.