From ba8e500cea5b27c1a8483a087c013b314251c0d2 Mon Sep 17 00:00:00 2001 From: Jordan Guymon Date: Thu, 1 Sep 2016 17:06:21 -0700 Subject: [PATCH] Added sns publish message wizard --- .../wizards/2016-01-01/publish-message.json | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 awsshell/data/wizards/2016-01-01/publish-message.json diff --git a/awsshell/data/wizards/2016-01-01/publish-message.json b/awsshell/data/wizards/2016-01-01/publish-message.json new file mode 100644 index 0000000..cd5094f --- /dev/null +++ b/awsshell/data/wizards/2016-01-01/publish-message.json @@ -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" + } + } + } + } + ] +}