aws-sdk-mailmanager 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-mailmanager/client.rb +20 -1
- data/lib/aws-sdk-mailmanager/client_api.rb +13 -0
- data/lib/aws-sdk-mailmanager/types.rb +58 -2
- data/lib/aws-sdk-mailmanager.rb +1 -1
- data/sig/client.rbs +14 -0
- data/sig/types.rbs +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aeb764542156ce410da78470791763fcd21729b5cb829d23190ada7baa1e37c
|
4
|
+
data.tar.gz: d705a58e28d3aa29cbd74a4144bbba6b764931bea78fd1ae08e122fe8cd39826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db51290d53ca44a6299c9f9fae881f754b446e6f1d9edfac076c5a5d01bf8e55731f4834f359339dfbac361bbc4e3d38a8dea21dab680f45da2120525544fbc4
|
7
|
+
data.tar.gz: 2a2d1417448a6138acad0e853d6373ea8b71a64b5acf97fff6a12cce362b8141c26087273fb20273372d147de44badc5264267a7ba661cc507caf83fdc7df7b2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.24.0 (2025-04-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - 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.
|
8
|
+
|
4
9
|
1.23.0 (2025-04-03)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.24.0
|
@@ -932,6 +932,13 @@ module Aws::MailManager
|
|
932
932
|
# },
|
933
933
|
# drop: {
|
934
934
|
# },
|
935
|
+
# publish_to_sns: {
|
936
|
+
# action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
|
937
|
+
# encoding: "UTF-8", # accepts UTF-8, BASE64
|
938
|
+
# payload_type: "HEADERS", # accepts HEADERS, CONTENT
|
939
|
+
# role_arn: "IamRoleArn", # required
|
940
|
+
# topic_arn: "SnsTopicArn", # required
|
941
|
+
# },
|
935
942
|
# relay: {
|
936
943
|
# action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
|
937
944
|
# mail_from: "REPLACE", # accepts REPLACE, PRESERVE
|
@@ -2026,6 +2033,11 @@ module Aws::MailManager
|
|
2026
2033
|
# resp.rules[0].actions[0].deliver_to_q_business.application_id #=> String
|
2027
2034
|
# resp.rules[0].actions[0].deliver_to_q_business.index_id #=> String
|
2028
2035
|
# resp.rules[0].actions[0].deliver_to_q_business.role_arn #=> String
|
2036
|
+
# resp.rules[0].actions[0].publish_to_sns.action_failure_policy #=> String, one of "CONTINUE", "DROP"
|
2037
|
+
# resp.rules[0].actions[0].publish_to_sns.encoding #=> String, one of "UTF-8", "BASE64"
|
2038
|
+
# resp.rules[0].actions[0].publish_to_sns.payload_type #=> String, one of "HEADERS", "CONTENT"
|
2039
|
+
# resp.rules[0].actions[0].publish_to_sns.role_arn #=> String
|
2040
|
+
# resp.rules[0].actions[0].publish_to_sns.topic_arn #=> String
|
2029
2041
|
# resp.rules[0].actions[0].relay.action_failure_policy #=> String, one of "CONTINUE", "DROP"
|
2030
2042
|
# resp.rules[0].actions[0].relay.mail_from #=> String, one of "REPLACE", "PRESERVE"
|
2031
2043
|
# resp.rules[0].actions[0].relay.relay #=> String
|
@@ -3266,6 +3278,13 @@ module Aws::MailManager
|
|
3266
3278
|
# },
|
3267
3279
|
# drop: {
|
3268
3280
|
# },
|
3281
|
+
# publish_to_sns: {
|
3282
|
+
# action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
|
3283
|
+
# encoding: "UTF-8", # accepts UTF-8, BASE64
|
3284
|
+
# payload_type: "HEADERS", # accepts HEADERS, CONTENT
|
3285
|
+
# role_arn: "IamRoleArn", # required
|
3286
|
+
# topic_arn: "SnsTopicArn", # required
|
3287
|
+
# },
|
3269
3288
|
# relay: {
|
3270
3289
|
# action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
|
3271
3290
|
# mail_from: "REPLACE", # accepts REPLACE, PRESERVE
|
@@ -3531,7 +3550,7 @@ module Aws::MailManager
|
|
3531
3550
|
tracer: tracer
|
3532
3551
|
)
|
3533
3552
|
context[:gem_name] = 'aws-sdk-mailmanager'
|
3534
|
-
context[:gem_version] = '1.
|
3553
|
+
context[:gem_version] = '1.24.0'
|
3535
3554
|
Seahorse::Client::Request.new(handlers, context)
|
3536
3555
|
end
|
3537
3556
|
|
@@ -325,6 +325,10 @@ module Aws::MailManager
|
|
325
325
|
SenderIpAddress = Shapes::StringShape.new(name: 'SenderIpAddress')
|
326
326
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
327
327
|
SmtpPassword = Shapes::StringShape.new(name: 'SmtpPassword')
|
328
|
+
SnsAction = Shapes::StructureShape.new(name: 'SnsAction')
|
329
|
+
SnsNotificationEncoding = Shapes::StringShape.new(name: 'SnsNotificationEncoding')
|
330
|
+
SnsNotificationPayloadType = Shapes::StringShape.new(name: 'SnsNotificationPayloadType')
|
331
|
+
SnsTopicArn = Shapes::StringShape.new(name: 'SnsTopicArn')
|
328
332
|
StartAddressListImportJobRequest = Shapes::StructureShape.new(name: 'StartAddressListImportJobRequest')
|
329
333
|
StartAddressListImportJobResponse = Shapes::StructureShape.new(name: 'StartAddressListImportJobResponse')
|
330
334
|
StartArchiveExportRequest = Shapes::StructureShape.new(name: 'StartArchiveExportRequest')
|
@@ -1151,6 +1155,7 @@ module Aws::MailManager
|
|
1151
1155
|
RuleAction.add_member(:deliver_to_mailbox, Shapes::ShapeRef.new(shape: DeliverToMailboxAction, location_name: "DeliverToMailbox"))
|
1152
1156
|
RuleAction.add_member(:deliver_to_q_business, Shapes::ShapeRef.new(shape: DeliverToQBusinessAction, location_name: "DeliverToQBusiness"))
|
1153
1157
|
RuleAction.add_member(:drop, Shapes::ShapeRef.new(shape: DropAction, location_name: "Drop"))
|
1158
|
+
RuleAction.add_member(:publish_to_sns, Shapes::ShapeRef.new(shape: SnsAction, location_name: "PublishToSns"))
|
1154
1159
|
RuleAction.add_member(:relay, Shapes::ShapeRef.new(shape: RelayAction, location_name: "Relay"))
|
1155
1160
|
RuleAction.add_member(:replace_recipient, Shapes::ShapeRef.new(shape: ReplaceRecipientAction, location_name: "ReplaceRecipient"))
|
1156
1161
|
RuleAction.add_member(:send, Shapes::ShapeRef.new(shape: SendAction, location_name: "Send"))
|
@@ -1161,6 +1166,7 @@ module Aws::MailManager
|
|
1161
1166
|
RuleAction.add_member_subclass(:deliver_to_mailbox, Types::RuleAction::DeliverToMailbox)
|
1162
1167
|
RuleAction.add_member_subclass(:deliver_to_q_business, Types::RuleAction::DeliverToQBusiness)
|
1163
1168
|
RuleAction.add_member_subclass(:drop, Types::RuleAction::Drop)
|
1169
|
+
RuleAction.add_member_subclass(:publish_to_sns, Types::RuleAction::PublishToSns)
|
1164
1170
|
RuleAction.add_member_subclass(:relay, Types::RuleAction::Relay)
|
1165
1171
|
RuleAction.add_member_subclass(:replace_recipient, Types::RuleAction::ReplaceRecipient)
|
1166
1172
|
RuleAction.add_member_subclass(:send, Types::RuleAction::Send)
|
@@ -1314,6 +1320,13 @@ module Aws::MailManager
|
|
1314
1320
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1315
1321
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
1316
1322
|
|
1323
|
+
SnsAction.add_member(:action_failure_policy, Shapes::ShapeRef.new(shape: ActionFailurePolicy, location_name: "ActionFailurePolicy"))
|
1324
|
+
SnsAction.add_member(:encoding, Shapes::ShapeRef.new(shape: SnsNotificationEncoding, location_name: "Encoding"))
|
1325
|
+
SnsAction.add_member(:payload_type, Shapes::ShapeRef.new(shape: SnsNotificationPayloadType, location_name: "PayloadType"))
|
1326
|
+
SnsAction.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "RoleArn"))
|
1327
|
+
SnsAction.add_member(:topic_arn, Shapes::ShapeRef.new(shape: SnsTopicArn, required: true, location_name: "TopicArn"))
|
1328
|
+
SnsAction.struct_class = Types::SnsAction
|
1329
|
+
|
1317
1330
|
StartAddressListImportJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
1318
1331
|
StartAddressListImportJobRequest.struct_class = Types::StartAddressListImportJobRequest
|
1319
1332
|
|
@@ -1044,7 +1044,7 @@ module Aws::MailManager
|
|
1044
1044
|
# A policy that states what to do in the case of failure. The action
|
1045
1045
|
# will fail if there are configuration errors. For example, the
|
1046
1046
|
# specified application has been deleted or the role lacks necessary
|
1047
|
-
# permissions to call the qbusiness:BatchPutDocument API.
|
1047
|
+
# permissions to call the `qbusiness:BatchPutDocument` API.
|
1048
1048
|
# @return [String]
|
1049
1049
|
#
|
1050
1050
|
# @!attribute [rw] application_id
|
@@ -1061,7 +1061,8 @@ module Aws::MailManager
|
|
1061
1061
|
# @!attribute [rw] role_arn
|
1062
1062
|
# The Amazon Resource Name (ARN) of the IAM Role to use while
|
1063
1063
|
# delivering to Amazon Q Business. This role must have access to the
|
1064
|
-
# qbusiness:BatchPutDocument API for the given application and
|
1064
|
+
# `qbusiness:BatchPutDocument` API for the given application and
|
1065
|
+
# index.
|
1065
1066
|
# @return [String]
|
1066
1067
|
#
|
1067
1068
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mailmanager-2023-10-17/DeliverToQBusinessAction AWS API Documentation
|
@@ -3575,6 +3576,10 @@ module Aws::MailManager
|
|
3575
3576
|
# This action terminates the evaluation of rules in the rule set.
|
3576
3577
|
# @return [Types::DropAction]
|
3577
3578
|
#
|
3579
|
+
# @!attribute [rw] publish_to_sns
|
3580
|
+
# This action publishes the email content to an Amazon SNS topic.
|
3581
|
+
# @return [Types::SnsAction]
|
3582
|
+
#
|
3578
3583
|
# @!attribute [rw] relay
|
3579
3584
|
# This action relays the email to another SMTP server.
|
3580
3585
|
# @return [Types::RelayAction]
|
@@ -3600,6 +3605,7 @@ module Aws::MailManager
|
|
3600
3605
|
:deliver_to_mailbox,
|
3601
3606
|
:deliver_to_q_business,
|
3602
3607
|
:drop,
|
3608
|
+
:publish_to_sns,
|
3603
3609
|
:relay,
|
3604
3610
|
:replace_recipient,
|
3605
3611
|
:send,
|
@@ -3614,6 +3620,7 @@ module Aws::MailManager
|
|
3614
3620
|
class DeliverToMailbox < RuleAction; end
|
3615
3621
|
class DeliverToQBusiness < RuleAction; end
|
3616
3622
|
class Drop < RuleAction; end
|
3623
|
+
class PublishToSns < RuleAction; end
|
3617
3624
|
class Relay < RuleAction; end
|
3618
3625
|
class ReplaceRecipient < RuleAction; end
|
3619
3626
|
class Send < RuleAction; end
|
@@ -4191,6 +4198,55 @@ module Aws::MailManager
|
|
4191
4198
|
include Aws::Structure
|
4192
4199
|
end
|
4193
4200
|
|
4201
|
+
# The action to publish the email content to an Amazon SNS topic. When
|
4202
|
+
# executed, this action will send the email as a notification to the
|
4203
|
+
# specified SNS topic.
|
4204
|
+
#
|
4205
|
+
# @!attribute [rw] action_failure_policy
|
4206
|
+
# A policy that states what to do in the case of failure. The action
|
4207
|
+
# will fail if there are configuration errors. For example, specified
|
4208
|
+
# SNS topic has been deleted or the role lacks necessary permissions
|
4209
|
+
# to call the `sns:Publish` API.
|
4210
|
+
# @return [String]
|
4211
|
+
#
|
4212
|
+
# @!attribute [rw] encoding
|
4213
|
+
# The encoding to use for the email within the Amazon SNS
|
4214
|
+
# notification. The default value is `UTF-8`. Use `BASE64` if you need
|
4215
|
+
# to preserve all special characters, especially when the original
|
4216
|
+
# message uses a different encoding format.
|
4217
|
+
# @return [String]
|
4218
|
+
#
|
4219
|
+
# @!attribute [rw] payload_type
|
4220
|
+
# The expected payload type within the Amazon SNS notification.
|
4221
|
+
# `CONTENT` attempts to publish the full email content with 20KB of
|
4222
|
+
# headers content. `HEADERS` extracts up to 100KB of header content to
|
4223
|
+
# include in the notification, email content will not be included to
|
4224
|
+
# the notification. The default value is `CONTENT`.
|
4225
|
+
# @return [String]
|
4226
|
+
#
|
4227
|
+
# @!attribute [rw] role_arn
|
4228
|
+
# The Amazon Resource Name (ARN) of the IAM Role to use while writing
|
4229
|
+
# to Amazon SNS. This role must have access to the `sns:Publish` API
|
4230
|
+
# for the given topic.
|
4231
|
+
# @return [String]
|
4232
|
+
#
|
4233
|
+
# @!attribute [rw] topic_arn
|
4234
|
+
# The Amazon Resource Name (ARN) of the Amazon SNS Topic to which
|
4235
|
+
# notification for the email received will be published.
|
4236
|
+
# @return [String]
|
4237
|
+
#
|
4238
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mailmanager-2023-10-17/SnsAction AWS API Documentation
|
4239
|
+
#
|
4240
|
+
class SnsAction < Struct.new(
|
4241
|
+
:action_failure_policy,
|
4242
|
+
:encoding,
|
4243
|
+
:payload_type,
|
4244
|
+
:role_arn,
|
4245
|
+
:topic_arn)
|
4246
|
+
SENSITIVE = []
|
4247
|
+
include Aws::Structure
|
4248
|
+
end
|
4249
|
+
|
4194
4250
|
# @!attribute [rw] job_id
|
4195
4251
|
# The identifier of the import job that needs to be started.
|
4196
4252
|
# @return [String]
|
data/lib/aws-sdk-mailmanager.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -255,6 +255,13 @@ module Aws
|
|
255
255
|
}?,
|
256
256
|
drop: {
|
257
257
|
}?,
|
258
|
+
publish_to_sns: {
|
259
|
+
action_failure_policy: ("CONTINUE" | "DROP")?,
|
260
|
+
encoding: ("UTF-8" | "BASE64")?,
|
261
|
+
payload_type: ("HEADERS" | "CONTENT")?,
|
262
|
+
role_arn: ::String,
|
263
|
+
topic_arn: ::String
|
264
|
+
}?,
|
258
265
|
relay: {
|
259
266
|
action_failure_policy: ("CONTINUE" | "DROP")?,
|
260
267
|
mail_from: ("REPLACE" | "PRESERVE")?,
|
@@ -1197,6 +1204,13 @@ module Aws
|
|
1197
1204
|
}?,
|
1198
1205
|
drop: {
|
1199
1206
|
}?,
|
1207
|
+
publish_to_sns: {
|
1208
|
+
action_failure_policy: ("CONTINUE" | "DROP")?,
|
1209
|
+
encoding: ("UTF-8" | "BASE64")?,
|
1210
|
+
payload_type: ("HEADERS" | "CONTENT")?,
|
1211
|
+
role_arn: ::String,
|
1212
|
+
topic_arn: ::String
|
1213
|
+
}?,
|
1200
1214
|
relay: {
|
1201
1215
|
action_failure_policy: ("CONTINUE" | "DROP")?,
|
1202
1216
|
mail_from: ("REPLACE" | "PRESERVE")?,
|
data/sig/types.rbs
CHANGED
@@ -1097,6 +1097,7 @@ module Aws::MailManager
|
|
1097
1097
|
attr_accessor deliver_to_mailbox: Types::DeliverToMailboxAction
|
1098
1098
|
attr_accessor deliver_to_q_business: Types::DeliverToQBusinessAction
|
1099
1099
|
attr_accessor drop: Types::DropAction
|
1100
|
+
attr_accessor publish_to_sns: Types::SnsAction
|
1100
1101
|
attr_accessor relay: Types::RelayAction
|
1101
1102
|
attr_accessor replace_recipient: Types::ReplaceRecipientAction
|
1102
1103
|
attr_accessor send: Types::SendAction
|
@@ -1114,6 +1115,8 @@ module Aws::MailManager
|
|
1114
1115
|
end
|
1115
1116
|
class Drop < RuleAction
|
1116
1117
|
end
|
1118
|
+
class PublishToSns < RuleAction
|
1119
|
+
end
|
1117
1120
|
class Relay < RuleAction
|
1118
1121
|
end
|
1119
1122
|
class ReplaceRecipient < RuleAction
|
@@ -1320,6 +1323,15 @@ module Aws::MailManager
|
|
1320
1323
|
SENSITIVE: []
|
1321
1324
|
end
|
1322
1325
|
|
1326
|
+
class SnsAction
|
1327
|
+
attr_accessor action_failure_policy: ("CONTINUE" | "DROP")
|
1328
|
+
attr_accessor encoding: ("UTF-8" | "BASE64")
|
1329
|
+
attr_accessor payload_type: ("HEADERS" | "CONTENT")
|
1330
|
+
attr_accessor role_arn: ::String
|
1331
|
+
attr_accessor topic_arn: ::String
|
1332
|
+
SENSITIVE: []
|
1333
|
+
end
|
1334
|
+
|
1323
1335
|
class StartAddressListImportJobRequest
|
1324
1336
|
attr_accessor job_id: ::String
|
1325
1337
|
SENSITIVE: []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-mailmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|