red-football-97286
01/09/2020, 4:37 PMapply
method with Python?
template = lambda Topic, Endpoint: { "AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"MySubscription": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"Protocol": "email",
"Endpoint": Endpoint,
"TopicArn": Topic
},
}
}
}
sns_email = cloudformation.Stack(
"Cloudformation-email",
template_body = (template(sns_topic.arn, Endpoint))
)
gentle-diamond-70147
01/09/2020, 5:00 PMOutput.all(...)
will let you apply multiple arguments.
https://www.pulumi.com/docs/intro/concepts/programming-model/#all