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:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.sns.ITopicSubscription
ITopicSubscription.Jsii$Default, ITopicSubscription.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionUrlSubscription
(String url) UrlSubscription
(String url, UrlSubscriptionProps props) protected
UrlSubscription
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
UrlSubscription
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns a configuration for a URL to subscribe to an SNS topic.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- Parameters:
url
- This parameter is required.
-
-
Method Details
-
bind
Returns a configuration for a URL to subscribe to an SNS topic.- Specified by:
bind
in interfaceITopicSubscription
- Parameters:
_topic
- This parameter is required.
-