Interface SqsSendMessageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ScheduleTargetBaseProps
- All Known Implementing Classes:
SqsSendMessageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:45.357Z")
@Stability(Stable)
public interface SqsSendMessageProps
extends software.amazon.jsii.JsiiSerializable, ScheduleTargetBaseProps
Properties for a SQS Queue Target.
Example:
String payload = "test";
String messageGroupId = "id";
Queue queue = Queue.Builder.create(this, "MyQueue")
.fifo(true)
.contentBasedDeduplication(true)
.build();
SqsSendMessage target = SqsSendMessage.Builder.create(queue)
.input(ScheduleTargetInput.fromText(payload))
.messageGroupId(messageGroupId)
.build();
Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.minutes(1)))
.target(target)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSqsSendMessagePropsstatic final classAn implementation forSqsSendMessageProps -
Method Summary
Modifier and TypeMethodDescriptionstatic SqsSendMessageProps.Builderbuilder()default StringThe FIFO message group ID to use as the target.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBaseProps
getDeadLetterQueue, getInput, getMaxEventAge, getRetryAttempts, getRole
-
Method Details
-
getMessageGroupId
The FIFO message group ID to use as the target.This must be specified when the target is a FIFO queue. If you specify a FIFO queue as a target, the queue must have content-based deduplication enabled.
A length of
messageGroupIdmust be between 1 and 128.Default: - no message group ID
- See Also:
-
builder
- Returns:
- a
SqsSendMessageProps.BuilderofSqsSendMessageProps
-