Interface PublishToTopicProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
PublishToTopicProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.128Z") @Stability(Deprecated) @Deprecated public interface PublishToTopicProps extends software.amazon.jsii.JsiiSerializable
Deprecated.
Use SnsPublish
(deprecated) Properties for PublishTask.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.stepfunctions.*;
 import software.amazon.awscdk.services.stepfunctions.tasks.*;
 TaskInput taskInput;
 PublishToTopicProps publishToTopicProps = PublishToTopicProps.builder()
         .message(taskInput)
         // the properties below are optional
         .integrationPattern(ServiceIntegrationPattern.FIRE_AND_FORGET)
         .messagePerSubscriptionType(false)
         .subject("subject")
         .build();
 

  • Method Details

    • getMessage

      @Stability(Deprecated) @Deprecated @NotNull TaskInput getMessage()
      Deprecated.
      (deprecated) The text message to send to the topic.
    • getIntegrationPattern

      @Stability(Deprecated) @Deprecated @Nullable default ServiceIntegrationPattern getIntegrationPattern()
      Deprecated.
      (deprecated) The service integration pattern indicates different ways to call Publish to SNS.

      The valid value is either FIRE_AND_FORGET or WAIT_FOR_TASK_TOKEN.

      Default: FIRE_AND_FORGET

    • getMessagePerSubscriptionType

      @Stability(Deprecated) @Deprecated @Nullable default Boolean getMessagePerSubscriptionType()
      Deprecated.
      (deprecated) If true, send a different message to every subscription type.

      If this is set to true, message must be a JSON object with a "default" key and a key for every subscription type (such as "sqs", "email", etc.) The values are strings representing the messages being sent to every subscription type.

      Default: false

      See Also:
    • getSubject

      @Stability(Deprecated) @Deprecated @Nullable default String getSubject()
      Deprecated.
      (deprecated) Used as the "Subject" line when the message is delivered to email endpoints.

      Also included, if present, in the standard JSON messages delivered to other endpoints.

      Default: - No subject

    • builder

      @Stability(Deprecated) @Deprecated static PublishToTopicProps.Builder builder()
      Deprecated.
      Returns:
      a PublishToTopicProps.Builder of PublishToTopicProps