class EmailSubscription
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SNS.Subscriptions.EmailSubscription |
Java | software.amazon.awscdk.services.sns.subscriptions.EmailSubscription |
Python | aws_cdk.aws_sns_subscriptions.EmailSubscription |
TypeScript (source) | @aws-cdk/aws-sns-subscriptions » EmailSubscription |
Implements
ITopic
Use an email address as a subscription target.
Email subscriptions require confirmation.
Example
const myTopic = new sns.Topic(this, 'Topic');
const emailAddress = new CfnParameter(this, 'email-param');
myTopic.addSubscription(new subscriptions.EmailSubscription(emailAddress.valueAsString));
Initializer
new EmailSubscription(emailAddress: string, props?: EmailSubscriptionProps)
Parameters
- emailAddress
string
- props
Email
Subscription Props
Methods
Name | Description |
---|---|
bind(_topic) | Returns a configuration for an email address to subscribe to an SNS topic. |
bind(_topic)
public bind(_topic: ITopic): TopicSubscriptionConfig
Parameters
- _topic
ITopic
Returns
Returns a configuration for an email address to subscribe to an SNS topic.