Class Subscription
A new subscription.
Inherited Members
Namespace: Amazon.CDK.AWS.SNS
Assembly: Amazon.CDK.AWS.SNS.dll
Syntax (csharp)
public class Subscription : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class Subscription
Inherits Resource
Implements IResource, IConstruct, IDependable
Remarks
Prefer to use the ITopic.addSubscription()
methods to create instances of
this class.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.KinesisFirehose;
DeliveryStream stream;
var topic = new Topic(this, "Topic");
new Subscription(this, "Subscription", new SubscriptionProps {
Topic = topic,
Endpoint = stream.DeliveryStreamArn,
Protocol = SubscriptionProtocol.FIREHOSE,
SubscriptionRoleArn = "SAMPLE_ARN"
});
Synopsis
Constructors
Subscription(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Subscription(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Subscription(Construct, String, ISubscriptionProps) |
Properties
DeadLetterQueue | The DLQ associated with this subscription if present. |
Constructors
Subscription(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Subscription(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Subscription(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Subscription(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Subscription(Construct, String, ISubscriptionProps)
public Subscription(Construct scope, string id, ISubscriptionProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ISubscriptionProps
Properties
DeadLetterQueue
The DLQ associated with this subscription if present.
public virtual IQueue DeadLetterQueue { get; }
Property Value
Implements
Constructs.IConstruct