Show / Hide Table of Contents

Class EmailSubscription

Use an email address as a subscription target.

Inheritance
System.Object
EmailSubscription
Implements
ITopicSubscription
Namespace: Amazon.CDK.AWS.SNS.Subscriptions
Assembly: Amazon.CDK.AWS.SNS.Subscriptions.dll
Syntax (csharp)
public class EmailSubscription : DeputyBase, ITopicSubscription
Syntax (vb)
Public Class EmailSubscription
    Inherits DeputyBase
    Implements ITopicSubscription
Remarks

Email subscriptions require confirmation.

ExampleMetadata: infused

Examples
var myTopic = new Topic(this, "Topic");
var emailAddress = new CfnParameter(this, "email-param");

myTopic.AddSubscription(new EmailSubscription(emailAddress.ValueAsString));

Synopsis

Constructors

EmailSubscription(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

EmailSubscription(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

EmailSubscription(String, IEmailSubscriptionProps)

Methods

Bind(ITopic)

Returns a configuration for an email address to subscribe to an SNS topic.

Constructors

EmailSubscription(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected EmailSubscription(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

EmailSubscription(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected EmailSubscription(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

EmailSubscription(String, IEmailSubscriptionProps)

public EmailSubscription(string emailAddress, IEmailSubscriptionProps props = null)
Parameters
emailAddress System.String
props IEmailSubscriptionProps

Methods

Bind(ITopic)

Returns a configuration for an email address to subscribe to an SNS topic.

public virtual ITopicSubscriptionConfig Bind(ITopic topic)
Parameters
topic ITopic
Returns

ITopicSubscriptionConfig

Implements

ITopicSubscription
Back to top Generated by DocFX