Skip to content

Commit c138a1b

Browse files
committed
Added sns publish message wizard
1 parent c135b7d commit c138a1b

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"StartStage": "GetTopic",
3+
"Stages": [
4+
{
5+
"Name": "GetTopic",
6+
"Prompt": "Select the topic to publish to:",
7+
8+
"Retrieval": {
9+
"Type": "Request",
10+
"Resource": {
11+
"Service": "sns",
12+
"Operation": "ListTopics"
13+
},
14+
"Path": "Topics"
15+
},
16+
17+
"Interaction": {
18+
"ScreenType": "SimpleSelect",
19+
"Path": "[].TopicArn"
20+
},
21+
22+
"Resolution": {
23+
"Key": "TopicArn",
24+
"Path": "TopicArn"
25+
},
26+
27+
"NextStage": { "Type": "Name", "Name": "MessageForm" }
28+
},
29+
30+
{
31+
"Name": "MessageForm",
32+
"Prompt": "Provide the message details.",
33+
34+
"Retrieval": {
35+
"Type": "Static",
36+
"Resource": {
37+
"Subject": "",
38+
"Body": ""
39+
}
40+
},
41+
42+
"Interaction": { "ScreenType": "SimplePrompt" },
43+
44+
"Resolution": { "Key": "MessageDetails" },
45+
46+
"NextStage": { "Type": "Name", "Name": "PublishMessage" }
47+
},
48+
49+
{
50+
"Name": "PublishMessage",
51+
"Prompt": "Publishing message...",
52+
53+
"Retrieval": {
54+
"Type": "Request",
55+
"Resource": {
56+
"Service": "sns",
57+
"Operation": "Publish",
58+
"EnvParameters": {
59+
"TopicArn": "TopicArn",
60+
"Message": "MessageDetails.Body",
61+
"Subject": "MessageDetails.Subject"
62+
}
63+
}
64+
}
65+
}
66+
]
67+
}

0 commit comments

Comments
 (0)