Skip to content

Commit

Permalink
Added sns publish message wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
joguSD committed Sep 2, 2016
1 parent c135b7d commit ba8e500
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions awsshell/data/wizards/2016-01-01/publish-message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"StartStage": "GetTopic",
"Stages": [
{
"Name": "GetTopic",
"Prompt": "Select the topic to publish to:",

"Retrieval": {
"Type": "Request",
"Resource": {
"Service": "sns",
"Operation": "ListTopics"
},
"Path": "Topics"
},

"Interaction": {
"ScreenType": "SimpleSelect",
"Path": "[].TopicArn"
},

"Resolution": {
"Key": "TopicArn",
"Path": "TopicArn"
},

"NextStage": { "Type": "Name", "Name": "MessageForm" }
},

{
"Name": "MessageForm",
"Prompt": "Prove the message details.",

"Retrieval": {
"Type": "Static",
"Resource": {
"Subject": "",
"Body": ""
}
},

"Interaction": { "ScreenType": "SimplePrompt" },

"Resolution": { "Key": "MessageDetails" },

"NextStage": { "Type": "Name", "Name": "PublishMessage" }
},

{
"Name": "PublishMessage",
"Prompt": "Publishing message...",

"Retrieval": {
"Type": "Request",
"Resource": {
"Service": "sns",
"Operation": "Publish",
"EnvParameters": {
"TopicArn": "TopicArn",
"Message": "MessageDetails.Body",
"Subject": "MessageDetails.Subject"
}
}
}
}
]
}

0 comments on commit ba8e500

Please sign in to comment.