@Stability(value=Stable) public static final class SqsQueueProps.Builder extends Object implements software.amazon.jsii.Builder<SqsQueueProps>
SqsQueueProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SqsQueueProps |
build()
Builds the configured instance.
|
SqsQueueProps.Builder |
deadLetterQueue(IQueue deadLetterQueue)
Sets the value of
TargetBaseProps.getDeadLetterQueue() |
SqsQueueProps.Builder |
maxEventAge(Duration maxEventAge)
Sets the value of
TargetBaseProps.getMaxEventAge() |
SqsQueueProps.Builder |
message(RuleTargetInput message)
Sets the value of
SqsQueueProps.getMessage() |
SqsQueueProps.Builder |
messageGroupId(String messageGroupId)
Sets the value of
SqsQueueProps.getMessageGroupId() |
SqsQueueProps.Builder |
retryAttempts(Number retryAttempts)
Sets the value of
TargetBaseProps.getRetryAttempts() |
@Stability(value=Stable) public SqsQueueProps.Builder message(RuleTargetInput message)
SqsQueueProps.getMessage()message - The message to send to the queue.
Must be a valid JSON text passed to the target queue.this@Stability(value=Stable) public SqsQueueProps.Builder messageGroupId(String messageGroupId)
SqsQueueProps.getMessageGroupId()messageGroupId - Message Group ID for messages sent to this queue.
Required for FIFO queues, leave empty for regular queues.this@Stability(value=Stable) public SqsQueueProps.Builder deadLetterQueue(IQueue deadLetterQueue)
TargetBaseProps.getDeadLetterQueue()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).
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.this@Stability(value=Stable) public SqsQueueProps.Builder maxEventAge(Duration maxEventAge)
TargetBaseProps.getMaxEventAge()maxEventAge - The maximum age of a request that Lambda sends to a function for processing.
Minimum value of 60.
Maximum value of 86400.this@Stability(value=Stable) public SqsQueueProps.Builder retryAttempts(Number retryAttempts)
TargetBaseProps.getRetryAttempts()retryAttempts - The maximum number of times to retry when the function returns an error.
Minimum value of 0.
Maximum value of 185.this@Stability(value=Stable) public SqsQueueProps build()
build in interface software.amazon.jsii.Builder<SqsQueueProps>SqsQueuePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.