Class UrlSubscription

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.sns.subscriptions.UrlSubscription
All Implemented Interfaces:
ITopicSubscription, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:24.061Z") @Stability(Stable) public class UrlSubscription extends software.amazon.jsii.JsiiObject implements ITopicSubscription
Use a URL as a subscription target.

The message will be POSTed to the given URL.

Example:

 Topic myTopic = new Topic(this, "MyTopic");
 myTopic.addSubscription(new UrlSubscription("https://foobar.com/"));
 

See Also:
  • Constructor Details

    • UrlSubscription

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

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

      @Stability(Stable) public UrlSubscription(@NotNull String url, @Nullable UrlSubscriptionProps props)
      Parameters:
      url - This parameter is required.
      props -
    • UrlSubscription

      @Stability(Stable) public UrlSubscription(@NotNull String url)
      Parameters:
      url - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public TopicSubscriptionConfig bind(@NotNull ITopic _topic)
      Returns a configuration for a URL to subscribe to an SNS topic.

      Specified by:
      bind in interface ITopicSubscription
      Parameters:
      _topic - This parameter is required.