java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IChainable, INextable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-27T17:02:11.003Z") @Stability(Stable) public class SqsSendMessage extends TaskStateBase
A StepFunctions Task to send messages to 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();
 
  • Constructor Details

    • SqsSendMessage

      protected SqsSendMessage(software.amazon.jsii.JsiiObjectRef objRef)
    • SqsSendMessage

      protected SqsSendMessage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SqsSendMessage

      @Stability(Stable) public SqsSendMessage(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SqsSendMessageProps props)
      Parameters:
      scope - This parameter is required.
      id - Descriptive identifier for this chainable. This parameter is required.
      props - This parameter is required.
  • Method Details