Interface SqsSendMessageProps
- All Superinterfaces:
AssignableStateOptions,software.amazon.jsii.JsiiSerializable,JsonataCommonOptions,JsonPathCommonOptions,StateBaseProps,TaskStateBaseOptions,TaskStateBaseProps
- All Known Implementing Classes:
SqsSendMessageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:48.405Z")
@Stability(Stable)
public interface SqsSendMessageProps
extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Properties for sending a message to an SQS queue.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSqsSendMessagePropsstatic final classAn implementation forSqsSendMessageProps -
Method Summary
Modifier and TypeMethodDescriptionstatic SqsSendMessageProps.Builderbuilder()default DurationgetDelay()The length of time, for which to delay a message.The text message to send to the queue.default StringThe token used for deduplication of sent messages.default StringThe tag that specifies that a message belongs to a specific message group.getQueue()The SQS queue that messages will be sent to.Methods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssignMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonataCommonOptions
getOutputsMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonPathCommonOptions
getInputPath, getOutputPathMethods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateNameMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseOptions
getCredentials, getHeartbeat, getHeartbeatTimeout, getIntegrationPattern, getTaskTimeout, getTimeoutMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getResultPath, getResultSelector
-
Method Details
-
getMessageBody
The text message to send to the queue. -
getQueue
The SQS queue that messages will be sent to. -
getDelay
The length of time, for which to delay a message.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).
-
getMessageDeduplicationId
The token used for deduplication of sent messages.Any messages sent with the same deduplication ID are accepted successfully, but aren't delivered during the 5-minute deduplication interval.
Default: - None
-
getMessageGroupId
The tag that specifies that a message belongs to a specific message group.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
-
builder
- Returns:
- a
SqsSendMessageProps.BuilderofSqsSendMessageProps
-