@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:51.037Z") @Stability(value=Stable) public interface SqsSendMessageProps extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Example:
Queue queue = new Queue(this, "Queue"); // Use a field from the execution data as message. SqsSendMessage task1 = SqsSendMessage.Builder.create(this, "Send1") .queue(queue) .messageBody(TaskInput.fromJsonPathAt("$.message")) .build(); // Combine a field from the execution data with // a literal object. SqsSendMessage task2 = SqsSendMessage.Builder.create(this, "Send2") .queue(queue) .messageBody(TaskInput.fromObject(Map.of( "field1", "somedata", "field2", JsonPath.stringAt("$.field2")))) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
SqsSendMessageProps.Builder
A builder for
SqsSendMessageProps |
static class |
SqsSendMessageProps.Jsii$Proxy
An implementation for
SqsSendMessageProps |
Modifier and Type | Method and Description |
---|---|
static SqsSendMessageProps.Builder |
builder() |
default Duration |
getDelay()
The length of time, for which to delay a message.
|
TaskInput |
getMessageBody()
The text message to send to the queue.
|
default String |
getMessageDeduplicationId()
The token used for deduplication of sent messages.
|
default String |
getMessageGroupId()
The tag that specifies that a message belongs to a specific message group.
|
IQueue |
getQueue()
The SQS queue that messages will be sent to.
|
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
@Stability(value=Stable) @NotNull TaskInput getMessageBody()
@Stability(value=Stable) @NotNull IQueue getQueue()
@Stability(value=Stable) @Nullable default Duration getDelay()
Messages that you send to the queue remain invisible to consumers for the duration of the delay period. The maximum allowed delay is 15 minutes.
Default: - delay set on the queue. If a delay is not set on the queue, messages are sent immediately (0 seconds).
@Stability(value=Stable) @Nullable default String getMessageDeduplicationId()
Any messages sent with the same deduplication ID are accepted successfully, but aren't delivered during the 5-minute deduplication interval.
Default: - None
@Stability(value=Stable) @Nullable default String getMessageGroupId()
Messages that belong to the same message group are processed in a FIFO manner. Messages in different message groups might be processed out of order.
Default: - None
@Stability(value=Stable) static SqsSendMessageProps.Builder builder()
builder
in interface TaskStateBaseProps
SqsSendMessageProps.Builder
of SqsSendMessageProps
Copyright © 2022. All rights reserved.