Class SnsTopic.Builder

java.lang.Object
software.amazon.awscdk.services.events.targets.SnsTopic.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SnsTopic>
Enclosing class:
SnsTopic

@Stability(Stable) public static final class SnsTopic.Builder extends Object implements software.amazon.jsii.Builder<SnsTopic>
A fluent builder for SnsTopic.
  • Method Details

    • create

      @Stability(Stable) public static SnsTopic.Builder create(ITopic topic)
      Parameters:
      topic - This parameter is required.
      Returns:
      a new instance of SnsTopic.Builder.
    • message

      @Stability(Stable) public SnsTopic.Builder message(RuleTargetInput message)
      The message to send to the topic.

      Default: the entire EventBridge event

      Parameters:
      message - The message to send to the topic. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public SnsTopic build()
      Specified by:
      build in interface software.amazon.jsii.Builder<SnsTopic>
      Returns:
      a newly built instance of SnsTopic.