Class UrlSubscription
Use a URL as a subscription target.
Inheritance
System.Object
UrlSubscription
Implements
Namespace: Amazon.CDK.AWS.SNS.Subscriptions
Assembly: Amazon.CDK.AWS.SNS.Subscriptions.dll
Syntax (csharp)
public class UrlSubscription : DeputyBase, ITopicSubscription
Syntax (vb)
Public Class UrlSubscription
Inherits DeputyBase
Implements ITopicSubscription
Remarks
The message will be POSTed to the given URL.
See: https://docs.aws.amazon.com/sns/latest/dg/sns-http-https-endpoint-as-subscriber.html
ExampleMetadata: infused
Examples
var myTopic = new Topic(this, "MyTopic");
myTopic.AddSubscription(new UrlSubscription("https://foobar.com/"));
Synopsis
Constructors
UrlSubscription(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
UrlSubscription(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
UrlSubscription(String, IUrlSubscriptionProps) |
Methods
Bind(ITopic) | Returns a configuration for a URL to subscribe to an SNS topic. |
Constructors
UrlSubscription(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected UrlSubscription(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
UrlSubscription(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected UrlSubscription(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
UrlSubscription(String, IUrlSubscriptionProps)
public UrlSubscription(string url, IUrlSubscriptionProps props = null)
Parameters
- url System.String
- props IUrlSubscriptionProps
Methods
Bind(ITopic)
Returns a configuration for a URL to subscribe to an SNS topic.
public virtual ITopicSubscriptionConfig Bind(ITopic topic)
Parameters
- topic ITopic
Returns