| Modifier and Type | Method and Description |
|---|---|
SnsTopic |
build() |
static SnsTopic.Builder |
create(ITopic topic) |
SnsTopic.Builder |
deadLetterQueue(IQueue deadLetterQueue)
The SQS queue to be used as deadLetterQueue.
|
SnsTopic.Builder |
maxEventAge(Duration maxEventAge)
The maximum age of a request that Lambda sends to a function for processing.
|
SnsTopic.Builder |
message(RuleTargetInput message)
The message to send to the topic.
|
SnsTopic.Builder |
retryAttempts(Number retryAttempts)
The maximum number of times to retry when the function returns an error.
|
@Stability(value=Stable) public static SnsTopic.Builder create(ITopic topic)
topic - This parameter is required.SnsTopic.Builder.@Stability(value=Stable) public SnsTopic.Builder deadLetterQueue(IQueue deadLetterQueue)
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
deadLetterQueue - The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a dead-letter queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). This parameter is required.this@Stability(value=Stable) public SnsTopic.Builder maxEventAge(Duration maxEventAge)
Minimum value of 60. Maximum value of 86400.
Default: Duration.hours(24)
maxEventAge - The maximum age of a request that Lambda sends to a function for processing. This parameter is required.this@Stability(value=Stable) public SnsTopic.Builder retryAttempts(Number retryAttempts)
Minimum value of 0. Maximum value of 185.
Default: 185
retryAttempts - The maximum number of times to retry when the function returns an error. This parameter is required.this@Stability(value=Stable) public SnsTopic.Builder message(RuleTargetInput message)
Default: the entire EventBridge event
message - The message to send to the topic. This parameter is required.thisCopyright © 2022. All rights reserved.