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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.212Z") @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 - This parameter is required.
      props - This parameter is required.
  • Method Details