Skip to content

Commit 91d41f9

Browse files
author
AWS
committed
MailManager Update: Introducing new RuleSet rule PublishToSns action, which allows customers to publish email notifications to an Amazon SNS topic. New PublishToSns action enables customers to easily integrate their email workflows via Amazon SNS, allowing them to notify other systems about important email events.
1 parent da83863 commit 91d41f9

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "MailManager",
4+
"contributor": "",
5+
"description": "Introducing new RuleSet rule PublishToSns action, which allows customers to publish email notifications to an Amazon SNS topic. New PublishToSns action enables customers to easily integrate their email workflows via Amazon SNS, allowing them to notify other systems about important email events."
6+
}

services/mailmanager/src/main/resources/codegen-resources/service-2.json

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@
18881888
"members":{
18891889
"ActionFailurePolicy":{
18901890
"shape":"ActionFailurePolicy",
1891-
"documentation":"<p>A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified application has been deleted or the role lacks necessary permissions to call the qbusiness:BatchPutDocument API.</p>"
1891+
"documentation":"<p>A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified application has been deleted or the role lacks necessary permissions to call the <code>qbusiness:BatchPutDocument</code> API.</p>"
18921892
},
18931893
"ApplicationId":{
18941894
"shape":"QBusinessApplicationId",
@@ -1900,7 +1900,7 @@
19001900
},
19011901
"RoleArn":{
19021902
"shape":"IamRoleArn",
1903-
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM Role to use while delivering to Amazon Q Business. This role must have access to the qbusiness:BatchPutDocument API for the given application and index.</p>"
1903+
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM Role to use while delivering to Amazon Q Business. This role must have access to the <code>qbusiness:BatchPutDocument</code> API for the given application and index.</p>"
19041904
}
19051905
},
19061906
"documentation":"<p>The action to deliver incoming emails to an Amazon Q Business application for indexing.</p>"
@@ -4118,6 +4118,10 @@
41184118
"shape":"DropAction",
41194119
"documentation":"<p>This action terminates the evaluation of rules in the rule set.</p>"
41204120
},
4121+
"PublishToSns":{
4122+
"shape":"SnsAction",
4123+
"documentation":"<p>This action publishes the email content to an Amazon SNS topic.</p>"
4124+
},
41214125
"Relay":{
41224126
"shape":"RelayAction",
41234127
"documentation":"<p>This action relays the email to another SMTP server.</p>"
@@ -4780,6 +4784,56 @@
47804784
"pattern":"^[A-Za-z0-9!@#$%^&*()_+\\-=\\[\\]{}|.,?]+$",
47814785
"sensitive":true
47824786
},
4787+
"SnsAction":{
4788+
"type":"structure",
4789+
"required":[
4790+
"RoleArn",
4791+
"TopicArn"
4792+
],
4793+
"members":{
4794+
"ActionFailurePolicy":{
4795+
"shape":"ActionFailurePolicy",
4796+
"documentation":"<p>A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, specified SNS topic has been deleted or the role lacks necessary permissions to call the <code>sns:Publish</code> API.</p>"
4797+
},
4798+
"Encoding":{
4799+
"shape":"SnsNotificationEncoding",
4800+
"documentation":"<p>The encoding to use for the email within the Amazon SNS notification. The default value is <code>UTF-8</code>. Use <code>BASE64</code> if you need to preserve all special characters, especially when the original message uses a different encoding format.</p>"
4801+
},
4802+
"PayloadType":{
4803+
"shape":"SnsNotificationPayloadType",
4804+
"documentation":"<p>The expected payload type within the Amazon SNS notification. <code>CONTENT</code> attempts to publish the full email content with 20KB of headers content. <code>HEADERS</code> extracts up to 100KB of header content to include in the notification, email content will not be included to the notification. The default value is <code>CONTENT</code>.</p>"
4805+
},
4806+
"RoleArn":{
4807+
"shape":"IamRoleArn",
4808+
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS. This role must have access to the <code>sns:Publish</code> API for the given topic.</p>"
4809+
},
4810+
"TopicArn":{
4811+
"shape":"SnsTopicArn",
4812+
"documentation":"<p>The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.</p>"
4813+
}
4814+
},
4815+
"documentation":"<p>The action to publish the email content to an Amazon SNS topic. When executed, this action will send the email as a notification to the specified SNS topic.</p>"
4816+
},
4817+
"SnsNotificationEncoding":{
4818+
"type":"string",
4819+
"enum":[
4820+
"UTF-8",
4821+
"BASE64"
4822+
]
4823+
},
4824+
"SnsNotificationPayloadType":{
4825+
"type":"string",
4826+
"enum":[
4827+
"HEADERS",
4828+
"CONTENT"
4829+
]
4830+
},
4831+
"SnsTopicArn":{
4832+
"type":"string",
4833+
"max":2048,
4834+
"min":20,
4835+
"pattern":"^arn:(aws|aws-cn|aws-us-gov):sns:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:[\\w\\-]{1,256}$"
4836+
},
47834837
"StartAddressListImportJobRequest":{
47844838
"type":"structure",
47854839
"required":["JobId"],

0 commit comments

Comments
 (0)