full-dress-10026
03/20/2019, 9:47 PM/**
* The protocol to use. The possible values for this are: `sqs`, `sms`, `lambda`, `application`. (`http` or `https` are partially supported, see below) (`email` is option but unsupported, see below).
*/
readonly protocol: pulumi.Input<string>;
What does "(email
is option but unsupported, see below)" mean? How am I supposed to create an email subscription?stocky-spoon-28903
03/20/2019, 9:49 PMfull-dress-10026
03/20/2019, 9:50 PMstocky-spoon-28903
03/20/2019, 9:52 PMfull-dress-10026
03/20/2019, 9:55 PMstocky-spoon-28903
03/20/2019, 10:02 PMfull-dress-10026
03/20/2019, 10:07 PMfunction snsEmailSubscription(topicArn: string, email: string) {
return new aws.cloudformation.Stack("alert-email-subscribe", {
templateBody: JSON.stringify({
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"EmailSNSTopic": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"TopicArn": topicArn,
"Protocol": "email",
"Endpoint": email
}
}
}
}),
capabilities: ["CAPABILITY_NAMED_IAM"]
})
}
stocky-spoon-28903
03/20/2019, 10:36 PMawsx
itself, too (cc @white-balloon-205)full-dress-10026
03/20/2019, 11:40 PM